@angular/core 15.2.1 → 16.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/esm2020/src/application_init.mjs +3 -2
  2. package/esm2020/src/application_module.mjs +3 -2
  3. package/esm2020/src/application_ref.mjs +5 -3
  4. package/esm2020/src/change_detection/change_detector_ref.mjs +3 -2
  5. package/esm2020/src/change_detection/differs/iterable_differs.mjs +3 -2
  6. package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +3 -2
  7. package/esm2020/src/console.mjs +3 -2
  8. package/esm2020/src/core.mjs +2 -1
  9. package/esm2020/src/core_private_export.mjs +2 -1
  10. package/esm2020/src/core_reactivity_export.mjs +11 -0
  11. package/esm2020/src/core_reactivity_export_internal.mjs +9 -0
  12. package/esm2020/src/di/injector.mjs +3 -2
  13. package/esm2020/src/di/r3_injector.mjs +5 -1
  14. package/esm2020/src/di/reflective_injector.mjs +3 -2
  15. package/esm2020/src/linker/compiler.mjs +3 -2
  16. package/esm2020/src/linker/component_factory_resolver.mjs +3 -2
  17. package/esm2020/src/linker/destroy_ref.mjs +41 -0
  18. package/esm2020/src/linker/element_ref.mjs +3 -2
  19. package/esm2020/src/linker/template_ref.mjs +3 -2
  20. package/esm2020/src/linker/view_container_ref.mjs +3 -2
  21. package/esm2020/src/linker.mjs +2 -1
  22. package/esm2020/src/render/api.mjs +3 -2
  23. package/esm2020/src/render/api_flags.mjs +1 -1
  24. package/esm2020/src/render3/features/standalone_feature.mjs +1 -1
  25. package/esm2020/src/render3/fields.mjs +10 -1
  26. package/esm2020/src/render3/hooks.mjs +3 -2
  27. package/esm2020/src/render3/instructions/shared.mjs +14 -14
  28. package/esm2020/src/render3/interfaces/definition.mjs +1 -1
  29. package/esm2020/src/render3/interfaces/view.mjs +3 -2
  30. package/esm2020/src/render3/node_manipulation.mjs +14 -14
  31. package/esm2020/src/render3/util/view_utils.mjs +11 -2
  32. package/esm2020/src/render3/view_ref.mjs +4 -3
  33. package/esm2020/src/sanitization/sanitizer.mjs +3 -2
  34. package/esm2020/src/signals/index.mjs +15 -0
  35. package/esm2020/src/signals/src/api.mjs +46 -0
  36. package/esm2020/src/signals/src/computed.mjs +142 -0
  37. package/esm2020/src/signals/src/effect.mjs +69 -0
  38. package/esm2020/src/signals/src/graph.mjs +114 -0
  39. package/esm2020/src/signals/src/signal.mjs +78 -0
  40. package/esm2020/src/signals/src/untracked.mjs +26 -0
  41. package/esm2020/src/signals/src/watch.mjs +54 -0
  42. package/esm2020/src/signals/src/weak_ref.mjs +11 -0
  43. package/esm2020/src/testability/testability.mjs +5 -3
  44. package/esm2020/src/transfer_state.mjs +148 -0
  45. package/esm2020/src/version.mjs +1 -1
  46. package/esm2020/testing/src/logger.mjs +6 -5
  47. package/esm2020/testing/src/ng_zone_mock.mjs +6 -5
  48. package/esm2020/testing/src/test_bed.mjs +3 -2
  49. package/fesm2015/core.mjs +699 -31
  50. package/fesm2015/core.mjs.map +1 -1
  51. package/fesm2015/testing.mjs +53 -30
  52. package/fesm2015/testing.mjs.map +1 -1
  53. package/fesm2020/core.mjs +695 -31
  54. package/fesm2020/core.mjs.map +1 -1
  55. package/fesm2020/testing.mjs +53 -30
  56. package/fesm2020/testing.mjs.map +1 -1
  57. package/index.d.ts +398 -2
  58. package/package.json +2 -2
  59. package/schematics/migrations/router-link-with-href/bundle.js.map +2 -2
  60. package/schematics/ng-generate/standalone-migration/bundle.js +777 -1053
  61. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  62. package/testing/index.d.ts +1 -1
@@ -208,9 +208,6 @@ function isRooted(path3) {
208
208
  function relative(from, to) {
209
209
  return fs.relative(from, to);
210
210
  }
211
- function basename(filePath, extension) {
212
- return fs.basename(filePath, extension);
213
- }
214
211
  function isLocalRelativePath(relativePath) {
215
212
  return !isRooted(relativePath) && !relativePath.startsWith("..");
216
213
  }
@@ -16114,7 +16111,7 @@ function publishFacade(global2) {
16114
16111
  }
16115
16112
 
16116
16113
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
16117
- var VERSION2 = new Version("15.2.1");
16114
+ var VERSION2 = new Version("16.0.0-next.1");
16118
16115
 
16119
16116
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
16120
16117
  var _I18N_ATTR = "i18n";
@@ -17429,7 +17426,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
17429
17426
  function compileDeclareClassMetadata(metadata) {
17430
17427
  const definitionMap = new DefinitionMap();
17431
17428
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
17432
- definitionMap.set("version", literal("15.2.1"));
17429
+ definitionMap.set("version", literal("16.0.0-next.1"));
17433
17430
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17434
17431
  definitionMap.set("type", metadata.type);
17435
17432
  definitionMap.set("decorators", metadata.decorators);
@@ -17498,7 +17495,7 @@ function createDirectiveDefinitionMap(meta) {
17498
17495
  var _a;
17499
17496
  const definitionMap = new DefinitionMap();
17500
17497
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
17501
- definitionMap.set("version", literal("15.2.1"));
17498
+ definitionMap.set("version", literal("16.0.0-next.1"));
17502
17499
  definitionMap.set("type", meta.internalType);
17503
17500
  if (meta.isStandalone) {
17504
17501
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -17680,7 +17677,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
17680
17677
  function compileDeclareFactoryFunction(meta) {
17681
17678
  const definitionMap = new DefinitionMap();
17682
17679
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
17683
- definitionMap.set("version", literal("15.2.1"));
17680
+ definitionMap.set("version", literal("16.0.0-next.1"));
17684
17681
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17685
17682
  definitionMap.set("type", meta.internalType);
17686
17683
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -17703,7 +17700,7 @@ function compileDeclareInjectableFromMetadata(meta) {
17703
17700
  function createInjectableDefinitionMap(meta) {
17704
17701
  const definitionMap = new DefinitionMap();
17705
17702
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
17706
- definitionMap.set("version", literal("15.2.1"));
17703
+ definitionMap.set("version", literal("16.0.0-next.1"));
17707
17704
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17708
17705
  definitionMap.set("type", meta.internalType);
17709
17706
  if (meta.providedIn !== void 0) {
@@ -17741,7 +17738,7 @@ function compileDeclareInjectorFromMetadata(meta) {
17741
17738
  function createInjectorDefinitionMap(meta) {
17742
17739
  const definitionMap = new DefinitionMap();
17743
17740
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
17744
- definitionMap.set("version", literal("15.2.1"));
17741
+ definitionMap.set("version", literal("16.0.0-next.1"));
17745
17742
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17746
17743
  definitionMap.set("type", meta.internalType);
17747
17744
  definitionMap.set("providers", meta.providers);
@@ -17762,7 +17759,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
17762
17759
  function createNgModuleDefinitionMap(meta) {
17763
17760
  const definitionMap = new DefinitionMap();
17764
17761
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
17765
- definitionMap.set("version", literal("15.2.1"));
17762
+ definitionMap.set("version", literal("16.0.0-next.1"));
17766
17763
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17767
17764
  definitionMap.set("type", meta.internalType);
17768
17765
  if (meta.bootstrap.length > 0) {
@@ -17797,7 +17794,7 @@ function compileDeclarePipeFromMetadata(meta) {
17797
17794
  function createPipeDefinitionMap(meta) {
17798
17795
  const definitionMap = new DefinitionMap();
17799
17796
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
17800
- definitionMap.set("version", literal("15.2.1"));
17797
+ definitionMap.set("version", literal("16.0.0-next.1"));
17801
17798
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17802
17799
  definitionMap.set("type", meta.internalType);
17803
17800
  if (meta.isStandalone) {
@@ -17814,7 +17811,7 @@ function createPipeDefinitionMap(meta) {
17814
17811
  publishFacade(_global);
17815
17812
 
17816
17813
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
17817
- var VERSION3 = new Version("15.2.1");
17814
+ var VERSION3 = new Version("16.0.0-next.1");
17818
17815
 
17819
17816
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
17820
17817
  var EmitFlags;
@@ -17832,7 +17829,7 @@ var EmitFlags;
17832
17829
  var import_typescript2 = __toESM(require("typescript"), 1);
17833
17830
 
17834
17831
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
17835
- var import_typescript97 = __toESM(require("typescript"), 1);
17832
+ var import_typescript94 = __toESM(require("typescript"), 1);
17836
17833
 
17837
17834
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
17838
17835
  var path = __toESM(require("path"), 1);
@@ -17923,8 +17920,8 @@ function compareVersions(v1, v2) {
17923
17920
  }
17924
17921
 
17925
17922
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
17926
- var MIN_TS_VERSION = "4.8.2";
17927
- var MAX_TS_VERSION = "5.0.0";
17923
+ var MIN_TS_VERSION = "4.9.3";
17924
+ var MAX_TS_VERSION = "5.1.0";
17928
17925
  var tsVersion = import_typescript3.default.version;
17929
17926
  function checkVersion(version, minVersion, maxVersion) {
17930
17927
  if (compareVersions(version, minVersion) < 0 || compareVersions(version, maxVersion) >= 0) {
@@ -17936,7 +17933,7 @@ function verifySupportedTypeScriptVersion() {
17936
17933
  }
17937
17934
 
17938
17935
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
17939
- var import_typescript93 = __toESM(require("typescript"), 1);
17936
+ var import_typescript90 = __toESM(require("typescript"), 1);
17940
17937
 
17941
17938
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
17942
17939
  var import_typescript19 = __toESM(require("typescript"), 1);
@@ -19618,7 +19615,7 @@ function getOriginNodeForDiagnostics(expr, container) {
19618
19615
  }
19619
19616
  }
19620
19617
  function isAbstractClassDeclaration(clazz) {
19621
- return clazz.modifiers !== void 0 && clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword);
19618
+ return import_typescript18.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword) : false;
19622
19619
  }
19623
19620
 
19624
19621
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
@@ -21802,7 +21799,7 @@ function extractSchemas(rawExpr, evaluator, context) {
21802
21799
  }
21803
21800
 
21804
21801
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
21805
- var import_typescript52 = __toESM(require("typescript"), 1);
21802
+ var import_typescript51 = __toESM(require("typescript"), 1);
21806
21803
 
21807
21804
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
21808
21805
  var import_typescript31 = __toESM(require("typescript"), 1);
@@ -22341,8 +22338,8 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
22341
22338
  let message = `The ${kind} '${ref.node.name.text}' appears in 'imports', but is not standalone and cannot be imported directly.`;
22342
22339
  let relatedInformation = void 0;
22343
22340
  if (scope !== null && scope.kind === ComponentScopeKind.NgModule) {
22344
- const isExported4 = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
22345
- const relatedInfoMessageText = isExported4 ? `It can be imported using its '${scope.ngModule.name.text}' NgModule instead.` : `It's declared in the '${scope.ngModule.name.text}' NgModule, but is not exported. Consider exporting it and importing the NgModule instead.`;
22341
+ const isExported2 = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
22342
+ const relatedInfoMessageText = isExported2 ? `It can be imported using its '${scope.ngModule.name.text}' NgModule instead.` : `It's declared in the '${scope.ngModule.name.text}' NgModule, but is not exported. Consider exporting it and importing the NgModule instead.`;
22346
22343
  relatedInformation = [makeRelatedInformation(scope.ngModule.name, relatedInfoMessageText)];
22347
22344
  } else {
22348
22345
  }
@@ -23306,7 +23303,7 @@ function containsErrors(diagnostics) {
23306
23303
  }
23307
23304
 
23308
23305
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
23309
- var import_typescript44 = __toESM(require("typescript"), 1);
23306
+ var import_typescript43 = __toESM(require("typescript"), 1);
23310
23307
 
23311
23308
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
23312
23309
  var Context = class {
@@ -23589,39 +23586,7 @@ function createRange(span) {
23589
23586
  }
23590
23587
 
23591
23588
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
23592
- var import_typescript41 = __toESM(require("typescript"), 1);
23593
-
23594
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.mjs
23595
23589
  var import_typescript40 = __toESM(require("typescript"), 1);
23596
- var IS_AFTER_TS_49 = isAfterVersion(4, 9);
23597
- var createParameterDeclaration = IS_AFTER_TS_49 ? import_typescript40.default.factory.createParameterDeclaration : (modifiers, dotDotDotToken, name, questionToken, type, initializer) => import_typescript40.default.factory.createParameterDeclaration(...splitModifiers(modifiers), dotDotDotToken, name, questionToken, type, initializer);
23598
- var createImportDeclaration = IS_AFTER_TS_49 ? import_typescript40.default.factory.createImportDeclaration : (modifiers, importClause, moduleSpecifier, assertClause) => import_typescript40.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
23599
- var createFunctionDeclaration = IS_AFTER_TS_49 ? import_typescript40.default.factory.createFunctionDeclaration : (modifiers, asteriskToken, name, typeParameters, parameters, type, body) => import_typescript40.default.factory.createFunctionDeclaration(...splitModifiers(modifiers), asteriskToken, name, typeParameters, parameters, type, body);
23600
- var createIndexSignature = IS_AFTER_TS_49 ? import_typescript40.default.factory.createIndexSignature : (modifiers, parameters, type) => import_typescript40.default.factory.createIndexSignature(modifiers, parameters, type);
23601
- function splitModifiers(allModifiers) {
23602
- if (!allModifiers) {
23603
- return [void 0, void 0];
23604
- }
23605
- const decorators = [];
23606
- const modifiers = [];
23607
- for (const current of allModifiers) {
23608
- if (import_typescript40.default.isDecorator(current)) {
23609
- decorators.push(current);
23610
- } else {
23611
- modifiers.push(current);
23612
- }
23613
- }
23614
- return [decorators.length ? decorators : void 0, modifiers.length ? modifiers : void 0];
23615
- }
23616
- function isAfterVersion(targetMajor, targetMinor) {
23617
- const [major, minor] = import_typescript40.default.versionMajorMinor.split(".").map((part) => parseInt(part));
23618
- if (major < targetMajor) {
23619
- return false;
23620
- }
23621
- return major === targetMajor ? minor >= targetMinor : true;
23622
- }
23623
-
23624
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
23625
23590
  function translateType(type, imports) {
23626
23591
  return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
23627
23592
  }
@@ -23632,16 +23597,16 @@ var TypeTranslatorVisitor = class {
23632
23597
  visitBuiltinType(type, context) {
23633
23598
  switch (type.name) {
23634
23599
  case BuiltinTypeName.Bool:
23635
- return import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.BooleanKeyword);
23600
+ return import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.BooleanKeyword);
23636
23601
  case BuiltinTypeName.Dynamic:
23637
- return import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.AnyKeyword);
23602
+ return import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.AnyKeyword);
23638
23603
  case BuiltinTypeName.Int:
23639
23604
  case BuiltinTypeName.Number:
23640
- return import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.NumberKeyword);
23605
+ return import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.NumberKeyword);
23641
23606
  case BuiltinTypeName.String:
23642
- return import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.StringKeyword);
23607
+ return import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.StringKeyword);
23643
23608
  case BuiltinTypeName.None:
23644
- return import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.NeverKeyword);
23609
+ return import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.NeverKeyword);
23645
23610
  default:
23646
23611
  throw new Error(`Unsupported builtin type: ${BuiltinTypeName[type.name]}`);
23647
23612
  }
@@ -23651,28 +23616,28 @@ var TypeTranslatorVisitor = class {
23651
23616
  if (type.typeParams === null) {
23652
23617
  return typeNode;
23653
23618
  }
23654
- if (!import_typescript41.default.isTypeReferenceNode(typeNode)) {
23619
+ if (!import_typescript40.default.isTypeReferenceNode(typeNode)) {
23655
23620
  throw new Error("An ExpressionType with type arguments must translate into a TypeReferenceNode");
23656
23621
  } else if (typeNode.typeArguments !== void 0) {
23657
23622
  throw new Error(`An ExpressionType with type arguments cannot have multiple levels of type arguments`);
23658
23623
  }
23659
23624
  const typeArgs = type.typeParams.map((param) => this.translateType(param, context));
23660
- return import_typescript41.default.factory.createTypeReferenceNode(typeNode.typeName, typeArgs);
23625
+ return import_typescript40.default.factory.createTypeReferenceNode(typeNode.typeName, typeArgs);
23661
23626
  }
23662
23627
  visitArrayType(type, context) {
23663
- return import_typescript41.default.factory.createArrayTypeNode(this.translateType(type.of, context));
23628
+ return import_typescript40.default.factory.createArrayTypeNode(this.translateType(type.of, context));
23664
23629
  }
23665
23630
  visitMapType(type, context) {
23666
- const parameter = createParameterDeclaration(void 0, void 0, "key", void 0, import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.StringKeyword));
23667
- const typeArgs = type.valueType !== null ? this.translateType(type.valueType, context) : import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.UnknownKeyword);
23668
- const indexSignature = createIndexSignature(void 0, [parameter], typeArgs);
23669
- return import_typescript41.default.factory.createTypeLiteralNode([indexSignature]);
23631
+ const parameter = import_typescript40.default.factory.createParameterDeclaration(void 0, void 0, "key", void 0, import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.StringKeyword));
23632
+ const typeArgs = type.valueType !== null ? this.translateType(type.valueType, context) : import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.UnknownKeyword);
23633
+ const indexSignature = import_typescript40.default.factory.createIndexSignature(void 0, [parameter], typeArgs);
23634
+ return import_typescript40.default.factory.createTypeLiteralNode([indexSignature]);
23670
23635
  }
23671
23636
  visitReadVarExpr(ast, context) {
23672
23637
  if (ast.name === null) {
23673
23638
  throw new Error(`ReadVarExpr with no variable name in type`);
23674
23639
  }
23675
- return import_typescript41.default.factory.createTypeQueryNode(import_typescript41.default.factory.createIdentifier(ast.name));
23640
+ return import_typescript40.default.factory.createTypeQueryNode(import_typescript40.default.factory.createIdentifier(ast.name));
23676
23641
  }
23677
23642
  visitWriteVarExpr(expr, context) {
23678
23643
  throw new Error("Method not implemented.");
@@ -23694,15 +23659,15 @@ var TypeTranslatorVisitor = class {
23694
23659
  }
23695
23660
  visitLiteralExpr(ast, context) {
23696
23661
  if (ast.value === null) {
23697
- return import_typescript41.default.factory.createLiteralTypeNode(import_typescript41.default.factory.createNull());
23662
+ return import_typescript40.default.factory.createLiteralTypeNode(import_typescript40.default.factory.createNull());
23698
23663
  } else if (ast.value === void 0) {
23699
- return import_typescript41.default.factory.createKeywordTypeNode(import_typescript41.default.SyntaxKind.UndefinedKeyword);
23664
+ return import_typescript40.default.factory.createKeywordTypeNode(import_typescript40.default.SyntaxKind.UndefinedKeyword);
23700
23665
  } else if (typeof ast.value === "boolean") {
23701
- return import_typescript41.default.factory.createLiteralTypeNode(ast.value ? import_typescript41.default.factory.createTrue() : import_typescript41.default.factory.createFalse());
23666
+ return import_typescript40.default.factory.createLiteralTypeNode(ast.value ? import_typescript40.default.factory.createTrue() : import_typescript40.default.factory.createFalse());
23702
23667
  } else if (typeof ast.value === "number") {
23703
- return import_typescript41.default.factory.createLiteralTypeNode(import_typescript41.default.factory.createNumericLiteral(ast.value));
23668
+ return import_typescript40.default.factory.createLiteralTypeNode(import_typescript40.default.factory.createNumericLiteral(ast.value));
23704
23669
  } else {
23705
- return import_typescript41.default.factory.createLiteralTypeNode(import_typescript41.default.factory.createStringLiteral(ast.value));
23670
+ return import_typescript40.default.factory.createLiteralTypeNode(import_typescript40.default.factory.createStringLiteral(ast.value));
23706
23671
  }
23707
23672
  }
23708
23673
  visitLocalizedString(ast, context) {
@@ -23713,10 +23678,10 @@ var TypeTranslatorVisitor = class {
23713
23678
  throw new Error(`Import unknown module or symbol`);
23714
23679
  }
23715
23680
  const { moduleImport, symbol } = this.imports.generateNamedImport(ast.value.moduleName, ast.value.name);
23716
- const symbolIdentifier = import_typescript41.default.factory.createIdentifier(symbol);
23717
- const typeName = moduleImport ? import_typescript41.default.factory.createQualifiedName(moduleImport, symbolIdentifier) : symbolIdentifier;
23681
+ const symbolIdentifier = import_typescript40.default.factory.createIdentifier(symbol);
23682
+ const typeName = moduleImport ? import_typescript40.default.factory.createQualifiedName(moduleImport, symbolIdentifier) : symbolIdentifier;
23718
23683
  const typeArguments = ast.typeParams !== null ? ast.typeParams.map((type) => this.translateType(type, context)) : void 0;
23719
- return import_typescript41.default.factory.createTypeReferenceNode(typeName, typeArguments);
23684
+ return import_typescript40.default.factory.createTypeReferenceNode(typeName, typeArguments);
23720
23685
  }
23721
23686
  visitConditionalExpr(ast, context) {
23722
23687
  throw new Error("Method not implemented.");
@@ -23741,125 +23706,125 @@ var TypeTranslatorVisitor = class {
23741
23706
  }
23742
23707
  visitLiteralArrayExpr(ast, context) {
23743
23708
  const values = ast.entries.map((expr) => this.translateExpression(expr, context));
23744
- return import_typescript41.default.factory.createTupleTypeNode(values);
23709
+ return import_typescript40.default.factory.createTupleTypeNode(values);
23745
23710
  }
23746
23711
  visitLiteralMapExpr(ast, context) {
23747
23712
  const entries = ast.entries.map((entry) => {
23748
23713
  const { key, quoted } = entry;
23749
23714
  const type = this.translateExpression(entry.value, context);
23750
- return import_typescript41.default.factory.createPropertySignature(
23715
+ return import_typescript40.default.factory.createPropertySignature(
23751
23716
  void 0,
23752
- quoted ? import_typescript41.default.factory.createStringLiteral(key) : key,
23717
+ quoted ? import_typescript40.default.factory.createStringLiteral(key) : key,
23753
23718
  void 0,
23754
23719
  type
23755
23720
  );
23756
23721
  });
23757
- return import_typescript41.default.factory.createTypeLiteralNode(entries);
23722
+ return import_typescript40.default.factory.createTypeLiteralNode(entries);
23758
23723
  }
23759
23724
  visitCommaExpr(ast, context) {
23760
23725
  throw new Error("Method not implemented.");
23761
23726
  }
23762
23727
  visitWrappedNodeExpr(ast, context) {
23763
23728
  const node = ast.node;
23764
- if (import_typescript41.default.isEntityName(node)) {
23765
- return import_typescript41.default.factory.createTypeReferenceNode(node, void 0);
23766
- } else if (import_typescript41.default.isTypeNode(node)) {
23729
+ if (import_typescript40.default.isEntityName(node)) {
23730
+ return import_typescript40.default.factory.createTypeReferenceNode(node, void 0);
23731
+ } else if (import_typescript40.default.isTypeNode(node)) {
23767
23732
  return node;
23768
- } else if (import_typescript41.default.isLiteralExpression(node)) {
23769
- return import_typescript41.default.factory.createLiteralTypeNode(node);
23733
+ } else if (import_typescript40.default.isLiteralExpression(node)) {
23734
+ return import_typescript40.default.factory.createLiteralTypeNode(node);
23770
23735
  } else {
23771
- throw new Error(`Unsupported WrappedNodeExpr in TypeTranslatorVisitor: ${import_typescript41.default.SyntaxKind[node.kind]}`);
23736
+ throw new Error(`Unsupported WrappedNodeExpr in TypeTranslatorVisitor: ${import_typescript40.default.SyntaxKind[node.kind]}`);
23772
23737
  }
23773
23738
  }
23774
23739
  visitTypeofExpr(ast, context) {
23775
23740
  const typeNode = this.translateExpression(ast.expr, context);
23776
- if (!import_typescript41.default.isTypeReferenceNode(typeNode)) {
23741
+ if (!import_typescript40.default.isTypeReferenceNode(typeNode)) {
23777
23742
  throw new Error(`The target of a typeof expression must be a type reference, but it was
23778
- ${import_typescript41.default.SyntaxKind[typeNode.kind]}`);
23743
+ ${import_typescript40.default.SyntaxKind[typeNode.kind]}`);
23779
23744
  }
23780
- return import_typescript41.default.factory.createTypeQueryNode(typeNode.typeName);
23745
+ return import_typescript40.default.factory.createTypeQueryNode(typeNode.typeName);
23781
23746
  }
23782
23747
  translateType(type, context) {
23783
23748
  const typeNode = type.visitType(this, context);
23784
- if (!import_typescript41.default.isTypeNode(typeNode)) {
23785
- throw new Error(`A Type must translate to a TypeNode, but was ${import_typescript41.default.SyntaxKind[typeNode.kind]}`);
23749
+ if (!import_typescript40.default.isTypeNode(typeNode)) {
23750
+ throw new Error(`A Type must translate to a TypeNode, but was ${import_typescript40.default.SyntaxKind[typeNode.kind]}`);
23786
23751
  }
23787
23752
  return typeNode;
23788
23753
  }
23789
23754
  translateExpression(expr, context) {
23790
23755
  const typeNode = expr.visitExpression(this, context);
23791
- if (!import_typescript41.default.isTypeNode(typeNode)) {
23792
- throw new Error(`An Expression must translate to a TypeNode, but was ${import_typescript41.default.SyntaxKind[typeNode.kind]}`);
23756
+ if (!import_typescript40.default.isTypeNode(typeNode)) {
23757
+ throw new Error(`An Expression must translate to a TypeNode, but was ${import_typescript40.default.SyntaxKind[typeNode.kind]}`);
23793
23758
  }
23794
23759
  return typeNode;
23795
23760
  }
23796
23761
  };
23797
23762
 
23798
23763
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
23799
- var import_typescript42 = __toESM(require("typescript"), 1);
23764
+ var import_typescript41 = __toESM(require("typescript"), 1);
23800
23765
  var PureAnnotation;
23801
23766
  (function(PureAnnotation2) {
23802
23767
  PureAnnotation2["CLOSURE"] = "* @pureOrBreakMyCode ";
23803
23768
  PureAnnotation2["TERSER"] = "@__PURE__";
23804
23769
  })(PureAnnotation || (PureAnnotation = {}));
23805
23770
  var UNARY_OPERATORS3 = {
23806
- "+": import_typescript42.default.SyntaxKind.PlusToken,
23807
- "-": import_typescript42.default.SyntaxKind.MinusToken,
23808
- "!": import_typescript42.default.SyntaxKind.ExclamationToken
23771
+ "+": import_typescript41.default.SyntaxKind.PlusToken,
23772
+ "-": import_typescript41.default.SyntaxKind.MinusToken,
23773
+ "!": import_typescript41.default.SyntaxKind.ExclamationToken
23809
23774
  };
23810
23775
  var BINARY_OPERATORS3 = {
23811
- "&&": import_typescript42.default.SyntaxKind.AmpersandAmpersandToken,
23812
- ">": import_typescript42.default.SyntaxKind.GreaterThanToken,
23813
- ">=": import_typescript42.default.SyntaxKind.GreaterThanEqualsToken,
23814
- "&": import_typescript42.default.SyntaxKind.AmpersandToken,
23815
- "/": import_typescript42.default.SyntaxKind.SlashToken,
23816
- "==": import_typescript42.default.SyntaxKind.EqualsEqualsToken,
23817
- "===": import_typescript42.default.SyntaxKind.EqualsEqualsEqualsToken,
23818
- "<": import_typescript42.default.SyntaxKind.LessThanToken,
23819
- "<=": import_typescript42.default.SyntaxKind.LessThanEqualsToken,
23820
- "-": import_typescript42.default.SyntaxKind.MinusToken,
23821
- "%": import_typescript42.default.SyntaxKind.PercentToken,
23822
- "*": import_typescript42.default.SyntaxKind.AsteriskToken,
23823
- "!=": import_typescript42.default.SyntaxKind.ExclamationEqualsToken,
23824
- "!==": import_typescript42.default.SyntaxKind.ExclamationEqualsEqualsToken,
23825
- "||": import_typescript42.default.SyntaxKind.BarBarToken,
23826
- "+": import_typescript42.default.SyntaxKind.PlusToken,
23827
- "??": import_typescript42.default.SyntaxKind.QuestionQuestionToken
23776
+ "&&": import_typescript41.default.SyntaxKind.AmpersandAmpersandToken,
23777
+ ">": import_typescript41.default.SyntaxKind.GreaterThanToken,
23778
+ ">=": import_typescript41.default.SyntaxKind.GreaterThanEqualsToken,
23779
+ "&": import_typescript41.default.SyntaxKind.AmpersandToken,
23780
+ "/": import_typescript41.default.SyntaxKind.SlashToken,
23781
+ "==": import_typescript41.default.SyntaxKind.EqualsEqualsToken,
23782
+ "===": import_typescript41.default.SyntaxKind.EqualsEqualsEqualsToken,
23783
+ "<": import_typescript41.default.SyntaxKind.LessThanToken,
23784
+ "<=": import_typescript41.default.SyntaxKind.LessThanEqualsToken,
23785
+ "-": import_typescript41.default.SyntaxKind.MinusToken,
23786
+ "%": import_typescript41.default.SyntaxKind.PercentToken,
23787
+ "*": import_typescript41.default.SyntaxKind.AsteriskToken,
23788
+ "!=": import_typescript41.default.SyntaxKind.ExclamationEqualsToken,
23789
+ "!==": import_typescript41.default.SyntaxKind.ExclamationEqualsEqualsToken,
23790
+ "||": import_typescript41.default.SyntaxKind.BarBarToken,
23791
+ "+": import_typescript41.default.SyntaxKind.PlusToken,
23792
+ "??": import_typescript41.default.SyntaxKind.QuestionQuestionToken
23828
23793
  };
23829
23794
  var VAR_TYPES = {
23830
- "const": import_typescript42.default.NodeFlags.Const,
23831
- "let": import_typescript42.default.NodeFlags.Let,
23832
- "var": import_typescript42.default.NodeFlags.None
23795
+ "const": import_typescript41.default.NodeFlags.Const,
23796
+ "let": import_typescript41.default.NodeFlags.Let,
23797
+ "var": import_typescript41.default.NodeFlags.None
23833
23798
  };
23834
23799
  var TypeScriptAstFactory = class {
23835
23800
  constructor(annotateForClosureCompiler) {
23836
23801
  this.annotateForClosureCompiler = annotateForClosureCompiler;
23837
23802
  this.externalSourceFiles = /* @__PURE__ */ new Map();
23838
23803
  this.attachComments = attachComments;
23839
- this.createArrayLiteral = import_typescript42.default.factory.createArrayLiteralExpression;
23840
- this.createElementAccess = import_typescript42.default.factory.createElementAccessExpression;
23841
- this.createExpressionStatement = import_typescript42.default.factory.createExpressionStatement;
23842
- this.createIdentifier = import_typescript42.default.factory.createIdentifier;
23843
- this.createParenthesizedExpression = import_typescript42.default.factory.createParenthesizedExpression;
23844
- this.createPropertyAccess = import_typescript42.default.factory.createPropertyAccessExpression;
23845
- this.createThrowStatement = import_typescript42.default.factory.createThrowStatement;
23846
- this.createTypeOfExpression = import_typescript42.default.factory.createTypeOfExpression;
23804
+ this.createArrayLiteral = import_typescript41.default.factory.createArrayLiteralExpression;
23805
+ this.createElementAccess = import_typescript41.default.factory.createElementAccessExpression;
23806
+ this.createExpressionStatement = import_typescript41.default.factory.createExpressionStatement;
23807
+ this.createIdentifier = import_typescript41.default.factory.createIdentifier;
23808
+ this.createParenthesizedExpression = import_typescript41.default.factory.createParenthesizedExpression;
23809
+ this.createPropertyAccess = import_typescript41.default.factory.createPropertyAccessExpression;
23810
+ this.createThrowStatement = import_typescript41.default.factory.createThrowStatement;
23811
+ this.createTypeOfExpression = import_typescript41.default.factory.createTypeOfExpression;
23847
23812
  }
23848
23813
  createAssignment(target, value) {
23849
- return import_typescript42.default.factory.createBinaryExpression(target, import_typescript42.default.SyntaxKind.EqualsToken, value);
23814
+ return import_typescript41.default.factory.createBinaryExpression(target, import_typescript41.default.SyntaxKind.EqualsToken, value);
23850
23815
  }
23851
23816
  createBinaryExpression(leftOperand, operator, rightOperand) {
23852
- return import_typescript42.default.factory.createBinaryExpression(leftOperand, BINARY_OPERATORS3[operator], rightOperand);
23817
+ return import_typescript41.default.factory.createBinaryExpression(leftOperand, BINARY_OPERATORS3[operator], rightOperand);
23853
23818
  }
23854
23819
  createBlock(body) {
23855
- return import_typescript42.default.factory.createBlock(body);
23820
+ return import_typescript41.default.factory.createBlock(body);
23856
23821
  }
23857
23822
  createCallExpression(callee, args, pure) {
23858
- const call = import_typescript42.default.factory.createCallExpression(callee, void 0, args);
23823
+ const call = import_typescript41.default.factory.createCallExpression(callee, void 0, args);
23859
23824
  if (pure) {
23860
- import_typescript42.default.addSyntheticLeadingComment(
23825
+ import_typescript41.default.addSyntheticLeadingComment(
23861
23826
  call,
23862
- import_typescript42.default.SyntaxKind.MultiLineCommentTrivia,
23827
+ import_typescript41.default.SyntaxKind.MultiLineCommentTrivia,
23863
23828
  this.annotateForClosureCompiler ? PureAnnotation.CLOSURE : PureAnnotation.TERSER,
23864
23829
  false
23865
23830
  );
@@ -23867,51 +23832,51 @@ var TypeScriptAstFactory = class {
23867
23832
  return call;
23868
23833
  }
23869
23834
  createConditional(condition, whenTrue, whenFalse) {
23870
- return import_typescript42.default.factory.createConditionalExpression(condition, void 0, whenTrue, void 0, whenFalse);
23835
+ return import_typescript41.default.factory.createConditionalExpression(condition, void 0, whenTrue, void 0, whenFalse);
23871
23836
  }
23872
23837
  createFunctionDeclaration(functionName, parameters, body) {
23873
- if (!import_typescript42.default.isBlock(body)) {
23874
- throw new Error(`Invalid syntax, expected a block, but got ${import_typescript42.default.SyntaxKind[body.kind]}.`);
23838
+ if (!import_typescript41.default.isBlock(body)) {
23839
+ throw new Error(`Invalid syntax, expected a block, but got ${import_typescript41.default.SyntaxKind[body.kind]}.`);
23875
23840
  }
23876
- return createFunctionDeclaration(void 0, void 0, functionName, void 0, parameters.map((param) => createParameterDeclaration(void 0, void 0, param)), void 0, body);
23841
+ return import_typescript41.default.factory.createFunctionDeclaration(void 0, void 0, functionName, void 0, parameters.map((param) => import_typescript41.default.factory.createParameterDeclaration(void 0, void 0, param)), void 0, body);
23877
23842
  }
23878
23843
  createFunctionExpression(functionName, parameters, body) {
23879
- if (!import_typescript42.default.isBlock(body)) {
23880
- throw new Error(`Invalid syntax, expected a block, but got ${import_typescript42.default.SyntaxKind[body.kind]}.`);
23844
+ if (!import_typescript41.default.isBlock(body)) {
23845
+ throw new Error(`Invalid syntax, expected a block, but got ${import_typescript41.default.SyntaxKind[body.kind]}.`);
23881
23846
  }
23882
- return import_typescript42.default.factory.createFunctionExpression(void 0, void 0, functionName != null ? functionName : void 0, void 0, parameters.map((param) => createParameterDeclaration(void 0, void 0, param)), void 0, body);
23847
+ return import_typescript41.default.factory.createFunctionExpression(void 0, void 0, functionName != null ? functionName : void 0, void 0, parameters.map((param) => import_typescript41.default.factory.createParameterDeclaration(void 0, void 0, param)), void 0, body);
23883
23848
  }
23884
23849
  createIfStatement(condition, thenStatement, elseStatement) {
23885
- return import_typescript42.default.factory.createIfStatement(condition, thenStatement, elseStatement != null ? elseStatement : void 0);
23850
+ return import_typescript41.default.factory.createIfStatement(condition, thenStatement, elseStatement != null ? elseStatement : void 0);
23886
23851
  }
23887
23852
  createLiteral(value) {
23888
23853
  if (value === void 0) {
23889
- return import_typescript42.default.factory.createIdentifier("undefined");
23854
+ return import_typescript41.default.factory.createIdentifier("undefined");
23890
23855
  } else if (value === null) {
23891
- return import_typescript42.default.factory.createNull();
23856
+ return import_typescript41.default.factory.createNull();
23892
23857
  } else if (typeof value === "boolean") {
23893
- return value ? import_typescript42.default.factory.createTrue() : import_typescript42.default.factory.createFalse();
23858
+ return value ? import_typescript41.default.factory.createTrue() : import_typescript41.default.factory.createFalse();
23894
23859
  } else if (typeof value === "number") {
23895
- return import_typescript42.default.factory.createNumericLiteral(value);
23860
+ return import_typescript41.default.factory.createNumericLiteral(value);
23896
23861
  } else {
23897
- return import_typescript42.default.factory.createStringLiteral(value);
23862
+ return import_typescript41.default.factory.createStringLiteral(value);
23898
23863
  }
23899
23864
  }
23900
23865
  createNewExpression(expression, args) {
23901
- return import_typescript42.default.factory.createNewExpression(expression, void 0, args);
23866
+ return import_typescript41.default.factory.createNewExpression(expression, void 0, args);
23902
23867
  }
23903
23868
  createObjectLiteral(properties) {
23904
- return import_typescript42.default.factory.createObjectLiteralExpression(properties.map((prop) => import_typescript42.default.factory.createPropertyAssignment(prop.quoted ? import_typescript42.default.factory.createStringLiteral(prop.propertyName) : import_typescript42.default.factory.createIdentifier(prop.propertyName), prop.value)));
23869
+ return import_typescript41.default.factory.createObjectLiteralExpression(properties.map((prop) => import_typescript41.default.factory.createPropertyAssignment(prop.quoted ? import_typescript41.default.factory.createStringLiteral(prop.propertyName) : import_typescript41.default.factory.createIdentifier(prop.propertyName), prop.value)));
23905
23870
  }
23906
23871
  createReturnStatement(expression) {
23907
- return import_typescript42.default.factory.createReturnStatement(expression != null ? expression : void 0);
23872
+ return import_typescript41.default.factory.createReturnStatement(expression != null ? expression : void 0);
23908
23873
  }
23909
23874
  createTaggedTemplate(tag, template) {
23910
23875
  let templateLiteral;
23911
23876
  const length = template.elements.length;
23912
23877
  const head = template.elements[0];
23913
23878
  if (length === 1) {
23914
- templateLiteral = import_typescript42.default.factory.createNoSubstitutionTemplateLiteral(head.cooked, head.raw);
23879
+ templateLiteral = import_typescript41.default.factory.createNoSubstitutionTemplateLiteral(head.cooked, head.raw);
23915
23880
  } else {
23916
23881
  const spans = [];
23917
23882
  for (let i = 1; i < length - 1; i++) {
@@ -23920,7 +23885,7 @@ var TypeScriptAstFactory = class {
23920
23885
  if (range !== null) {
23921
23886
  this.setSourceMapRange(middle, range);
23922
23887
  }
23923
- spans.push(import_typescript42.default.factory.createTemplateSpan(template.expressions[i - 1], middle));
23888
+ spans.push(import_typescript41.default.factory.createTemplateSpan(template.expressions[i - 1], middle));
23924
23889
  }
23925
23890
  const resolvedExpression = template.expressions[length - 2];
23926
23891
  const templatePart = template.elements[length - 1];
@@ -23928,19 +23893,19 @@ var TypeScriptAstFactory = class {
23928
23893
  if (templatePart.range !== null) {
23929
23894
  this.setSourceMapRange(templateTail, templatePart.range);
23930
23895
  }
23931
- spans.push(import_typescript42.default.factory.createTemplateSpan(resolvedExpression, templateTail));
23932
- templateLiteral = import_typescript42.default.factory.createTemplateExpression(import_typescript42.default.factory.createTemplateHead(head.cooked, head.raw), spans);
23896
+ spans.push(import_typescript41.default.factory.createTemplateSpan(resolvedExpression, templateTail));
23897
+ templateLiteral = import_typescript41.default.factory.createTemplateExpression(import_typescript41.default.factory.createTemplateHead(head.cooked, head.raw), spans);
23933
23898
  }
23934
23899
  if (head.range !== null) {
23935
23900
  this.setSourceMapRange(templateLiteral, head.range);
23936
23901
  }
23937
- return import_typescript42.default.factory.createTaggedTemplateExpression(tag, void 0, templateLiteral);
23902
+ return import_typescript41.default.factory.createTaggedTemplateExpression(tag, void 0, templateLiteral);
23938
23903
  }
23939
23904
  createUnaryExpression(operator, operand) {
23940
- return import_typescript42.default.factory.createPrefixUnaryExpression(UNARY_OPERATORS3[operator], operand);
23905
+ return import_typescript41.default.factory.createPrefixUnaryExpression(UNARY_OPERATORS3[operator], operand);
23941
23906
  }
23942
23907
  createVariableDeclaration(variableName, initializer, type) {
23943
- return import_typescript42.default.factory.createVariableStatement(void 0, import_typescript42.default.factory.createVariableDeclarationList([import_typescript42.default.factory.createVariableDeclaration(variableName, void 0, void 0, initializer != null ? initializer : void 0)], VAR_TYPES[type]));
23908
+ return import_typescript41.default.factory.createVariableStatement(void 0, import_typescript41.default.factory.createVariableDeclarationList([import_typescript41.default.factory.createVariableDeclaration(variableName, void 0, void 0, initializer != null ? initializer : void 0)], VAR_TYPES[type]));
23944
23909
  }
23945
23910
  setSourceMapRange(node, sourceMapRange) {
23946
23911
  if (sourceMapRange === null) {
@@ -23948,31 +23913,31 @@ var TypeScriptAstFactory = class {
23948
23913
  }
23949
23914
  const url = sourceMapRange.url;
23950
23915
  if (!this.externalSourceFiles.has(url)) {
23951
- this.externalSourceFiles.set(url, import_typescript42.default.createSourceMapSource(url, sourceMapRange.content, (pos) => pos));
23916
+ this.externalSourceFiles.set(url, import_typescript41.default.createSourceMapSource(url, sourceMapRange.content, (pos) => pos));
23952
23917
  }
23953
23918
  const source = this.externalSourceFiles.get(url);
23954
- import_typescript42.default.setSourceMapRange(node, { pos: sourceMapRange.start.offset, end: sourceMapRange.end.offset, source });
23919
+ import_typescript41.default.setSourceMapRange(node, { pos: sourceMapRange.start.offset, end: sourceMapRange.end.offset, source });
23955
23920
  return node;
23956
23921
  }
23957
23922
  };
23958
23923
  function createTemplateMiddle(cooked, raw) {
23959
- const node = import_typescript42.default.factory.createTemplateHead(cooked, raw);
23960
- node.kind = import_typescript42.default.SyntaxKind.TemplateMiddle;
23924
+ const node = import_typescript41.default.factory.createTemplateHead(cooked, raw);
23925
+ node.kind = import_typescript41.default.SyntaxKind.TemplateMiddle;
23961
23926
  return node;
23962
23927
  }
23963
23928
  function createTemplateTail(cooked, raw) {
23964
- const node = import_typescript42.default.factory.createTemplateHead(cooked, raw);
23965
- node.kind = import_typescript42.default.SyntaxKind.TemplateTail;
23929
+ const node = import_typescript41.default.factory.createTemplateHead(cooked, raw);
23930
+ node.kind = import_typescript41.default.SyntaxKind.TemplateTail;
23966
23931
  return node;
23967
23932
  }
23968
23933
  function attachComments(statement, leadingComments) {
23969
23934
  for (const comment of leadingComments) {
23970
- const commentKind = comment.multiline ? import_typescript42.default.SyntaxKind.MultiLineCommentTrivia : import_typescript42.default.SyntaxKind.SingleLineCommentTrivia;
23935
+ const commentKind = comment.multiline ? import_typescript41.default.SyntaxKind.MultiLineCommentTrivia : import_typescript41.default.SyntaxKind.SingleLineCommentTrivia;
23971
23936
  if (comment.multiline) {
23972
- import_typescript42.default.addSyntheticLeadingComment(statement, commentKind, comment.toString(), comment.trailingNewline);
23937
+ import_typescript41.default.addSyntheticLeadingComment(statement, commentKind, comment.toString(), comment.trailingNewline);
23973
23938
  } else {
23974
23939
  for (const line of comment.toString().split("\n")) {
23975
- import_typescript42.default.addSyntheticLeadingComment(statement, commentKind, line, comment.trailingNewline);
23940
+ import_typescript41.default.addSyntheticLeadingComment(statement, commentKind, line, comment.trailingNewline);
23976
23941
  }
23977
23942
  }
23978
23943
  }
@@ -23987,28 +23952,28 @@ function translateStatement(statement, imports, options = {}) {
23987
23952
  }
23988
23953
 
23989
23954
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
23990
- var import_typescript43 = __toESM(require("typescript"), 1);
23955
+ var import_typescript42 = __toESM(require("typescript"), 1);
23991
23956
  function addImports(importManager, sf, extraStatements = []) {
23992
23957
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
23993
- const qualifier = import_typescript43.default.factory.createIdentifier(i.qualifier.text);
23994
- const importClause = import_typescript43.default.factory.createImportClause(
23958
+ const qualifier = import_typescript42.default.factory.createIdentifier(i.qualifier.text);
23959
+ const importClause = import_typescript42.default.factory.createImportClause(
23995
23960
  false,
23996
23961
  void 0,
23997
- import_typescript43.default.factory.createNamespaceImport(qualifier)
23962
+ import_typescript42.default.factory.createNamespaceImport(qualifier)
23998
23963
  );
23999
- const decl = createImportDeclaration(
23964
+ const decl = import_typescript42.default.factory.createImportDeclaration(
24000
23965
  void 0,
24001
23966
  importClause,
24002
- import_typescript43.default.factory.createStringLiteral(i.specifier)
23967
+ import_typescript42.default.factory.createStringLiteral(i.specifier)
24003
23968
  );
24004
- import_typescript43.default.setOriginalNode(i.qualifier, decl);
23969
+ import_typescript42.default.setOriginalNode(i.qualifier, decl);
24005
23970
  return decl;
24006
23971
  });
24007
23972
  const existingImports = sf.statements.filter((stmt) => isImportStatement(stmt));
24008
23973
  const body = sf.statements.filter((stmt) => !isImportStatement(stmt));
24009
23974
  if (addedImports.length > 0) {
24010
- const fileoverviewAnchorStmt = import_typescript43.default.factory.createNotEmittedStatement(sf);
24011
- return import_typescript43.default.factory.updateSourceFile(sf, import_typescript43.default.factory.createNodeArray([
23975
+ const fileoverviewAnchorStmt = import_typescript42.default.factory.createNotEmittedStatement(sf);
23976
+ return import_typescript42.default.factory.updateSourceFile(sf, import_typescript42.default.factory.createNodeArray([
24012
23977
  fileoverviewAnchorStmt,
24013
23978
  ...existingImports,
24014
23979
  ...addedImports,
@@ -24019,7 +23984,7 @@ function addImports(importManager, sf, extraStatements = []) {
24019
23984
  return sf;
24020
23985
  }
24021
23986
  function isImportStatement(stmt) {
24022
- return import_typescript43.default.isImportDeclaration(stmt) || import_typescript43.default.isImportEqualsDeclaration(stmt) || import_typescript43.default.isNamespaceImport(stmt);
23987
+ return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
24023
23988
  }
24024
23989
 
24025
23990
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
@@ -24037,7 +24002,7 @@ var DtsTransformRegistry = class {
24037
24002
  if (!sf.isDeclarationFile) {
24038
24003
  return null;
24039
24004
  }
24040
- const originalSf = import_typescript44.default.getOriginalNode(sf);
24005
+ const originalSf = import_typescript43.default.getOriginalNode(sf);
24041
24006
  let transforms = null;
24042
24007
  if (this.ivyDeclarationTransforms.has(originalSf)) {
24043
24008
  transforms = [];
@@ -24050,7 +24015,7 @@ function declarationTransformFactory(transformRegistry, importRewriter, importPr
24050
24015
  return (context) => {
24051
24016
  const transformer = new DtsTransformer(context, importRewriter, importPrefix);
24052
24017
  return (fileOrBundle) => {
24053
- if (import_typescript44.default.isBundle(fileOrBundle)) {
24018
+ if (import_typescript43.default.isBundle(fileOrBundle)) {
24054
24019
  return fileOrBundle;
24055
24020
  }
24056
24021
  const transforms = transformRegistry.getAllTransforms(fileOrBundle);
@@ -24070,15 +24035,15 @@ var DtsTransformer = class {
24070
24035
  transform(sf, transforms) {
24071
24036
  const imports = new ImportManager(this.importRewriter, this.importPrefix);
24072
24037
  const visitor = (node) => {
24073
- if (import_typescript44.default.isClassDeclaration(node)) {
24038
+ if (import_typescript43.default.isClassDeclaration(node)) {
24074
24039
  return this.transformClassDeclaration(node, transforms, imports);
24075
- } else if (import_typescript44.default.isFunctionDeclaration(node)) {
24040
+ } else if (import_typescript43.default.isFunctionDeclaration(node)) {
24076
24041
  return this.transformFunctionDeclaration(node, transforms, imports);
24077
24042
  } else {
24078
- return import_typescript44.default.visitEachChild(node, visitor, this.ctx);
24043
+ return import_typescript43.default.visitEachChild(node, visitor, this.ctx);
24079
24044
  }
24080
24045
  };
24081
- sf = import_typescript44.default.visitNode(sf, visitor);
24046
+ sf = import_typescript43.default.visitNode(sf, visitor, import_typescript43.default.isSourceFile) || sf;
24082
24047
  return addImports(imports, sf);
24083
24048
  }
24084
24049
  transformClassDeclaration(clazz, transforms, imports) {
@@ -24106,7 +24071,7 @@ var DtsTransformer = class {
24106
24071
  }
24107
24072
  }
24108
24073
  if (elementsChanged && clazz === newClazz) {
24109
- newClazz = import_typescript44.default.factory.updateClassDeclaration(
24074
+ newClazz = import_typescript43.default.factory.updateClassDeclaration(
24110
24075
  clazz,
24111
24076
  clazz.modifiers,
24112
24077
  clazz.name,
@@ -24135,16 +24100,16 @@ var IvyDeclarationDtsTransform = class {
24135
24100
  this.declarationFields.set(decl, fields);
24136
24101
  }
24137
24102
  transformClass(clazz, members, imports) {
24138
- const original = import_typescript44.default.getOriginalNode(clazz);
24103
+ const original = import_typescript43.default.getOriginalNode(clazz);
24139
24104
  if (!this.declarationFields.has(original)) {
24140
24105
  return clazz;
24141
24106
  }
24142
24107
  const fields = this.declarationFields.get(original);
24143
24108
  const newMembers = fields.map((decl) => {
24144
- const modifiers = [import_typescript44.default.factory.createModifier(import_typescript44.default.SyntaxKind.StaticKeyword)];
24109
+ const modifiers = [import_typescript43.default.factory.createModifier(import_typescript43.default.SyntaxKind.StaticKeyword)];
24145
24110
  const typeRef = translateType(decl.type, imports);
24146
24111
  markForEmitAsSingleLine(typeRef);
24147
- return import_typescript44.default.factory.createPropertyDeclaration(
24112
+ return import_typescript43.default.factory.createPropertyDeclaration(
24148
24113
  modifiers,
24149
24114
  decl.name,
24150
24115
  void 0,
@@ -24152,7 +24117,7 @@ var IvyDeclarationDtsTransform = class {
24152
24117
  void 0
24153
24118
  );
24154
24119
  });
24155
- return import_typescript44.default.factory.updateClassDeclaration(
24120
+ return import_typescript43.default.factory.updateClassDeclaration(
24156
24121
  clazz,
24157
24122
  clazz.modifiers,
24158
24123
  clazz.name,
@@ -24163,15 +24128,15 @@ var IvyDeclarationDtsTransform = class {
24163
24128
  }
24164
24129
  };
24165
24130
  function markForEmitAsSingleLine(node) {
24166
- import_typescript44.default.setEmitFlags(node, import_typescript44.default.EmitFlags.SingleLine);
24167
- import_typescript44.default.forEachChild(node, markForEmitAsSingleLine);
24131
+ import_typescript43.default.setEmitFlags(node, import_typescript43.default.EmitFlags.SingleLine);
24132
+ import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
24168
24133
  }
24169
24134
 
24170
24135
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
24171
- var import_typescript46 = __toESM(require("typescript"), 1);
24136
+ var import_typescript45 = __toESM(require("typescript"), 1);
24172
24137
 
24173
24138
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
24174
- var import_typescript45 = __toESM(require("typescript"), 1);
24139
+ var import_typescript44 = __toESM(require("typescript"), 1);
24175
24140
  function visit(node, visitor, context) {
24176
24141
  return visitor._visit(node, context);
24177
24142
  }
@@ -24195,13 +24160,13 @@ var Visitor = class {
24195
24160
  }
24196
24161
  _visit(node, context) {
24197
24162
  let visitedNode = null;
24198
- node = import_typescript45.default.visitEachChild(node, (child) => this._visit(child, context), context);
24199
- if (import_typescript45.default.isClassDeclaration(node)) {
24163
+ node = import_typescript44.default.visitEachChild(node, (child) => this._visit(child, context), context);
24164
+ if (import_typescript44.default.isClassDeclaration(node)) {
24200
24165
  visitedNode = this._visitListEntryNode(node, (node2) => this.visitClassDeclaration(node2));
24201
24166
  } else {
24202
24167
  visitedNode = this.visitOtherNode(node);
24203
24168
  }
24204
- if (import_typescript45.default.isBlock(visitedNode) || import_typescript45.default.isSourceFile(visitedNode)) {
24169
+ if (import_typescript44.default.isBlock(visitedNode) || import_typescript44.default.isSourceFile(visitedNode)) {
24205
24170
  visitedNode = this._maybeProcessStatements(visitedNode);
24206
24171
  }
24207
24172
  return visitedNode;
@@ -24222,11 +24187,11 @@ var Visitor = class {
24222
24187
  this._after.delete(stmt);
24223
24188
  }
24224
24189
  });
24225
- const statementsArray = import_typescript45.default.factory.createNodeArray(newStatements, node.statements.hasTrailingComma);
24226
- if (import_typescript45.default.isBlock(node)) {
24227
- return import_typescript45.default.factory.updateBlock(node, statementsArray);
24190
+ const statementsArray = import_typescript44.default.factory.createNodeArray(newStatements, node.statements.hasTrailingComma);
24191
+ if (import_typescript44.default.isBlock(node)) {
24192
+ return import_typescript44.default.factory.updateBlock(node, statementsArray);
24228
24193
  } else {
24229
- return import_typescript45.default.factory.updateSourceFile(node, statementsArray, node.isDeclarationFile, node.referencedFiles, node.typeReferenceDirectives, node.hasNoDefaultLib, node.libReferenceDirectives);
24194
+ return import_typescript44.default.factory.updateSourceFile(node, statementsArray, node.isDeclarationFile, node.referencedFiles, node.typeReferenceDirectives, node.hasNoDefaultLib, node.libReferenceDirectives);
24230
24195
  }
24231
24196
  }
24232
24197
  };
@@ -24280,11 +24245,11 @@ var IvyTransformationVisitor = class extends Visitor {
24280
24245
  const members = [...node.members];
24281
24246
  for (const field of this.classCompilationMap.get(node)) {
24282
24247
  const exprNode = translateExpression(field.initializer, this.importManager, translateOptions);
24283
- const property = import_typescript46.default.factory.createPropertyDeclaration([import_typescript46.default.factory.createToken(import_typescript46.default.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
24248
+ const property = import_typescript45.default.factory.createPropertyDeclaration([import_typescript45.default.factory.createToken(import_typescript45.default.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
24284
24249
  if (this.isClosureCompilerEnabled) {
24285
- import_typescript46.default.addSyntheticLeadingComment(
24250
+ import_typescript45.default.addSyntheticLeadingComment(
24286
24251
  property,
24287
- import_typescript46.default.SyntaxKind.MultiLineCommentTrivia,
24252
+ import_typescript45.default.SyntaxKind.MultiLineCommentTrivia,
24288
24253
  "* @nocollapse ",
24289
24254
  false
24290
24255
  );
@@ -24292,13 +24257,13 @@ var IvyTransformationVisitor = class extends Visitor {
24292
24257
  field.statements.map((stmt) => translateStatement(stmt, this.importManager, translateOptions)).forEach((stmt) => statements.push(stmt));
24293
24258
  members.push(property);
24294
24259
  }
24295
- const filteredDecorators = maybeFilterDecorator(import_typescript46.default.getDecorators(node), this.compilation.decoratorsFor(node));
24296
- const nodeModifiers = import_typescript46.default.getModifiers(node);
24260
+ const filteredDecorators = maybeFilterDecorator(import_typescript45.default.getDecorators(node), this.compilation.decoratorsFor(node));
24261
+ const nodeModifiers = import_typescript45.default.getModifiers(node);
24297
24262
  let updatedModifiers;
24298
24263
  if ((filteredDecorators == null ? void 0 : filteredDecorators.length) || (nodeModifiers == null ? void 0 : nodeModifiers.length)) {
24299
24264
  updatedModifiers = [...filteredDecorators || [], ...nodeModifiers || []];
24300
24265
  }
24301
- node = import_typescript46.default.factory.updateClassDeclaration(
24266
+ node = import_typescript45.default.factory.updateClassDeclaration(
24302
24267
  node,
24303
24268
  updatedModifiers,
24304
24269
  node.name,
@@ -24321,7 +24286,7 @@ var IvyTransformationVisitor = class extends Visitor {
24321
24286
  }
24322
24287
  }
24323
24288
  _nonCoreDecoratorsOnly(node) {
24324
- const decorators = import_typescript46.default.getDecorators(node);
24289
+ const decorators = import_typescript45.default.getDecorators(node);
24325
24290
  if (decorators === void 0) {
24326
24291
  return void 0;
24327
24292
  }
@@ -24338,22 +24303,22 @@ var IvyTransformationVisitor = class extends Visitor {
24338
24303
  return nodeArrayFromDecoratorsArray(filtered);
24339
24304
  }
24340
24305
  _stripAngularDecorators(node) {
24341
- const modifiers = import_typescript46.default.canHaveModifiers(node) ? import_typescript46.default.getModifiers(node) : void 0;
24342
- const nonCoreDecorators = import_typescript46.default.canHaveDecorators(node) ? this._nonCoreDecoratorsOnly(node) : void 0;
24306
+ const modifiers = import_typescript45.default.canHaveModifiers(node) ? import_typescript45.default.getModifiers(node) : void 0;
24307
+ const nonCoreDecorators = import_typescript45.default.canHaveDecorators(node) ? this._nonCoreDecoratorsOnly(node) : void 0;
24343
24308
  const combinedModifiers = [...nonCoreDecorators || [], ...modifiers || []];
24344
- if (import_typescript46.default.isParameter(node)) {
24345
- node = import_typescript46.default.factory.updateParameterDeclaration(node, combinedModifiers, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
24346
- } else if (import_typescript46.default.isMethodDeclaration(node)) {
24347
- node = import_typescript46.default.factory.updateMethodDeclaration(node, combinedModifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
24348
- } else if (import_typescript46.default.isPropertyDeclaration(node)) {
24349
- node = import_typescript46.default.factory.updatePropertyDeclaration(node, combinedModifiers, node.name, node.questionToken, node.type, node.initializer);
24350
- } else if (import_typescript46.default.isGetAccessor(node)) {
24351
- node = import_typescript46.default.factory.updateGetAccessorDeclaration(node, combinedModifiers, node.name, node.parameters, node.type, node.body);
24352
- } else if (import_typescript46.default.isSetAccessor(node)) {
24353
- node = import_typescript46.default.factory.updateSetAccessorDeclaration(node, combinedModifiers, node.name, node.parameters, node.body);
24354
- } else if (import_typescript46.default.isConstructorDeclaration(node)) {
24309
+ if (import_typescript45.default.isParameter(node)) {
24310
+ node = import_typescript45.default.factory.updateParameterDeclaration(node, combinedModifiers, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
24311
+ } else if (import_typescript45.default.isMethodDeclaration(node)) {
24312
+ node = import_typescript45.default.factory.updateMethodDeclaration(node, combinedModifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
24313
+ } else if (import_typescript45.default.isPropertyDeclaration(node)) {
24314
+ node = import_typescript45.default.factory.updatePropertyDeclaration(node, combinedModifiers, node.name, node.questionToken, node.type, node.initializer);
24315
+ } else if (import_typescript45.default.isGetAccessor(node)) {
24316
+ node = import_typescript45.default.factory.updateGetAccessorDeclaration(node, combinedModifiers, node.name, node.parameters, node.type, node.body);
24317
+ } else if (import_typescript45.default.isSetAccessor(node)) {
24318
+ node = import_typescript45.default.factory.updateSetAccessorDeclaration(node, combinedModifiers, node.name, node.parameters, node.body);
24319
+ } else if (import_typescript45.default.isConstructorDeclaration(node)) {
24355
24320
  const parameters = node.parameters.map((param) => this._stripAngularDecorators(param));
24356
- node = import_typescript46.default.factory.updateConstructorDeclaration(node, modifiers, parameters, node.body);
24321
+ node = import_typescript45.default.factory.updateConstructorDeclaration(node, modifiers, parameters, node.body);
24357
24322
  }
24358
24323
  return node;
24359
24324
  }
@@ -24365,7 +24330,7 @@ function transformIvySourceFile(compilation, context, reflector, importRewriter,
24365
24330
  visit(file, compilationVisitor, context);
24366
24331
  const transformationVisitor = new IvyTransformationVisitor(compilation, compilationVisitor.classCompilationMap, reflector, importManager, recordWrappedNode, isClosureCompilerEnabled, isCore);
24367
24332
  let sf = visit(file, transformationVisitor, context);
24368
- const downlevelTranslatedCode = getLocalizeCompileTarget(context) < import_typescript46.default.ScriptTarget.ES2015;
24333
+ const downlevelTranslatedCode = getLocalizeCompileTarget(context) < import_typescript45.default.ScriptTarget.ES2015;
24369
24334
  const constants = constantPool.statements.map((stmt) => translateStatement(stmt, importManager, {
24370
24335
  recordWrappedNode,
24371
24336
  downlevelTaggedTemplates: downlevelTranslatedCode,
@@ -24380,17 +24345,17 @@ function transformIvySourceFile(compilation, context, reflector, importRewriter,
24380
24345
  return sf;
24381
24346
  }
24382
24347
  function getLocalizeCompileTarget(context) {
24383
- const target = context.getCompilerOptions().target || import_typescript46.default.ScriptTarget.ES2015;
24384
- return target !== import_typescript46.default.ScriptTarget.JSON ? target : import_typescript46.default.ScriptTarget.ES2015;
24348
+ const target = context.getCompilerOptions().target || import_typescript45.default.ScriptTarget.ES2015;
24349
+ return target !== import_typescript45.default.ScriptTarget.JSON ? target : import_typescript45.default.ScriptTarget.ES2015;
24385
24350
  }
24386
24351
  function getFileOverviewComment(statements) {
24387
24352
  if (statements.length > 0) {
24388
24353
  const host = statements[0];
24389
24354
  let trailing = false;
24390
- let comments = import_typescript46.default.getSyntheticLeadingComments(host);
24355
+ let comments = import_typescript45.default.getSyntheticLeadingComments(host);
24391
24356
  if (!comments || comments.length === 0) {
24392
24357
  trailing = true;
24393
- comments = import_typescript46.default.getSyntheticTrailingComments(host);
24358
+ comments = import_typescript45.default.getSyntheticTrailingComments(host);
24394
24359
  }
24395
24360
  if (comments && comments.length > 0 && CLOSURE_FILE_OVERVIEW_REGEXP.test(comments[0].text)) {
24396
24361
  return { comments, host, trailing };
@@ -24402,22 +24367,22 @@ function setFileOverviewComment(sf, fileoverview) {
24402
24367
  const { comments, host, trailing } = fileoverview;
24403
24368
  if (sf.statements.length > 0 && host !== sf.statements[0]) {
24404
24369
  if (trailing) {
24405
- import_typescript46.default.setSyntheticTrailingComments(host, void 0);
24370
+ import_typescript45.default.setSyntheticTrailingComments(host, void 0);
24406
24371
  } else {
24407
- import_typescript46.default.setSyntheticLeadingComments(host, void 0);
24372
+ import_typescript45.default.setSyntheticLeadingComments(host, void 0);
24408
24373
  }
24409
- import_typescript46.default.setSyntheticLeadingComments(sf.statements[0], comments);
24374
+ import_typescript45.default.setSyntheticLeadingComments(sf.statements[0], comments);
24410
24375
  }
24411
24376
  }
24412
24377
  function maybeFilterDecorator(decorators, toRemove) {
24413
24378
  if (decorators === void 0) {
24414
24379
  return void 0;
24415
24380
  }
24416
- const filtered = decorators.filter((dec) => toRemove.find((decToRemove) => import_typescript46.default.getOriginalNode(dec) === decToRemove) === void 0);
24381
+ const filtered = decorators.filter((dec) => toRemove.find((decToRemove) => import_typescript45.default.getOriginalNode(dec) === decToRemove) === void 0);
24417
24382
  if (filtered.length === 0) {
24418
24383
  return void 0;
24419
24384
  }
24420
- return import_typescript46.default.factory.createNodeArray(filtered);
24385
+ return import_typescript45.default.factory.createNodeArray(filtered);
24421
24386
  }
24422
24387
  function isFromAngularCore(decorator) {
24423
24388
  return decorator.import !== null && decorator.import.from === "@angular/core";
@@ -24431,7 +24396,7 @@ function createRecorderFn(defaultImportTracker) {
24431
24396
  };
24432
24397
  }
24433
24398
  function nodeArrayFromDecoratorsArray(decorators) {
24434
- const array = import_typescript46.default.factory.createNodeArray(decorators);
24399
+ const array = import_typescript45.default.factory.createNodeArray(decorators);
24435
24400
  if (array.length > 0) {
24436
24401
  array.pos = decorators[0].pos;
24437
24402
  array.end = decorators[decorators.length - 1].end;
@@ -24440,7 +24405,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
24440
24405
  }
24441
24406
 
24442
24407
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
24443
- var import_typescript47 = __toESM(require("typescript"), 1);
24408
+ var import_typescript46 = __toESM(require("typescript"), 1);
24444
24409
  var EMPTY_OBJECT = {};
24445
24410
  var QUERY_TYPES = /* @__PURE__ */ new Set([
24446
24411
  "ContentChild",
@@ -24456,7 +24421,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
24456
24421
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @${decorator.name} decorator`);
24457
24422
  } else {
24458
24423
  const meta = unwrapExpression(decorator.args[0]);
24459
- if (!import_typescript47.default.isObjectLiteralExpression(meta)) {
24424
+ if (!import_typescript46.default.isObjectLiteralExpression(meta)) {
24460
24425
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, `@${decorator.name} argument must be an object literal`);
24461
24426
  }
24462
24427
  directive = reflectObjectLiteral(meta);
@@ -24583,7 +24548,7 @@ function extractQueryMetadata(exprNode, name, args, propertyName, reflector, eva
24583
24548
  let emitDistinctChangesOnly = emitDistinctChangesOnlyDefaultValue;
24584
24549
  if (args.length === 2) {
24585
24550
  const optionsExpr = unwrapExpression(args[1]);
24586
- if (!import_typescript47.default.isObjectLiteralExpression(optionsExpr)) {
24551
+ if (!import_typescript46.default.isObjectLiteralExpression(optionsExpr)) {
24587
24552
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, optionsExpr, `@${name} options must be an object literal`);
24588
24553
  }
24589
24554
  const options = reflectObjectLiteral(optionsExpr);
@@ -24678,16 +24643,16 @@ function extractHostBindings2(members, evaluator, coreModule, metadata) {
24678
24643
  }
24679
24644
  function extractQueriesFromDecorator(queryData, reflector, evaluator, isCore) {
24680
24645
  const content = [], view = [];
24681
- if (!import_typescript47.default.isObjectLiteralExpression(queryData)) {
24646
+ if (!import_typescript46.default.isObjectLiteralExpression(queryData)) {
24682
24647
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, queryData, "Decorator queries metadata must be an object literal");
24683
24648
  }
24684
24649
  reflectObjectLiteral(queryData).forEach((queryExpr, propertyName) => {
24685
24650
  queryExpr = unwrapExpression(queryExpr);
24686
- if (!import_typescript47.default.isNewExpression(queryExpr)) {
24651
+ if (!import_typescript46.default.isNewExpression(queryExpr)) {
24687
24652
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, queryData, "Decorator query metadata must be an instance of a query type");
24688
24653
  }
24689
- const queryType = import_typescript47.default.isPropertyAccessExpression(queryExpr.expression) ? queryExpr.expression.name : queryExpr.expression;
24690
- if (!import_typescript47.default.isIdentifier(queryType)) {
24654
+ const queryType = import_typescript46.default.isPropertyAccessExpression(queryExpr.expression) ? queryExpr.expression.name : queryExpr.expression;
24655
+ if (!import_typescript46.default.isIdentifier(queryType)) {
24691
24656
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, queryData, "Decorator query metadata must be an instance of a query type");
24692
24657
  }
24693
24658
  const type = reflector.getImportOfIdentifier(queryType);
@@ -25092,16 +25057,16 @@ var DirectiveDecoratorHandler = class {
25092
25057
  };
25093
25058
 
25094
25059
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
25095
- var import_typescript49 = __toESM(require("typescript"), 1);
25060
+ var import_typescript48 = __toESM(require("typescript"), 1);
25096
25061
 
25097
25062
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
25098
- var import_typescript48 = __toESM(require("typescript"), 1);
25063
+ var import_typescript47 = __toESM(require("typescript"), 1);
25099
25064
  function createModuleWithProvidersResolver(reflector, isCore) {
25100
25065
  function _reflectModuleFromTypeParam(type, node) {
25101
- if (!import_typescript48.default.isTypeReferenceNode(type)) {
25066
+ if (!import_typescript47.default.isTypeReferenceNode(type)) {
25102
25067
  return null;
25103
25068
  }
25104
- const typeName = type && (import_typescript48.default.isIdentifier(type.typeName) && type.typeName || import_typescript48.default.isQualifiedName(type.typeName) && type.typeName.right) || null;
25069
+ const typeName = type && (import_typescript47.default.isIdentifier(type.typeName) && type.typeName || import_typescript47.default.isQualifiedName(type.typeName) && type.typeName.right) || null;
25105
25070
  if (typeName === null) {
25106
25071
  return null;
25107
25072
  }
@@ -25113,7 +25078,7 @@ function createModuleWithProvidersResolver(reflector, isCore) {
25113
25078
  return null;
25114
25079
  }
25115
25080
  if (type.typeArguments === void 0 || type.typeArguments.length !== 1) {
25116
- const parent = import_typescript48.default.isMethodDeclaration(node) && import_typescript48.default.isClassDeclaration(node.parent) ? node.parent : null;
25081
+ const parent = import_typescript47.default.isMethodDeclaration(node) && import_typescript47.default.isClassDeclaration(node.parent) ? node.parent : null;
25117
25082
  const symbolName = (parent && parent.name ? parent.name.getText() + "." : "") + (node.name ? node.name.getText() : "anonymous");
25118
25083
  throw new FatalDiagnosticError(ErrorCode.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC, type, `${symbolName} returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.`);
25119
25084
  }
@@ -25121,13 +25086,13 @@ function createModuleWithProvidersResolver(reflector, isCore) {
25121
25086
  return typeNodeToValueExpr(arg);
25122
25087
  }
25123
25088
  function _reflectModuleFromLiteralType(type) {
25124
- if (!import_typescript48.default.isIntersectionTypeNode(type)) {
25089
+ if (!import_typescript47.default.isIntersectionTypeNode(type)) {
25125
25090
  return null;
25126
25091
  }
25127
25092
  for (const t of type.types) {
25128
- if (import_typescript48.default.isTypeLiteralNode(t)) {
25093
+ if (import_typescript47.default.isTypeLiteralNode(t)) {
25129
25094
  for (const m of t.members) {
25130
- const ngModuleType = import_typescript48.default.isPropertySignature(m) && import_typescript48.default.isIdentifier(m.name) && m.name.text === "ngModule" && m.type || null;
25095
+ const ngModuleType = import_typescript47.default.isPropertySignature(m) && import_typescript47.default.isIdentifier(m.name) && m.name.text === "ngModule" && m.type || null;
25131
25096
  const ngModuleExpression = ngModuleType && typeNodeToValueExpr(ngModuleType);
25132
25097
  if (ngModuleExpression) {
25133
25098
  return ngModuleExpression;
@@ -25207,7 +25172,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
25207
25172
  }
25208
25173
  };
25209
25174
  var NgModuleDecoratorHandler = class {
25210
- constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
25175
+ constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
25211
25176
  this.reflector = reflector;
25212
25177
  this.evaluator = evaluator;
25213
25178
  this.metaReader = metaReader;
@@ -25216,7 +25181,6 @@ var NgModuleDecoratorHandler = class {
25216
25181
  this.referencesRegistry = referencesRegistry;
25217
25182
  this.isCore = isCore;
25218
25183
  this.refEmitter = refEmitter;
25219
- this.factoryTracker = factoryTracker;
25220
25184
  this.annotateForClosureCompiler = annotateForClosureCompiler;
25221
25185
  this.onlyPublishPublicTypings = onlyPublishPublicTypings;
25222
25186
  this.injectableRegistry = injectableRegistry;
@@ -25246,8 +25210,8 @@ var NgModuleDecoratorHandler = class {
25246
25210
  if (decorator.args === null || decorator.args.length > 1) {
25247
25211
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @NgModule decorator`);
25248
25212
  }
25249
- const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : import_typescript49.default.factory.createObjectLiteralExpression([]);
25250
- if (!import_typescript49.default.isObjectLiteralExpression(meta)) {
25213
+ const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : import_typescript48.default.factory.createObjectLiteralExpression([]);
25214
+ if (!import_typescript48.default.isObjectLiteralExpression(meta)) {
25251
25215
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@NgModule argument must be an object literal");
25252
25216
  }
25253
25217
  const ngModule = reflectObjectLiteral(meta);
@@ -25310,7 +25274,7 @@ var NgModuleDecoratorHandler = class {
25310
25274
  id = new WrappedNodeExpr(idExpr);
25311
25275
  } else {
25312
25276
  const diag = makeDiagnostic(ErrorCode.WARN_NGMODULE_ID_UNNECESSARY, idExpr, `Using 'module.id' for NgModule.id is a common anti-pattern that is ignored by the Angular compiler.`);
25313
- diag.category = import_typescript49.default.DiagnosticCategory.Warning;
25277
+ diag.category = import_typescript48.default.DiagnosticCategory.Warning;
25314
25278
  diagnostics.push(diag);
25315
25279
  }
25316
25280
  }
@@ -25355,16 +25319,16 @@ var NgModuleDecoratorHandler = class {
25355
25319
  };
25356
25320
  const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
25357
25321
  let wrappedProviders = null;
25358
- if (rawProviders !== null && (!import_typescript49.default.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
25322
+ if (rawProviders !== null && (!import_typescript48.default.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
25359
25323
  wrappedProviders = new WrappedNodeExpr(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders);
25360
25324
  }
25361
25325
  const topLevelImports = [];
25362
25326
  if (ngModule.has("imports")) {
25363
25327
  const rawImports2 = unwrapExpression(ngModule.get("imports"));
25364
25328
  let topLevelExpressions = [];
25365
- if (import_typescript49.default.isArrayLiteralExpression(rawImports2)) {
25329
+ if (import_typescript48.default.isArrayLiteralExpression(rawImports2)) {
25366
25330
  for (const element of rawImports2.elements) {
25367
- if (import_typescript49.default.isSpreadElement(element)) {
25331
+ if (import_typescript48.default.isSpreadElement(element)) {
25368
25332
  topLevelExpressions.push(element.expression);
25369
25333
  continue;
25370
25334
  }
@@ -25440,11 +25404,6 @@ var NgModuleDecoratorHandler = class {
25440
25404
  rawExports: analysis.rawExports,
25441
25405
  decorator: analysis.decorator
25442
25406
  });
25443
- if (this.factoryTracker !== null) {
25444
- this.factoryTracker.track(node.getSourceFile(), {
25445
- name: analysis.factorySymbolName
25446
- });
25447
- }
25448
25407
  this.injectableRegistry.registerInjectable(node, {
25449
25408
  ctorDeps: analysis.fac.deps
25450
25409
  });
@@ -25651,7 +25610,7 @@ function isNgModule(node, compilation) {
25651
25610
  return !compilation.dependencies.some((dep) => dep.ref.node === node);
25652
25611
  }
25653
25612
  function isModuleIdExpression(expr) {
25654
- return import_typescript49.default.isPropertyAccessExpression(expr) && import_typescript49.default.isIdentifier(expr.expression) && expr.expression.text === "module" && expr.name.text === "id";
25613
+ return import_typescript48.default.isPropertyAccessExpression(expr) && import_typescript48.default.isIdentifier(expr.expression) && expr.expression.text === "module" && expr.name.text === "id";
25655
25614
  }
25656
25615
  function makeStandaloneBootstrapDiagnostic(ngModuleClass, bootstrappedClassRef, rawBootstrapExpr) {
25657
25616
  const componentClassName = bootstrappedClassRef.node.name.text;
@@ -25687,7 +25646,7 @@ function checkCustomElementSelectorForErrors(selector) {
25687
25646
  }
25688
25647
 
25689
25648
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
25690
- var import_typescript51 = __toESM(require("typescript"), 1);
25649
+ var import_typescript50 = __toESM(require("typescript"), 1);
25691
25650
  function getTemplateDeclarationNodeForError(declaration) {
25692
25651
  switch (declaration.isInline) {
25693
25652
  case true:
@@ -25704,7 +25663,7 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
25704
25663
  let sourceMapping;
25705
25664
  let escapedString = false;
25706
25665
  let sourceMapUrl;
25707
- if (import_typescript51.default.isStringLiteral(template.expression) || import_typescript51.default.isNoSubstitutionTemplateLiteral(template.expression)) {
25666
+ if (import_typescript50.default.isStringLiteral(template.expression) || import_typescript50.default.isNoSubstitutionTemplateLiteral(template.expression)) {
25708
25667
  sourceParseRange = getTemplateRange(template.expression);
25709
25668
  sourceStr = template.expression.getSourceFile().text;
25710
25669
  templateContent = template.expression.text;
@@ -25875,7 +25834,7 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
25875
25834
  }
25876
25835
  function getTemplateRange(templateExpr) {
25877
25836
  const startPos = templateExpr.getStart() + 1;
25878
- const { line, character } = import_typescript51.default.getLineAndCharacterOfPosition(templateExpr.getSourceFile(), startPos);
25837
+ const { line, character } = import_typescript50.default.getLineAndCharacterOfPosition(templateExpr.getSourceFile(), startPos);
25879
25838
  return {
25880
25839
  startPos,
25881
25840
  startLine: line,
@@ -25908,7 +25867,7 @@ function transformDecoratorResources(dec, component, styles, template) {
25908
25867
  const metadata = new Map(component);
25909
25868
  if (metadata.has("templateUrl")) {
25910
25869
  metadata.delete("templateUrl");
25911
- metadata.set("template", import_typescript51.default.factory.createStringLiteral(template.content));
25870
+ metadata.set("template", import_typescript50.default.factory.createStringLiteral(template.content));
25912
25871
  }
25913
25872
  if (metadata.has("styleUrls") || metadata.has("styles")) {
25914
25873
  metadata.delete("styles");
@@ -25916,20 +25875,20 @@ function transformDecoratorResources(dec, component, styles, template) {
25916
25875
  if (styles.length > 0) {
25917
25876
  const styleNodes = styles.reduce((result, style) => {
25918
25877
  if (style.trim().length > 0) {
25919
- result.push(import_typescript51.default.factory.createStringLiteral(style));
25878
+ result.push(import_typescript50.default.factory.createStringLiteral(style));
25920
25879
  }
25921
25880
  return result;
25922
25881
  }, []);
25923
25882
  if (styleNodes.length > 0) {
25924
- metadata.set("styles", import_typescript51.default.factory.createArrayLiteralExpression(styleNodes));
25883
+ metadata.set("styles", import_typescript50.default.factory.createArrayLiteralExpression(styleNodes));
25925
25884
  }
25926
25885
  }
25927
25886
  }
25928
25887
  const newMetadataFields = [];
25929
25888
  for (const [name, value] of metadata.entries()) {
25930
- newMetadataFields.push(import_typescript51.default.factory.createPropertyAssignment(name, value));
25889
+ newMetadataFields.push(import_typescript50.default.factory.createPropertyAssignment(name, value));
25931
25890
  }
25932
- return __spreadProps(__spreadValues({}, dec), { args: [import_typescript51.default.factory.createObjectLiteralExpression(newMetadataFields)] });
25891
+ return __spreadProps(__spreadValues({}, dec), { args: [import_typescript50.default.factory.createObjectLiteralExpression(newMetadataFields)] });
25933
25892
  }
25934
25893
  function extractComponentStyleUrls(evaluator, component) {
25935
25894
  if (!component.has("styleUrls")) {
@@ -25939,9 +25898,9 @@ function extractComponentStyleUrls(evaluator, component) {
25939
25898
  }
25940
25899
  function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
25941
25900
  const styleUrls = [];
25942
- if (import_typescript51.default.isArrayLiteralExpression(styleUrlsExpr)) {
25901
+ if (import_typescript50.default.isArrayLiteralExpression(styleUrlsExpr)) {
25943
25902
  for (const styleUrlExpr of styleUrlsExpr.elements) {
25944
- if (import_typescript51.default.isSpreadElement(styleUrlExpr)) {
25903
+ if (import_typescript50.default.isSpreadElement(styleUrlExpr)) {
25945
25904
  styleUrls.push(...extractStyleUrlsFromExpression(evaluator, styleUrlExpr.expression));
25946
25905
  } else {
25947
25906
  const styleUrl = evaluator.evaluate(styleUrlExpr);
@@ -25973,10 +25932,10 @@ function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
25973
25932
  function extractStyleResources(resourceLoader, component, containingFile) {
25974
25933
  const styles = /* @__PURE__ */ new Set();
25975
25934
  function stringLiteralElements(array) {
25976
- return array.elements.filter((e) => import_typescript51.default.isStringLiteralLike(e));
25935
+ return array.elements.filter((e) => import_typescript50.default.isStringLiteralLike(e));
25977
25936
  }
25978
25937
  const styleUrlsExpr = component.get("styleUrls");
25979
- if (styleUrlsExpr !== void 0 && import_typescript51.default.isArrayLiteralExpression(styleUrlsExpr)) {
25938
+ if (styleUrlsExpr !== void 0 && import_typescript50.default.isArrayLiteralExpression(styleUrlsExpr)) {
25980
25939
  for (const expression of stringLiteralElements(styleUrlsExpr)) {
25981
25940
  try {
25982
25941
  const resourceUrl = resourceLoader.resolve(expression.text, containingFile);
@@ -25986,7 +25945,7 @@ function extractStyleResources(resourceLoader, component, containingFile) {
25986
25945
  }
25987
25946
  }
25988
25947
  const stylesExpr = component.get("styles");
25989
- if (stylesExpr !== void 0 && import_typescript51.default.isArrayLiteralExpression(stylesExpr)) {
25948
+ if (stylesExpr !== void 0 && import_typescript50.default.isArrayLiteralExpression(stylesExpr)) {
25990
25949
  for (const expression of stringLiteralElements(stylesExpr)) {
25991
25950
  styles.add({ path: null, expression });
25992
25951
  }
@@ -26473,7 +26432,7 @@ var ComponentDecoratorHandler = class {
26473
26432
  });
26474
26433
  }
26475
26434
  typeCheck(ctx, node, meta) {
26476
- if (this.typeCheckScopeRegistry === null || !import_typescript52.default.isClassDeclaration(node)) {
26435
+ if (this.typeCheckScopeRegistry === null || !import_typescript51.default.isClassDeclaration(node)) {
26477
26436
  return;
26478
26437
  }
26479
26438
  if (meta.isPoisoned && !this.usePoisonedData) {
@@ -26759,7 +26718,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
26759
26718
  }
26760
26719
 
26761
26720
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
26762
- var import_typescript54 = __toESM(require("typescript"), 1);
26721
+ var import_typescript53 = __toESM(require("typescript"), 1);
26763
26722
  var InjectableDecoratorHandler = class {
26764
26723
  constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
26765
26724
  this.reflector = reflector;
@@ -26864,7 +26823,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
26864
26823
  };
26865
26824
  } else if (decorator.args.length === 1) {
26866
26825
  const metaNode = decorator.args[0];
26867
- if (!import_typescript54.default.isObjectLiteralExpression(metaNode)) {
26826
+ if (!import_typescript53.default.isObjectLiteralExpression(metaNode)) {
26868
26827
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
26869
26828
  }
26870
26829
  const meta = reflectObjectLiteral(metaNode);
@@ -26872,7 +26831,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
26872
26831
  let deps = void 0;
26873
26832
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
26874
26833
  const depsExpr = meta.get("deps");
26875
- if (!import_typescript54.default.isArrayLiteralExpression(depsExpr)) {
26834
+ if (!import_typescript53.default.isArrayLiteralExpression(depsExpr)) {
26876
26835
  throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
26877
26836
  }
26878
26837
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
@@ -26957,12 +26916,12 @@ function getDep(dep, reflector) {
26957
26916
  }
26958
26917
  return true;
26959
26918
  }
26960
- if (import_typescript54.default.isArrayLiteralExpression(dep)) {
26919
+ if (import_typescript53.default.isArrayLiteralExpression(dep)) {
26961
26920
  dep.elements.forEach((el) => {
26962
26921
  let isDecorator = false;
26963
- if (import_typescript54.default.isIdentifier(el)) {
26922
+ if (import_typescript53.default.isIdentifier(el)) {
26964
26923
  isDecorator = maybeUpdateDecorator(el, reflector);
26965
- } else if (import_typescript54.default.isNewExpression(el) && import_typescript54.default.isIdentifier(el.expression)) {
26924
+ } else if (import_typescript53.default.isNewExpression(el) && import_typescript53.default.isIdentifier(el.expression)) {
26966
26925
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
26967
26926
  isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
26968
26927
  }
@@ -26975,7 +26934,7 @@ function getDep(dep, reflector) {
26975
26934
  }
26976
26935
 
26977
26936
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
26978
- var import_typescript55 = __toESM(require("typescript"), 1);
26937
+ var import_typescript54 = __toESM(require("typescript"), 1);
26979
26938
  var PipeSymbol = class extends SemanticSymbol {
26980
26939
  constructor(decl, name) {
26981
26940
  super(decl);
@@ -27031,7 +26990,7 @@ var PipeDecoratorHandler = class {
27031
26990
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), "@Pipe must have exactly one argument");
27032
26991
  }
27033
26992
  const meta = unwrapExpression(decorator.args[0]);
27034
- if (!import_typescript55.default.isObjectLiteralExpression(meta)) {
26993
+ if (!import_typescript54.default.isObjectLiteralExpression(meta)) {
27035
26994
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
27036
26995
  }
27037
26996
  const pipe = reflectObjectLiteral(meta);
@@ -27191,7 +27150,7 @@ var Cycle = class {
27191
27150
  };
27192
27151
 
27193
27152
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
27194
- var import_typescript56 = __toESM(require("typescript"), 1);
27153
+ var import_typescript55 = __toESM(require("typescript"), 1);
27195
27154
  var ImportGraph = class {
27196
27155
  constructor(checker, perf) {
27197
27156
  this.checker = checker;
@@ -27235,10 +27194,10 @@ var ImportGraph = class {
27235
27194
  return this.perf.inPhase(PerfPhase.CycleDetection, () => {
27236
27195
  const imports = /* @__PURE__ */ new Set();
27237
27196
  for (const stmt of sf.statements) {
27238
- if (!import_typescript56.default.isImportDeclaration(stmt) && !import_typescript56.default.isExportDeclaration(stmt) || stmt.moduleSpecifier === void 0) {
27197
+ if (!import_typescript55.default.isImportDeclaration(stmt) && !import_typescript55.default.isExportDeclaration(stmt) || stmt.moduleSpecifier === void 0) {
27239
27198
  continue;
27240
27199
  }
27241
- if (import_typescript56.default.isImportDeclaration(stmt) && stmt.importClause !== void 0 && isTypeOnlyImportClause(stmt.importClause)) {
27200
+ if (import_typescript55.default.isImportDeclaration(stmt) && stmt.importClause !== void 0 && isTypeOnlyImportClause(stmt.importClause)) {
27242
27201
  continue;
27243
27202
  }
27244
27203
  const symbol = this.checker.getSymbolAtLocation(stmt.moduleSpecifier);
@@ -27246,7 +27205,7 @@ var ImportGraph = class {
27246
27205
  continue;
27247
27206
  }
27248
27207
  const moduleFile = symbol.valueDeclaration;
27249
- if (import_typescript56.default.isSourceFile(moduleFile) && isLocalFile(moduleFile)) {
27208
+ if (import_typescript55.default.isSourceFile(moduleFile) && isLocalFile(moduleFile)) {
27250
27209
  imports.add(moduleFile);
27251
27210
  }
27252
27211
  }
@@ -27261,7 +27220,7 @@ function isTypeOnlyImportClause(node) {
27261
27220
  if (node.isTypeOnly) {
27262
27221
  return true;
27263
27222
  }
27264
- if (node.namedBindings !== void 0 && import_typescript56.default.isNamedImports(node.namedBindings) && node.namedBindings.elements.every((specifier) => specifier.isTypeOnly)) {
27223
+ if (node.namedBindings !== void 0 && import_typescript55.default.isNamedImports(node.namedBindings) && node.namedBindings.elements.every((specifier) => specifier.isTypeOnly)) {
27265
27224
  return true;
27266
27225
  }
27267
27226
  return false;
@@ -27283,7 +27242,7 @@ var Found = class {
27283
27242
  };
27284
27243
 
27285
27244
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
27286
- var import_typescript57 = __toESM(require("typescript"), 1);
27245
+ var import_typescript56 = __toESM(require("typescript"), 1);
27287
27246
  var FlatIndexGenerator = class {
27288
27247
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
27289
27248
  this.entryPoint = entryPoint;
@@ -27299,7 +27258,7 @@ var FlatIndexGenerator = class {
27299
27258
 
27300
27259
  export * from '${relativeEntryPoint}';
27301
27260
  `;
27302
- const genFile = import_typescript57.default.createSourceFile(this.flatIndexPath, contents, import_typescript57.default.ScriptTarget.ES2015, true, import_typescript57.default.ScriptKind.TS);
27261
+ const genFile = import_typescript56.default.createSourceFile(this.flatIndexPath, contents, import_typescript56.default.ScriptTarget.ES2015, true, import_typescript56.default.ScriptKind.TS);
27303
27262
  if (this.moduleName !== null) {
27304
27263
  genFile.moduleName = this.moduleName;
27305
27264
  }
@@ -27324,7 +27283,7 @@ function findFlatIndexEntryPoint(rootFiles) {
27324
27283
  }
27325
27284
 
27326
27285
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
27327
- var import_typescript59 = __toESM(require("typescript"), 1);
27286
+ var import_typescript58 = __toESM(require("typescript"), 1);
27328
27287
  function checkForPrivateExports(entryPoint, checker, refGraph) {
27329
27288
  const diagnostics = [];
27330
27289
  const topLevelExports = /* @__PURE__ */ new Set();
@@ -27334,7 +27293,7 @@ function checkForPrivateExports(entryPoint, checker, refGraph) {
27334
27293
  }
27335
27294
  const exportedSymbols = checker.getExportsOfModule(moduleSymbol);
27336
27295
  exportedSymbols.forEach((symbol) => {
27337
- if (symbol.flags & import_typescript59.default.SymbolFlags.Alias) {
27296
+ if (symbol.flags & import_typescript58.default.SymbolFlags.Alias) {
27338
27297
  symbol = checker.getAliasedSymbol(symbol);
27339
27298
  }
27340
27299
  const decl = symbol.valueDeclaration;
@@ -27358,7 +27317,7 @@ function checkForPrivateExports(entryPoint, checker, refGraph) {
27358
27317
  visibleVia = transitivePath.map((seg) => getNameOfDeclaration(seg)).join(" -> ");
27359
27318
  }
27360
27319
  const diagnostic = __spreadProps(__spreadValues({
27361
- category: import_typescript59.default.DiagnosticCategory.Error,
27320
+ category: import_typescript58.default.DiagnosticCategory.Error,
27362
27321
  code: ngErrorCode(ErrorCode.SYMBOL_NOT_EXPORTED),
27363
27322
  file: transitiveReference.getSourceFile()
27364
27323
  }, getPosOfDeclaration(transitiveReference)), {
@@ -27378,7 +27337,7 @@ function getPosOfDeclaration(decl) {
27378
27337
  };
27379
27338
  }
27380
27339
  function getIdentifierOfDeclaration(decl) {
27381
- if ((import_typescript59.default.isClassDeclaration(decl) || import_typescript59.default.isVariableDeclaration(decl) || import_typescript59.default.isFunctionDeclaration(decl)) && decl.name !== void 0 && import_typescript59.default.isIdentifier(decl.name)) {
27340
+ if ((import_typescript58.default.isClassDeclaration(decl) || import_typescript58.default.isVariableDeclaration(decl) || import_typescript58.default.isFunctionDeclaration(decl)) && decl.name !== void 0 && import_typescript58.default.isIdentifier(decl.name)) {
27382
27341
  return decl.name;
27383
27342
  } else {
27384
27343
  return null;
@@ -27390,13 +27349,13 @@ function getNameOfDeclaration(decl) {
27390
27349
  }
27391
27350
  function getDescriptorOfDeclaration(decl) {
27392
27351
  switch (decl.kind) {
27393
- case import_typescript59.default.SyntaxKind.ClassDeclaration:
27352
+ case import_typescript58.default.SyntaxKind.ClassDeclaration:
27394
27353
  return "class";
27395
- case import_typescript59.default.SyntaxKind.FunctionDeclaration:
27354
+ case import_typescript58.default.SyntaxKind.FunctionDeclaration:
27396
27355
  return "function";
27397
- case import_typescript59.default.SyntaxKind.VariableDeclaration:
27356
+ case import_typescript58.default.SyntaxKind.VariableDeclaration:
27398
27357
  return "variable";
27399
- case import_typescript59.default.SyntaxKind.EnumDeclaration:
27358
+ case import_typescript58.default.SyntaxKind.EnumDeclaration:
27400
27359
  return "enum";
27401
27360
  default:
27402
27361
  return "declaration";
@@ -27466,10 +27425,10 @@ var UpdateMode;
27466
27425
  })(UpdateMode || (UpdateMode = {}));
27467
27426
 
27468
27427
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
27469
- var import_typescript65 = __toESM(require("typescript"), 1);
27428
+ var import_typescript62 = __toESM(require("typescript"), 1);
27470
27429
 
27471
27430
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
27472
- var import_typescript60 = __toESM(require("typescript"), 1);
27431
+ var import_typescript59 = __toESM(require("typescript"), 1);
27473
27432
 
27474
27433
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
27475
27434
  var NgExtension = Symbol("NgExtension");
@@ -27536,15 +27495,6 @@ var TS_EXTENSIONS = /\.tsx?$/i;
27536
27495
  function makeShimFileName(fileName, suffix) {
27537
27496
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
27538
27497
  }
27539
- function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
27540
- let moduleName;
27541
- if (originalFileName.endsWith("/index.ts")) {
27542
- moduleName = originalModuleName + "/index" + genSuffix;
27543
- } else {
27544
- moduleName = originalModuleName + genSuffix;
27545
- }
27546
- return moduleName;
27547
- }
27548
27498
 
27549
27499
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
27550
27500
  var ShimAdapter = class {
@@ -27609,10 +27559,10 @@ var ShimAdapter = class {
27609
27559
  }
27610
27560
  const prefix = match[1];
27611
27561
  let baseFileName = absoluteFrom(prefix + ".ts");
27612
- let inputFile = this.delegate.getSourceFile(baseFileName, import_typescript60.default.ScriptTarget.Latest);
27562
+ let inputFile = this.delegate.getSourceFile(baseFileName, import_typescript59.default.ScriptTarget.Latest);
27613
27563
  if (inputFile === void 0) {
27614
27564
  baseFileName = absoluteFrom(prefix + ".tsx");
27615
- inputFile = this.delegate.getSourceFile(baseFileName, import_typescript60.default.ScriptTarget.Latest);
27565
+ inputFile = this.delegate.getSourceFile(baseFileName, import_typescript59.default.ScriptTarget.Latest);
27616
27566
  }
27617
27567
  if (inputFile === void 0 || isShim(inputFile)) {
27618
27568
  return void 0;
@@ -27641,166 +27591,6 @@ var ShimAdapter = class {
27641
27591
  }
27642
27592
  };
27643
27593
 
27644
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
27645
- var import_typescript62 = __toESM(require("typescript"), 1);
27646
- var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
27647
- var STRIP_NG_FACTORY = /(.*)NgFactory$/;
27648
- var FactoryGenerator = class {
27649
- constructor() {
27650
- this.sourceInfo = /* @__PURE__ */ new Map();
27651
- this.sourceToFactorySymbols = /* @__PURE__ */ new Map();
27652
- this.shouldEmit = true;
27653
- this.extensionPrefix = "ngfactory";
27654
- }
27655
- generateShimForFile(sf, genFilePath) {
27656
- const absoluteSfPath = absoluteFromSourceFile(sf);
27657
- const relativePathToSource = "./" + basename(sf.fileName).replace(TS_DTS_SUFFIX, "");
27658
- const symbolNames = sf.statements.filter(import_typescript62.default.isClassDeclaration).filter((decl) => isExported(decl) && import_typescript62.default.getDecorators(decl) !== void 0 && decl.name !== void 0).map((decl) => decl.name.text);
27659
- let sourceText = "";
27660
- const leadingComment2 = getFileoverviewComment(sf);
27661
- if (leadingComment2 !== null) {
27662
- sourceText = leadingComment2 + "\n\n";
27663
- }
27664
- if (symbolNames.length > 0) {
27665
- const varLines = symbolNames.map((name) => `export const ${name}NgFactory: i0.\u0275NgModuleFactory<any> = new i0.\u0275NgModuleFactory(${name});`);
27666
- sourceText += [
27667
- `import * as i0 from '@angular/core';`,
27668
- `import {${symbolNames.join(", ")}} from '${relativePathToSource}';`,
27669
- ...varLines
27670
- ].join("\n");
27671
- }
27672
- sourceText += "\nexport const \u0275NonEmptyModule = true;";
27673
- const genFile = import_typescript62.default.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, import_typescript62.default.ScriptKind.TS);
27674
- if (sf.moduleName !== void 0) {
27675
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngfactory");
27676
- }
27677
- const moduleSymbols = /* @__PURE__ */ new Map();
27678
- this.sourceToFactorySymbols.set(absoluteSfPath, moduleSymbols);
27679
- this.sourceInfo.set(genFilePath, {
27680
- sourceFilePath: absoluteSfPath,
27681
- moduleSymbols
27682
- });
27683
- return genFile;
27684
- }
27685
- track(sf, moduleInfo) {
27686
- if (this.sourceToFactorySymbols.has(sf.fileName)) {
27687
- this.sourceToFactorySymbols.get(sf.fileName).set(moduleInfo.name, moduleInfo);
27688
- }
27689
- }
27690
- };
27691
- function isExported(decl) {
27692
- const modifiers = import_typescript62.default.canHaveModifiers(decl) ? import_typescript62.default.getModifiers(decl) : void 0;
27693
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript62.default.SyntaxKind.ExportKeyword);
27694
- }
27695
- function generatedFactoryTransform(factoryMap, importRewriter) {
27696
- return (context) => {
27697
- return (file) => {
27698
- return transformFactorySourceFile(factoryMap, context, importRewriter, file);
27699
- };
27700
- };
27701
- }
27702
- function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
27703
- if (!factoryMap.has(file.fileName)) {
27704
- return file;
27705
- }
27706
- const { moduleSymbols, sourceFilePath } = factoryMap.get(file.fileName);
27707
- const transformedStatements = [];
27708
- let nonEmptyExport = null;
27709
- const coreImportIdentifiers = /* @__PURE__ */ new Set();
27710
- for (const stmt of file.statements) {
27711
- if (import_typescript62.default.isImportDeclaration(stmt) && import_typescript62.default.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
27712
- const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
27713
- if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
27714
- transformedStatements.push(import_typescript62.default.factory.updateImportDeclaration(stmt, import_typescript62.default.getModifiers(stmt), stmt.importClause, import_typescript62.default.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
27715
- if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && import_typescript62.default.isNamespaceImport(stmt.importClause.namedBindings)) {
27716
- coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
27717
- }
27718
- } else {
27719
- transformedStatements.push(stmt);
27720
- }
27721
- } else if (import_typescript62.default.isVariableStatement(stmt) && stmt.declarationList.declarations.length === 1) {
27722
- const decl = stmt.declarationList.declarations[0];
27723
- if (import_typescript62.default.isIdentifier(decl.name)) {
27724
- if (decl.name.text === "\u0275NonEmptyModule") {
27725
- nonEmptyExport = stmt;
27726
- continue;
27727
- }
27728
- const match = STRIP_NG_FACTORY.exec(decl.name.text);
27729
- const module3 = match ? moduleSymbols.get(match[1]) : null;
27730
- if (module3) {
27731
- transformedStatements.push(updateInitializers(stmt, (init) => init ? wrapInNoSideEffects(init) : void 0));
27732
- }
27733
- } else {
27734
- transformedStatements.push(stmt);
27735
- }
27736
- } else {
27737
- transformedStatements.push(stmt);
27738
- }
27739
- }
27740
- if (!transformedStatements.some(import_typescript62.default.isVariableStatement) && nonEmptyExport !== null) {
27741
- transformedStatements.push(nonEmptyExport);
27742
- }
27743
- file = import_typescript62.default.factory.updateSourceFile(file, transformedStatements);
27744
- if (coreImportIdentifiers.size > 0) {
27745
- const visit2 = (node) => {
27746
- node = import_typescript62.default.visitEachChild(node, (child) => visit2(child), context);
27747
- if (import_typescript62.default.isPropertyAccessExpression(node) && import_typescript62.default.isIdentifier(node.expression) && coreImportIdentifiers.has(node.expression.text)) {
27748
- const rewrittenSymbol = importRewriter.rewriteSymbol(node.name.text, "@angular/core");
27749
- if (rewrittenSymbol !== node.name.text) {
27750
- const updated = import_typescript62.default.factory.updatePropertyAccessExpression(node, node.expression, import_typescript62.default.factory.createIdentifier(rewrittenSymbol));
27751
- node = updated;
27752
- }
27753
- }
27754
- return node;
27755
- };
27756
- file = visit2(file);
27757
- }
27758
- return file;
27759
- }
27760
- function getFileoverviewComment(sourceFile) {
27761
- const text = sourceFile.getFullText();
27762
- const trivia = text.substring(0, sourceFile.getStart());
27763
- const leadingComments = import_typescript62.default.getLeadingCommentRanges(trivia, 0);
27764
- if (!leadingComments || leadingComments.length === 0) {
27765
- return null;
27766
- }
27767
- const comment = leadingComments[0];
27768
- if (comment.kind !== import_typescript62.default.SyntaxKind.MultiLineCommentTrivia) {
27769
- return null;
27770
- }
27771
- if (text.substring(comment.end, comment.end + 2) !== "\n\n") {
27772
- return null;
27773
- }
27774
- const commentText = text.substring(comment.pos, comment.end);
27775
- if (commentText.indexOf("@license") !== -1) {
27776
- return null;
27777
- }
27778
- return commentText;
27779
- }
27780
- function wrapInNoSideEffects(expr) {
27781
- const noSideEffects = import_typescript62.default.factory.createPropertyAccessExpression(import_typescript62.default.factory.createIdentifier("i0"), "\u0275noSideEffects");
27782
- return import_typescript62.default.factory.createCallExpression(
27783
- noSideEffects,
27784
- [],
27785
- [
27786
- import_typescript62.default.factory.createFunctionExpression(
27787
- [],
27788
- void 0,
27789
- void 0,
27790
- [],
27791
- [],
27792
- void 0,
27793
- import_typescript62.default.factory.createBlock([
27794
- import_typescript62.default.factory.createReturnStatement(expr)
27795
- ])
27796
- )
27797
- ]
27798
- );
27799
- }
27800
- function updateInitializers(stmt, update) {
27801
- return import_typescript62.default.factory.updateVariableStatement(stmt, import_typescript62.default.getModifiers(stmt), import_typescript62.default.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => import_typescript62.default.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
27802
- }
27803
-
27804
27594
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
27805
27595
  var ShimReferenceTagger = class {
27806
27596
  constructor(shimExtensions) {
@@ -27835,47 +27625,6 @@ var ShimReferenceTagger = class {
27835
27625
  }
27836
27626
  };
27837
27627
 
27838
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
27839
- var import_typescript64 = __toESM(require("typescript"), 1);
27840
- var SummaryGenerator = class {
27841
- constructor() {
27842
- this.shouldEmit = true;
27843
- this.extensionPrefix = "ngsummary";
27844
- }
27845
- generateShimForFile(sf, genFilePath) {
27846
- const symbolNames = [];
27847
- for (const stmt of sf.statements) {
27848
- if (import_typescript64.default.isClassDeclaration(stmt)) {
27849
- if (!isExported2(stmt) || stmt.name === void 0 || import_typescript64.default.getDecorators(stmt) === void 0) {
27850
- continue;
27851
- }
27852
- symbolNames.push(stmt.name.text);
27853
- } else if (import_typescript64.default.isExportDeclaration(stmt)) {
27854
- if (stmt.exportClause === void 0 || stmt.moduleSpecifier !== void 0 || !import_typescript64.default.isNamedExports(stmt.exportClause)) {
27855
- continue;
27856
- }
27857
- for (const specifier of stmt.exportClause.elements) {
27858
- symbolNames.push(specifier.name.text);
27859
- }
27860
- }
27861
- }
27862
- const varLines = symbolNames.map((name) => `export const ${name}NgSummary: any = null;`);
27863
- if (varLines.length === 0) {
27864
- varLines.push(`export const \u0275empty = null;`);
27865
- }
27866
- const sourceText = varLines.join("\n");
27867
- const genFile = import_typescript64.default.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, import_typescript64.default.ScriptKind.TS);
27868
- if (sf.moduleName !== void 0) {
27869
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngsummary");
27870
- }
27871
- return genFile;
27872
- }
27873
- };
27874
- function isExported2(decl) {
27875
- const modifiers = import_typescript64.default.canHaveModifiers(decl) ? import_typescript64.default.getModifiers(decl) : void 0;
27876
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript64.default.SyntaxKind.ExportKeyword) || false;
27877
- }
27878
-
27879
27628
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
27880
27629
  var DelegatingCompilerHost = class {
27881
27630
  constructor(delegate) {
@@ -27901,6 +27650,8 @@ var DelegatingCompilerHost = class {
27901
27650
  this.useCaseSensitiveFileNames = this.delegateMethod("useCaseSensitiveFileNames");
27902
27651
  this.getModuleResolutionCache = this.delegateMethod("getModuleResolutionCache");
27903
27652
  this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
27653
+ this.resolveModuleNameLiterals = this.delegateMethod("resolveModuleNameLiterals");
27654
+ this.resolveTypeReferenceDirectiveReferences = this.delegateMethod("resolveTypeReferenceDirectiveReferences");
27904
27655
  }
27905
27656
  delegateMethod(name) {
27906
27657
  return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
@@ -27966,7 +27717,7 @@ var TsCreateProgramDriver = class {
27966
27717
  this.sfMap.clear();
27967
27718
  }
27968
27719
  for (const [filePath, { newText, originalFile }] of contents.entries()) {
27969
- const sf = import_typescript65.default.createSourceFile(filePath, newText, import_typescript65.default.ScriptTarget.Latest, true);
27720
+ const sf = import_typescript62.default.createSourceFile(filePath, newText, import_typescript62.default.ScriptTarget.Latest, true);
27970
27721
  if (originalFile !== null) {
27971
27722
  sf[NgOriginalFile] = originalFile;
27972
27723
  }
@@ -27975,7 +27726,7 @@ var TsCreateProgramDriver = class {
27975
27726
  const host = new UpdatedProgramHost(this.sfMap, this.originalProgram, this.originalHost, this.shimExtensionPrefixes);
27976
27727
  const oldProgram = this.program;
27977
27728
  retagAllTsFiles(oldProgram);
27978
- this.program = import_typescript65.default.createProgram({
27729
+ this.program = import_typescript62.default.createProgram({
27979
27730
  host,
27980
27731
  rootNames: this.program.getRootFileNames(),
27981
27732
  options: this.options,
@@ -28674,7 +28425,7 @@ var NgModuleIndexImpl = class {
28674
28425
  };
28675
28426
 
28676
28427
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
28677
- var import_typescript68 = __toESM(require("typescript"), 1);
28428
+ var import_typescript65 = __toESM(require("typescript"), 1);
28678
28429
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
28679
28430
  var RESOURCE_MARKER = ".$ngresource$";
28680
28431
  var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
@@ -28786,7 +28537,7 @@ var AdapterResourceLoader = class {
28786
28537
  return this.adapter.rootDirs.map((rootDir) => join(rootDir, segment));
28787
28538
  }
28788
28539
  getResolvedCandidateLocations(url, fromFile) {
28789
- const failedLookup = import_typescript68.default.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
28540
+ const failedLookup = import_typescript65.default.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
28790
28541
  if (failedLookup.failedLookupLocations === void 0) {
28791
28542
  throw new Error(`Internal error: expected to find failedLookupLocations during resolution of resource '${url}' in context of ${fromFile}`);
28792
28543
  }
@@ -28942,7 +28693,7 @@ var SymbolKind;
28942
28693
  })(SymbolKind || (SymbolKind = {}));
28943
28694
 
28944
28695
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
28945
- var import_typescript69 = __toESM(require("typescript"), 1);
28696
+ var import_typescript66 = __toESM(require("typescript"), 1);
28946
28697
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
28947
28698
  var _a;
28948
28699
  if (mapping.type === "direct") {
@@ -28951,7 +28702,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28951
28702
  relatedInformation = [];
28952
28703
  for (const relatedMessage of relatedMessages) {
28953
28704
  relatedInformation.push({
28954
- category: import_typescript69.default.DiagnosticCategory.Message,
28705
+ category: import_typescript66.default.DiagnosticCategory.Message,
28955
28706
  code: 0,
28956
28707
  file: relatedMessage.sourceFile,
28957
28708
  start: relatedMessage.start,
@@ -28980,7 +28731,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28980
28731
  if (relatedMessages !== void 0) {
28981
28732
  for (const relatedMessage of relatedMessages) {
28982
28733
  relatedInformation.push({
28983
- category: import_typescript69.default.DiagnosticCategory.Message,
28734
+ category: import_typescript66.default.DiagnosticCategory.Message,
28984
28735
  code: 0,
28985
28736
  file: relatedMessage.sourceFile,
28986
28737
  start: relatedMessage.start,
@@ -29010,7 +28761,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
29010
28761
  };
29011
28762
  }
29012
28763
  relatedInformation.push({
29013
- category: import_typescript69.default.DiagnosticCategory.Message,
28764
+ category: import_typescript66.default.DiagnosticCategory.Message,
29014
28765
  code: 0,
29015
28766
  file: componentSf,
29016
28767
  start: mapping.node.getStart(),
@@ -29045,7 +28796,7 @@ function parseTemplateAsSourceFile(fileName, template) {
29045
28796
  if (parseTemplateAsSourceFileForTest !== null) {
29046
28797
  return parseTemplateAsSourceFileForTest(fileName, template);
29047
28798
  }
29048
- return import_typescript69.default.createSourceFile(fileName, template, import_typescript69.default.ScriptTarget.Latest, false, import_typescript69.default.ScriptKind.JSX);
28799
+ return import_typescript66.default.createSourceFile(fileName, template, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
29049
28800
  }
29050
28801
 
29051
28802
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
@@ -29066,14 +28817,14 @@ function allocateTemplateId(sf) {
29066
28817
  }
29067
28818
 
29068
28819
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
29069
- var import_typescript71 = __toESM(require("typescript"), 1);
28820
+ var import_typescript68 = __toESM(require("typescript"), 1);
29070
28821
 
29071
28822
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
29072
- var import_typescript70 = __toESM(require("typescript"), 1);
28823
+ var import_typescript67 = __toESM(require("typescript"), 1);
29073
28824
  var parseSpanComment = /^(\d+),(\d+)$/;
29074
28825
  function readSpanComment(node, sourceFile = node.getSourceFile()) {
29075
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29076
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28826
+ return import_typescript67.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28827
+ if (kind !== import_typescript67.default.SyntaxKind.MultiLineCommentTrivia) {
29077
28828
  return null;
29078
28829
  }
29079
28830
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29096,25 +28847,25 @@ var ExpressionIdentifier;
29096
28847
  ExpressionIdentifier2["EVENT_PARAMETER"] = "EP";
29097
28848
  })(ExpressionIdentifier || (ExpressionIdentifier = {}));
29098
28849
  function addExpressionIdentifier(node, identifier) {
29099
- import_typescript70.default.addSyntheticTrailingComment(
28850
+ import_typescript67.default.addSyntheticTrailingComment(
29100
28851
  node,
29101
- import_typescript70.default.SyntaxKind.MultiLineCommentTrivia,
28852
+ import_typescript67.default.SyntaxKind.MultiLineCommentTrivia,
29102
28853
  `${CommentTriviaType.EXPRESSION_TYPE_IDENTIFIER}:${identifier}`,
29103
28854
  false
29104
28855
  );
29105
28856
  }
29106
28857
  var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
29107
28858
  function markIgnoreDiagnostics(node) {
29108
- import_typescript70.default.addSyntheticTrailingComment(
28859
+ import_typescript67.default.addSyntheticTrailingComment(
29109
28860
  node,
29110
- import_typescript70.default.SyntaxKind.MultiLineCommentTrivia,
28861
+ import_typescript67.default.SyntaxKind.MultiLineCommentTrivia,
29111
28862
  IGNORE_FOR_DIAGNOSTICS_MARKER,
29112
28863
  false
29113
28864
  );
29114
28865
  }
29115
28866
  function hasIgnoreForDiagnosticsMarker(node, sourceFile) {
29116
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29117
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28867
+ return import_typescript67.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28868
+ if (kind !== import_typescript67.default.SyntaxKind.MultiLineCommentTrivia) {
29118
28869
  return null;
29119
28870
  }
29120
28871
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29188,8 +28939,8 @@ function findAllMatchingNodes(tcb, opts) {
29188
28939
  return results;
29189
28940
  }
29190
28941
  function hasExpressionIdentifier(sourceFile, node, identifier) {
29191
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29192
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28942
+ return import_typescript67.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28943
+ if (kind !== import_typescript67.default.SyntaxKind.MultiLineCommentTrivia) {
29193
28944
  return false;
29194
28945
  }
29195
28946
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29207,7 +28958,7 @@ var CompletionEngine = class {
29207
28958
  this.templateContextCache = /* @__PURE__ */ new Map();
29208
28959
  this.expressionCompletionCache = /* @__PURE__ */ new Map();
29209
28960
  const globalRead = findFirstMatchingNode(this.tcb, {
29210
- filter: import_typescript71.default.isPropertyAccessExpression,
28961
+ filter: import_typescript68.default.isPropertyAccessExpression,
29211
28962
  withExpressionIdentifier: ExpressionIdentifier.COMPONENT_COMPLETION
29212
28963
  });
29213
28964
  if (globalRead !== null) {
@@ -29231,7 +28982,7 @@ var CompletionEngine = class {
29231
28982
  let nodeContext = null;
29232
28983
  if (node instanceof EmptyExpr) {
29233
28984
  const nodeLocation = findFirstMatchingNode(this.tcb, {
29234
- filter: import_typescript71.default.isIdentifier,
28985
+ filter: import_typescript68.default.isIdentifier,
29235
28986
  withSpan: node.sourceSpan
29236
28987
  });
29237
28988
  if (nodeLocation !== null) {
@@ -29244,7 +28995,7 @@ var CompletionEngine = class {
29244
28995
  }
29245
28996
  if (node instanceof PropertyRead && node.receiver instanceof ImplicitReceiver) {
29246
28997
  const nodeLocation = findFirstMatchingNode(this.tcb, {
29247
- filter: import_typescript71.default.isPropertyAccessExpression,
28998
+ filter: import_typescript68.default.isPropertyAccessExpression,
29248
28999
  withSpan: node.sourceSpan
29249
29000
  });
29250
29001
  if (nodeLocation) {
@@ -29268,21 +29019,21 @@ var CompletionEngine = class {
29268
29019
  let tsExpr = null;
29269
29020
  if (expr instanceof PropertyRead || expr instanceof PropertyWrite) {
29270
29021
  tsExpr = findFirstMatchingNode(this.tcb, {
29271
- filter: import_typescript71.default.isPropertyAccessExpression,
29022
+ filter: import_typescript68.default.isPropertyAccessExpression,
29272
29023
  withSpan: expr.nameSpan
29273
29024
  });
29274
29025
  } else if (expr instanceof SafePropertyRead) {
29275
29026
  const ternaryExpr = findFirstMatchingNode(this.tcb, {
29276
- filter: import_typescript71.default.isParenthesizedExpression,
29027
+ filter: import_typescript68.default.isParenthesizedExpression,
29277
29028
  withSpan: expr.sourceSpan
29278
29029
  });
29279
- if (ternaryExpr === null || !import_typescript71.default.isConditionalExpression(ternaryExpr.expression)) {
29030
+ if (ternaryExpr === null || !import_typescript68.default.isConditionalExpression(ternaryExpr.expression)) {
29280
29031
  return null;
29281
29032
  }
29282
29033
  const whenTrue = ternaryExpr.expression.whenTrue;
29283
- if (import_typescript71.default.isPropertyAccessExpression(whenTrue)) {
29034
+ if (import_typescript68.default.isPropertyAccessExpression(whenTrue)) {
29284
29035
  tsExpr = whenTrue;
29285
- } else if (import_typescript71.default.isCallExpression(whenTrue) && import_typescript71.default.isPropertyAccessExpression(whenTrue.expression)) {
29036
+ } else if (import_typescript68.default.isCallExpression(whenTrue) && import_typescript68.default.isPropertyAccessExpression(whenTrue.expression)) {
29286
29037
  tsExpr = whenTrue.expression;
29287
29038
  }
29288
29039
  }
@@ -29304,15 +29055,15 @@ var CompletionEngine = class {
29304
29055
  let tsExpr = null;
29305
29056
  if (expr instanceof TextAttribute) {
29306
29057
  const strNode = findFirstMatchingNode(this.tcb, {
29307
- filter: import_typescript71.default.isParenthesizedExpression,
29058
+ filter: import_typescript68.default.isParenthesizedExpression,
29308
29059
  withSpan: expr.sourceSpan
29309
29060
  });
29310
- if (strNode !== null && import_typescript71.default.isStringLiteral(strNode.expression)) {
29061
+ if (strNode !== null && import_typescript68.default.isStringLiteral(strNode.expression)) {
29311
29062
  tsExpr = strNode.expression;
29312
29063
  }
29313
29064
  } else {
29314
29065
  tsExpr = findFirstMatchingNode(this.tcb, {
29315
- filter: (n) => import_typescript71.default.isStringLiteral(n) || import_typescript71.default.isNumericLiteral(n),
29066
+ filter: (n) => import_typescript68.default.isStringLiteral(n) || import_typescript68.default.isNumericLiteral(n),
29316
29067
  withSpan: expr.sourceSpan
29317
29068
  });
29318
29069
  }
@@ -29320,7 +29071,7 @@ var CompletionEngine = class {
29320
29071
  return null;
29321
29072
  }
29322
29073
  let positionInShimFile = tsExpr.getEnd();
29323
- if (import_typescript71.default.isStringLiteral(tsExpr)) {
29074
+ if (import_typescript68.default.isStringLiteral(tsExpr)) {
29324
29075
  positionInShimFile -= 1;
29325
29076
  }
29326
29077
  const res = {
@@ -29355,10 +29106,10 @@ var CompletionEngine = class {
29355
29106
  };
29356
29107
 
29357
29108
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
29358
- var import_typescript86 = __toESM(require("typescript"), 1);
29109
+ var import_typescript83 = __toESM(require("typescript"), 1);
29359
29110
 
29360
29111
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
29361
- var import_typescript72 = __toESM(require("typescript"), 1);
29112
+ var import_typescript69 = __toESM(require("typescript"), 1);
29362
29113
  var REGISTRY = new DomElementSchemaRegistry();
29363
29114
  var REMOVE_XHTML_REGEX = /^:xhtml:/;
29364
29115
  var RegistryDomSchemaChecker = class {
@@ -29383,7 +29134,7 @@ var RegistryDomSchemaChecker = class {
29383
29134
  } else {
29384
29135
  errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
29385
29136
  }
29386
- const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, import_typescript72.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
29137
+ const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, import_typescript69.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
29387
29138
  this._diagnostics.push(diag);
29388
29139
  }
29389
29140
  }
@@ -29403,100 +29154,100 @@ var RegistryDomSchemaChecker = class {
29403
29154
  2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.
29404
29155
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
29405
29156
  }
29406
- const diag = makeTemplateDiagnostic(id, mapping, span, import_typescript72.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
29157
+ const diag = makeTemplateDiagnostic(id, mapping, span, import_typescript69.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
29407
29158
  this._diagnostics.push(diag);
29408
29159
  }
29409
29160
  }
29410
29161
  };
29411
29162
 
29412
29163
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
29413
- var import_typescript79 = __toESM(require("typescript"), 1);
29164
+ var import_typescript76 = __toESM(require("typescript"), 1);
29414
29165
 
29415
29166
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
29416
- var import_typescript73 = __toESM(require("typescript"), 1);
29167
+ var import_typescript70 = __toESM(require("typescript"), 1);
29417
29168
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
29418
- import_typescript73.default.SyntaxKind.ParenthesizedExpression,
29419
- import_typescript73.default.SyntaxKind.Identifier,
29420
- import_typescript73.default.SyntaxKind.CallExpression,
29421
- import_typescript73.default.SyntaxKind.NonNullExpression,
29422
- import_typescript73.default.SyntaxKind.ElementAccessExpression,
29423
- import_typescript73.default.SyntaxKind.PropertyAccessExpression,
29424
- import_typescript73.default.SyntaxKind.ArrayLiteralExpression,
29425
- import_typescript73.default.SyntaxKind.ObjectLiteralExpression,
29426
- import_typescript73.default.SyntaxKind.StringLiteral,
29427
- import_typescript73.default.SyntaxKind.NumericLiteral,
29428
- import_typescript73.default.SyntaxKind.TrueKeyword,
29429
- import_typescript73.default.SyntaxKind.FalseKeyword,
29430
- import_typescript73.default.SyntaxKind.NullKeyword,
29431
- import_typescript73.default.SyntaxKind.UndefinedKeyword
29169
+ import_typescript70.default.SyntaxKind.ParenthesizedExpression,
29170
+ import_typescript70.default.SyntaxKind.Identifier,
29171
+ import_typescript70.default.SyntaxKind.CallExpression,
29172
+ import_typescript70.default.SyntaxKind.NonNullExpression,
29173
+ import_typescript70.default.SyntaxKind.ElementAccessExpression,
29174
+ import_typescript70.default.SyntaxKind.PropertyAccessExpression,
29175
+ import_typescript70.default.SyntaxKind.ArrayLiteralExpression,
29176
+ import_typescript70.default.SyntaxKind.ObjectLiteralExpression,
29177
+ import_typescript70.default.SyntaxKind.StringLiteral,
29178
+ import_typescript70.default.SyntaxKind.NumericLiteral,
29179
+ import_typescript70.default.SyntaxKind.TrueKeyword,
29180
+ import_typescript70.default.SyntaxKind.FalseKeyword,
29181
+ import_typescript70.default.SyntaxKind.NullKeyword,
29182
+ import_typescript70.default.SyntaxKind.UndefinedKeyword
29432
29183
  ]);
29433
29184
  function tsCastToAny(expr) {
29434
29185
  if (!SAFE_TO_CAST_WITHOUT_PARENS.has(expr.kind)) {
29435
- expr = import_typescript73.default.factory.createParenthesizedExpression(expr);
29186
+ expr = import_typescript70.default.factory.createParenthesizedExpression(expr);
29436
29187
  }
29437
- return import_typescript73.default.factory.createParenthesizedExpression(import_typescript73.default.factory.createAsExpression(expr, import_typescript73.default.factory.createKeywordTypeNode(import_typescript73.default.SyntaxKind.AnyKeyword)));
29188
+ return import_typescript70.default.factory.createParenthesizedExpression(import_typescript70.default.factory.createAsExpression(expr, import_typescript70.default.factory.createKeywordTypeNode(import_typescript70.default.SyntaxKind.AnyKeyword)));
29438
29189
  }
29439
29190
  function tsCreateElement(tagName) {
29440
- const createElement = import_typescript73.default.factory.createPropertyAccessExpression(
29441
- import_typescript73.default.factory.createIdentifier("document"),
29191
+ const createElement = import_typescript70.default.factory.createPropertyAccessExpression(
29192
+ import_typescript70.default.factory.createIdentifier("document"),
29442
29193
  "createElement"
29443
29194
  );
29444
- return import_typescript73.default.factory.createCallExpression(
29195
+ return import_typescript70.default.factory.createCallExpression(
29445
29196
  createElement,
29446
29197
  void 0,
29447
- [import_typescript73.default.factory.createStringLiteral(tagName)]
29198
+ [import_typescript70.default.factory.createStringLiteral(tagName)]
29448
29199
  );
29449
29200
  }
29450
29201
  function tsDeclareVariable(id, type) {
29451
- const decl = import_typescript73.default.factory.createVariableDeclaration(
29202
+ const decl = import_typescript70.default.factory.createVariableDeclaration(
29452
29203
  id,
29453
29204
  void 0,
29454
29205
  type,
29455
- import_typescript73.default.factory.createNonNullExpression(import_typescript73.default.factory.createNull())
29206
+ import_typescript70.default.factory.createNonNullExpression(import_typescript70.default.factory.createNull())
29456
29207
  );
29457
- return import_typescript73.default.factory.createVariableStatement(
29208
+ return import_typescript70.default.factory.createVariableStatement(
29458
29209
  void 0,
29459
29210
  [decl]
29460
29211
  );
29461
29212
  }
29462
29213
  function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
29463
- return import_typescript73.default.factory.createTypeQueryNode(import_typescript73.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
29214
+ return import_typescript70.default.factory.createTypeQueryNode(import_typescript70.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
29464
29215
  }
29465
29216
  function tsCreateVariable(id, initializer) {
29466
- const decl = import_typescript73.default.factory.createVariableDeclaration(
29217
+ const decl = import_typescript70.default.factory.createVariableDeclaration(
29467
29218
  id,
29468
29219
  void 0,
29469
29220
  void 0,
29470
29221
  initializer
29471
29222
  );
29472
- return import_typescript73.default.factory.createVariableStatement(
29223
+ return import_typescript70.default.factory.createVariableStatement(
29473
29224
  void 0,
29474
29225
  [decl]
29475
29226
  );
29476
29227
  }
29477
29228
  function tsCallMethod(receiver, methodName, args = []) {
29478
- const methodAccess = import_typescript73.default.factory.createPropertyAccessExpression(receiver, methodName);
29479
- return import_typescript73.default.factory.createCallExpression(
29229
+ const methodAccess = import_typescript70.default.factory.createPropertyAccessExpression(receiver, methodName);
29230
+ return import_typescript70.default.factory.createCallExpression(
29480
29231
  methodAccess,
29481
29232
  void 0,
29482
29233
  args
29483
29234
  );
29484
29235
  }
29485
29236
  function isAccessExpression(node) {
29486
- return import_typescript73.default.isPropertyAccessExpression(node) || import_typescript73.default.isElementAccessExpression(node);
29237
+ return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
29487
29238
  }
29488
29239
 
29489
29240
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
29490
- var import_typescript78 = __toESM(require("typescript"), 1);
29241
+ var import_typescript75 = __toESM(require("typescript"), 1);
29491
29242
 
29492
29243
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
29493
- var import_typescript76 = __toESM(require("typescript"), 1);
29244
+ var import_typescript73 = __toESM(require("typescript"), 1);
29494
29245
 
29495
29246
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
29496
- var import_typescript75 = __toESM(require("typescript"), 1);
29247
+ var import_typescript72 = __toESM(require("typescript"), 1);
29497
29248
 
29498
29249
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
29499
- var import_typescript74 = __toESM(require("typescript"), 1);
29250
+ var import_typescript71 = __toESM(require("typescript"), 1);
29500
29251
  var INELIGIBLE = {};
29501
29252
  function canEmitType(type, canEmit) {
29502
29253
  return canEmitTypeWorker(type);
@@ -29504,13 +29255,13 @@ function canEmitType(type, canEmit) {
29504
29255
  return visitNode(type2) !== INELIGIBLE;
29505
29256
  }
29506
29257
  function visitNode(node) {
29507
- if (import_typescript74.default.isImportTypeNode(node)) {
29258
+ if (import_typescript71.default.isImportTypeNode(node)) {
29508
29259
  return INELIGIBLE;
29509
29260
  }
29510
- if (import_typescript74.default.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
29261
+ if (import_typescript71.default.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
29511
29262
  return INELIGIBLE;
29512
29263
  } else {
29513
- return import_typescript74.default.forEachChild(node, visitNode);
29264
+ return import_typescript71.default.forEachChild(node, visitNode);
29514
29265
  }
29515
29266
  }
29516
29267
  function canEmitTypeReference(type2) {
@@ -29527,35 +29278,35 @@ var TypeEmitter = class {
29527
29278
  emitType(type) {
29528
29279
  const typeReferenceTransformer = (context) => {
29529
29280
  const visitNode = (node) => {
29530
- if (import_typescript74.default.isImportTypeNode(node)) {
29281
+ if (import_typescript71.default.isImportTypeNode(node)) {
29531
29282
  throw new Error("Unable to emit import type");
29532
29283
  }
29533
- if (import_typescript74.default.isTypeReferenceNode(node)) {
29284
+ if (import_typescript71.default.isTypeReferenceNode(node)) {
29534
29285
  return this.emitTypeReference(node);
29535
- } else if (import_typescript74.default.isLiteralExpression(node)) {
29286
+ } else if (import_typescript71.default.isLiteralExpression(node)) {
29536
29287
  let clone;
29537
- if (import_typescript74.default.isStringLiteral(node)) {
29538
- clone = import_typescript74.default.factory.createStringLiteral(node.text);
29539
- } else if (import_typescript74.default.isNumericLiteral(node)) {
29540
- clone = import_typescript74.default.factory.createNumericLiteral(node.text);
29541
- } else if (import_typescript74.default.isBigIntLiteral(node)) {
29542
- clone = import_typescript74.default.factory.createBigIntLiteral(node.text);
29543
- } else if (import_typescript74.default.isNoSubstitutionTemplateLiteral(node)) {
29544
- clone = import_typescript74.default.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
29545
- } else if (import_typescript74.default.isRegularExpressionLiteral(node)) {
29546
- clone = import_typescript74.default.factory.createRegularExpressionLiteral(node.text);
29288
+ if (import_typescript71.default.isStringLiteral(node)) {
29289
+ clone = import_typescript71.default.factory.createStringLiteral(node.text);
29290
+ } else if (import_typescript71.default.isNumericLiteral(node)) {
29291
+ clone = import_typescript71.default.factory.createNumericLiteral(node.text);
29292
+ } else if (import_typescript71.default.isBigIntLiteral(node)) {
29293
+ clone = import_typescript71.default.factory.createBigIntLiteral(node.text);
29294
+ } else if (import_typescript71.default.isNoSubstitutionTemplateLiteral(node)) {
29295
+ clone = import_typescript71.default.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
29296
+ } else if (import_typescript71.default.isRegularExpressionLiteral(node)) {
29297
+ clone = import_typescript71.default.factory.createRegularExpressionLiteral(node.text);
29547
29298
  } else {
29548
- throw new Error(`Unsupported literal kind ${import_typescript74.default.SyntaxKind[node.kind]}`);
29299
+ throw new Error(`Unsupported literal kind ${import_typescript71.default.SyntaxKind[node.kind]}`);
29549
29300
  }
29550
- import_typescript74.default.setTextRange(clone, { pos: -1, end: -1 });
29301
+ import_typescript71.default.setTextRange(clone, { pos: -1, end: -1 });
29551
29302
  return clone;
29552
29303
  } else {
29553
- return import_typescript74.default.visitEachChild(node, visitNode, context);
29304
+ return import_typescript71.default.visitEachChild(node, visitNode, context);
29554
29305
  }
29555
29306
  };
29556
- return (node) => import_typescript74.default.visitNode(node, visitNode);
29307
+ return (node) => import_typescript71.default.visitNode(node, visitNode, import_typescript71.default.isTypeNode);
29557
29308
  };
29558
- return import_typescript74.default.transform(type, [typeReferenceTransformer]).transformed[0];
29309
+ return import_typescript71.default.transform(type, [typeReferenceTransformer]).transformed[0];
29559
29310
  }
29560
29311
  emitTypeReference(type) {
29561
29312
  const translatedType = this.translator(type);
@@ -29564,9 +29315,9 @@ var TypeEmitter = class {
29564
29315
  }
29565
29316
  let typeArguments = void 0;
29566
29317
  if (type.typeArguments !== void 0) {
29567
- typeArguments = import_typescript74.default.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
29318
+ typeArguments = import_typescript71.default.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
29568
29319
  }
29569
- return import_typescript74.default.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
29320
+ return import_typescript71.default.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
29570
29321
  }
29571
29322
  };
29572
29323
 
@@ -29607,11 +29358,11 @@ var TypeParameterEmitter = class {
29607
29358
  return this.typeParameters.map((typeParam) => {
29608
29359
  const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
29609
29360
  const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
29610
- return import_typescript75.default.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
29361
+ return import_typescript72.default.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
29611
29362
  });
29612
29363
  }
29613
29364
  resolveTypeReference(type) {
29614
- const target = import_typescript75.default.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
29365
+ const target = import_typescript72.default.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
29615
29366
  const declaration = this.reflector.getDeclarationOfIdentifier(target);
29616
29367
  if (declaration === null || declaration.node === null) {
29617
29368
  return null;
@@ -29637,8 +29388,8 @@ var TypeParameterEmitter = class {
29637
29388
  if (typeNode === null) {
29638
29389
  return null;
29639
29390
  }
29640
- if (!import_typescript75.default.isTypeReferenceNode(typeNode)) {
29641
- throw new Error(`Expected TypeReferenceNode for emitted reference, got ${import_typescript75.default.SyntaxKind[typeNode.kind]}.`);
29391
+ if (!import_typescript72.default.isTypeReferenceNode(typeNode)) {
29392
+ throw new Error(`Expected TypeReferenceNode for emitted reference, got ${import_typescript72.default.SyntaxKind[typeNode.kind]}.`);
29642
29393
  }
29643
29394
  return typeNode;
29644
29395
  }
@@ -29680,14 +29431,14 @@ function getTemplateMapping(shimSf, position, resolver, isDiagnosticRequest) {
29680
29431
  }
29681
29432
  function findTypeCheckBlock(file, id, isDiagnosticRequest) {
29682
29433
  for (const stmt of file.statements) {
29683
- if (import_typescript76.default.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
29434
+ if (import_typescript73.default.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
29684
29435
  return stmt;
29685
29436
  }
29686
29437
  }
29687
29438
  return null;
29688
29439
  }
29689
29440
  function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
29690
- while (node !== void 0 && !import_typescript76.default.isFunctionDeclaration(node)) {
29441
+ while (node !== void 0 && !import_typescript73.default.isFunctionDeclaration(node)) {
29691
29442
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticsRequest) {
29692
29443
  return null;
29693
29444
  }
@@ -29704,7 +29455,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
29704
29455
  return null;
29705
29456
  }
29706
29457
  function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
29707
- while (!import_typescript76.default.isFunctionDeclaration(node)) {
29458
+ while (!import_typescript73.default.isFunctionDeclaration(node)) {
29708
29459
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticRequest) {
29709
29460
  return null;
29710
29461
  }
@@ -29714,8 +29465,8 @@ function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
29714
29465
  }
29715
29466
  }
29716
29467
  const start = node.getFullStart();
29717
- return import_typescript76.default.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
29718
- if (kind !== import_typescript76.default.SyntaxKind.MultiLineCommentTrivia) {
29468
+ return import_typescript73.default.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
29469
+ if (kind !== import_typescript73.default.SyntaxKind.MultiLineCommentTrivia) {
29719
29470
  return null;
29720
29471
  }
29721
29472
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29730,29 +29481,29 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
29730
29481
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
29731
29482
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
29732
29483
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
29733
- const rawType = import_typescript78.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
29484
+ const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
29734
29485
  const initParam = constructTypeCtorParameter(node, meta, rawType);
29735
29486
  const typeParameters = typeParametersWithDefaultTypes(typeParams);
29736
29487
  if (meta.body) {
29737
- const fnType = import_typescript78.default.factory.createFunctionTypeNode(
29488
+ const fnType = import_typescript75.default.factory.createFunctionTypeNode(
29738
29489
  typeParameters,
29739
29490
  [initParam],
29740
29491
  rawType
29741
29492
  );
29742
- const decl = import_typescript78.default.factory.createVariableDeclaration(
29493
+ const decl = import_typescript75.default.factory.createVariableDeclaration(
29743
29494
  meta.fnName,
29744
29495
  void 0,
29745
29496
  fnType,
29746
- import_typescript78.default.factory.createNonNullExpression(import_typescript78.default.factory.createNull())
29497
+ import_typescript75.default.factory.createNonNullExpression(import_typescript75.default.factory.createNull())
29747
29498
  );
29748
- const declList = import_typescript78.default.factory.createVariableDeclarationList([decl], import_typescript78.default.NodeFlags.Const);
29749
- return import_typescript78.default.factory.createVariableStatement(
29499
+ const declList = import_typescript75.default.factory.createVariableDeclarationList([decl], import_typescript75.default.NodeFlags.Const);
29500
+ return import_typescript75.default.factory.createVariableStatement(
29750
29501
  void 0,
29751
29502
  declList
29752
29503
  );
29753
29504
  } else {
29754
- return createFunctionDeclaration(
29755
- [import_typescript78.default.factory.createModifier(import_typescript78.default.SyntaxKind.DeclareKeyword)],
29505
+ return import_typescript75.default.factory.createFunctionDeclaration(
29506
+ [import_typescript75.default.factory.createModifier(import_typescript75.default.SyntaxKind.DeclareKeyword)],
29756
29507
  void 0,
29757
29508
  meta.fnName,
29758
29509
  typeParameters,
@@ -29764,16 +29515,16 @@ function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
29764
29515
  }
29765
29516
  function generateInlineTypeCtor(node, meta) {
29766
29517
  const rawTypeArgs = node.typeParameters !== void 0 ? generateGenericArgs(node.typeParameters) : void 0;
29767
- const rawType = import_typescript78.default.factory.createTypeReferenceNode(node.name, rawTypeArgs);
29518
+ const rawType = import_typescript75.default.factory.createTypeReferenceNode(node.name, rawTypeArgs);
29768
29519
  const initParam = constructTypeCtorParameter(node, meta, rawType);
29769
29520
  let body = void 0;
29770
29521
  if (meta.body) {
29771
- body = import_typescript78.default.factory.createBlock([
29772
- import_typescript78.default.factory.createReturnStatement(import_typescript78.default.factory.createNonNullExpression(import_typescript78.default.factory.createNull()))
29522
+ body = import_typescript75.default.factory.createBlock([
29523
+ import_typescript75.default.factory.createReturnStatement(import_typescript75.default.factory.createNonNullExpression(import_typescript75.default.factory.createNull()))
29773
29524
  ]);
29774
29525
  }
29775
- return import_typescript78.default.factory.createMethodDeclaration(
29776
- [import_typescript78.default.factory.createModifier(import_typescript78.default.SyntaxKind.StaticKeyword)],
29526
+ return import_typescript75.default.factory.createMethodDeclaration(
29527
+ [import_typescript75.default.factory.createModifier(import_typescript75.default.SyntaxKind.StaticKeyword)],
29777
29528
  void 0,
29778
29529
  meta.fnName,
29779
29530
  void 0,
@@ -29790,9 +29541,9 @@ function constructTypeCtorParameter(node, meta, rawType) {
29790
29541
  const coercedKeys = [];
29791
29542
  for (const key of keys) {
29792
29543
  if (!meta.coercedInputFields.has(key)) {
29793
- plainKeys.push(import_typescript78.default.factory.createLiteralTypeNode(import_typescript78.default.factory.createStringLiteral(key)));
29544
+ plainKeys.push(import_typescript75.default.factory.createLiteralTypeNode(import_typescript75.default.factory.createStringLiteral(key)));
29794
29545
  } else {
29795
- coercedKeys.push(import_typescript78.default.factory.createPropertySignature(
29546
+ coercedKeys.push(import_typescript75.default.factory.createPropertySignature(
29796
29547
  void 0,
29797
29548
  key,
29798
29549
  void 0,
@@ -29801,17 +29552,17 @@ function constructTypeCtorParameter(node, meta, rawType) {
29801
29552
  }
29802
29553
  }
29803
29554
  if (plainKeys.length > 0) {
29804
- const keyTypeUnion = import_typescript78.default.factory.createUnionTypeNode(plainKeys);
29805
- initType = import_typescript78.default.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
29555
+ const keyTypeUnion = import_typescript75.default.factory.createUnionTypeNode(plainKeys);
29556
+ initType = import_typescript75.default.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
29806
29557
  }
29807
29558
  if (coercedKeys.length > 0) {
29808
- const coercedLiteral = import_typescript78.default.factory.createTypeLiteralNode(coercedKeys);
29809
- initType = initType !== null ? import_typescript78.default.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
29559
+ const coercedLiteral = import_typescript75.default.factory.createTypeLiteralNode(coercedKeys);
29560
+ initType = initType !== null ? import_typescript75.default.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
29810
29561
  }
29811
29562
  if (initType === null) {
29812
- initType = import_typescript78.default.factory.createTypeLiteralNode([]);
29563
+ initType = import_typescript75.default.factory.createTypeLiteralNode([]);
29813
29564
  }
29814
- return createParameterDeclaration(
29565
+ return import_typescript75.default.factory.createParameterDeclaration(
29815
29566
  void 0,
29816
29567
  void 0,
29817
29568
  "init",
@@ -29821,7 +29572,7 @@ function constructTypeCtorParameter(node, meta, rawType) {
29821
29572
  );
29822
29573
  }
29823
29574
  function generateGenericArgs(params) {
29824
- return params.map((param) => import_typescript78.default.factory.createTypeReferenceNode(param.name, void 0));
29575
+ return params.map((param) => import_typescript75.default.factory.createTypeReferenceNode(param.name, void 0));
29825
29576
  }
29826
29577
  function requiresInlineTypeCtor(node, host, env) {
29827
29578
  return !checkIfGenericTypeBoundsCanBeEmitted(node, host, env);
@@ -29832,7 +29583,7 @@ function typeParametersWithDefaultTypes(params) {
29832
29583
  }
29833
29584
  return params.map((param) => {
29834
29585
  if (param.default === void 0) {
29835
- return import_typescript78.default.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, import_typescript78.default.factory.createKeywordTypeNode(import_typescript78.default.SyntaxKind.AnyKeyword));
29586
+ return import_typescript75.default.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, import_typescript75.default.factory.createKeywordTypeNode(import_typescript75.default.SyntaxKind.AnyKeyword));
29836
29587
  } else {
29837
29588
  return param;
29838
29589
  }
@@ -29864,13 +29615,13 @@ var Environment = class {
29864
29615
  }
29865
29616
  if (requiresInlineTypeCtor(node, this.reflector, this)) {
29866
29617
  const ref = this.reference(dirRef);
29867
- const typeCtorExpr = import_typescript79.default.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
29618
+ const typeCtorExpr = import_typescript76.default.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
29868
29619
  this.typeCtors.set(node, typeCtorExpr);
29869
29620
  return typeCtorExpr;
29870
29621
  } else {
29871
29622
  const fnName = `_ctor${this.nextIds.typeCtor++}`;
29872
29623
  const nodeTypeRef = this.referenceType(dirRef);
29873
- if (!import_typescript79.default.isTypeReferenceNode(nodeTypeRef)) {
29624
+ if (!import_typescript76.default.isTypeReferenceNode(nodeTypeRef)) {
29874
29625
  throw new Error(`Expected TypeReferenceNode from reference to ${dirRef.debugName}`);
29875
29626
  }
29876
29627
  const meta = {
@@ -29886,7 +29637,7 @@ var Environment = class {
29886
29637
  const typeParams = this.emitTypeParameters(node);
29887
29638
  const typeCtor = generateTypeCtorDeclarationFn(node, meta, nodeTypeRef.typeName, typeParams);
29888
29639
  this.typeCtorStatements.push(typeCtor);
29889
- const fnId = import_typescript79.default.factory.createIdentifier(fnName);
29640
+ const fnId = import_typescript76.default.factory.createIdentifier(fnName);
29890
29641
  this.typeCtors.set(node, fnId);
29891
29642
  return fnId;
29892
29643
  }
@@ -29896,7 +29647,7 @@ var Environment = class {
29896
29647
  return this.pipeInsts.get(ref.node);
29897
29648
  }
29898
29649
  const pipeType = this.referenceType(ref);
29899
- const pipeInstId = import_typescript79.default.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
29650
+ const pipeInstId = import_typescript76.default.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
29900
29651
  this.pipeInstStatements.push(tsDeclareVariable(pipeInstId, pipeType));
29901
29652
  this.pipeInsts.set(ref.node, pipeInstId);
29902
29653
  return pipeInstId;
@@ -29932,7 +29683,7 @@ var Environment = class {
29932
29683
  };
29933
29684
 
29934
29685
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
29935
- var import_typescript80 = __toESM(require("typescript"), 1);
29686
+ var import_typescript77 = __toESM(require("typescript"), 1);
29936
29687
  var OutOfBandDiagnosticRecorderImpl = class {
29937
29688
  constructor(resolver) {
29938
29689
  this.resolver = resolver;
@@ -29946,7 +29697,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29946
29697
  const mapping = this.resolver.getSourceMapping(templateId);
29947
29698
  const value = ref.value.trim();
29948
29699
  const errorMsg = `No directive found with exportAs '${value}'.`;
29949
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
29700
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
29950
29701
  }
29951
29702
  missingPipe(templateId, ast) {
29952
29703
  if (this.recordedPipes.has(ast)) {
@@ -29958,7 +29709,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29958
29709
  if (sourceSpan === null) {
29959
29710
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
29960
29711
  }
29961
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
29712
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
29962
29713
  this.recordedPipes.add(ast);
29963
29714
  }
29964
29715
  illegalAssignmentToTemplateVar(templateId, assignment, target) {
@@ -29969,7 +29720,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29969
29720
  if (sourceSpan === null) {
29970
29721
  throw new Error(`Assertion failure: no SourceLocation found for property binding.`);
29971
29722
  }
29972
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
29723
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
29973
29724
  text: `The variable ${assignment.name} is declared here.`,
29974
29725
  start: ((_a = target.valueSpan) == null ? void 0 : _a.start.offset) || target.sourceSpan.start.offset,
29975
29726
  end: ((_b = target.valueSpan) == null ? void 0 : _b.end.offset) || target.sourceSpan.end.offset,
@@ -29979,7 +29730,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29979
29730
  duplicateTemplateVar(templateId, variable2, firstDecl) {
29980
29731
  const mapping = this.resolver.getSourceMapping(templateId);
29981
29732
  const errorMsg = `Cannot redeclare variable '${variable2.name}' as it was previously declared elsewhere for the same template.`;
29982
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable2.sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
29733
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable2.sourceSpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
29983
29734
  text: `The variable '${firstDecl.name}' was first declared here.`,
29984
29735
  start: firstDecl.sourceSpan.start.offset,
29985
29736
  end: firstDecl.sourceSpan.end.offset,
@@ -30018,7 +29769,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
30018
29769
  const message = `This structural directive supports advanced type inference, but the current compiler configuration prevents its usage. The variable ${varIdentification} will have type 'any' as a result.
30019
29770
 
30020
29771
  Consider enabling the 'strictTemplates' option in your tsconfig.json for better type inference within this template.`;
30021
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, import_typescript80.default.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
29772
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, import_typescript77.default.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
30022
29773
  }
30023
29774
  splitTwoWayBinding(templateId, input, output, inputConsumer, outputConsumer) {
30024
29775
  const mapping = this.resolver.getSourceMapping(templateId);
@@ -30052,7 +29803,7 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
30052
29803
  sourceFile: outputConsumer.name.getSourceFile()
30053
29804
  });
30054
29805
  }
30055
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
29806
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
30056
29807
  }
30057
29808
  };
30058
29809
  function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
@@ -30063,7 +29814,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
30063
29814
  }
30064
29815
 
30065
29816
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
30066
- var import_typescript81 = __toESM(require("typescript"), 1);
29817
+ var import_typescript78 = __toESM(require("typescript"), 1);
30067
29818
  var TypeCheckShimGenerator = class {
30068
29819
  constructor() {
30069
29820
  this.extensionPrefix = "ngtypecheck";
@@ -30073,7 +29824,7 @@ var TypeCheckShimGenerator = class {
30073
29824
  if (priorShimSf !== null) {
30074
29825
  return priorShimSf;
30075
29826
  }
30076
- return import_typescript81.default.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", import_typescript81.default.ScriptTarget.Latest, true, import_typescript81.default.ScriptKind.TS);
29827
+ return import_typescript78.default.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", import_typescript78.default.ScriptTarget.Latest, true, import_typescript78.default.ScriptKind.TS);
30077
29828
  }
30078
29829
  static shimFor(fileName) {
30079
29830
  return absoluteFrom(fileName.replace(/\.tsx?$/, ".ngtypecheck.ts"));
@@ -30081,15 +29832,15 @@ var TypeCheckShimGenerator = class {
30081
29832
  };
30082
29833
 
30083
29834
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
30084
- var import_typescript84 = __toESM(require("typescript"), 1);
29835
+ var import_typescript81 = __toESM(require("typescript"), 1);
30085
29836
 
30086
29837
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
30087
- var import_typescript82 = __toESM(require("typescript"), 1);
29838
+ var import_typescript79 = __toESM(require("typescript"), 1);
30088
29839
  function wrapForDiagnostics(expr) {
30089
- return import_typescript82.default.factory.createParenthesizedExpression(expr);
29840
+ return import_typescript79.default.factory.createParenthesizedExpression(expr);
30090
29841
  }
30091
29842
  function wrapForTypeChecker(expr) {
30092
- return import_typescript82.default.factory.createParenthesizedExpression(expr);
29843
+ return import_typescript79.default.factory.createParenthesizedExpression(expr);
30093
29844
  }
30094
29845
  function addParseSpanInfo(node, span) {
30095
29846
  let commentText;
@@ -30098,10 +29849,10 @@ function addParseSpanInfo(node, span) {
30098
29849
  } else {
30099
29850
  commentText = `${span.start.offset},${span.end.offset}`;
30100
29851
  }
30101
- import_typescript82.default.addSyntheticTrailingComment(node, import_typescript82.default.SyntaxKind.MultiLineCommentTrivia, commentText, false);
29852
+ import_typescript79.default.addSyntheticTrailingComment(node, import_typescript79.default.SyntaxKind.MultiLineCommentTrivia, commentText, false);
30102
29853
  }
30103
29854
  function addTemplateId(tcb, id) {
30104
- import_typescript82.default.addSyntheticLeadingComment(tcb, import_typescript82.default.SyntaxKind.MultiLineCommentTrivia, id, true);
29855
+ import_typescript79.default.addSyntheticLeadingComment(tcb, import_typescript79.default.SyntaxKind.MultiLineCommentTrivia, id, true);
30105
29856
  }
30106
29857
  function shouldReportDiagnostic(diagnostic) {
30107
29858
  const { code } = diagnostic;
@@ -30129,32 +29880,32 @@ function translateDiagnostic(diagnostic, resolver) {
30129
29880
  }
30130
29881
 
30131
29882
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
30132
- var import_typescript83 = __toESM(require("typescript"), 1);
30133
- var NULL_AS_ANY = import_typescript83.default.factory.createAsExpression(import_typescript83.default.factory.createNull(), import_typescript83.default.factory.createKeywordTypeNode(import_typescript83.default.SyntaxKind.AnyKeyword));
30134
- var UNDEFINED = import_typescript83.default.factory.createIdentifier("undefined");
29883
+ var import_typescript80 = __toESM(require("typescript"), 1);
29884
+ var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
29885
+ var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
30135
29886
  var UNARY_OPS = /* @__PURE__ */ new Map([
30136
- ["+", import_typescript83.default.SyntaxKind.PlusToken],
30137
- ["-", import_typescript83.default.SyntaxKind.MinusToken]
29887
+ ["+", import_typescript80.default.SyntaxKind.PlusToken],
29888
+ ["-", import_typescript80.default.SyntaxKind.MinusToken]
30138
29889
  ]);
30139
29890
  var BINARY_OPS = /* @__PURE__ */ new Map([
30140
- ["+", import_typescript83.default.SyntaxKind.PlusToken],
30141
- ["-", import_typescript83.default.SyntaxKind.MinusToken],
30142
- ["<", import_typescript83.default.SyntaxKind.LessThanToken],
30143
- [">", import_typescript83.default.SyntaxKind.GreaterThanToken],
30144
- ["<=", import_typescript83.default.SyntaxKind.LessThanEqualsToken],
30145
- [">=", import_typescript83.default.SyntaxKind.GreaterThanEqualsToken],
30146
- ["==", import_typescript83.default.SyntaxKind.EqualsEqualsToken],
30147
- ["===", import_typescript83.default.SyntaxKind.EqualsEqualsEqualsToken],
30148
- ["*", import_typescript83.default.SyntaxKind.AsteriskToken],
30149
- ["/", import_typescript83.default.SyntaxKind.SlashToken],
30150
- ["%", import_typescript83.default.SyntaxKind.PercentToken],
30151
- ["!=", import_typescript83.default.SyntaxKind.ExclamationEqualsToken],
30152
- ["!==", import_typescript83.default.SyntaxKind.ExclamationEqualsEqualsToken],
30153
- ["||", import_typescript83.default.SyntaxKind.BarBarToken],
30154
- ["&&", import_typescript83.default.SyntaxKind.AmpersandAmpersandToken],
30155
- ["&", import_typescript83.default.SyntaxKind.AmpersandToken],
30156
- ["|", import_typescript83.default.SyntaxKind.BarToken],
30157
- ["??", import_typescript83.default.SyntaxKind.QuestionQuestionToken]
29891
+ ["+", import_typescript80.default.SyntaxKind.PlusToken],
29892
+ ["-", import_typescript80.default.SyntaxKind.MinusToken],
29893
+ ["<", import_typescript80.default.SyntaxKind.LessThanToken],
29894
+ [">", import_typescript80.default.SyntaxKind.GreaterThanToken],
29895
+ ["<=", import_typescript80.default.SyntaxKind.LessThanEqualsToken],
29896
+ [">=", import_typescript80.default.SyntaxKind.GreaterThanEqualsToken],
29897
+ ["==", import_typescript80.default.SyntaxKind.EqualsEqualsToken],
29898
+ ["===", import_typescript80.default.SyntaxKind.EqualsEqualsEqualsToken],
29899
+ ["*", import_typescript80.default.SyntaxKind.AsteriskToken],
29900
+ ["/", import_typescript80.default.SyntaxKind.SlashToken],
29901
+ ["%", import_typescript80.default.SyntaxKind.PercentToken],
29902
+ ["!=", import_typescript80.default.SyntaxKind.ExclamationEqualsToken],
29903
+ ["!==", import_typescript80.default.SyntaxKind.ExclamationEqualsEqualsToken],
29904
+ ["||", import_typescript80.default.SyntaxKind.BarBarToken],
29905
+ ["&&", import_typescript80.default.SyntaxKind.AmpersandAmpersandToken],
29906
+ ["&", import_typescript80.default.SyntaxKind.AmpersandToken],
29907
+ ["|", import_typescript80.default.SyntaxKind.BarToken],
29908
+ ["??", import_typescript80.default.SyntaxKind.QuestionQuestionToken]
30158
29909
  ]);
30159
29910
  function astToTypescript(ast, maybeResolve, config) {
30160
29911
  const translator = new AstTranslator(maybeResolve, config);
@@ -30170,7 +29921,7 @@ var AstTranslator = class {
30170
29921
  ast = ast.ast;
30171
29922
  }
30172
29923
  if (ast instanceof EmptyExpr) {
30173
- const res = import_typescript83.default.factory.createIdentifier("undefined");
29924
+ const res = import_typescript80.default.factory.createIdentifier("undefined");
30174
29925
  addParseSpanInfo(res, ast.sourceSpan);
30175
29926
  return res;
30176
29927
  }
@@ -30186,7 +29937,7 @@ var AstTranslator = class {
30186
29937
  if (op === void 0) {
30187
29938
  throw new Error(`Unsupported Unary.operator: ${ast.operator}`);
30188
29939
  }
30189
- const node = wrapForDiagnostics(import_typescript83.default.factory.createPrefixUnaryExpression(op, expr));
29940
+ const node = wrapForDiagnostics(import_typescript80.default.factory.createPrefixUnaryExpression(op, expr));
30190
29941
  addParseSpanInfo(node, ast.sourceSpan);
30191
29942
  return node;
30192
29943
  }
@@ -30197,13 +29948,13 @@ var AstTranslator = class {
30197
29948
  if (op === void 0) {
30198
29949
  throw new Error(`Unsupported Binary.operation: ${ast.operation}`);
30199
29950
  }
30200
- const node = import_typescript83.default.factory.createBinaryExpression(lhs, op, rhs);
29951
+ const node = import_typescript80.default.factory.createBinaryExpression(lhs, op, rhs);
30201
29952
  addParseSpanInfo(node, ast.sourceSpan);
30202
29953
  return node;
30203
29954
  }
30204
29955
  visitChain(ast) {
30205
29956
  const elements = ast.expressions.map((expr) => this.translate(expr));
30206
- const node = wrapForDiagnostics(import_typescript83.default.factory.createCommaListExpression(elements));
29957
+ const node = wrapForDiagnostics(import_typescript80.default.factory.createCommaListExpression(elements));
30207
29958
  addParseSpanInfo(node, ast.sourceSpan);
30208
29959
  return node;
30209
29960
  }
@@ -30211,7 +29962,7 @@ var AstTranslator = class {
30211
29962
  const condExpr = this.translate(ast.condition);
30212
29963
  const trueExpr = this.translate(ast.trueExp);
30213
29964
  const falseExpr = wrapForTypeChecker(this.translate(ast.falseExp));
30214
- const node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
29965
+ const node = import_typescript80.default.factory.createParenthesizedExpression(import_typescript80.default.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
30215
29966
  addParseSpanInfo(node, ast.sourceSpan);
30216
29967
  return node;
30217
29968
  }
@@ -30222,26 +29973,26 @@ var AstTranslator = class {
30222
29973
  throw new Error("Method not implemented.");
30223
29974
  }
30224
29975
  visitInterpolation(ast) {
30225
- return ast.expressions.reduce((lhs, ast2) => import_typescript83.default.factory.createBinaryExpression(lhs, import_typescript83.default.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), import_typescript83.default.factory.createStringLiteral(""));
29976
+ return ast.expressions.reduce((lhs, ast2) => import_typescript80.default.factory.createBinaryExpression(lhs, import_typescript80.default.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), import_typescript80.default.factory.createStringLiteral(""));
30226
29977
  }
30227
29978
  visitKeyedRead(ast) {
30228
29979
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30229
29980
  const key = this.translate(ast.key);
30230
- const node = import_typescript83.default.factory.createElementAccessExpression(receiver, key);
29981
+ const node = import_typescript80.default.factory.createElementAccessExpression(receiver, key);
30231
29982
  addParseSpanInfo(node, ast.sourceSpan);
30232
29983
  return node;
30233
29984
  }
30234
29985
  visitKeyedWrite(ast) {
30235
29986
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30236
- const left = import_typescript83.default.factory.createElementAccessExpression(receiver, this.translate(ast.key));
29987
+ const left = import_typescript80.default.factory.createElementAccessExpression(receiver, this.translate(ast.key));
30237
29988
  const right = wrapForTypeChecker(this.translate(ast.value));
30238
- const node = wrapForDiagnostics(import_typescript83.default.factory.createBinaryExpression(left, import_typescript83.default.SyntaxKind.EqualsToken, right));
29989
+ const node = wrapForDiagnostics(import_typescript80.default.factory.createBinaryExpression(left, import_typescript80.default.SyntaxKind.EqualsToken, right));
30239
29990
  addParseSpanInfo(node, ast.sourceSpan);
30240
29991
  return node;
30241
29992
  }
30242
29993
  visitLiteralArray(ast) {
30243
29994
  const elements = ast.expressions.map((expr) => this.translate(expr));
30244
- const literal3 = import_typescript83.default.factory.createArrayLiteralExpression(elements);
29995
+ const literal3 = import_typescript80.default.factory.createArrayLiteralExpression(elements);
30245
29996
  const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
30246
29997
  addParseSpanInfo(node, ast.sourceSpan);
30247
29998
  return node;
@@ -30249,9 +30000,9 @@ var AstTranslator = class {
30249
30000
  visitLiteralMap(ast) {
30250
30001
  const properties = ast.keys.map(({ key }, idx) => {
30251
30002
  const value = this.translate(ast.values[idx]);
30252
- return import_typescript83.default.factory.createPropertyAssignment(import_typescript83.default.factory.createStringLiteral(key), value);
30003
+ return import_typescript80.default.factory.createPropertyAssignment(import_typescript80.default.factory.createStringLiteral(key), value);
30253
30004
  });
30254
- const literal3 = import_typescript83.default.factory.createObjectLiteralExpression(properties, true);
30005
+ const literal3 = import_typescript80.default.factory.createObjectLiteralExpression(properties, true);
30255
30006
  const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
30256
30007
  addParseSpanInfo(node, ast.sourceSpan);
30257
30008
  return node;
@@ -30259,15 +30010,15 @@ var AstTranslator = class {
30259
30010
  visitLiteralPrimitive(ast) {
30260
30011
  let node;
30261
30012
  if (ast.value === void 0) {
30262
- node = import_typescript83.default.factory.createIdentifier("undefined");
30013
+ node = import_typescript80.default.factory.createIdentifier("undefined");
30263
30014
  } else if (ast.value === null) {
30264
- node = import_typescript83.default.factory.createNull();
30015
+ node = import_typescript80.default.factory.createNull();
30265
30016
  } else if (typeof ast.value === "string") {
30266
- node = import_typescript83.default.factory.createStringLiteral(ast.value);
30017
+ node = import_typescript80.default.factory.createStringLiteral(ast.value);
30267
30018
  } else if (typeof ast.value === "number") {
30268
- node = import_typescript83.default.factory.createNumericLiteral(ast.value);
30019
+ node = import_typescript80.default.factory.createNumericLiteral(ast.value);
30269
30020
  } else if (typeof ast.value === "boolean") {
30270
- node = ast.value ? import_typescript83.default.factory.createTrue() : import_typescript83.default.factory.createFalse();
30021
+ node = ast.value ? import_typescript80.default.factory.createTrue() : import_typescript80.default.factory.createFalse();
30271
30022
  } else {
30272
30023
  throw Error(`Unsupported AST value of type ${typeof ast.value}`);
30273
30024
  }
@@ -30276,7 +30027,7 @@ var AstTranslator = class {
30276
30027
  }
30277
30028
  visitNonNullAssert(ast) {
30278
30029
  const expr = wrapForDiagnostics(this.translate(ast.expression));
30279
- const node = import_typescript83.default.factory.createNonNullExpression(expr);
30030
+ const node = import_typescript80.default.factory.createNonNullExpression(expr);
30280
30031
  addParseSpanInfo(node, ast.sourceSpan);
30281
30032
  return node;
30282
30033
  }
@@ -30285,13 +30036,13 @@ var AstTranslator = class {
30285
30036
  }
30286
30037
  visitPrefixNot(ast) {
30287
30038
  const expression = wrapForDiagnostics(this.translate(ast.expression));
30288
- const node = import_typescript83.default.factory.createLogicalNot(expression);
30039
+ const node = import_typescript80.default.factory.createLogicalNot(expression);
30289
30040
  addParseSpanInfo(node, ast.sourceSpan);
30290
30041
  return node;
30291
30042
  }
30292
30043
  visitPropertyRead(ast) {
30293
30044
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30294
- const name = import_typescript83.default.factory.createPropertyAccessExpression(receiver, ast.name);
30045
+ const name = import_typescript80.default.factory.createPropertyAccessExpression(receiver, ast.name);
30295
30046
  addParseSpanInfo(name, ast.nameSpan);
30296
30047
  const node = wrapForDiagnostics(name);
30297
30048
  addParseSpanInfo(node, ast.sourceSpan);
@@ -30299,12 +30050,12 @@ var AstTranslator = class {
30299
30050
  }
30300
30051
  visitPropertyWrite(ast) {
30301
30052
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30302
- const left = import_typescript83.default.factory.createPropertyAccessExpression(receiver, ast.name);
30053
+ const left = import_typescript80.default.factory.createPropertyAccessExpression(receiver, ast.name);
30303
30054
  addParseSpanInfo(left, ast.nameSpan);
30304
30055
  const leftWithPath = wrapForDiagnostics(left);
30305
30056
  addParseSpanInfo(leftWithPath, ast.sourceSpan);
30306
30057
  const right = wrapForTypeChecker(this.translate(ast.value));
30307
- const node = wrapForDiagnostics(import_typescript83.default.factory.createBinaryExpression(leftWithPath, import_typescript83.default.SyntaxKind.EqualsToken, right));
30058
+ const node = wrapForDiagnostics(import_typescript80.default.factory.createBinaryExpression(leftWithPath, import_typescript80.default.SyntaxKind.EqualsToken, right));
30308
30059
  addParseSpanInfo(node, ast.sourceSpan);
30309
30060
  return node;
30310
30061
  }
@@ -30312,13 +30063,13 @@ var AstTranslator = class {
30312
30063
  let node;
30313
30064
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30314
30065
  if (this.config.strictSafeNavigationTypes) {
30315
- const expr = import_typescript83.default.factory.createPropertyAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), ast.name);
30066
+ const expr = import_typescript80.default.factory.createPropertyAccessExpression(import_typescript80.default.factory.createNonNullExpression(receiver), ast.name);
30316
30067
  addParseSpanInfo(expr, ast.nameSpan);
30317
- node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30068
+ node = import_typescript80.default.factory.createParenthesizedExpression(import_typescript80.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30318
30069
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30319
- node = import_typescript83.default.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
30070
+ node = import_typescript80.default.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
30320
30071
  } else {
30321
- const expr = import_typescript83.default.factory.createPropertyAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), ast.name);
30072
+ const expr = import_typescript80.default.factory.createPropertyAccessExpression(import_typescript80.default.factory.createNonNullExpression(receiver), ast.name);
30322
30073
  addParseSpanInfo(expr, ast.nameSpan);
30323
30074
  node = tsCastToAny(expr);
30324
30075
  }
@@ -30330,13 +30081,13 @@ var AstTranslator = class {
30330
30081
  const key = this.translate(ast.key);
30331
30082
  let node;
30332
30083
  if (this.config.strictSafeNavigationTypes) {
30333
- const expr = import_typescript83.default.factory.createElementAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), key);
30084
+ const expr = import_typescript80.default.factory.createElementAccessExpression(import_typescript80.default.factory.createNonNullExpression(receiver), key);
30334
30085
  addParseSpanInfo(expr, ast.sourceSpan);
30335
- node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30086
+ node = import_typescript80.default.factory.createParenthesizedExpression(import_typescript80.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30336
30087
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30337
- node = import_typescript83.default.factory.createElementAccessExpression(tsCastToAny(receiver), key);
30088
+ node = import_typescript80.default.factory.createElementAccessExpression(tsCastToAny(receiver), key);
30338
30089
  } else {
30339
- const expr = import_typescript83.default.factory.createElementAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), key);
30090
+ const expr = import_typescript80.default.factory.createElementAccessExpression(import_typescript80.default.factory.createNonNullExpression(receiver), key);
30340
30091
  addParseSpanInfo(expr, ast.sourceSpan);
30341
30092
  node = tsCastToAny(expr);
30342
30093
  }
@@ -30353,7 +30104,7 @@ var AstTranslator = class {
30353
30104
  expr = resolved;
30354
30105
  } else {
30355
30106
  const propertyReceiver = wrapForDiagnostics(this.translate(receiver.receiver));
30356
- expr = import_typescript83.default.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
30107
+ expr = import_typescript80.default.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
30357
30108
  addParseSpanInfo(expr, receiver.nameSpan);
30358
30109
  }
30359
30110
  } else {
@@ -30363,7 +30114,7 @@ var AstTranslator = class {
30363
30114
  if (ast.receiver instanceof SafePropertyRead || ast.receiver instanceof SafeKeyedRead) {
30364
30115
  node = this.convertToSafeCall(ast, expr, args);
30365
30116
  } else {
30366
- node = import_typescript83.default.factory.createCallExpression(expr, void 0, args);
30117
+ node = import_typescript80.default.factory.createCallExpression(expr, void 0, args);
30367
30118
  }
30368
30119
  addParseSpanInfo(node, ast.sourceSpan);
30369
30120
  return node;
@@ -30377,13 +30128,13 @@ var AstTranslator = class {
30377
30128
  }
30378
30129
  convertToSafeCall(ast, expr, args) {
30379
30130
  if (this.config.strictSafeNavigationTypes) {
30380
- const call = import_typescript83.default.factory.createCallExpression(import_typescript83.default.factory.createNonNullExpression(expr), void 0, args);
30381
- return import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
30131
+ const call = import_typescript80.default.factory.createCallExpression(import_typescript80.default.factory.createNonNullExpression(expr), void 0, args);
30132
+ return import_typescript80.default.factory.createParenthesizedExpression(import_typescript80.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
30382
30133
  }
30383
30134
  if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30384
- return import_typescript83.default.factory.createCallExpression(tsCastToAny(expr), void 0, args);
30135
+ return import_typescript80.default.factory.createCallExpression(tsCastToAny(expr), void 0, args);
30385
30136
  }
30386
- return tsCastToAny(import_typescript83.default.factory.createCallExpression(import_typescript83.default.factory.createNonNullExpression(expr), void 0, args));
30137
+ return tsCastToAny(import_typescript80.default.factory.createCallExpression(import_typescript80.default.factory.createNonNullExpression(expr), void 0, args));
30387
30138
  }
30388
30139
  };
30389
30140
  var VeSafeLhsInferenceBugDetector = class {
@@ -30491,7 +30242,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
30491
30242
  const tcb = new Context2(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
30492
30243
  const scope = Scope2.forNodes(tcb, null, tcb.boundTarget.target.template, null);
30493
30244
  const ctxRawType = env.referenceType(ref);
30494
- if (!import_typescript84.default.isTypeReferenceNode(ctxRawType)) {
30245
+ if (!import_typescript81.default.isTypeReferenceNode(ctxRawType)) {
30495
30246
  throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
30496
30247
  }
30497
30248
  let typeParameters = void 0;
@@ -30503,25 +30254,25 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
30503
30254
  switch (genericContextBehavior) {
30504
30255
  case TcbGenericContextBehavior.UseEmitter:
30505
30256
  typeParameters = new TypeParameterEmitter(ref.node.typeParameters, env.reflector).emit((typeRef) => env.referenceType(typeRef));
30506
- typeArguments = typeParameters.map((param) => import_typescript84.default.factory.createTypeReferenceNode(param.name));
30257
+ typeArguments = typeParameters.map((param) => import_typescript81.default.factory.createTypeReferenceNode(param.name));
30507
30258
  break;
30508
30259
  case TcbGenericContextBehavior.CopyClassNodes:
30509
30260
  typeParameters = [...ref.node.typeParameters];
30510
- typeArguments = typeParameters.map((param) => import_typescript84.default.factory.createTypeReferenceNode(param.name));
30261
+ typeArguments = typeParameters.map((param) => import_typescript81.default.factory.createTypeReferenceNode(param.name));
30511
30262
  break;
30512
30263
  case TcbGenericContextBehavior.FallbackToAny:
30513
- typeArguments = ref.node.typeParameters.map(() => import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30264
+ typeArguments = ref.node.typeParameters.map(() => import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
30514
30265
  break;
30515
30266
  }
30516
30267
  }
30517
30268
  const paramList = [tcbThisParam(ctxRawType.typeName, typeArguments)];
30518
30269
  const scopeStatements = scope.render();
30519
- const innerBody = import_typescript84.default.factory.createBlock([
30270
+ const innerBody = import_typescript81.default.factory.createBlock([
30520
30271
  ...env.getPreludeStatements(),
30521
30272
  ...scopeStatements
30522
30273
  ]);
30523
- const body = import_typescript84.default.factory.createBlock([import_typescript84.default.factory.createIfStatement(import_typescript84.default.factory.createTrue(), innerBody, void 0)]);
30524
- const fnDecl = createFunctionDeclaration(
30274
+ const body = import_typescript81.default.factory.createBlock([import_typescript81.default.factory.createIfStatement(import_typescript81.default.factory.createTrue(), innerBody, void 0)]);
30275
+ const fnDecl = import_typescript81.default.factory.createFunctionDeclaration(
30525
30276
  void 0,
30526
30277
  void 0,
30527
30278
  name,
@@ -30570,7 +30321,7 @@ var TcbVariableOp = class extends TcbOp {
30570
30321
  execute() {
30571
30322
  const ctx = this.scope.resolve(this.template);
30572
30323
  const id = this.tcb.allocateId();
30573
- const initializer = import_typescript84.default.factory.createPropertyAccessExpression(
30324
+ const initializer = import_typescript81.default.factory.createPropertyAccessExpression(
30574
30325
  ctx,
30575
30326
  this.variable.value || "$implicit"
30576
30327
  );
@@ -30596,7 +30347,7 @@ var TcbTemplateContextOp = class extends TcbOp {
30596
30347
  }
30597
30348
  execute() {
30598
30349
  const ctx = this.tcb.allocateId();
30599
- const type = import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword);
30350
+ const type = import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword);
30600
30351
  this.scope.addStatement(tsDeclareVariable(ctx, type));
30601
30352
  return ctx;
30602
30353
  }
@@ -30649,16 +30400,16 @@ var TcbTemplateBodyOp = class extends TcbOp {
30649
30400
  }
30650
30401
  let guard = null;
30651
30402
  if (directiveGuards.length > 0) {
30652
- guard = directiveGuards.reduce((expr, dirGuard) => import_typescript84.default.factory.createBinaryExpression(expr, import_typescript84.default.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
30403
+ guard = directiveGuards.reduce((expr, dirGuard) => import_typescript81.default.factory.createBinaryExpression(expr, import_typescript81.default.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
30653
30404
  }
30654
30405
  const tmplScope = Scope2.forNodes(this.tcb, this.scope, this.template, guard);
30655
30406
  const statements = tmplScope.render();
30656
30407
  if (statements.length === 0) {
30657
30408
  return null;
30658
30409
  }
30659
- let tmplBlock = import_typescript84.default.factory.createBlock(statements);
30410
+ let tmplBlock = import_typescript81.default.factory.createBlock(statements);
30660
30411
  if (guard !== null) {
30661
- tmplBlock = import_typescript84.default.factory.createIfStatement(guard, tmplBlock);
30412
+ tmplBlock = import_typescript81.default.factory.createIfStatement(guard, tmplBlock);
30662
30413
  }
30663
30414
  this.scope.addStatement(tmplBlock);
30664
30415
  return null;
@@ -30676,7 +30427,7 @@ var TcbTextInterpolationOp = class extends TcbOp {
30676
30427
  }
30677
30428
  execute() {
30678
30429
  const expr = tcbExpression(this.binding.value, this.tcb, this.scope);
30679
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30430
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(expr));
30680
30431
  return null;
30681
30432
  }
30682
30433
  };
@@ -30698,11 +30449,11 @@ var TcbDirectiveTypeOpBase = class extends TcbOp {
30698
30449
  if (this.dir.isGeneric === false || dirRef.node.typeParameters === void 0) {
30699
30450
  type = rawType;
30700
30451
  } else {
30701
- if (!import_typescript84.default.isTypeReferenceNode(rawType)) {
30452
+ if (!import_typescript81.default.isTypeReferenceNode(rawType)) {
30702
30453
  throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);
30703
30454
  }
30704
- const typeArguments = dirRef.node.typeParameters.map(() => import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30705
- type = import_typescript84.default.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
30455
+ const typeArguments = dirRef.node.typeParameters.map(() => import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
30456
+ type = import_typescript81.default.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
30706
30457
  }
30707
30458
  const id = this.tcb.allocateId();
30708
30459
  addExpressionIdentifier(type, ExpressionIdentifier.DIRECTIVE);
@@ -30743,11 +30494,11 @@ var TcbReferenceOp = class extends TcbOp {
30743
30494
  const id = this.tcb.allocateId();
30744
30495
  let initializer = this.target instanceof Template || this.target instanceof Element ? this.scope.resolve(this.target) : this.scope.resolve(this.host, this.target);
30745
30496
  if (this.target instanceof Element && !this.tcb.env.config.checkTypeOfDomReferences || !this.tcb.env.config.checkTypeOfNonDomReferences) {
30746
- initializer = import_typescript84.default.factory.createAsExpression(initializer, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30497
+ initializer = import_typescript81.default.factory.createAsExpression(initializer, import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
30747
30498
  } else if (this.target instanceof Template) {
30748
- initializer = import_typescript84.default.factory.createAsExpression(initializer, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30749
- initializer = import_typescript84.default.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
30750
- initializer = import_typescript84.default.factory.createParenthesizedExpression(initializer);
30499
+ initializer = import_typescript81.default.factory.createAsExpression(initializer, import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
30500
+ initializer = import_typescript81.default.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
30501
+ initializer = import_typescript81.default.factory.createParenthesizedExpression(initializer);
30751
30502
  }
30752
30503
  addParseSpanInfo(initializer, this.node.sourceSpan);
30753
30504
  addParseSpanInfo(id, this.node.keySpan);
@@ -30837,7 +30588,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30837
30588
  let target;
30838
30589
  if (this.dir.coercedInputFields.has(fieldName)) {
30839
30590
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
30840
- if (!import_typescript84.default.isTypeReferenceNode(dirTypeRef)) {
30591
+ if (!import_typescript81.default.isTypeReferenceNode(dirTypeRef)) {
30841
30592
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
30842
30593
  }
30843
30594
  const id = this.tcb.allocateId();
@@ -30852,10 +30603,10 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30852
30603
  }
30853
30604
  const id = this.tcb.allocateId();
30854
30605
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
30855
- if (!import_typescript84.default.isTypeReferenceNode(dirTypeRef)) {
30606
+ if (!import_typescript81.default.isTypeReferenceNode(dirTypeRef)) {
30856
30607
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
30857
30608
  }
30858
- const type = import_typescript84.default.factory.createIndexedAccessTypeNode(import_typescript84.default.factory.createTypeQueryNode(dirId), import_typescript84.default.factory.createLiteralTypeNode(import_typescript84.default.factory.createStringLiteral(fieldName)));
30609
+ const type = import_typescript81.default.factory.createIndexedAccessTypeNode(import_typescript81.default.factory.createTypeQueryNode(dirId), import_typescript81.default.factory.createLiteralTypeNode(import_typescript81.default.factory.createStringLiteral(fieldName)));
30859
30610
  const temp = tsDeclareVariable(id, type);
30860
30611
  this.scope.addStatement(temp);
30861
30612
  target = id;
@@ -30863,18 +30614,18 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30863
30614
  if (dirId === null) {
30864
30615
  dirId = this.scope.resolve(this.node, this.dir);
30865
30616
  }
30866
- target = this.dir.stringLiteralInputFields.has(fieldName) ? import_typescript84.default.factory.createElementAccessExpression(dirId, import_typescript84.default.factory.createStringLiteral(fieldName)) : import_typescript84.default.factory.createPropertyAccessExpression(dirId, import_typescript84.default.factory.createIdentifier(fieldName));
30617
+ target = this.dir.stringLiteralInputFields.has(fieldName) ? import_typescript81.default.factory.createElementAccessExpression(dirId, import_typescript81.default.factory.createStringLiteral(fieldName)) : import_typescript81.default.factory.createPropertyAccessExpression(dirId, import_typescript81.default.factory.createIdentifier(fieldName));
30867
30618
  }
30868
30619
  if (input.attribute.keySpan !== void 0) {
30869
30620
  addParseSpanInfo(target, input.attribute.keySpan);
30870
30621
  }
30871
- assignment = import_typescript84.default.factory.createBinaryExpression(target, import_typescript84.default.SyntaxKind.EqualsToken, assignment);
30622
+ assignment = import_typescript81.default.factory.createBinaryExpression(target, import_typescript81.default.SyntaxKind.EqualsToken, assignment);
30872
30623
  }
30873
30624
  addParseSpanInfo(assignment, input.attribute.sourceSpan);
30874
30625
  if (!this.tcb.env.config.checkTypeOfAttributes && input.attribute instanceof TextAttribute) {
30875
30626
  markIgnoreDiagnostics(assignment);
30876
30627
  }
30877
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(assignment));
30628
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(assignment));
30878
30629
  }
30879
30630
  return null;
30880
30631
  }
@@ -30893,7 +30644,7 @@ var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
30893
30644
  execute() {
30894
30645
  const id = this.tcb.allocateId();
30895
30646
  const typeCtor = this.tcb.env.typeCtorFor(this.dir);
30896
- const circularPlaceholder = import_typescript84.default.factory.createCallExpression(typeCtor, void 0, [import_typescript84.default.factory.createNonNullExpression(import_typescript84.default.factory.createNull())]);
30647
+ const circularPlaceholder = import_typescript81.default.factory.createCallExpression(typeCtor, void 0, [import_typescript81.default.factory.createNonNullExpression(import_typescript81.default.factory.createNull())]);
30897
30648
  this.scope.addStatement(tsCreateVariable(id, circularPlaceholder));
30898
30649
  return id;
30899
30650
  }
@@ -30961,15 +30712,15 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
30961
30712
  elId = this.scope.resolve(this.element);
30962
30713
  }
30963
30714
  const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
30964
- const prop = import_typescript84.default.factory.createElementAccessExpression(elId, import_typescript84.default.factory.createStringLiteral(propertyName));
30965
- const stmt = import_typescript84.default.factory.createBinaryExpression(prop, import_typescript84.default.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
30715
+ const prop = import_typescript81.default.factory.createElementAccessExpression(elId, import_typescript81.default.factory.createStringLiteral(propertyName));
30716
+ const stmt = import_typescript81.default.factory.createBinaryExpression(prop, import_typescript81.default.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
30966
30717
  addParseSpanInfo(stmt, binding.sourceSpan);
30967
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(stmt));
30718
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(stmt));
30968
30719
  } else {
30969
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30720
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(expr));
30970
30721
  }
30971
30722
  } else {
30972
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30723
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(expr));
30973
30724
  }
30974
30725
  }
30975
30726
  return null;
@@ -31001,18 +30752,18 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
31001
30752
  if (dirId === null) {
31002
30753
  dirId = this.scope.resolve(this.node, this.dir);
31003
30754
  }
31004
- const outputField = import_typescript84.default.factory.createElementAccessExpression(dirId, import_typescript84.default.factory.createStringLiteral(field));
30755
+ const outputField = import_typescript81.default.factory.createElementAccessExpression(dirId, import_typescript81.default.factory.createStringLiteral(field));
31005
30756
  addParseSpanInfo(outputField, output.keySpan);
31006
30757
  if (this.tcb.env.config.checkTypeOfOutputEvents) {
31007
30758
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
31008
- const subscribeFn = import_typescript84.default.factory.createPropertyAccessExpression(outputField, "subscribe");
31009
- const call = import_typescript84.default.factory.createCallExpression(subscribeFn, void 0, [handler]);
30759
+ const subscribeFn = import_typescript81.default.factory.createPropertyAccessExpression(outputField, "subscribe");
30760
+ const call = import_typescript81.default.factory.createCallExpression(subscribeFn, void 0, [handler]);
31010
30761
  addParseSpanInfo(call, output.sourceSpan);
31011
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(call));
30762
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(call));
31012
30763
  } else {
31013
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(outputField));
30764
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(outputField));
31014
30765
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
31015
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30766
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(handler));
31016
30767
  }
31017
30768
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
31018
30769
  }
@@ -31045,24 +30796,24 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
31045
30796
  if (output.type === 1) {
31046
30797
  const eventType = this.tcb.env.config.checkTypeOfAnimationEvents ? this.tcb.env.referenceExternalType("@angular/animations", "AnimationEvent") : 1;
31047
30798
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, eventType);
31048
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30799
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(handler));
31049
30800
  } else if (this.tcb.env.config.checkTypeOfDomEvents) {
31050
30801
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
31051
30802
  if (elId === null) {
31052
30803
  elId = this.scope.resolve(this.element);
31053
30804
  }
31054
- const propertyAccess = import_typescript84.default.factory.createPropertyAccessExpression(elId, "addEventListener");
30805
+ const propertyAccess = import_typescript81.default.factory.createPropertyAccessExpression(elId, "addEventListener");
31055
30806
  addParseSpanInfo(propertyAccess, output.keySpan);
31056
- const call = import_typescript84.default.factory.createCallExpression(
30807
+ const call = import_typescript81.default.factory.createCallExpression(
31057
30808
  propertyAccess,
31058
30809
  void 0,
31059
- [import_typescript84.default.factory.createStringLiteral(output.name), handler]
30810
+ [import_typescript81.default.factory.createStringLiteral(output.name), handler]
31060
30811
  );
31061
30812
  addParseSpanInfo(call, output.sourceSpan);
31062
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(call));
30813
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(call));
31063
30814
  } else {
31064
30815
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
31065
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30816
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(handler));
31066
30817
  }
31067
30818
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
31068
30819
  }
@@ -31076,15 +30827,15 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
31076
30827
  this.optional = false;
31077
30828
  }
31078
30829
  execute() {
31079
- const ctx = import_typescript84.default.factory.createThis();
31080
- const ctxDot = import_typescript84.default.factory.createPropertyAccessExpression(ctx, "");
30830
+ const ctx = import_typescript81.default.factory.createThis();
30831
+ const ctxDot = import_typescript81.default.factory.createPropertyAccessExpression(ctx, "");
31081
30832
  markIgnoreDiagnostics(ctxDot);
31082
30833
  addExpressionIdentifier(ctxDot, ExpressionIdentifier.COMPONENT_COMPLETION);
31083
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(ctxDot));
30834
+ this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(ctxDot));
31084
30835
  return null;
31085
30836
  }
31086
30837
  };
31087
- var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = import_typescript84.default.factory.createNonNullExpression(import_typescript84.default.factory.createNull());
30838
+ var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = import_typescript81.default.factory.createNonNullExpression(import_typescript81.default.factory.createNull());
31088
30839
  var Context2 = class {
31089
30840
  constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone) {
31090
30841
  this.env = env;
@@ -31098,7 +30849,7 @@ var Context2 = class {
31098
30849
  this.nextId = 1;
31099
30850
  }
31100
30851
  allocateId() {
31101
- return import_typescript84.default.factory.createIdentifier(`_t${this.nextId++}`);
30852
+ return import_typescript81.default.factory.createIdentifier(`_t${this.nextId++}`);
31102
30853
  }
31103
30854
  getPipeByName(name) {
31104
30855
  if (!this.pipes.has(name)) {
@@ -31151,16 +30902,16 @@ var Scope2 = class {
31151
30902
  const res = this.resolveLocal(node, directive);
31152
30903
  if (res !== null) {
31153
30904
  let clone;
31154
- if (import_typescript84.default.isIdentifier(res)) {
31155
- clone = import_typescript84.default.factory.createIdentifier(res.text);
31156
- } else if (import_typescript84.default.isNonNullExpression(res)) {
31157
- clone = import_typescript84.default.factory.createNonNullExpression(res.expression);
30905
+ if (import_typescript81.default.isIdentifier(res)) {
30906
+ clone = import_typescript81.default.factory.createIdentifier(res.text);
30907
+ } else if (import_typescript81.default.isNonNullExpression(res)) {
30908
+ clone = import_typescript81.default.factory.createNonNullExpression(res.expression);
31158
30909
  } else {
31159
30910
  throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
31160
30911
  }
31161
- import_typescript84.default.setOriginalNode(clone, res);
30912
+ import_typescript81.default.setOriginalNode(clone, res);
31162
30913
  clone.parent = clone.parent;
31163
- return import_typescript84.default.setSyntheticTrailingComments(clone, []);
30914
+ return import_typescript81.default.setSyntheticTrailingComments(clone, []);
31164
30915
  } else if (this.parent !== null) {
31165
30916
  return this.parent.resolve(node, directive);
31166
30917
  } else {
@@ -31187,7 +30938,7 @@ var Scope2 = class {
31187
30938
  } else if (parentGuards === null) {
31188
30939
  return this.guard;
31189
30940
  } else {
31190
- return import_typescript84.default.factory.createBinaryExpression(parentGuards, import_typescript84.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
30941
+ return import_typescript81.default.factory.createBinaryExpression(parentGuards, import_typescript81.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
31191
30942
  }
31192
30943
  }
31193
30944
  resolveLocal(ref, directive) {
@@ -31367,12 +31118,12 @@ var Scope2 = class {
31367
31118
  }
31368
31119
  };
31369
31120
  function tcbThisParam(name, typeArguments) {
31370
- return createParameterDeclaration(
31121
+ return import_typescript81.default.factory.createParameterDeclaration(
31371
31122
  void 0,
31372
31123
  void 0,
31373
31124
  "this",
31374
31125
  void 0,
31375
- import_typescript84.default.factory.createTypeReferenceNode(name, typeArguments),
31126
+ import_typescript81.default.factory.createTypeReferenceNode(name, typeArguments),
31376
31127
  void 0
31377
31128
  );
31378
31129
  }
@@ -31397,11 +31148,11 @@ var TcbExpressionTranslator = class {
31397
31148
  return null;
31398
31149
  }
31399
31150
  const expr = this.translate(ast.value);
31400
- const result = import_typescript84.default.factory.createParenthesizedExpression(import_typescript84.default.factory.createBinaryExpression(target, import_typescript84.default.SyntaxKind.EqualsToken, expr));
31151
+ const result = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createBinaryExpression(target, import_typescript81.default.SyntaxKind.EqualsToken, expr));
31401
31152
  addParseSpanInfo(result, ast.sourceSpan);
31402
31153
  return result;
31403
31154
  } else if (ast instanceof ImplicitReceiver) {
31404
- return import_typescript84.default.factory.createThis();
31155
+ return import_typescript81.default.factory.createThis();
31405
31156
  } else if (ast instanceof BindingPipe) {
31406
31157
  const expr = this.translate(ast.exp);
31407
31158
  const pipeRef = this.tcb.getPipeByName(ast.name);
@@ -31413,12 +31164,12 @@ var TcbExpressionTranslator = class {
31413
31164
  pipe = this.tcb.env.pipeInst(pipeRef);
31414
31165
  }
31415
31166
  const args = ast.args.map((arg) => this.translate(arg));
31416
- let methodAccess = import_typescript84.default.factory.createPropertyAccessExpression(pipe, "transform");
31167
+ let methodAccess = import_typescript81.default.factory.createPropertyAccessExpression(pipe, "transform");
31417
31168
  addParseSpanInfo(methodAccess, ast.nameSpan);
31418
31169
  if (!this.tcb.env.config.checkTypeOfPipes) {
31419
- methodAccess = import_typescript84.default.factory.createAsExpression(methodAccess, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
31170
+ methodAccess = import_typescript81.default.factory.createAsExpression(methodAccess, import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
31420
31171
  }
31421
- const result = import_typescript84.default.factory.createCallExpression(
31172
+ const result = import_typescript81.default.factory.createCallExpression(
31422
31173
  methodAccess,
31423
31174
  void 0,
31424
31175
  [expr, ...args]
@@ -31428,8 +31179,8 @@ var TcbExpressionTranslator = class {
31428
31179
  } else if ((ast instanceof Call || ast instanceof SafeCall) && (ast.receiver instanceof PropertyRead || ast.receiver instanceof SafePropertyRead)) {
31429
31180
  if (ast.receiver.receiver instanceof ImplicitReceiver && !(ast.receiver.receiver instanceof ThisReceiver) && ast.receiver.name === "$any" && ast.args.length === 1) {
31430
31181
  const expr = this.translate(ast.args[0]);
31431
- const exprAsAny = import_typescript84.default.factory.createAsExpression(expr, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
31432
- const result = import_typescript84.default.factory.createParenthesizedExpression(exprAsAny);
31182
+ const exprAsAny = import_typescript81.default.factory.createAsExpression(expr, import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
31183
+ const result = import_typescript81.default.factory.createParenthesizedExpression(exprAsAny);
31433
31184
  addParseSpanInfo(result, ast.sourceSpan);
31434
31185
  return result;
31435
31186
  }
@@ -31440,7 +31191,7 @@ var TcbExpressionTranslator = class {
31440
31191
  const method = wrapForDiagnostics(receiver);
31441
31192
  addParseSpanInfo(method, ast.receiver.nameSpan);
31442
31193
  const args = ast.args.map((arg) => this.translate(arg));
31443
- const node = import_typescript84.default.factory.createCallExpression(method, void 0, args);
31194
+ const node = import_typescript81.default.factory.createCallExpression(method, void 0, args);
31444
31195
  addParseSpanInfo(node, ast.sourceSpan);
31445
31196
  return node;
31446
31197
  } else {
@@ -31460,20 +31211,20 @@ var TcbExpressionTranslator = class {
31460
31211
  function tcbCallTypeCtor(dir, tcb, inputs) {
31461
31212
  const typeCtor = tcb.env.typeCtorFor(dir);
31462
31213
  const members = inputs.map((input) => {
31463
- const propertyName = import_typescript84.default.factory.createStringLiteral(input.field);
31214
+ const propertyName = import_typescript81.default.factory.createStringLiteral(input.field);
31464
31215
  if (input.type === "binding") {
31465
31216
  const expr = widenBinding(input.expression, tcb);
31466
- const assignment = import_typescript84.default.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
31217
+ const assignment = import_typescript81.default.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
31467
31218
  addParseSpanInfo(assignment, input.sourceSpan);
31468
31219
  return assignment;
31469
31220
  } else {
31470
- return import_typescript84.default.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
31221
+ return import_typescript81.default.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
31471
31222
  }
31472
31223
  });
31473
- return import_typescript84.default.factory.createCallExpression(
31224
+ return import_typescript81.default.factory.createCallExpression(
31474
31225
  typeCtor,
31475
31226
  void 0,
31476
- [import_typescript84.default.factory.createObjectLiteralExpression(members)]
31227
+ [import_typescript81.default.factory.createObjectLiteralExpression(members)]
31477
31228
  );
31478
31229
  }
31479
31230
  function getBoundInputs(directive, node, tcb) {
@@ -31500,17 +31251,17 @@ function translateInput(attr, tcb, scope) {
31500
31251
  if (attr instanceof BoundAttribute) {
31501
31252
  return tcbExpression(attr.value, tcb, scope);
31502
31253
  } else {
31503
- return import_typescript84.default.factory.createStringLiteral(attr.value);
31254
+ return import_typescript81.default.factory.createStringLiteral(attr.value);
31504
31255
  }
31505
31256
  }
31506
31257
  function widenBinding(expr, tcb) {
31507
31258
  if (!tcb.env.config.checkTypeOfInputBindings) {
31508
31259
  return tsCastToAny(expr);
31509
31260
  } else if (!tcb.env.config.strictNullInputBindings) {
31510
- if (import_typescript84.default.isObjectLiteralExpression(expr) || import_typescript84.default.isArrayLiteralExpression(expr)) {
31261
+ if (import_typescript81.default.isObjectLiteralExpression(expr) || import_typescript81.default.isArrayLiteralExpression(expr)) {
31511
31262
  return expr;
31512
31263
  } else {
31513
- return import_typescript84.default.factory.createNonNullExpression(expr);
31264
+ return import_typescript81.default.factory.createNonNullExpression(expr);
31514
31265
  }
31515
31266
  } else {
31516
31267
  return expr;
@@ -31523,16 +31274,16 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
31523
31274
  if (eventType === 0) {
31524
31275
  eventParamType = void 0;
31525
31276
  } else if (eventType === 1) {
31526
- eventParamType = import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword);
31277
+ eventParamType = import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword);
31527
31278
  } else {
31528
31279
  eventParamType = eventType;
31529
31280
  }
31530
31281
  const guards = scope.guards();
31531
- let body = import_typescript84.default.factory.createExpressionStatement(handler);
31282
+ let body = import_typescript81.default.factory.createExpressionStatement(handler);
31532
31283
  if (guards !== null) {
31533
- body = import_typescript84.default.factory.createIfStatement(guards, body);
31284
+ body = import_typescript81.default.factory.createIfStatement(guards, body);
31534
31285
  }
31535
- const eventParam = createParameterDeclaration(
31286
+ const eventParam = import_typescript81.default.factory.createParameterDeclaration(
31536
31287
  void 0,
31537
31288
  void 0,
31538
31289
  EVENT_PARAMETER,
@@ -31540,13 +31291,13 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
31540
31291
  eventParamType
31541
31292
  );
31542
31293
  addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
31543
- return import_typescript84.default.factory.createArrowFunction(
31294
+ return import_typescript81.default.factory.createArrowFunction(
31544
31295
  void 0,
31545
31296
  void 0,
31546
31297
  [eventParam],
31547
- import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword),
31298
+ import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword),
31548
31299
  void 0,
31549
- import_typescript84.default.factory.createBlock([body])
31300
+ import_typescript81.default.factory.createBlock([body])
31550
31301
  );
31551
31302
  }
31552
31303
  function tcbEventHandlerExpression(ast, tcb, scope) {
@@ -31575,7 +31326,7 @@ function isSplitTwoWayBinding(inputName, output, inputs, tcb) {
31575
31326
  var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
31576
31327
  resolve(ast) {
31577
31328
  if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver && !(ast.receiver instanceof ThisReceiver) && ast.name === EVENT_PARAMETER) {
31578
- const event = import_typescript84.default.factory.createIdentifier(EVENT_PARAMETER);
31329
+ const event = import_typescript81.default.factory.createIdentifier(EVENT_PARAMETER);
31579
31330
  addParseSpanInfo(event, ast.nameSpan);
31580
31331
  return event;
31581
31332
  }
@@ -31584,32 +31335,32 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
31584
31335
  };
31585
31336
 
31586
31337
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
31587
- var import_typescript85 = __toESM(require("typescript"), 1);
31338
+ var import_typescript82 = __toESM(require("typescript"), 1);
31588
31339
  var TypeCheckFile = class extends Environment {
31589
31340
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
31590
- super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, import_typescript85.default.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", import_typescript85.default.ScriptTarget.Latest, true));
31341
+ super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, import_typescript82.default.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", import_typescript82.default.ScriptTarget.Latest, true));
31591
31342
  this.fileName = fileName;
31592
31343
  this.nextTcbId = 1;
31593
31344
  this.tcbStatements = [];
31594
31345
  }
31595
31346
  addTypeCheckBlock(ref, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
31596
- const fnId = import_typescript85.default.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
31347
+ const fnId = import_typescript82.default.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
31597
31348
  const fn2 = generateTypeCheckBlock(this, ref, fnId, meta, domSchemaChecker, oobRecorder, genericContextBehavior);
31598
31349
  this.tcbStatements.push(fn2);
31599
31350
  }
31600
31351
  render(removeComments) {
31601
31352
  let source = this.importManager.getAllImports(this.contextFile.fileName).map((i) => `import * as ${i.qualifier.text} from '${i.specifier}';`).join("\n") + "\n\n";
31602
- const printer = import_typescript85.default.createPrinter({ removeComments });
31353
+ const printer = import_typescript82.default.createPrinter({ removeComments });
31603
31354
  source += "\n";
31604
31355
  for (const stmt of this.pipeInstStatements) {
31605
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31356
+ source += printer.printNode(import_typescript82.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31606
31357
  }
31607
31358
  for (const stmt of this.typeCtorStatements) {
31608
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31359
+ source += printer.printNode(import_typescript82.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31609
31360
  }
31610
31361
  source += "\n";
31611
31362
  for (const stmt of this.tcbStatements) {
31612
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31363
+ source += printer.printNode(import_typescript82.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31613
31364
  }
31614
31365
  source += "\nexport const IS_A_MODULE = true;\n";
31615
31366
  return source;
@@ -31725,7 +31476,7 @@ var TypeCheckContextImpl = class {
31725
31476
  const importManager = new ImportManager(new NoopImportRewriter(), "_i");
31726
31477
  const ops = this.opMap.get(sf).sort(orderOps);
31727
31478
  const textParts = splitStringAtPoints(sf.text, ops.map((op) => op.splitPoint));
31728
- const printer = import_typescript86.default.createPrinter({ omitTrailingSemicolon: true });
31479
+ const printer = import_typescript83.default.createPrinter({ omitTrailingSemicolon: true });
31729
31480
  let code = textParts[0];
31730
31481
  ops.forEach((op, idx) => {
31731
31482
  const text = op.execute(importManager, sf, this.refEmitter, printer);
@@ -31806,7 +31557,7 @@ var TypeCheckContextImpl = class {
31806
31557
  if (span.start.offset === span.end.offset) {
31807
31558
  span.end.offset++;
31808
31559
  }
31809
- return makeTemplateDiagnostic(templateId, sourceMapping, span, import_typescript86.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error2.msg);
31560
+ return makeTemplateDiagnostic(templateId, sourceMapping, span, import_typescript83.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error2.msg);
31810
31561
  });
31811
31562
  }
31812
31563
  };
@@ -31824,9 +31575,9 @@ var InlineTcbOp = class {
31824
31575
  }
31825
31576
  execute(im, sf, refEmitter, printer) {
31826
31577
  const env = new Environment(this.config, im, refEmitter, this.reflector, sf);
31827
- const fnName = import_typescript86.default.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
31578
+ const fnName = import_typescript83.default.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
31828
31579
  const fn2 = generateTypeCheckBlock(env, this.ref, fnName, this.meta, this.domSchemaChecker, this.oobRecorder, TcbGenericContextBehavior.CopyClassNodes);
31829
- return printer.printNode(import_typescript86.default.EmitHint.Unspecified, fn2, sf);
31580
+ return printer.printNode(import_typescript83.default.EmitHint.Unspecified, fn2, sf);
31830
31581
  }
31831
31582
  };
31832
31583
  var TypeCtorOp = class {
@@ -31839,7 +31590,7 @@ var TypeCtorOp = class {
31839
31590
  }
31840
31591
  execute(im, sf, refEmitter, printer) {
31841
31592
  const tcb = generateInlineTypeCtor(this.ref.node, this.meta);
31842
- return printer.printNode(import_typescript86.default.EmitHint.Unspecified, tcb, sf);
31593
+ return printer.printNode(import_typescript83.default.EmitHint.Unspecified, tcb, sf);
31843
31594
  }
31844
31595
  };
31845
31596
  function orderOps(op1, op2) {
@@ -31950,7 +31701,7 @@ var TemplateSourceManager = class {
31950
31701
  };
31951
31702
 
31952
31703
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
31953
- var import_typescript87 = __toESM(require("typescript"), 1);
31704
+ var import_typescript84 = __toESM(require("typescript"), 1);
31954
31705
  var SymbolBuilder = class {
31955
31706
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
31956
31707
  this.tcbPath = tcbPath;
@@ -31994,7 +31745,7 @@ var SymbolBuilder = class {
31994
31745
  getSymbolOfElement(element) {
31995
31746
  var _a;
31996
31747
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
31997
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: import_typescript87.default.isVariableDeclaration });
31748
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: import_typescript84.default.isVariableDeclaration });
31998
31749
  if (node === null) {
31999
31750
  return null;
32000
31751
  }
@@ -32013,12 +31764,12 @@ var SymbolBuilder = class {
32013
31764
  var _a;
32014
31765
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
32015
31766
  const tcbSourceFile = this.typeCheckBlock.getSourceFile();
32016
- const isDirectiveDeclaration = (node) => (import_typescript87.default.isTypeNode(node) || import_typescript87.default.isIdentifier(node)) && import_typescript87.default.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
31767
+ const isDirectiveDeclaration = (node) => (import_typescript84.default.isTypeNode(node) || import_typescript84.default.isIdentifier(node)) && import_typescript84.default.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
32017
31768
  const nodes = findAllMatchingNodes(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: isDirectiveDeclaration });
32018
31769
  const symbols = [];
32019
31770
  for (const node of nodes) {
32020
31771
  const symbol = this.getSymbolOfTsNode(node.parent);
32021
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript87.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
31772
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript84.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32022
31773
  continue;
32023
31774
  }
32024
31775
  const meta = this.getDirectiveMeta(element, symbol.tsSymbol.valueDeclaration);
@@ -32045,7 +31796,7 @@ var SymbolBuilder = class {
32045
31796
  }
32046
31797
  addHostDirectiveSymbols(host, hostDirectives, symbols) {
32047
31798
  for (const current of hostDirectives) {
32048
- if (!import_typescript87.default.isClassDeclaration(current.directive.node)) {
31799
+ if (!import_typescript84.default.isClassDeclaration(current.directive.node)) {
32049
31800
  continue;
32050
31801
  }
32051
31802
  const symbol = this.getSymbolOfTsNode(current.directive.node);
@@ -32117,17 +31868,17 @@ var SymbolBuilder = class {
32117
31868
  if (!isAccessExpression(n)) {
32118
31869
  return false;
32119
31870
  }
32120
- if (import_typescript87.default.isPropertyAccessExpression(n)) {
31871
+ if (import_typescript84.default.isPropertyAccessExpression(n)) {
32121
31872
  return n.name.getText() === expectedAccess;
32122
31873
  } else {
32123
- return import_typescript87.default.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
31874
+ return import_typescript84.default.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
32124
31875
  }
32125
31876
  }
32126
31877
  const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, { withSpan: eventBinding.keySpan, filter });
32127
31878
  const bindings = [];
32128
31879
  for (const outputFieldAccess of outputFieldAccesses) {
32129
31880
  if (consumer instanceof Template || consumer instanceof Element) {
32130
- if (!import_typescript87.default.isPropertyAccessExpression(outputFieldAccess)) {
31881
+ if (!import_typescript84.default.isPropertyAccessExpression(outputFieldAccess)) {
32131
31882
  continue;
32132
31883
  }
32133
31884
  const addEventListener = outputFieldAccess.name;
@@ -32150,7 +31901,7 @@ var SymbolBuilder = class {
32150
31901
  }
32151
31902
  });
32152
31903
  } else {
32153
- if (!import_typescript87.default.isElementAccessExpression(outputFieldAccess)) {
31904
+ if (!import_typescript84.default.isElementAccessExpression(outputFieldAccess)) {
32154
31905
  continue;
32155
31906
  }
32156
31907
  const tsSymbol = this.getTypeChecker().getSymbolAtLocation(outputFieldAccess.argumentExpression);
@@ -32222,7 +31973,7 @@ var SymbolBuilder = class {
32222
31973
  return null;
32223
31974
  }
32224
31975
  const [declaration] = tsSymbol.declarations;
32225
- if (!import_typescript87.default.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
31976
+ if (!import_typescript84.default.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
32226
31977
  declaration.getSourceFile(),
32227
31978
  (_a = declaration.type) != null ? _a : declaration.name,
32228
31979
  ExpressionIdentifier.DIRECTIVE
@@ -32230,7 +31981,7 @@ var SymbolBuilder = class {
32230
31981
  return null;
32231
31982
  }
32232
31983
  const symbol = this.getSymbolOfTsNode(declaration);
32233
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript87.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
31984
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript84.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32234
31985
  return null;
32235
31986
  }
32236
31987
  const ref = new Reference2(symbol.tsSymbol.valueDeclaration);
@@ -32250,7 +32001,7 @@ var SymbolBuilder = class {
32250
32001
  };
32251
32002
  }
32252
32003
  getSymbolOfVariable(variable2) {
32253
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable2.sourceSpan, filter: import_typescript87.default.isVariableDeclaration });
32004
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable2.sourceSpan, filter: import_typescript84.default.isVariableDeclaration });
32254
32005
  if (node === null || node.initializer === void 0) {
32255
32006
  return null;
32256
32007
  }
@@ -32273,11 +32024,11 @@ var SymbolBuilder = class {
32273
32024
  }
32274
32025
  getSymbolOfReference(ref) {
32275
32026
  const target = this.templateData.boundTarget.getReferenceTarget(ref);
32276
- let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: import_typescript87.default.isVariableDeclaration });
32027
+ let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: import_typescript84.default.isVariableDeclaration });
32277
32028
  if (node === null || target === null || node.initializer === void 0) {
32278
32029
  return null;
32279
32030
  }
32280
- const originalDeclaration = import_typescript87.default.isParenthesizedExpression(node.initializer) && import_typescript87.default.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
32031
+ const originalDeclaration = import_typescript84.default.isParenthesizedExpression(node.initializer) && import_typescript84.default.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
32281
32032
  if (originalDeclaration === void 0 || originalDeclaration.valueDeclaration === void 0) {
32282
32033
  return null;
32283
32034
  }
@@ -32301,7 +32052,7 @@ var SymbolBuilder = class {
32301
32052
  referenceVarLocation: referenceVarTcbLocation
32302
32053
  };
32303
32054
  } else {
32304
- if (!import_typescript87.default.isClassDeclaration(target.directive.ref.node)) {
32055
+ if (!import_typescript84.default.isClassDeclaration(target.directive.ref.node)) {
32305
32056
  return null;
32306
32057
  }
32307
32058
  return {
@@ -32316,7 +32067,7 @@ var SymbolBuilder = class {
32316
32067
  }
32317
32068
  }
32318
32069
  getSymbolOfPipe(expression) {
32319
- const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: import_typescript87.default.isPropertyAccessExpression });
32070
+ const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: import_typescript84.default.isPropertyAccessExpression });
32320
32071
  if (methodAccess === null) {
32321
32072
  return null;
32322
32073
  }
@@ -32355,7 +32106,7 @@ var SymbolBuilder = class {
32355
32106
  }
32356
32107
  let node = null;
32357
32108
  if (expression instanceof PropertyRead) {
32358
- node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: import_typescript87.default.isPropertyAccessExpression });
32109
+ node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: import_typescript84.default.isPropertyAccessExpression });
32359
32110
  }
32360
32111
  if (node === null) {
32361
32112
  node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: anyNodeFilter });
@@ -32363,10 +32114,10 @@ var SymbolBuilder = class {
32363
32114
  if (node === null) {
32364
32115
  return null;
32365
32116
  }
32366
- while (import_typescript87.default.isParenthesizedExpression(node)) {
32117
+ while (import_typescript84.default.isParenthesizedExpression(node)) {
32367
32118
  node = node.expression;
32368
32119
  }
32369
- if (expression instanceof SafePropertyRead && import_typescript87.default.isConditionalExpression(node)) {
32120
+ if (expression instanceof SafePropertyRead && import_typescript84.default.isConditionalExpression(node)) {
32370
32121
  const whenTrueSymbol = this.getSymbolOfTsNode(node.whenTrue);
32371
32122
  if (whenTrueSymbol === null) {
32372
32123
  return null;
@@ -32382,13 +32133,13 @@ var SymbolBuilder = class {
32382
32133
  }
32383
32134
  getSymbolOfTsNode(node) {
32384
32135
  var _a;
32385
- while (import_typescript87.default.isParenthesizedExpression(node)) {
32136
+ while (import_typescript84.default.isParenthesizedExpression(node)) {
32386
32137
  node = node.expression;
32387
32138
  }
32388
32139
  let tsSymbol;
32389
- if (import_typescript87.default.isPropertyAccessExpression(node)) {
32140
+ if (import_typescript84.default.isPropertyAccessExpression(node)) {
32390
32141
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
32391
- } else if (import_typescript87.default.isElementAccessExpression(node)) {
32142
+ } else if (import_typescript84.default.isElementAccessExpression(node)) {
32392
32143
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.argumentExpression);
32393
32144
  } else {
32394
32145
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
@@ -32406,13 +32157,13 @@ var SymbolBuilder = class {
32406
32157
  };
32407
32158
  }
32408
32159
  getTcbPositionForNode(node) {
32409
- if (import_typescript87.default.isTypeReferenceNode(node)) {
32160
+ if (import_typescript84.default.isTypeReferenceNode(node)) {
32410
32161
  return this.getTcbPositionForNode(node.typeName);
32411
- } else if (import_typescript87.default.isQualifiedName(node)) {
32162
+ } else if (import_typescript84.default.isQualifiedName(node)) {
32412
32163
  return node.right.getStart();
32413
- } else if (import_typescript87.default.isPropertyAccessExpression(node)) {
32164
+ } else if (import_typescript84.default.isPropertyAccessExpression(node)) {
32414
32165
  return node.name.getStart();
32415
- } else if (import_typescript87.default.isElementAccessExpression(node)) {
32166
+ } else if (import_typescript84.default.isElementAccessExpression(node)) {
32416
32167
  return node.argumentExpression.getStart();
32417
32168
  } else {
32418
32169
  return node.getStart();
@@ -33297,7 +33048,7 @@ var factory3 = {
33297
33048
  };
33298
33049
 
33299
33050
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
33300
- var import_typescript90 = __toESM(require("typescript"), 1);
33051
+ var import_typescript87 = __toESM(require("typescript"), 1);
33301
33052
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
33302
33053
  constructor() {
33303
33054
  super(...arguments);
@@ -33311,7 +33062,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
33311
33062
  return [];
33312
33063
  }
33313
33064
  const typeLeft = symbolLeft.tsType;
33314
- if (typeLeft.flags & (import_typescript90.default.TypeFlags.Any | import_typescript90.default.TypeFlags.Unknown)) {
33065
+ if (typeLeft.flags & (import_typescript87.default.TypeFlags.Any | import_typescript87.default.TypeFlags.Unknown)) {
33315
33066
  return [];
33316
33067
  }
33317
33068
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -33341,7 +33092,7 @@ var factory4 = {
33341
33092
  };
33342
33093
 
33343
33094
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
33344
- var import_typescript91 = __toESM(require("typescript"), 1);
33095
+ var import_typescript88 = __toESM(require("typescript"), 1);
33345
33096
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
33346
33097
  constructor() {
33347
33098
  super(...arguments);
@@ -33355,7 +33106,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
33355
33106
  return [];
33356
33107
  }
33357
33108
  const typeLeft = symbolLeft.tsType;
33358
- if (typeLeft.flags & (import_typescript91.default.TypeFlags.Any | import_typescript91.default.TypeFlags.Unknown)) {
33109
+ if (typeLeft.flags & (import_typescript88.default.TypeFlags.Any | import_typescript88.default.TypeFlags.Unknown)) {
33359
33110
  return [];
33360
33111
  }
33361
33112
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -33447,7 +33198,7 @@ var factory7 = {
33447
33198
  };
33448
33199
 
33449
33200
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
33450
- var import_typescript92 = __toESM(require("typescript"), 1);
33201
+ var import_typescript89 = __toESM(require("typescript"), 1);
33451
33202
 
33452
33203
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
33453
33204
  var DiagnosticCategoryLabel;
@@ -33495,9 +33246,9 @@ var ExtendedTemplateCheckerImpl = class {
33495
33246
  function diagnosticLabelToCategory(label) {
33496
33247
  switch (label) {
33497
33248
  case DiagnosticCategoryLabel.Warning:
33498
- return import_typescript92.default.DiagnosticCategory.Warning;
33249
+ return import_typescript89.default.DiagnosticCategory.Warning;
33499
33250
  case DiagnosticCategoryLabel.Error:
33500
- return import_typescript92.default.DiagnosticCategory.Error;
33251
+ return import_typescript89.default.DiagnosticCategory.Error;
33501
33252
  case DiagnosticCategoryLabel.Suppress:
33502
33253
  return null;
33503
33254
  default:
@@ -33593,7 +33344,7 @@ var NgCompiler = class {
33593
33344
  this.currentProgram = inputProgram;
33594
33345
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
33595
33346
  this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
33596
- const moduleResolutionCache = import_typescript93.default.createModuleResolutionCache(
33347
+ const moduleResolutionCache = import_typescript90.default.createModuleResolutionCache(
33597
33348
  this.adapter.getCurrentDirectory(),
33598
33349
  this.adapter.getCanonicalFileName.bind(this.adapter)
33599
33350
  );
@@ -33640,7 +33391,7 @@ var NgCompiler = class {
33640
33391
  }
33641
33392
  for (const clazz of classesToUpdate) {
33642
33393
  this.compilation.traitCompiler.updateResources(clazz);
33643
- if (!import_typescript93.default.isClassDeclaration(clazz)) {
33394
+ if (!import_typescript90.default.isClassDeclaration(clazz)) {
33644
33395
  continue;
33645
33396
  }
33646
33397
  this.compilation.templateTypeChecker.invalidateClass(clazz);
@@ -33778,9 +33529,6 @@ var NgCompiler = class {
33778
33529
  if (compilation.aliasingHost !== null && compilation.aliasingHost.aliasExportsInDts) {
33779
33530
  afterDeclarations.push(aliasTransformFactory(compilation.traitCompiler.exportStatements));
33780
33531
  }
33781
- if (this.adapter.factoryTracker !== null) {
33782
- before.push(generatedFactoryTransform(this.adapter.factoryTracker.sourceInfo, importRewriter));
33783
- }
33784
33532
  return { transformers: { before, afterDeclarations } };
33785
33533
  }
33786
33534
  getIndexedComponents() {
@@ -34023,7 +33771,7 @@ var NgCompiler = class {
34023
33771
  new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
34024
33772
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
34025
33773
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder),
34026
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
33774
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
34027
33775
  ];
34028
33776
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
34029
33777
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -34055,18 +33803,18 @@ function isAngularCorePackage(program) {
34055
33803
  return false;
34056
33804
  }
34057
33805
  return r3Symbols.statements.some((stmt) => {
34058
- if (!import_typescript93.default.isVariableStatement(stmt)) {
33806
+ if (!import_typescript90.default.isVariableStatement(stmt)) {
34059
33807
  return false;
34060
33808
  }
34061
- const modifiers = import_typescript93.default.getModifiers(stmt);
34062
- if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === import_typescript93.default.SyntaxKind.ExportKeyword)) {
33809
+ const modifiers = import_typescript90.default.getModifiers(stmt);
33810
+ if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === import_typescript90.default.SyntaxKind.ExportKeyword)) {
34063
33811
  return false;
34064
33812
  }
34065
33813
  return stmt.declarationList.declarations.some((decl) => {
34066
- if (!import_typescript93.default.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
33814
+ if (!import_typescript90.default.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
34067
33815
  return false;
34068
33816
  }
34069
- if (decl.initializer === void 0 || decl.initializer.kind !== import_typescript93.default.SyntaxKind.TrueKeyword) {
33817
+ if (decl.initializer === void 0 || decl.initializer.kind !== import_typescript90.default.SyntaxKind.TrueKeyword) {
34070
33818
  return false;
34071
33819
  }
34072
33820
  return true;
@@ -34080,7 +33828,7 @@ function* verifyCompatibleTypeCheckOptions(options) {
34080
33828
  var _a, _b, _c;
34081
33829
  if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) {
34082
33830
  yield makeConfigDiagnostic({
34083
- category: import_typescript93.default.DiagnosticCategory.Error,
33831
+ category: import_typescript90.default.DiagnosticCategory.Error,
34084
33832
  code: ErrorCode.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK,
34085
33833
  messageText: `
34086
33834
  Angular compiler option "strictTemplates" is enabled, however "fullTemplateTypeCheck" is disabled.
@@ -34099,7 +33847,7 @@ https://angular.io/guide/template-typecheck
34099
33847
  }
34100
33848
  if (options.extendedDiagnostics && options.strictTemplates === false) {
34101
33849
  yield makeConfigDiagnostic({
34102
- category: import_typescript93.default.DiagnosticCategory.Error,
33850
+ category: import_typescript90.default.DiagnosticCategory.Error,
34103
33851
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES,
34104
33852
  messageText: `
34105
33853
  Angular compiler option "extendedDiagnostics" is configured, however "strictTemplates" is disabled.
@@ -34116,7 +33864,7 @@ One of the following actions is required:
34116
33864
  const defaultCategory = (_a = options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory;
34117
33865
  if (defaultCategory && !allowedCategoryLabels.includes(defaultCategory)) {
34118
33866
  yield makeConfigDiagnostic({
34119
- category: import_typescript93.default.DiagnosticCategory.Error,
33867
+ category: import_typescript90.default.DiagnosticCategory.Error,
34120
33868
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
34121
33869
  messageText: `
34122
33870
  Angular compiler option "extendedDiagnostics.defaultCategory" has an unknown diagnostic category: "${defaultCategory}".
@@ -34130,7 +33878,7 @@ ${allowedCategoryLabels.join("\n")}
34130
33878
  for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
34131
33879
  if (!allExtendedDiagnosticNames.includes(checkName)) {
34132
33880
  yield makeConfigDiagnostic({
34133
- category: import_typescript93.default.DiagnosticCategory.Error,
33881
+ category: import_typescript90.default.DiagnosticCategory.Error,
34134
33882
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK,
34135
33883
  messageText: `
34136
33884
  Angular compiler option "extendedDiagnostics.checks" has an unknown check: "${checkName}".
@@ -34142,7 +33890,7 @@ ${allExtendedDiagnosticNames.join("\n")}
34142
33890
  }
34143
33891
  if (!allowedCategoryLabels.includes(category)) {
34144
33892
  yield makeConfigDiagnostic({
34145
- category: import_typescript93.default.DiagnosticCategory.Error,
33893
+ category: import_typescript90.default.DiagnosticCategory.Error,
34146
33894
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
34147
33895
  messageText: `
34148
33896
  Angular compiler option "extendedDiagnostics.checks['${checkName}']" has an unknown diagnostic category: "${category}".
@@ -34172,7 +33920,7 @@ var ReferenceGraphAdapter = class {
34172
33920
  for (const { node } of references) {
34173
33921
  let sourceFile = node.getSourceFile();
34174
33922
  if (sourceFile === void 0) {
34175
- sourceFile = import_typescript93.default.getOriginalNode(node).getSourceFile();
33923
+ sourceFile = import_typescript90.default.getOriginalNode(node).getSourceFile();
34176
33924
  }
34177
33925
  if (sourceFile === void 0 || !isDtsPath(sourceFile.fileName)) {
34178
33926
  this.graph.add(source, node);
@@ -34211,7 +33959,7 @@ function versionMapFromProgram(program, driver) {
34211
33959
  }
34212
33960
 
34213
33961
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
34214
- var import_typescript95 = __toESM(require("typescript"), 1);
33962
+ var import_typescript92 = __toESM(require("typescript"), 1);
34215
33963
  var DelegatingCompilerHost2 = class {
34216
33964
  constructor(delegate) {
34217
33965
  this.delegate = delegate;
@@ -34242,19 +33990,19 @@ var DelegatingCompilerHost2 = class {
34242
33990
  this.writeFile = this.delegateMethod("writeFile");
34243
33991
  this.getModuleResolutionCache = this.delegateMethod("getModuleResolutionCache");
34244
33992
  this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
33993
+ this.resolveModuleNameLiterals = this.delegateMethod("resolveModuleNameLiterals");
33994
+ this.resolveTypeReferenceDirectiveReferences = this.delegateMethod("resolveTypeReferenceDirectiveReferences");
34245
33995
  }
34246
33996
  delegateMethod(name) {
34247
33997
  return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
34248
33998
  }
34249
33999
  };
34250
34000
  var NgCompilerHost = class extends DelegatingCompilerHost2 {
34251
- constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics) {
34001
+ constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics) {
34252
34002
  super(delegate);
34253
34003
  this.shimAdapter = shimAdapter;
34254
34004
  this.shimTagger = shimTagger;
34255
- this.factoryTracker = null;
34256
34005
  this.entryPoint = null;
34257
- this.factoryTracker = factoryTracker;
34258
34006
  this.entryPoint = entryPoint;
34259
34007
  this.constructionDiagnostics = diagnostics;
34260
34008
  this.inputFiles = [...inputFiles, ...shimAdapter.extraInputFiles];
@@ -34273,20 +34021,8 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34273
34021
  this.shimTagger.finalize();
34274
34022
  }
34275
34023
  static wrap(delegate, inputFiles, options, oldProgram) {
34276
- const allowEmptyCodegenFiles = options.allowEmptyCodegenFiles || false;
34277
- const shouldGenerateFactoryShims = options.generateNgFactoryShims !== void 0 ? options.generateNgFactoryShims : allowEmptyCodegenFiles;
34278
- const shouldGenerateSummaryShims = options.generateNgSummaryShims !== void 0 ? options.generateNgSummaryShims : allowEmptyCodegenFiles;
34279
34024
  const topLevelShimGenerators = [];
34280
34025
  const perFileShimGenerators = [];
34281
- if (shouldGenerateSummaryShims) {
34282
- perFileShimGenerators.push(new SummaryGenerator());
34283
- }
34284
- let factoryTracker = null;
34285
- if (shouldGenerateFactoryShims) {
34286
- const factoryGenerator = new FactoryGenerator();
34287
- perFileShimGenerators.push(factoryGenerator);
34288
- factoryTracker = factoryGenerator;
34289
- }
34290
34026
  const rootDirs = getRootDirs(delegate, options);
34291
34027
  perFileShimGenerators.push(new TypeCheckShimGenerator());
34292
34028
  let diagnostics = [];
@@ -34302,7 +34038,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34302
34038
  entryPoint = findFlatIndexEntryPoint(normalizedTsInputFiles);
34303
34039
  if (entryPoint === null) {
34304
34040
  diagnostics.push({
34305
- category: import_typescript95.default.DiagnosticCategory.Error,
34041
+ category: import_typescript92.default.DiagnosticCategory.Error,
34306
34042
  code: ngErrorCode(ErrorCode.CONFIG_FLAT_MODULE_NO_INDEX),
34307
34043
  file: void 0,
34308
34044
  start: void 0,
@@ -34318,7 +34054,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34318
34054
  }
34319
34055
  const shimAdapter = new ShimAdapter(delegate, normalizedTsInputFiles, topLevelShimGenerators, perFileShimGenerators, oldProgram);
34320
34056
  const shimTagger = new ShimReferenceTagger(perFileShimGenerators.map((gen) => gen.extensionPrefix));
34321
- return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics);
34057
+ return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics);
34322
34058
  }
34323
34059
  isShim(sf) {
34324
34060
  return isShim(sf);
@@ -34345,10 +34081,10 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34345
34081
  return this.fileNameToModuleName !== void 0 ? this : null;
34346
34082
  }
34347
34083
  createCachedResolveModuleNamesFunction() {
34348
- const moduleResolutionCache = import_typescript95.default.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
34084
+ const moduleResolutionCache = import_typescript92.default.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
34349
34085
  return (moduleNames, containingFile, reusedNames, redirectedReference, options) => {
34350
34086
  return moduleNames.map((moduleName) => {
34351
- const module3 = import_typescript95.default.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
34087
+ const module3 = import_typescript92.default.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
34352
34088
  return module3.resolvedModule;
34353
34089
  });
34354
34090
  };
@@ -34369,7 +34105,7 @@ var NgtscProgram = class {
34369
34105
  if (reuseProgram !== void 0) {
34370
34106
  retagAllTsFiles(reuseProgram);
34371
34107
  }
34372
- this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => import_typescript97.default.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
34108
+ this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => import_typescript94.default.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
34373
34109
  perfRecorder.phase(PerfPhase.Unaccounted);
34374
34110
  perfRecorder.memory(PerfCheckpoint.TypeScriptProgramCreate);
34375
34111
  this.host.postProgramCreationCleanup();
@@ -34579,13 +34315,13 @@ function createProgram({ rootNames, options, host, oldProgram }) {
34579
34315
  }
34580
34316
 
34581
34317
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
34582
- var import_typescript99 = __toESM(require("typescript"), 1);
34318
+ var import_typescript96 = __toESM(require("typescript"), 1);
34583
34319
 
34584
34320
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
34585
- var import_typescript98 = __toESM(require("typescript"), 1);
34321
+ var import_typescript95 = __toESM(require("typescript"), 1);
34586
34322
 
34587
34323
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
34588
- var import_typescript100 = __toESM(require("typescript"), 1);
34324
+ var import_typescript97 = __toESM(require("typescript"), 1);
34589
34325
 
34590
34326
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
34591
34327
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -34620,7 +34356,7 @@ setFileSystem(new NodeJSFileSystem());
34620
34356
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
34621
34357
  var import_fs2 = require("fs");
34622
34358
  var import_path8 = require("path");
34623
- var import_typescript112 = __toESM(require("typescript"), 1);
34359
+ var import_typescript109 = __toESM(require("typescript"), 1);
34624
34360
 
34625
34361
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
34626
34362
  var import_core13 = require("@angular-devkit/core");
@@ -34704,23 +34440,23 @@ function getWorkspace(tree) {
34704
34440
 
34705
34441
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
34706
34442
  var import_path4 = require("path");
34707
- var import_typescript102 = __toESM(require("typescript"), 1);
34443
+ var import_typescript99 = __toESM(require("typescript"), 1);
34708
34444
 
34709
34445
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
34710
34446
  var path2 = __toESM(require("path"), 1);
34711
- var import_typescript101 = __toESM(require("typescript"), 1);
34447
+ var import_typescript98 = __toESM(require("typescript"), 1);
34712
34448
  function parseTsconfigFile(tsconfigPath, basePath) {
34713
- const { config } = import_typescript101.default.readConfigFile(tsconfigPath, import_typescript101.default.sys.readFile);
34449
+ const { config } = import_typescript98.default.readConfigFile(tsconfigPath, import_typescript98.default.sys.readFile);
34714
34450
  const parseConfigHost = {
34715
- useCaseSensitiveFileNames: import_typescript101.default.sys.useCaseSensitiveFileNames,
34716
- fileExists: import_typescript101.default.sys.fileExists,
34717
- readDirectory: import_typescript101.default.sys.readDirectory,
34718
- readFile: import_typescript101.default.sys.readFile
34451
+ useCaseSensitiveFileNames: import_typescript98.default.sys.useCaseSensitiveFileNames,
34452
+ fileExists: import_typescript98.default.sys.fileExists,
34453
+ readDirectory: import_typescript98.default.sys.readDirectory,
34454
+ readFile: import_typescript98.default.sys.readFile
34719
34455
  };
34720
34456
  if (!path2.isAbsolute(basePath)) {
34721
34457
  throw Error("Unexpected relative base path has been specified.");
34722
34458
  }
34723
- return import_typescript101.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
34459
+ return import_typescript98.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
34724
34460
  }
34725
34461
 
34726
34462
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
@@ -34732,7 +34468,7 @@ function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additi
34732
34468
  return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
34733
34469
  }
34734
34470
  function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
34735
- const host = import_typescript102.default.createCompilerHost(options, true);
34471
+ const host = import_typescript99.default.createCompilerHost(options, true);
34736
34472
  const defaultReadFile = host.readFile;
34737
34473
  host.readFile = (fileName) => {
34738
34474
  var _a;
@@ -34753,24 +34489,24 @@ function canMigrateFile(basePath, sourceFile, program) {
34753
34489
  }
34754
34490
 
34755
34491
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
34756
- var import_typescript108 = __toESM(require("typescript"), 1);
34492
+ var import_typescript105 = __toESM(require("typescript"), 1);
34757
34493
 
34758
34494
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
34759
- var import_typescript104 = __toESM(require("typescript"), 1);
34495
+ var import_typescript101 = __toESM(require("typescript"), 1);
34760
34496
 
34761
34497
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
34762
- var import_typescript103 = __toESM(require("typescript"), 1);
34498
+ var import_typescript100 = __toESM(require("typescript"), 1);
34763
34499
  function getImportOfIdentifier(typeChecker, node) {
34764
34500
  const symbol = typeChecker.getSymbolAtLocation(node);
34765
34501
  if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
34766
34502
  return null;
34767
34503
  }
34768
34504
  const decl = symbol.declarations[0];
34769
- if (!import_typescript103.default.isImportSpecifier(decl)) {
34505
+ if (!import_typescript100.default.isImportSpecifier(decl)) {
34770
34506
  return null;
34771
34507
  }
34772
34508
  const importDecl = decl.parent.parent.parent;
34773
- if (!import_typescript103.default.isStringLiteral(importDecl.moduleSpecifier)) {
34509
+ if (!import_typescript100.default.isStringLiteral(importDecl.moduleSpecifier)) {
34774
34510
  return null;
34775
34511
  }
34776
34512
  return {
@@ -34782,10 +34518,10 @@ function getImportOfIdentifier(typeChecker, node) {
34782
34518
  function getImportSpecifier(sourceFile, moduleName, specifierName) {
34783
34519
  var _a;
34784
34520
  for (const node of sourceFile.statements) {
34785
- if (import_typescript103.default.isImportDeclaration(node) && import_typescript103.default.isStringLiteral(node.moduleSpecifier)) {
34521
+ if (import_typescript100.default.isImportDeclaration(node) && import_typescript100.default.isStringLiteral(node.moduleSpecifier)) {
34786
34522
  const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
34787
34523
  const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
34788
- if (isMatch && namedBindings && import_typescript103.default.isNamedImports(namedBindings)) {
34524
+ if (isMatch && namedBindings && import_typescript100.default.isNamedImports(namedBindings)) {
34789
34525
  const match = findImportSpecifier(namedBindings.elements, specifierName);
34790
34526
  if (match) {
34791
34527
  return match;
@@ -34804,7 +34540,7 @@ function findImportSpecifier(nodes, specifierName) {
34804
34540
 
34805
34541
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
34806
34542
  function getCallDecoratorImport(typeChecker, decorator) {
34807
- if (!import_typescript104.default.isCallExpression(decorator.expression) || !import_typescript104.default.isIdentifier(decorator.expression.expression)) {
34543
+ if (!import_typescript101.default.isCallExpression(decorator.expression) || !import_typescript101.default.isIdentifier(decorator.expression.expression)) {
34808
34544
  return null;
34809
34545
  }
34810
34546
  const identifier = decorator.expression.expression;
@@ -34822,10 +34558,10 @@ function getAngularDecorators(typeChecker, decorators) {
34822
34558
  }
34823
34559
 
34824
34560
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
34825
- var import_typescript105 = __toESM(require("typescript"), 1);
34561
+ var import_typescript102 = __toESM(require("typescript"), 1);
34826
34562
  function closestNode(node, predicate) {
34827
34563
  let current = node.parent;
34828
- while (current && !import_typescript105.default.isSourceFile(current)) {
34564
+ while (current && !import_typescript102.default.isSourceFile(current)) {
34829
34565
  if (predicate(current)) {
34830
34566
  return current;
34831
34567
  }
@@ -34836,12 +34572,11 @@ function closestNode(node, predicate) {
34836
34572
 
34837
34573
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
34838
34574
  var import_path6 = require("path");
34839
- var import_typescript107 = __toESM(require("typescript"), 1);
34575
+ var import_typescript104 = __toESM(require("typescript"), 1);
34840
34576
 
34841
34577
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
34842
34578
  var import_path5 = require("path");
34843
- var import_typescript106 = __toESM(require("typescript"), 1);
34844
- var IS_AFTER_TS_492 = isAfterVersion2(4, 9);
34579
+ var import_typescript103 = __toESM(require("typescript"), 1);
34845
34580
  var ImportManager2 = class {
34846
34581
  constructor(getUpdateRecorder, printer) {
34847
34582
  this.getUpdateRecorder = getUpdateRecorder;
@@ -34862,7 +34597,7 @@ var ImportManager2 = class {
34862
34597
  }
34863
34598
  for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
34864
34599
  const statement = sourceFile.statements[i];
34865
- if (!import_typescript106.default.isImportDeclaration(statement) || !import_typescript106.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
34600
+ if (!import_typescript103.default.isImportDeclaration(statement) || !import_typescript103.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
34866
34601
  continue;
34867
34602
  }
34868
34603
  if (importStartIndex === 0) {
@@ -34874,9 +34609,9 @@ var ImportManager2 = class {
34874
34609
  }
34875
34610
  if (statement.importClause.namedBindings) {
34876
34611
  const namedBindings = statement.importClause.namedBindings;
34877
- if (import_typescript106.default.isNamespaceImport(namedBindings) && !typeImport) {
34878
- return import_typescript106.default.factory.createPropertyAccessExpression(import_typescript106.default.factory.createIdentifier(namedBindings.name.text), import_typescript106.default.factory.createIdentifier(alias || symbolName || "default"));
34879
- } else if (import_typescript106.default.isNamedImports(namedBindings) && symbolName) {
34612
+ if (import_typescript103.default.isNamespaceImport(namedBindings) && !typeImport) {
34613
+ return import_typescript103.default.factory.createPropertyAccessExpression(import_typescript103.default.factory.createIdentifier(namedBindings.name.text), import_typescript103.default.factory.createIdentifier(alias || symbolName || "default"));
34614
+ } else if (import_typescript103.default.isNamedImports(namedBindings) && symbolName) {
34880
34615
  const existingElement = namedBindings.elements.find((e) => {
34881
34616
  if (alias) {
34882
34617
  return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
@@ -34884,12 +34619,12 @@ var ImportManager2 = class {
34884
34619
  return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
34885
34620
  });
34886
34621
  if (existingElement) {
34887
- return import_typescript106.default.factory.createIdentifier(existingElement.name.text);
34622
+ return import_typescript103.default.factory.createIdentifier(existingElement.name.text);
34888
34623
  }
34889
34624
  existingImport = statement;
34890
34625
  }
34891
34626
  } else if (statement.importClause.name && !symbolName) {
34892
- return import_typescript106.default.factory.createIdentifier(statement.importClause.name.text);
34627
+ return import_typescript103.default.factory.createIdentifier(statement.importClause.name.text);
34893
34628
  }
34894
34629
  }
34895
34630
  if (existingImport) {
@@ -34913,7 +34648,7 @@ var ImportManager2 = class {
34913
34648
  if (!importMap.has(moduleName)) {
34914
34649
  importMap.set(moduleName, []);
34915
34650
  }
34916
- importMap.get(moduleName).push(import_typescript106.default.factory.createImportSpecifier(false, propertyName, name));
34651
+ importMap.get(moduleName).push(import_typescript103.default.factory.createImportSpecifier(false, propertyName, name));
34917
34652
  } else {
34918
34653
  const importMap = this.newImports.get(sourceFile).defaultImports;
34919
34654
  identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
@@ -34927,19 +34662,19 @@ var ImportManager2 = class {
34927
34662
  const sourceFile = importDecl.getSourceFile();
34928
34663
  const recorder = this.getUpdateRecorder(sourceFile);
34929
34664
  const namedBindings = importDecl.importClause.namedBindings;
34930
- const newNamedBindings = import_typescript106.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript106.default.factory.createImportSpecifier(false, propertyName, importName))));
34931
- const newNamedBindingsText = this.printer.printNode(import_typescript106.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
34665
+ const newNamedBindings = import_typescript103.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript103.default.factory.createImportSpecifier(false, propertyName, importName))));
34666
+ const newNamedBindingsText = this.printer.printNode(import_typescript103.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
34932
34667
  recorder.updateExistingImport(namedBindings, newNamedBindingsText);
34933
34668
  });
34934
34669
  this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
34935
34670
  const recorder = this.getUpdateRecorder(sourceFile);
34936
34671
  const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
34937
34672
  defaultImports.forEach((identifier, moduleName) => {
34938
- const newImport = createImportDeclaration2(void 0, import_typescript106.default.factory.createImportClause(false, identifier, void 0), import_typescript106.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34673
+ const newImport = import_typescript103.default.factory.createImportDeclaration(void 0, import_typescript103.default.factory.createImportClause(false, identifier, void 0), import_typescript103.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34939
34674
  recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
34940
34675
  });
34941
34676
  namedImports.forEach((specifiers, moduleName) => {
34942
- const newImport = createImportDeclaration2(void 0, import_typescript106.default.factory.createImportClause(false, void 0, import_typescript106.default.factory.createNamedImports(specifiers)), import_typescript106.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34677
+ const newImport = import_typescript103.default.factory.createImportDeclaration(void 0, import_typescript103.default.factory.createImportClause(false, void 0, import_typescript103.default.factory.createNamedImports(specifiers)), import_typescript103.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34943
34678
  recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
34944
34679
  });
34945
34680
  });
@@ -34947,7 +34682,7 @@ var ImportManager2 = class {
34947
34682
  _getUniqueIdentifier(sourceFile, baseName) {
34948
34683
  if (this.isUniqueIdentifierName(sourceFile, baseName)) {
34949
34684
  this._recordUsedIdentifier(sourceFile, baseName);
34950
- return import_typescript106.default.factory.createIdentifier(baseName);
34685
+ return import_typescript103.default.factory.createIdentifier(baseName);
34951
34686
  }
34952
34687
  let name = null;
34953
34688
  let counter = 1;
@@ -34955,7 +34690,7 @@ var ImportManager2 = class {
34955
34690
  name = `${baseName}_${counter++}`;
34956
34691
  } while (!this.isUniqueIdentifierName(sourceFile, name));
34957
34692
  this._recordUsedIdentifier(sourceFile, name);
34958
- return import_typescript106.default.factory.createIdentifier(name);
34693
+ return import_typescript103.default.factory.createIdentifier(name);
34959
34694
  }
34960
34695
  isUniqueIdentifierName(sourceFile, name) {
34961
34696
  if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
@@ -34964,7 +34699,7 @@ var ImportManager2 = class {
34964
34699
  const nodeQueue = [sourceFile];
34965
34700
  while (nodeQueue.length) {
34966
34701
  const node = nodeQueue.shift();
34967
- if (import_typescript106.default.isIdentifier(node) && node.text === name && (!import_typescript106.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
34702
+ if (import_typescript103.default.isIdentifier(node) && node.text === name && (!import_typescript103.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
34968
34703
  return false;
34969
34704
  }
34970
34705
  nodeQueue.push(...node.getChildren());
@@ -34976,21 +34711,21 @@ var ImportManager2 = class {
34976
34711
  }
34977
34712
  _getEndPositionOfNode(node) {
34978
34713
  const nodeEndPos = node.getEnd();
34979
- const commentRanges = import_typescript106.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
34714
+ const commentRanges = import_typescript103.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
34980
34715
  if (!commentRanges || !commentRanges.length) {
34981
34716
  return nodeEndPos;
34982
34717
  }
34983
34718
  return commentRanges[commentRanges.length - 1].end;
34984
34719
  }
34985
34720
  _getNewImportText(importStartIndex, newImport, sourceFile) {
34986
- const text = this.printer.printNode(import_typescript106.default.EmitHint.Unspecified, newImport, sourceFile);
34721
+ const text = this.printer.printNode(import_typescript103.default.EmitHint.Unspecified, newImport, sourceFile);
34987
34722
  return importStartIndex === 0 ? `${text}
34988
34723
  ` : `
34989
34724
  ${text}`;
34990
34725
  }
34991
34726
  _getImportParts(sourceFile, symbolName, alias) {
34992
- const symbolIdentifier = import_typescript106.default.factory.createIdentifier(symbolName);
34993
- const aliasIdentifier = alias ? import_typescript106.default.factory.createIdentifier(alias) : null;
34727
+ const symbolIdentifier = import_typescript103.default.factory.createIdentifier(symbolName);
34728
+ const aliasIdentifier = alias ? import_typescript103.default.factory.createIdentifier(alias) : null;
34994
34729
  const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
34995
34730
  const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
34996
34731
  let propertyName;
@@ -35010,7 +34745,7 @@ ${text}`;
35010
34745
  if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
35011
34746
  let quoteStyle;
35012
34747
  for (const statement of sourceFile.statements) {
35013
- if (import_typescript106.default.isImportDeclaration(statement) && import_typescript106.default.isStringLiteralLike(statement.moduleSpecifier)) {
34748
+ if (import_typescript103.default.isImportDeclaration(statement) && import_typescript103.default.isStringLiteralLike(statement.moduleSpecifier)) {
35014
34749
  quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
35015
34750
  break;
35016
34751
  }
@@ -35020,16 +34755,6 @@ ${text}`;
35020
34755
  return this.quoteStyles[sourceFile.fileName];
35021
34756
  }
35022
34757
  };
35023
- function createImportDeclaration2(modifiers, importClause, moduleSpecifier, assertClause) {
35024
- return IS_AFTER_TS_492 ? import_typescript106.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript106.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
35025
- }
35026
- function isAfterVersion2(targetMajor, targetMinor) {
35027
- const [major, minor] = import_typescript106.default.versionMajorMinor.split(".").map((part) => parseInt(part));
35028
- if (major < targetMajor) {
35029
- return false;
35030
- }
35031
- return major === targetMajor ? minor >= targetMinor : true;
35032
- }
35033
34758
 
35034
34759
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
35035
34760
  var ChangeTracker = class {
@@ -35048,7 +34773,7 @@ var ChangeTracker = class {
35048
34773
  replaceText(sourceFile, start, removeLength, text) {
35049
34774
  this._trackChange(sourceFile, { start, removeLength, text });
35050
34775
  }
35051
- replaceNode(oldNode, newNode, emitHint = import_typescript107.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
34776
+ replaceNode(oldNode, newNode, emitHint = import_typescript104.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
35052
34777
  const sourceFile = oldNode.getSourceFile();
35053
34778
  this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
35054
34779
  }
@@ -35122,7 +34847,7 @@ var ReferenceResolver = class {
35122
34847
  const results = /* @__PURE__ */ new Map();
35123
34848
  for (const symbol of referencedSymbols) {
35124
34849
  for (const ref of symbol.references) {
35125
- if (!ref.isDefinition || symbol.definition.kind === import_typescript107.default.ScriptElementKind.alias) {
34850
+ if (!ref.isDefinition || symbol.definition.kind === import_typescript104.default.ScriptElementKind.alias) {
35126
34851
  if (!results.has(ref.fileName)) {
35127
34852
  results.set(ref.fileName, []);
35128
34853
  }
@@ -35146,7 +34871,7 @@ var ReferenceResolver = class {
35146
34871
  for (const file of highlights) {
35147
34872
  if (file.fileName === fileName) {
35148
34873
  for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
35149
- if (kind !== import_typescript107.default.HighlightSpanKind.none) {
34874
+ if (kind !== import_typescript104.default.HighlightSpanKind.none) {
35150
34875
  results.push([start, start + length]);
35151
34876
  }
35152
34877
  }
@@ -35172,19 +34897,19 @@ var ReferenceResolver = class {
35172
34897
  rootFileNames.push(fileName);
35173
34898
  }
35174
34899
  });
35175
- this._languageService = import_typescript107.default.createLanguageService({
34900
+ this._languageService = import_typescript104.default.createLanguageService({
35176
34901
  getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
35177
34902
  getScriptFileNames: () => rootFileNames,
35178
34903
  getScriptVersion: () => "0",
35179
34904
  getScriptSnapshot: (path3) => {
35180
34905
  const content = this._readFile(path3);
35181
- return content ? import_typescript107.default.ScriptSnapshot.fromString(content) : void 0;
34906
+ return content ? import_typescript104.default.ScriptSnapshot.fromString(content) : void 0;
35182
34907
  },
35183
34908
  getCurrentDirectory: () => this._basePath,
35184
- getDefaultLibFileName: (options) => import_typescript107.default.getDefaultLibFilePath(options),
34909
+ getDefaultLibFileName: (options) => import_typescript104.default.getDefaultLibFilePath(options),
35185
34910
  readFile: (path3) => this._readFile(path3),
35186
34911
  fileExists: (path3) => this._host.fileExists(path3)
35187
- }, import_typescript107.default.createDocumentRegistry(), import_typescript107.default.LanguageServiceMode.PartialSemantic);
34912
+ }, import_typescript104.default.createDocumentRegistry(), import_typescript104.default.LanguageServiceMode.PartialSemantic);
35188
34913
  }
35189
34914
  return this._languageService;
35190
34915
  }
@@ -35214,10 +34939,10 @@ function offsetsToNodes(lookup, offsets, results) {
35214
34939
  }
35215
34940
  function findClassDeclaration(reference, typeChecker) {
35216
34941
  var _a, _b;
35217
- return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript107.default.isClassDeclaration)) || null;
34942
+ return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript104.default.isClassDeclaration)) || null;
35218
34943
  }
35219
34944
  function findLiteralProperty(literal3, name) {
35220
- return literal3.properties.find((prop) => prop.name && import_typescript107.default.isIdentifier(prop.name) && prop.name.text === name);
34945
+ return literal3.properties.find((prop) => prop.name && import_typescript104.default.isIdentifier(prop.name) && prop.name.text === name);
35221
34946
  }
35222
34947
  function getRelativeImportPath(fromFile, toFile) {
35223
34948
  let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
@@ -35241,9 +34966,9 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
35241
34966
  const externalName = `@angular/${moduleName}`;
35242
34967
  const internalName = `angular2/rc/packages/${moduleName}`;
35243
34968
  return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
35244
- const closestClass = closestOrSelf(decl, import_typescript107.default.isClassDeclaration);
34969
+ const closestClass = closestOrSelf(decl, import_typescript104.default.isClassDeclaration);
35245
34970
  const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
35246
- if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript107.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
34971
+ if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript104.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
35247
34972
  return false;
35248
34973
  }
35249
34974
  return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
@@ -35268,10 +34993,10 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
35268
34993
  const nodesToRemove = /* @__PURE__ */ new Set();
35269
34994
  sourceFiles.forEach(function walk(node) {
35270
34995
  var _a, _b;
35271
- if (import_typescript108.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
34996
+ if (import_typescript105.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
35272
34997
  collectRemovalLocations(node, removalLocations, referenceResolver, program);
35273
34998
  classesToRemove.add(node);
35274
- } else if (import_typescript108.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript108.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
34999
+ } else if (import_typescript105.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript105.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
35275
35000
  const exportedSourceFile = (_b = (_a = typeChecker.getSymbolAtLocation(node.moduleSpecifier)) == null ? void 0 : _a.valueDeclaration) == null ? void 0 : _b.getSourceFile();
35276
35001
  if (exportedSourceFile) {
35277
35002
  barrelExports.track(exportedSourceFile, node);
@@ -35317,17 +35042,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
35317
35042
  }
35318
35043
  }
35319
35044
  for (const node of nodes) {
35320
- const closestArray = closestNode(node, import_typescript108.default.isArrayLiteralExpression);
35045
+ const closestArray = closestNode(node, import_typescript105.default.isArrayLiteralExpression);
35321
35046
  if (closestArray) {
35322
35047
  removalLocations.arrays.track(closestArray, node);
35323
35048
  continue;
35324
35049
  }
35325
- const closestImport = closestNode(node, import_typescript108.default.isNamedImports);
35050
+ const closestImport = closestNode(node, import_typescript105.default.isNamedImports);
35326
35051
  if (closestImport) {
35327
35052
  removalLocations.imports.track(closestImport, node);
35328
35053
  continue;
35329
35054
  }
35330
- const closestExport = closestNode(node, import_typescript108.default.isNamedExports);
35055
+ const closestExport = closestNode(node, import_typescript105.default.isNamedExports);
35331
35056
  if (closestExport) {
35332
35057
  removalLocations.exports.track(closestExport, node);
35333
35058
  continue;
@@ -35338,24 +35063,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
35338
35063
  function removeArrayReferences(locations, tracker) {
35339
35064
  for (const [array, toRemove] of locations.getEntries()) {
35340
35065
  const newElements = filterRemovedElements(array.elements, toRemove);
35341
- tracker.replaceNode(array, import_typescript108.default.factory.updateArrayLiteralExpression(array, newElements));
35066
+ tracker.replaceNode(array, import_typescript105.default.factory.updateArrayLiteralExpression(array, newElements));
35342
35067
  }
35343
35068
  }
35344
35069
  function removeImportReferences(locations, tracker) {
35345
35070
  for (const [namedImports, toRemove] of locations.getEntries()) {
35346
35071
  const newElements = filterRemovedElements(namedImports.elements, toRemove);
35347
35072
  if (newElements.length === 0) {
35348
- const importClause = closestNode(namedImports, import_typescript108.default.isImportClause);
35073
+ const importClause = closestNode(namedImports, import_typescript105.default.isImportClause);
35349
35074
  if (importClause && importClause.name) {
35350
- tracker.replaceNode(importClause, import_typescript108.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
35075
+ tracker.replaceNode(importClause, import_typescript105.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
35351
35076
  } else {
35352
- const declaration = closestNode(namedImports, import_typescript108.default.isImportDeclaration);
35077
+ const declaration = closestNode(namedImports, import_typescript105.default.isImportDeclaration);
35353
35078
  if (declaration) {
35354
35079
  tracker.removeNode(declaration);
35355
35080
  }
35356
35081
  }
35357
35082
  } else {
35358
- tracker.replaceNode(namedImports, import_typescript108.default.factory.updateNamedImports(namedImports, newElements));
35083
+ tracker.replaceNode(namedImports, import_typescript105.default.factory.updateNamedImports(namedImports, newElements));
35359
35084
  }
35360
35085
  }
35361
35086
  }
@@ -35363,22 +35088,22 @@ function removeExportReferences(locations, tracker) {
35363
35088
  for (const [namedExports, toRemove] of locations.getEntries()) {
35364
35089
  const newElements = filterRemovedElements(namedExports.elements, toRemove);
35365
35090
  if (newElements.length === 0) {
35366
- const declaration = closestNode(namedExports, import_typescript108.default.isExportDeclaration);
35091
+ const declaration = closestNode(namedExports, import_typescript105.default.isExportDeclaration);
35367
35092
  if (declaration) {
35368
35093
  tracker.removeNode(declaration);
35369
35094
  }
35370
35095
  } else {
35371
- tracker.replaceNode(namedExports, import_typescript108.default.factory.updateNamedExports(namedExports, newElements));
35096
+ tracker.replaceNode(namedExports, import_typescript105.default.factory.updateNamedExports(namedExports, newElements));
35372
35097
  }
35373
35098
  }
35374
35099
  }
35375
35100
  function canRemoveClass(node, typeChecker) {
35376
35101
  var _a;
35377
35102
  const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
35378
- if (!decorator || !import_typescript108.default.isCallExpression(decorator.expression)) {
35103
+ if (!decorator || !import_typescript105.default.isCallExpression(decorator.expression)) {
35379
35104
  return false;
35380
35105
  }
35381
- if (decorator.expression.arguments.length > 0 && !import_typescript108.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
35106
+ if (decorator.expression.arguments.length > 0 && !import_typescript105.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
35382
35107
  return false;
35383
35108
  }
35384
35109
  if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
@@ -35391,7 +35116,7 @@ function canRemoveClass(node, typeChecker) {
35391
35116
  const imports = findLiteralProperty(literal3, "imports");
35392
35117
  if (imports && isNonEmptyNgModuleProperty(imports)) {
35393
35118
  for (const dep of imports.initializer.elements) {
35394
- if (!import_typescript108.default.isIdentifier(dep)) {
35119
+ if (!import_typescript105.default.isIdentifier(dep)) {
35395
35120
  return false;
35396
35121
  }
35397
35122
  const depDeclaration = findClassDeclaration(dep, typeChecker);
@@ -35409,15 +35134,15 @@ function canRemoveClass(node, typeChecker) {
35409
35134
  return true;
35410
35135
  }
35411
35136
  function isNonEmptyNgModuleProperty(node) {
35412
- return import_typescript108.default.isPropertyAssignment(node) && import_typescript108.default.isIdentifier(node.name) && import_typescript108.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
35137
+ return import_typescript105.default.isPropertyAssignment(node) && import_typescript105.default.isIdentifier(node.name) && import_typescript105.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
35413
35138
  }
35414
35139
  function canRemoveFile(sourceFile, nodesToBeRemoved) {
35415
35140
  var _a;
35416
35141
  for (const node of sourceFile.statements) {
35417
- if (import_typescript108.default.isImportDeclaration(node) || nodesToBeRemoved.has(node)) {
35142
+ if (import_typescript105.default.isImportDeclaration(node) || nodesToBeRemoved.has(node)) {
35418
35143
  continue;
35419
35144
  }
35420
- if (import_typescript108.default.isExportDeclaration(node) || import_typescript108.default.canHaveModifiers(node) && ((_a = import_typescript108.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript108.default.SyntaxKind.ExportKeyword))) {
35145
+ if (import_typescript105.default.isExportDeclaration(node) || import_typescript105.default.canHaveModifiers(node) && ((_a = import_typescript105.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript105.default.SyntaxKind.ExportKeyword))) {
35421
35146
  return false;
35422
35147
  }
35423
35148
  }
@@ -35437,7 +35162,7 @@ function filterRemovedElements(elements, toRemove) {
35437
35162
  });
35438
35163
  }
35439
35164
  function isEmptyConstructor(node) {
35440
- return import_typescript108.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
35165
+ return import_typescript105.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
35441
35166
  }
35442
35167
  function addRemovalTodos(nodes, tracker) {
35443
35168
  for (const node of nodes) {
@@ -35445,19 +35170,19 @@ function addRemovalTodos(nodes, tracker) {
35445
35170
  }
35446
35171
  }
35447
35172
  function findNgModuleDecorator(node, typeChecker) {
35448
- const decorators = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []);
35173
+ const decorators = getAngularDecorators(typeChecker, import_typescript105.default.getDecorators(node) || []);
35449
35174
  return decorators.find((decorator) => decorator.name === "NgModule") || null;
35450
35175
  }
35451
35176
 
35452
35177
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
35453
35178
  var import_path7 = require("path");
35454
- var import_typescript111 = __toESM(require("typescript"), 1);
35179
+ var import_typescript108 = __toESM(require("typescript"), 1);
35455
35180
 
35456
35181
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
35457
- var import_typescript110 = __toESM(require("typescript"), 1);
35182
+ var import_typescript107 = __toESM(require("typescript"), 1);
35458
35183
 
35459
35184
  // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
35460
- var import_typescript109 = __toESM(require("typescript"), 1);
35185
+ var import_typescript106 = __toESM(require("typescript"), 1);
35461
35186
  function isReferenceToImport(typeChecker, node, importSpecifier) {
35462
35187
  var _a, _b;
35463
35188
  const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
@@ -35502,7 +35227,7 @@ function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker,
35502
35227
  if (directiveMeta.isComponent) {
35503
35228
  const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
35504
35229
  if (importsToAdd.length > 0) {
35505
- decorator = addPropertyToAngularDecorator(decorator, import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(importsToAdd)));
35230
+ decorator = addPropertyToAngularDecorator(decorator, import_typescript107.default.factory.createPropertyAssignment("imports", import_typescript107.default.factory.createArrayLiteralExpression(importsToAdd)));
35506
35231
  }
35507
35232
  }
35508
35233
  tracker.replaceNode(directiveMeta.decorator, decorator);
@@ -35532,11 +35257,11 @@ function getComponentImportExpressions(decl, allDeclarations, tracker, typeCheck
35532
35257
  const identifier = tracker.addImport(decl.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
35533
35258
  imports.push(identifier);
35534
35259
  } else {
35535
- const identifier = import_typescript110.default.factory.createIdentifier(importLocation.symbolName);
35260
+ const identifier = import_typescript107.default.factory.createIdentifier(importLocation.symbolName);
35536
35261
  if (importLocation.isForwardReference) {
35537
35262
  const forwardRefExpression = tracker.addImport(decl.getSourceFile(), "forwardRef", "@angular/core");
35538
- const arrowFunction = import_typescript110.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
35539
- imports.push(import_typescript110.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
35263
+ const arrowFunction = import_typescript107.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
35264
+ imports.push(import_typescript107.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
35540
35265
  } else {
35541
35266
  imports.push(identifier);
35542
35267
  }
@@ -35561,10 +35286,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35561
35286
  const declarationsToCopy = [];
35562
35287
  const properties = [];
35563
35288
  const importsProp = findLiteralProperty(literal3, "imports");
35564
- if (import_typescript110.default.isPropertyAssignment(declarationsProp)) {
35565
- if (import_typescript110.default.isArrayLiteralExpression(declarationsProp.initializer)) {
35289
+ if (import_typescript107.default.isPropertyAssignment(declarationsProp)) {
35290
+ if (import_typescript107.default.isArrayLiteralExpression(declarationsProp.initializer)) {
35566
35291
  for (const el of declarationsProp.initializer.elements) {
35567
- if (import_typescript110.default.isIdentifier(el)) {
35292
+ if (import_typescript107.default.isIdentifier(el)) {
35568
35293
  const correspondingClass = findClassDeclaration(el, typeChecker);
35569
35294
  if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
35570
35295
  declarationsToCopy.push(el);
@@ -35576,11 +35301,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35576
35301
  }
35577
35302
  }
35578
35303
  } else {
35579
- declarationsToCopy.push(import_typescript110.default.factory.createSpreadElement(declarationsProp.initializer));
35304
+ declarationsToCopy.push(import_typescript107.default.factory.createSpreadElement(declarationsProp.initializer));
35580
35305
  }
35581
35306
  }
35582
35307
  if (!importsProp && declarationsToCopy.length > 0) {
35583
- properties.push(import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(declarationsToCopy)));
35308
+ properties.push(import_typescript107.default.factory.createPropertyAssignment("imports", import_typescript107.default.factory.createArrayLiteralExpression(declarationsToCopy)));
35584
35309
  }
35585
35310
  for (const prop of literal3.properties) {
35586
35311
  if (!isNamedPropertyAssignment(prop)) {
@@ -35589,43 +35314,43 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35589
35314
  }
35590
35315
  if (prop === declarationsProp) {
35591
35316
  if (declarationsToPreserve.length > 0) {
35592
- properties.push(import_typescript110.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript110.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
35317
+ properties.push(import_typescript107.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript107.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
35593
35318
  }
35594
35319
  continue;
35595
35320
  }
35596
35321
  if (prop === importsProp && declarationsToCopy.length > 0) {
35597
35322
  let initializer;
35598
- if (import_typescript110.default.isArrayLiteralExpression(prop.initializer)) {
35599
- initializer = import_typescript110.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
35323
+ if (import_typescript107.default.isArrayLiteralExpression(prop.initializer)) {
35324
+ initializer = import_typescript107.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
35600
35325
  } else {
35601
- initializer = import_typescript110.default.factory.createArrayLiteralExpression([import_typescript110.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
35326
+ initializer = import_typescript107.default.factory.createArrayLiteralExpression([import_typescript107.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
35602
35327
  }
35603
- properties.push(import_typescript110.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
35328
+ properties.push(import_typescript107.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
35604
35329
  continue;
35605
35330
  }
35606
35331
  properties.push(prop);
35607
35332
  }
35608
- tracker.replaceNode(literal3, import_typescript110.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript110.default.EmitHint.Expression);
35333
+ tracker.replaceNode(literal3, import_typescript107.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript107.default.EmitHint.Expression);
35609
35334
  }
35610
35335
  function addStandaloneToDecorator(node) {
35611
- return addPropertyToAngularDecorator(node, import_typescript110.default.factory.createPropertyAssignment("standalone", import_typescript110.default.factory.createToken(import_typescript110.default.SyntaxKind.TrueKeyword)));
35336
+ return addPropertyToAngularDecorator(node, import_typescript107.default.factory.createPropertyAssignment("standalone", import_typescript107.default.factory.createToken(import_typescript107.default.SyntaxKind.TrueKeyword)));
35612
35337
  }
35613
35338
  function addPropertyToAngularDecorator(node, property) {
35614
- if (!import_typescript110.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
35339
+ if (!import_typescript107.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
35615
35340
  return node;
35616
35341
  }
35617
35342
  let literalProperties;
35618
35343
  if (node.expression.arguments.length === 0) {
35619
35344
  literalProperties = [property];
35620
- } else if (import_typescript110.default.isObjectLiteralExpression(node.expression.arguments[0])) {
35345
+ } else if (import_typescript107.default.isObjectLiteralExpression(node.expression.arguments[0])) {
35621
35346
  literalProperties = [...node.expression.arguments[0].properties, property];
35622
35347
  } else {
35623
35348
  return node;
35624
35349
  }
35625
- return import_typescript110.default.factory.createDecorator(import_typescript110.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript110.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
35350
+ return import_typescript107.default.factory.createDecorator(import_typescript107.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript107.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
35626
35351
  }
35627
35352
  function isNamedPropertyAssignment(node) {
35628
- return import_typescript110.default.isPropertyAssignment(node) && node.name && import_typescript110.default.isIdentifier(node.name);
35353
+ return import_typescript107.default.isPropertyAssignment(node) && node.name && import_typescript107.default.isIdentifier(node.name);
35629
35354
  }
35630
35355
  function findImportLocation(target, inComponent, importMode, typeChecker) {
35631
35356
  const importLocations = typeChecker.getPotentialImportsFor(target, inComponent, importMode);
@@ -35645,14 +35370,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
35645
35370
  return firstSameFileImport || firstModuleImport || importLocations[0] || null;
35646
35371
  }
35647
35372
  function hasNgModuleMetadataElements(node) {
35648
- return import_typescript110.default.isPropertyAssignment(node) && (!import_typescript110.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
35373
+ return import_typescript107.default.isPropertyAssignment(node) && (!import_typescript107.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
35649
35374
  }
35650
35375
  function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
35651
35376
  const modules = [];
35652
35377
  if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
35653
35378
  sourceFile.forEachChild(function walk(node) {
35654
- if (import_typescript110.default.isClassDeclaration(node)) {
35655
- const decorator = getAngularDecorators(typeChecker, import_typescript110.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
35379
+ if (import_typescript107.default.isClassDeclaration(node)) {
35380
+ const decorator = getAngularDecorators(typeChecker, import_typescript107.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
35656
35381
  const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
35657
35382
  if (metadata) {
35658
35383
  const declarations = findLiteralProperty(metadata, "declarations");
@@ -35672,8 +35397,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
35672
35397
  const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
35673
35398
  if (testBedImport || catalystImport) {
35674
35399
  sourceFile.forEachChild(function walk(node) {
35675
- if (import_typescript110.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript110.default.isObjectLiteralExpression(node.arguments[0])) {
35676
- if (testBedImport && import_typescript110.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript110.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
35400
+ if (import_typescript107.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript107.default.isObjectLiteralExpression(node.arguments[0])) {
35401
+ if (testBedImport && import_typescript107.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript107.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
35677
35402
  testObjects.push(node.arguments[0]);
35678
35403
  }
35679
35404
  }
@@ -35688,7 +35413,7 @@ function findTemplateDependencies(decl, typeChecker) {
35688
35413
  const usedPipes = typeChecker.getUsedPipes(decl);
35689
35414
  if (usedDirectives !== null) {
35690
35415
  for (const dir of usedDirectives) {
35691
- if (import_typescript110.default.isClassDeclaration(dir.ref.node)) {
35416
+ if (import_typescript107.default.isClassDeclaration(dir.ref.node)) {
35692
35417
  results.push(dir.ref);
35693
35418
  }
35694
35419
  }
@@ -35696,7 +35421,7 @@ function findTemplateDependencies(decl, typeChecker) {
35696
35421
  if (usedPipes !== null) {
35697
35422
  const potentialPipes = typeChecker.getPotentialPipes(decl);
35698
35423
  for (const pipe of potentialPipes) {
35699
- if (import_typescript110.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
35424
+ if (import_typescript107.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
35700
35425
  results.push(pipe.ref);
35701
35426
  }
35702
35427
  }
@@ -35710,12 +35435,12 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
35710
35435
  if (!bootstrapProp) {
35711
35436
  return declarations;
35712
35437
  }
35713
- if (!import_typescript110.default.isPropertyAssignment(bootstrapProp) || !import_typescript110.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
35438
+ if (!import_typescript107.default.isPropertyAssignment(bootstrapProp) || !import_typescript107.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
35714
35439
  return [];
35715
35440
  }
35716
35441
  const bootstrappedClasses = /* @__PURE__ */ new Set();
35717
35442
  for (const el of bootstrapProp.initializer.elements) {
35718
- const referencedClass = import_typescript110.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
35443
+ const referencedClass = import_typescript107.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
35719
35444
  if (referencedClass) {
35720
35445
  bootstrappedClasses.add(referencedClass);
35721
35446
  } else {
@@ -35726,13 +35451,13 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
35726
35451
  }
35727
35452
  function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
35728
35453
  const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
35729
- return metadata ? metadata.declarations.filter((decl) => import_typescript110.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
35454
+ return metadata ? metadata.declarations.filter((decl) => import_typescript107.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
35730
35455
  }
35731
35456
  function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
35732
35457
  const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
35733
35458
  const allDeclarations = new Set(declarationsOutsideOfTestFiles);
35734
35459
  for (const decorator of decorators) {
35735
- const closestClass = closestNode(decorator.node, import_typescript110.default.isClassDeclaration);
35460
+ const closestClass = closestNode(decorator.node, import_typescript107.default.isClassDeclaration);
35736
35461
  if (decorator.name === "Pipe" || decorator.name === "Directive") {
35737
35462
  tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
35738
35463
  if (closestClass) {
@@ -35745,7 +35470,7 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
35745
35470
  allDeclarations.add(closestClass);
35746
35471
  }
35747
35472
  if (importsToAdd && importsToAdd.size > 0) {
35748
- tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
35473
+ tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript107.default.factory.createPropertyAssignment("imports", import_typescript107.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
35749
35474
  } else {
35750
35475
  tracker.replaceNode(decorator.node, newDecorator);
35751
35476
  }
@@ -35766,13 +35491,13 @@ function analyzeTestingModules(testObjects, typeChecker) {
35766
35491
  }
35767
35492
  const importsProp = findLiteralProperty(obj, "imports");
35768
35493
  const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
35769
- return !import_typescript110.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
35494
+ return !import_typescript107.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
35770
35495
  }) : null;
35771
35496
  for (const decl of declarations) {
35772
35497
  if (seenDeclarations.has(decl)) {
35773
35498
  continue;
35774
35499
  }
35775
- const [decorator] = getAngularDecorators(typeChecker, import_typescript110.default.getDecorators(decl) || []);
35500
+ const [decorator] = getAngularDecorators(typeChecker, import_typescript107.default.getDecorators(decl) || []);
35776
35501
  if (decorator) {
35777
35502
  seenDeclarations.add(decl);
35778
35503
  decorators.push(decorator);
@@ -35803,7 +35528,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
35803
35528
  return results;
35804
35529
  }
35805
35530
  function extractMetadataLiteral(decorator) {
35806
- return import_typescript110.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript110.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
35531
+ return import_typescript107.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript107.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
35807
35532
  }
35808
35533
  function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
35809
35534
  if (declarationsInMigration.has(node)) {
@@ -35824,7 +35549,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
35824
35549
  const allDeclarations = /* @__PURE__ */ new Set();
35825
35550
  for (const sourceFile of sourceFiles) {
35826
35551
  sourceFile.forEachChild(function walk(node) {
35827
- if (import_typescript111.default.isCallExpression(node) && import_typescript111.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
35552
+ if (import_typescript108.default.isCallExpression(node) && import_typescript108.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
35828
35553
  const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
35829
35554
  if (call) {
35830
35555
  bootstrapCalls.push(call);
@@ -35845,24 +35570,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
35845
35570
  return tracker.recordChanges();
35846
35571
  }
35847
35572
  function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
35848
- if (call.arguments.length === 0 || !import_typescript111.default.isIdentifier(call.arguments[0])) {
35573
+ if (call.arguments.length === 0 || !import_typescript108.default.isIdentifier(call.arguments[0])) {
35849
35574
  return null;
35850
35575
  }
35851
35576
  const declaration = findClassDeclaration(call.arguments[0], typeChecker);
35852
35577
  if (!declaration) {
35853
35578
  return null;
35854
35579
  }
35855
- const decorator = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
35856
- if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript111.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
35580
+ const decorator = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
35581
+ if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript108.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
35857
35582
  return null;
35858
35583
  }
35859
35584
  const metadata = decorator.node.expression.arguments[0];
35860
35585
  const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
35861
- if (!bootstrapProp || !import_typescript111.default.isPropertyAssignment(bootstrapProp) || !import_typescript111.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript111.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
35586
+ if (!bootstrapProp || !import_typescript108.default.isPropertyAssignment(bootstrapProp) || !import_typescript108.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript108.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
35862
35587
  return null;
35863
35588
  }
35864
35589
  const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
35865
- if (component && component.name && import_typescript111.default.isIdentifier(component.name)) {
35590
+ if (component && component.name && import_typescript108.default.isIdentifier(component.name)) {
35866
35591
  return {
35867
35592
  module: declaration,
35868
35593
  metadata,
@@ -35884,16 +35609,16 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
35884
35609
  let nodeLookup = null;
35885
35610
  tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
35886
35611
  tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
35887
- if (providers && import_typescript111.default.isPropertyAssignment(providers)) {
35612
+ if (providers && import_typescript108.default.isPropertyAssignment(providers)) {
35888
35613
  nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
35889
- if (import_typescript111.default.isArrayLiteralExpression(providers.initializer)) {
35614
+ if (import_typescript108.default.isArrayLiteralExpression(providers.initializer)) {
35890
35615
  providersInNewCall.push(...providers.initializer.elements);
35891
35616
  } else {
35892
- providersInNewCall.push(import_typescript111.default.factory.createSpreadElement(providers.initializer));
35617
+ providersInNewCall.push(import_typescript108.default.factory.createSpreadElement(providers.initializer));
35893
35618
  }
35894
35619
  addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
35895
35620
  }
35896
- if (imports && import_typescript111.default.isPropertyAssignment(imports)) {
35621
+ if (imports && import_typescript108.default.isPropertyAssignment(imports)) {
35897
35622
  nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
35898
35623
  migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
35899
35624
  }
@@ -35904,7 +35629,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
35904
35629
  if (transformedNode === node) {
35905
35630
  text += transformedNode.getText() + "\n";
35906
35631
  } else {
35907
- text += printer.printNode(import_typescript111.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
35632
+ text += printer.printNode(import_typescript108.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
35908
35633
  }
35909
35634
  });
35910
35635
  text += "\n";
@@ -35921,30 +35646,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
35921
35646
  const combinedProviders = [];
35922
35647
  if (modules.length > 0) {
35923
35648
  const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
35924
- combinedProviders.push(import_typescript111.default.factory.createCallExpression(importProvidersExpression, [], modules));
35649
+ combinedProviders.push(import_typescript108.default.factory.createCallExpression(importProvidersExpression, [], modules));
35925
35650
  }
35926
35651
  combinedProviders.push(...providers);
35927
- const initializer = remapDynamicImports(sourceFile.fileName, import_typescript111.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
35928
- args.push(import_typescript111.default.factory.createObjectLiteralExpression([import_typescript111.default.factory.createPropertyAssignment("providers", initializer)], true));
35652
+ const initializer = remapDynamicImports(sourceFile.fileName, import_typescript108.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
35653
+ args.push(import_typescript108.default.factory.createObjectLiteralExpression([import_typescript108.default.factory.createPropertyAssignment("providers", initializer)], true));
35929
35654
  }
35930
35655
  tracker.replaceNode(
35931
35656
  analysis.call,
35932
- import_typescript111.default.factory.createCallExpression(bootstrapExpression, [], args),
35657
+ import_typescript108.default.factory.createCallExpression(bootstrapExpression, [], args),
35933
35658
  void 0,
35934
35659
  analysis.metadata.getSourceFile()
35935
35660
  );
35936
35661
  }
35937
35662
  function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
35938
- if (!import_typescript111.default.isArrayLiteralExpression(imports.initializer)) {
35663
+ if (!import_typescript108.default.isArrayLiteralExpression(imports.initializer)) {
35939
35664
  importsForNewCall.push(imports.initializer);
35940
35665
  return;
35941
35666
  }
35942
35667
  for (const element of imports.initializer.elements) {
35943
- if (import_typescript111.default.isCallExpression(element) && import_typescript111.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
35668
+ if (import_typescript108.default.isCallExpression(element) && import_typescript108.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
35944
35669
  const options = element.arguments[1];
35945
35670
  const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
35946
35671
  if (features !== null) {
35947
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
35672
+ providersInNewCall.push(import_typescript108.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
35948
35673
  addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
35949
35674
  if (options) {
35950
35675
  addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
@@ -35952,30 +35677,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
35952
35677
  continue;
35953
35678
  }
35954
35679
  }
35955
- if (import_typescript111.default.isIdentifier(element)) {
35680
+ if (import_typescript108.default.isIdentifier(element)) {
35956
35681
  const animationsModule = "platform-browser/animations";
35957
35682
  const animationsImport = `@angular/${animationsModule}`;
35958
35683
  if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
35959
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
35684
+ providersInNewCall.push(import_typescript108.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
35960
35685
  continue;
35961
35686
  }
35962
35687
  if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
35963
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
35688
+ providersInNewCall.push(import_typescript108.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
35964
35689
  continue;
35965
35690
  }
35966
35691
  const httpClientModule = "common/http";
35967
35692
  const httpClientImport = `@angular/${httpClientModule}`;
35968
35693
  if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
35969
35694
  const callArgs = [
35970
- import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
35695
+ import_typescript108.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
35971
35696
  ];
35972
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
35697
+ providersInNewCall.push(import_typescript108.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
35973
35698
  continue;
35974
35699
  }
35975
35700
  }
35976
- const target = import_typescript111.default.isCallExpression(element) && import_typescript111.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
35701
+ const target = import_typescript108.default.isCallExpression(element) && import_typescript108.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
35977
35702
  const classDeclaration = findClassDeclaration(target, typeChecker);
35978
- const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(classDeclaration) || []) : void 0;
35703
+ const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(classDeclaration) || []) : void 0;
35979
35704
  if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
35980
35705
  importsForNewCall.push(element);
35981
35706
  addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
@@ -35983,7 +35708,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
35983
35708
  }
35984
35709
  }
35985
35710
  function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35986
- if (!import_typescript111.default.isObjectLiteralExpression(options)) {
35711
+ if (!import_typescript108.default.isObjectLiteralExpression(options)) {
35987
35712
  return null;
35988
35713
  }
35989
35714
  const featureExpressions = [];
@@ -35991,7 +35716,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35991
35716
  const inMemoryScrollingOptions = [];
35992
35717
  const features = new UniqueItemTracker();
35993
35718
  for (const prop of options.properties) {
35994
- if (!import_typescript111.default.isPropertyAssignment(prop) || !import_typescript111.default.isIdentifier(prop.name) && !import_typescript111.default.isStringLiteralLike(prop.name)) {
35719
+ if (!import_typescript108.default.isPropertyAssignment(prop) || !import_typescript108.default.isIdentifier(prop.name) && !import_typescript108.default.isStringLiteralLike(prop.name)) {
35995
35720
  return null;
35996
35721
  }
35997
35722
  switch (prop.name.text) {
@@ -35999,12 +35724,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35999
35724
  features.track("withPreloading", prop.initializer);
36000
35725
  break;
36001
35726
  case "enableTracing":
36002
- if (prop.initializer.kind === import_typescript111.default.SyntaxKind.TrueKeyword) {
35727
+ if (prop.initializer.kind === import_typescript108.default.SyntaxKind.TrueKeyword) {
36003
35728
  features.track("withDebugTracing", null);
36004
35729
  }
36005
35730
  break;
36006
35731
  case "initialNavigation":
36007
- if (!import_typescript111.default.isStringLiteralLike(prop.initializer)) {
35732
+ if (!import_typescript108.default.isStringLiteralLike(prop.initializer)) {
36008
35733
  return null;
36009
35734
  }
36010
35735
  if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
@@ -36014,7 +35739,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
36014
35739
  }
36015
35740
  break;
36016
35741
  case "useHash":
36017
- if (prop.initializer.kind === import_typescript111.default.SyntaxKind.TrueKeyword) {
35742
+ if (prop.initializer.kind === import_typescript108.default.SyntaxKind.TrueKeyword) {
36018
35743
  features.track("withHashLocation", null);
36019
35744
  }
36020
35745
  break;
@@ -36031,10 +35756,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
36031
35756
  }
36032
35757
  }
36033
35758
  if (inMemoryScrollingOptions.length > 0) {
36034
- features.track("withInMemoryScrolling", import_typescript111.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
35759
+ features.track("withInMemoryScrolling", import_typescript108.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
36035
35760
  }
36036
35761
  if (configOptions.length > 0) {
36037
- features.track("withRouterConfig", import_typescript111.default.factory.createObjectLiteralExpression(configOptions));
35762
+ features.track("withRouterConfig", import_typescript108.default.factory.createObjectLiteralExpression(configOptions));
36038
35763
  }
36039
35764
  for (const [feature, featureArgs] of features.getEntries()) {
36040
35765
  const callArgs = [];
@@ -36043,26 +35768,26 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
36043
35768
  callArgs.push(arg);
36044
35769
  }
36045
35770
  });
36046
- featureExpressions.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
35771
+ featureExpressions.push(import_typescript108.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
36047
35772
  }
36048
35773
  return featureExpressions;
36049
35774
  }
36050
35775
  function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
36051
35776
  const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
36052
35777
  for (const ref of refs) {
36053
- const importSpecifier = closestOrSelf(ref, import_typescript111.default.isImportSpecifier);
36054
- const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript111.default.isImportDeclaration) : null;
36055
- if (importDeclaration && importSpecifier && import_typescript111.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
35778
+ const importSpecifier = closestOrSelf(ref, import_typescript108.default.isImportSpecifier);
35779
+ const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript108.default.isImportDeclaration) : null;
35780
+ if (importDeclaration && importSpecifier && import_typescript108.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
36056
35781
  const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
36057
35782
  const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
36058
35783
  const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
36059
35784
  tracker.addImport(targetFile, symbolName, moduleName, alias);
36060
35785
  continue;
36061
35786
  }
36062
- const variableDeclaration = closestOrSelf(ref, import_typescript111.default.isVariableDeclaration);
36063
- const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript111.default.isVariableStatement) : null;
36064
- if (variableDeclaration && variableStatement && import_typescript111.default.isIdentifier(variableDeclaration.name)) {
36065
- if (isExported3(variableStatement)) {
35787
+ const variableDeclaration = closestOrSelf(ref, import_typescript108.default.isVariableDeclaration);
35788
+ const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript108.default.isVariableStatement) : null;
35789
+ if (variableDeclaration && variableStatement && import_typescript108.default.isIdentifier(variableDeclaration.name)) {
35790
+ if (isExported(variableStatement)) {
36066
35791
  tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
36067
35792
  } else {
36068
35793
  nodesToCopy.add(variableStatement);
@@ -36071,7 +35796,7 @@ function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy,
36071
35796
  }
36072
35797
  const closestExportable = closestOrSelf(ref, isExportableDeclaration);
36073
35798
  if (closestExportable) {
36074
- if (isExported3(closestExportable) && closestExportable.name) {
35799
+ if (isExported(closestExportable) && closestExportable.name) {
36075
35800
  tracker.addImport(targetFile, closestExportable.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
36076
35801
  } else {
36077
35802
  nodesToCopy.add(closestExportable);
@@ -36102,7 +35827,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
36102
35827
  if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
36103
35828
  continue;
36104
35829
  }
36105
- if (!import_typescript111.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
35830
+ if (!import_typescript108.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
36106
35831
  traversedTopLevelNodes.add(closestTopLevel);
36107
35832
  walk(closestTopLevel);
36108
35833
  }
@@ -36123,25 +35848,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
36123
35848
  function remapDynamicImports(targetFileName, rootNode) {
36124
35849
  let hasChanged = false;
36125
35850
  const transformer = (context) => {
36126
- return (sourceFile) => import_typescript111.default.visitNode(sourceFile, function walk(node) {
36127
- if (import_typescript111.default.isCallExpression(node) && node.expression.kind === import_typescript111.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript111.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
35851
+ return (sourceFile) => import_typescript108.default.visitNode(sourceFile, function walk(node) {
35852
+ if (import_typescript108.default.isCallExpression(node) && node.expression.kind === import_typescript108.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript108.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
36128
35853
  hasChanged = true;
36129
35854
  return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
36130
35855
  context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
36131
35856
  ...node.arguments.slice(1)
36132
35857
  ]);
36133
35858
  }
36134
- return import_typescript111.default.visitEachChild(node, walk, context);
35859
+ return import_typescript108.default.visitEachChild(node, walk, context);
36135
35860
  });
36136
35861
  };
36137
- const result = import_typescript111.default.transform(rootNode, [transformer]).transformed[0];
35862
+ const result = import_typescript108.default.transform(rootNode, [transformer]).transformed[0];
36138
35863
  return hasChanged ? result : rootNode;
36139
35864
  }
36140
35865
  function isTopLevelStatement(node) {
36141
- return node.parent != null && import_typescript111.default.isSourceFile(node.parent);
35866
+ return node.parent != null && import_typescript108.default.isSourceFile(node.parent);
36142
35867
  }
36143
35868
  function isReferenceIdentifier(node) {
36144
- return import_typescript111.default.isIdentifier(node) && (!import_typescript111.default.isPropertyAssignment(node.parent) && !import_typescript111.default.isParameter(node.parent) || node.parent.name !== node);
35869
+ return import_typescript108.default.isIdentifier(node) && (!import_typescript108.default.isPropertyAssignment(node.parent) && !import_typescript108.default.isParameter(node.parent) || node.parent.name !== node);
36145
35870
  }
36146
35871
  function isOutsideRange(excludeStart, excludeEnd, start, end) {
36147
35872
  return start < excludeStart && end < excludeStart || start > excludeEnd;
@@ -36149,16 +35874,16 @@ function isOutsideRange(excludeStart, excludeEnd, start, end) {
36149
35874
  function remapRelativeImport(targetFileName, specifier) {
36150
35875
  return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
36151
35876
  }
36152
- function isExported3(node) {
36153
- return import_typescript111.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript111.default.SyntaxKind.ExportKeyword) : false;
35877
+ function isExported(node) {
35878
+ return import_typescript108.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript108.default.SyntaxKind.ExportKeyword) : false;
36154
35879
  }
36155
35880
  function isExportableDeclaration(node) {
36156
- return import_typescript111.default.isEnumDeclaration(node) || import_typescript111.default.isClassDeclaration(node) || import_typescript111.default.isFunctionDeclaration(node) || import_typescript111.default.isInterfaceDeclaration(node) || import_typescript111.default.isTypeAliasDeclaration(node);
35881
+ return import_typescript108.default.isEnumDeclaration(node) || import_typescript108.default.isClassDeclaration(node) || import_typescript108.default.isFunctionDeclaration(node) || import_typescript108.default.isInterfaceDeclaration(node) || import_typescript108.default.isTypeAliasDeclaration(node);
36157
35882
  }
36158
35883
  function getLastImportEnd(sourceFile) {
36159
35884
  let index = 0;
36160
35885
  for (const statement of sourceFile.statements) {
36161
- if (import_typescript111.default.isImportDeclaration(statement)) {
35886
+ if (import_typescript108.default.isImportDeclaration(statement)) {
36162
35887
  index = Math.max(index, statement.getEnd());
36163
35888
  } else {
36164
35889
  break;
@@ -36206,7 +35931,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
36206
35931
  });
36207
35932
  const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
36208
35933
  const program = createProgram({ rootNames, host, options, oldProgram });
36209
- const printer = import_typescript112.default.createPrinter();
35934
+ const printer = import_typescript109.default.createPrinter();
36210
35935
  if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
36211
35936
  throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
36212
35937
  }
@@ -36264,5 +35989,4 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
36264
35989
  * Use of this source code is governed by an MIT-style license that can be
36265
35990
  * found in the LICENSE file at https://angular.io/license
36266
35991
  */
36267
- // Closure Compiler ignores @suppress and similar if the comment contains @license.
36268
35992
  //# sourceMappingURL=bundle.js.map