@angular/core 15.2.0 → 16.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
16117
- var VERSION2 = new Version("15.2.0");
16114
+ var VERSION2 = new Version("16.0.0-next.0");
16118
16115
 
16119
16116
  // bazel-out/darwin_arm64-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.0"));
17429
+ definitionMap.set("version", literal("16.0.0-next.0"));
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.0"));
17498
+ definitionMap.set("version", literal("16.0.0-next.0"));
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.0"));
17680
+ definitionMap.set("version", literal("16.0.0-next.0"));
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.0"));
17703
+ definitionMap.set("version", literal("16.0.0-next.0"));
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.0"));
17741
+ definitionMap.set("version", literal("16.0.0-next.0"));
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.0"));
17762
+ definitionMap.set("version", literal("16.0.0-next.0"));
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.0"));
17797
+ definitionMap.set("version", literal("16.0.0-next.0"));
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/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
17817
- var VERSION3 = new Version("15.2.0");
17814
+ var VERSION3 = new Version("16.0.0-next.0");
17818
17815
 
17819
17816
  // bazel-out/darwin_arm64-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/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
17835
- var import_typescript97 = __toESM(require("typescript"), 1);
17832
+ var import_typescript95 = __toESM(require("typescript"), 1);
17836
17833
 
17837
17834
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
17838
17835
  var path = __toESM(require("path"), 1);
@@ -17936,7 +17933,7 @@ function verifySupportedTypeScriptVersion() {
17936
17933
  }
17937
17934
 
17938
17935
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
17939
- var import_typescript93 = __toESM(require("typescript"), 1);
17936
+ var import_typescript91 = __toESM(require("typescript"), 1);
17940
17937
 
17941
17938
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
17942
17939
  var import_typescript19 = __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
  }
@@ -25207,7 +25204,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
25207
25204
  }
25208
25205
  };
25209
25206
  var NgModuleDecoratorHandler = class {
25210
- constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
25207
+ constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
25211
25208
  this.reflector = reflector;
25212
25209
  this.evaluator = evaluator;
25213
25210
  this.metaReader = metaReader;
@@ -25216,7 +25213,6 @@ var NgModuleDecoratorHandler = class {
25216
25213
  this.referencesRegistry = referencesRegistry;
25217
25214
  this.isCore = isCore;
25218
25215
  this.refEmitter = refEmitter;
25219
- this.factoryTracker = factoryTracker;
25220
25216
  this.annotateForClosureCompiler = annotateForClosureCompiler;
25221
25217
  this.onlyPublishPublicTypings = onlyPublishPublicTypings;
25222
25218
  this.injectableRegistry = injectableRegistry;
@@ -25440,11 +25436,6 @@ var NgModuleDecoratorHandler = class {
25440
25436
  rawExports: analysis.rawExports,
25441
25437
  decorator: analysis.decorator
25442
25438
  });
25443
- if (this.factoryTracker !== null) {
25444
- this.factoryTracker.track(node.getSourceFile(), {
25445
- name: analysis.factorySymbolName
25446
- });
25447
- }
25448
25439
  this.injectableRegistry.registerInjectable(node, {
25449
25440
  ctorDeps: analysis.fac.deps
25450
25441
  });
@@ -27457,7 +27448,7 @@ var UpdateMode;
27457
27448
  })(UpdateMode || (UpdateMode = {}));
27458
27449
 
27459
27450
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
27460
- var import_typescript65 = __toESM(require("typescript"), 1);
27451
+ var import_typescript63 = __toESM(require("typescript"), 1);
27461
27452
 
27462
27453
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
27463
27454
  var import_typescript60 = __toESM(require("typescript"), 1);
@@ -27527,15 +27518,6 @@ var TS_EXTENSIONS = /\.tsx?$/i;
27527
27518
  function makeShimFileName(fileName, suffix) {
27528
27519
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
27529
27520
  }
27530
- function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
27531
- let moduleName;
27532
- if (originalFileName.endsWith("/index.ts")) {
27533
- moduleName = originalModuleName + "/index" + genSuffix;
27534
- } else {
27535
- moduleName = originalModuleName + genSuffix;
27536
- }
27537
- return moduleName;
27538
- }
27539
27521
 
27540
27522
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
27541
27523
  var ShimAdapter = class {
@@ -27632,166 +27614,6 @@ var ShimAdapter = class {
27632
27614
  }
27633
27615
  };
27634
27616
 
27635
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
27636
- var import_typescript62 = __toESM(require("typescript"), 1);
27637
- var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
27638
- var STRIP_NG_FACTORY = /(.*)NgFactory$/;
27639
- var FactoryGenerator = class {
27640
- constructor() {
27641
- this.sourceInfo = /* @__PURE__ */ new Map();
27642
- this.sourceToFactorySymbols = /* @__PURE__ */ new Map();
27643
- this.shouldEmit = true;
27644
- this.extensionPrefix = "ngfactory";
27645
- }
27646
- generateShimForFile(sf, genFilePath) {
27647
- const absoluteSfPath = absoluteFromSourceFile(sf);
27648
- const relativePathToSource = "./" + basename(sf.fileName).replace(TS_DTS_SUFFIX, "");
27649
- 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);
27650
- let sourceText = "";
27651
- const leadingComment2 = getFileoverviewComment(sf);
27652
- if (leadingComment2 !== null) {
27653
- sourceText = leadingComment2 + "\n\n";
27654
- }
27655
- if (symbolNames.length > 0) {
27656
- const varLines = symbolNames.map((name) => `export const ${name}NgFactory: i0.\u0275NgModuleFactory<any> = new i0.\u0275NgModuleFactory(${name});`);
27657
- sourceText += [
27658
- `import * as i0 from '@angular/core';`,
27659
- `import {${symbolNames.join(", ")}} from '${relativePathToSource}';`,
27660
- ...varLines
27661
- ].join("\n");
27662
- }
27663
- sourceText += "\nexport const \u0275NonEmptyModule = true;";
27664
- const genFile = import_typescript62.default.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, import_typescript62.default.ScriptKind.TS);
27665
- if (sf.moduleName !== void 0) {
27666
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngfactory");
27667
- }
27668
- const moduleSymbols = /* @__PURE__ */ new Map();
27669
- this.sourceToFactorySymbols.set(absoluteSfPath, moduleSymbols);
27670
- this.sourceInfo.set(genFilePath, {
27671
- sourceFilePath: absoluteSfPath,
27672
- moduleSymbols
27673
- });
27674
- return genFile;
27675
- }
27676
- track(sf, moduleInfo) {
27677
- if (this.sourceToFactorySymbols.has(sf.fileName)) {
27678
- this.sourceToFactorySymbols.get(sf.fileName).set(moduleInfo.name, moduleInfo);
27679
- }
27680
- }
27681
- };
27682
- function isExported(decl) {
27683
- const modifiers = import_typescript62.default.canHaveModifiers(decl) ? import_typescript62.default.getModifiers(decl) : void 0;
27684
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript62.default.SyntaxKind.ExportKeyword);
27685
- }
27686
- function generatedFactoryTransform(factoryMap, importRewriter) {
27687
- return (context) => {
27688
- return (file) => {
27689
- return transformFactorySourceFile(factoryMap, context, importRewriter, file);
27690
- };
27691
- };
27692
- }
27693
- function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
27694
- if (!factoryMap.has(file.fileName)) {
27695
- return file;
27696
- }
27697
- const { moduleSymbols, sourceFilePath } = factoryMap.get(file.fileName);
27698
- const transformedStatements = [];
27699
- let nonEmptyExport = null;
27700
- const coreImportIdentifiers = /* @__PURE__ */ new Set();
27701
- for (const stmt of file.statements) {
27702
- if (import_typescript62.default.isImportDeclaration(stmt) && import_typescript62.default.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
27703
- const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
27704
- if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
27705
- transformedStatements.push(import_typescript62.default.factory.updateImportDeclaration(stmt, import_typescript62.default.getModifiers(stmt), stmt.importClause, import_typescript62.default.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
27706
- if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && import_typescript62.default.isNamespaceImport(stmt.importClause.namedBindings)) {
27707
- coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
27708
- }
27709
- } else {
27710
- transformedStatements.push(stmt);
27711
- }
27712
- } else if (import_typescript62.default.isVariableStatement(stmt) && stmt.declarationList.declarations.length === 1) {
27713
- const decl = stmt.declarationList.declarations[0];
27714
- if (import_typescript62.default.isIdentifier(decl.name)) {
27715
- if (decl.name.text === "\u0275NonEmptyModule") {
27716
- nonEmptyExport = stmt;
27717
- continue;
27718
- }
27719
- const match = STRIP_NG_FACTORY.exec(decl.name.text);
27720
- const module3 = match ? moduleSymbols.get(match[1]) : null;
27721
- if (module3) {
27722
- transformedStatements.push(updateInitializers(stmt, (init) => init ? wrapInNoSideEffects(init) : void 0));
27723
- }
27724
- } else {
27725
- transformedStatements.push(stmt);
27726
- }
27727
- } else {
27728
- transformedStatements.push(stmt);
27729
- }
27730
- }
27731
- if (!transformedStatements.some(import_typescript62.default.isVariableStatement) && nonEmptyExport !== null) {
27732
- transformedStatements.push(nonEmptyExport);
27733
- }
27734
- file = import_typescript62.default.factory.updateSourceFile(file, transformedStatements);
27735
- if (coreImportIdentifiers.size > 0) {
27736
- const visit2 = (node) => {
27737
- node = import_typescript62.default.visitEachChild(node, (child) => visit2(child), context);
27738
- if (import_typescript62.default.isPropertyAccessExpression(node) && import_typescript62.default.isIdentifier(node.expression) && coreImportIdentifiers.has(node.expression.text)) {
27739
- const rewrittenSymbol = importRewriter.rewriteSymbol(node.name.text, "@angular/core");
27740
- if (rewrittenSymbol !== node.name.text) {
27741
- const updated = import_typescript62.default.factory.updatePropertyAccessExpression(node, node.expression, import_typescript62.default.factory.createIdentifier(rewrittenSymbol));
27742
- node = updated;
27743
- }
27744
- }
27745
- return node;
27746
- };
27747
- file = visit2(file);
27748
- }
27749
- return file;
27750
- }
27751
- function getFileoverviewComment(sourceFile) {
27752
- const text = sourceFile.getFullText();
27753
- const trivia = text.substring(0, sourceFile.getStart());
27754
- const leadingComments = import_typescript62.default.getLeadingCommentRanges(trivia, 0);
27755
- if (!leadingComments || leadingComments.length === 0) {
27756
- return null;
27757
- }
27758
- const comment = leadingComments[0];
27759
- if (comment.kind !== import_typescript62.default.SyntaxKind.MultiLineCommentTrivia) {
27760
- return null;
27761
- }
27762
- if (text.substring(comment.end, comment.end + 2) !== "\n\n") {
27763
- return null;
27764
- }
27765
- const commentText = text.substring(comment.pos, comment.end);
27766
- if (commentText.indexOf("@license") !== -1) {
27767
- return null;
27768
- }
27769
- return commentText;
27770
- }
27771
- function wrapInNoSideEffects(expr) {
27772
- const noSideEffects = import_typescript62.default.factory.createPropertyAccessExpression(import_typescript62.default.factory.createIdentifier("i0"), "\u0275noSideEffects");
27773
- return import_typescript62.default.factory.createCallExpression(
27774
- noSideEffects,
27775
- [],
27776
- [
27777
- import_typescript62.default.factory.createFunctionExpression(
27778
- [],
27779
- void 0,
27780
- void 0,
27781
- [],
27782
- [],
27783
- void 0,
27784
- import_typescript62.default.factory.createBlock([
27785
- import_typescript62.default.factory.createReturnStatement(expr)
27786
- ])
27787
- )
27788
- ]
27789
- );
27790
- }
27791
- function updateInitializers(stmt, update) {
27792
- 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)))));
27793
- }
27794
-
27795
27617
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
27796
27618
  var ShimReferenceTagger = class {
27797
27619
  constructor(shimExtensions) {
@@ -27826,47 +27648,6 @@ var ShimReferenceTagger = class {
27826
27648
  }
27827
27649
  };
27828
27650
 
27829
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
27830
- var import_typescript64 = __toESM(require("typescript"), 1);
27831
- var SummaryGenerator = class {
27832
- constructor() {
27833
- this.shouldEmit = true;
27834
- this.extensionPrefix = "ngsummary";
27835
- }
27836
- generateShimForFile(sf, genFilePath) {
27837
- const symbolNames = [];
27838
- for (const stmt of sf.statements) {
27839
- if (import_typescript64.default.isClassDeclaration(stmt)) {
27840
- if (!isExported2(stmt) || stmt.name === void 0 || import_typescript64.default.getDecorators(stmt) === void 0) {
27841
- continue;
27842
- }
27843
- symbolNames.push(stmt.name.text);
27844
- } else if (import_typescript64.default.isExportDeclaration(stmt)) {
27845
- if (stmt.exportClause === void 0 || stmt.moduleSpecifier !== void 0 || !import_typescript64.default.isNamedExports(stmt.exportClause)) {
27846
- continue;
27847
- }
27848
- for (const specifier of stmt.exportClause.elements) {
27849
- symbolNames.push(specifier.name.text);
27850
- }
27851
- }
27852
- }
27853
- const varLines = symbolNames.map((name) => `export const ${name}NgSummary: any = null;`);
27854
- if (varLines.length === 0) {
27855
- varLines.push(`export const \u0275empty = null;`);
27856
- }
27857
- const sourceText = varLines.join("\n");
27858
- const genFile = import_typescript64.default.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, import_typescript64.default.ScriptKind.TS);
27859
- if (sf.moduleName !== void 0) {
27860
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngsummary");
27861
- }
27862
- return genFile;
27863
- }
27864
- };
27865
- function isExported2(decl) {
27866
- const modifiers = import_typescript64.default.canHaveModifiers(decl) ? import_typescript64.default.getModifiers(decl) : void 0;
27867
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript64.default.SyntaxKind.ExportKeyword) || false;
27868
- }
27869
-
27870
27651
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
27871
27652
  var DelegatingCompilerHost = class {
27872
27653
  constructor(delegate) {
@@ -27957,7 +27738,7 @@ var TsCreateProgramDriver = class {
27957
27738
  this.sfMap.clear();
27958
27739
  }
27959
27740
  for (const [filePath, { newText, originalFile }] of contents.entries()) {
27960
- const sf = import_typescript65.default.createSourceFile(filePath, newText, import_typescript65.default.ScriptTarget.Latest, true);
27741
+ const sf = import_typescript63.default.createSourceFile(filePath, newText, import_typescript63.default.ScriptTarget.Latest, true);
27961
27742
  if (originalFile !== null) {
27962
27743
  sf[NgOriginalFile] = originalFile;
27963
27744
  }
@@ -27966,7 +27747,7 @@ var TsCreateProgramDriver = class {
27966
27747
  const host = new UpdatedProgramHost(this.sfMap, this.originalProgram, this.originalHost, this.shimExtensionPrefixes);
27967
27748
  const oldProgram = this.program;
27968
27749
  retagAllTsFiles(oldProgram);
27969
- this.program = import_typescript65.default.createProgram({
27750
+ this.program = import_typescript63.default.createProgram({
27970
27751
  host,
27971
27752
  rootNames: this.program.getRootFileNames(),
27972
27753
  options: this.options,
@@ -28665,7 +28446,7 @@ var NgModuleIndexImpl = class {
28665
28446
  };
28666
28447
 
28667
28448
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
28668
- var import_typescript68 = __toESM(require("typescript"), 1);
28449
+ var import_typescript66 = __toESM(require("typescript"), 1);
28669
28450
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
28670
28451
  var RESOURCE_MARKER = ".$ngresource$";
28671
28452
  var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
@@ -28777,7 +28558,7 @@ var AdapterResourceLoader = class {
28777
28558
  return this.adapter.rootDirs.map((rootDir) => join(rootDir, segment));
28778
28559
  }
28779
28560
  getResolvedCandidateLocations(url, fromFile) {
28780
- const failedLookup = import_typescript68.default.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
28561
+ const failedLookup = import_typescript66.default.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
28781
28562
  if (failedLookup.failedLookupLocations === void 0) {
28782
28563
  throw new Error(`Internal error: expected to find failedLookupLocations during resolution of resource '${url}' in context of ${fromFile}`);
28783
28564
  }
@@ -28933,7 +28714,7 @@ var SymbolKind;
28933
28714
  })(SymbolKind || (SymbolKind = {}));
28934
28715
 
28935
28716
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
28936
- var import_typescript69 = __toESM(require("typescript"), 1);
28717
+ var import_typescript67 = __toESM(require("typescript"), 1);
28937
28718
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
28938
28719
  var _a;
28939
28720
  if (mapping.type === "direct") {
@@ -28942,7 +28723,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28942
28723
  relatedInformation = [];
28943
28724
  for (const relatedMessage of relatedMessages) {
28944
28725
  relatedInformation.push({
28945
- category: import_typescript69.default.DiagnosticCategory.Message,
28726
+ category: import_typescript67.default.DiagnosticCategory.Message,
28946
28727
  code: 0,
28947
28728
  file: relatedMessage.sourceFile,
28948
28729
  start: relatedMessage.start,
@@ -28971,7 +28752,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28971
28752
  if (relatedMessages !== void 0) {
28972
28753
  for (const relatedMessage of relatedMessages) {
28973
28754
  relatedInformation.push({
28974
- category: import_typescript69.default.DiagnosticCategory.Message,
28755
+ category: import_typescript67.default.DiagnosticCategory.Message,
28975
28756
  code: 0,
28976
28757
  file: relatedMessage.sourceFile,
28977
28758
  start: relatedMessage.start,
@@ -29001,7 +28782,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
29001
28782
  };
29002
28783
  }
29003
28784
  relatedInformation.push({
29004
- category: import_typescript69.default.DiagnosticCategory.Message,
28785
+ category: import_typescript67.default.DiagnosticCategory.Message,
29005
28786
  code: 0,
29006
28787
  file: componentSf,
29007
28788
  start: mapping.node.getStart(),
@@ -29036,7 +28817,7 @@ function parseTemplateAsSourceFile(fileName, template) {
29036
28817
  if (parseTemplateAsSourceFileForTest !== null) {
29037
28818
  return parseTemplateAsSourceFileForTest(fileName, template);
29038
28819
  }
29039
- return import_typescript69.default.createSourceFile(fileName, template, import_typescript69.default.ScriptTarget.Latest, false, import_typescript69.default.ScriptKind.JSX);
28820
+ return import_typescript67.default.createSourceFile(fileName, template, import_typescript67.default.ScriptTarget.Latest, false, import_typescript67.default.ScriptKind.JSX);
29040
28821
  }
29041
28822
 
29042
28823
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
@@ -29057,14 +28838,14 @@ function allocateTemplateId(sf) {
29057
28838
  }
29058
28839
 
29059
28840
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
29060
- var import_typescript71 = __toESM(require("typescript"), 1);
28841
+ var import_typescript69 = __toESM(require("typescript"), 1);
29061
28842
 
29062
28843
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
29063
- var import_typescript70 = __toESM(require("typescript"), 1);
28844
+ var import_typescript68 = __toESM(require("typescript"), 1);
29064
28845
  var parseSpanComment = /^(\d+),(\d+)$/;
29065
28846
  function readSpanComment(node, sourceFile = node.getSourceFile()) {
29066
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29067
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28847
+ return import_typescript68.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28848
+ if (kind !== import_typescript68.default.SyntaxKind.MultiLineCommentTrivia) {
29068
28849
  return null;
29069
28850
  }
29070
28851
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29087,25 +28868,25 @@ var ExpressionIdentifier;
29087
28868
  ExpressionIdentifier2["EVENT_PARAMETER"] = "EP";
29088
28869
  })(ExpressionIdentifier || (ExpressionIdentifier = {}));
29089
28870
  function addExpressionIdentifier(node, identifier) {
29090
- import_typescript70.default.addSyntheticTrailingComment(
28871
+ import_typescript68.default.addSyntheticTrailingComment(
29091
28872
  node,
29092
- import_typescript70.default.SyntaxKind.MultiLineCommentTrivia,
28873
+ import_typescript68.default.SyntaxKind.MultiLineCommentTrivia,
29093
28874
  `${CommentTriviaType.EXPRESSION_TYPE_IDENTIFIER}:${identifier}`,
29094
28875
  false
29095
28876
  );
29096
28877
  }
29097
28878
  var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
29098
28879
  function markIgnoreDiagnostics(node) {
29099
- import_typescript70.default.addSyntheticTrailingComment(
28880
+ import_typescript68.default.addSyntheticTrailingComment(
29100
28881
  node,
29101
- import_typescript70.default.SyntaxKind.MultiLineCommentTrivia,
28882
+ import_typescript68.default.SyntaxKind.MultiLineCommentTrivia,
29102
28883
  IGNORE_FOR_DIAGNOSTICS_MARKER,
29103
28884
  false
29104
28885
  );
29105
28886
  }
29106
28887
  function hasIgnoreForDiagnosticsMarker(node, sourceFile) {
29107
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29108
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28888
+ return import_typescript68.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28889
+ if (kind !== import_typescript68.default.SyntaxKind.MultiLineCommentTrivia) {
29109
28890
  return null;
29110
28891
  }
29111
28892
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29179,8 +28960,8 @@ function findAllMatchingNodes(tcb, opts) {
29179
28960
  return results;
29180
28961
  }
29181
28962
  function hasExpressionIdentifier(sourceFile, node, identifier) {
29182
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29183
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28963
+ return import_typescript68.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28964
+ if (kind !== import_typescript68.default.SyntaxKind.MultiLineCommentTrivia) {
29184
28965
  return false;
29185
28966
  }
29186
28967
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29198,7 +28979,7 @@ var CompletionEngine = class {
29198
28979
  this.templateContextCache = /* @__PURE__ */ new Map();
29199
28980
  this.expressionCompletionCache = /* @__PURE__ */ new Map();
29200
28981
  const globalRead = findFirstMatchingNode(this.tcb, {
29201
- filter: import_typescript71.default.isPropertyAccessExpression,
28982
+ filter: import_typescript69.default.isPropertyAccessExpression,
29202
28983
  withExpressionIdentifier: ExpressionIdentifier.COMPONENT_COMPLETION
29203
28984
  });
29204
28985
  if (globalRead !== null) {
@@ -29222,7 +29003,7 @@ var CompletionEngine = class {
29222
29003
  let nodeContext = null;
29223
29004
  if (node instanceof EmptyExpr) {
29224
29005
  const nodeLocation = findFirstMatchingNode(this.tcb, {
29225
- filter: import_typescript71.default.isIdentifier,
29006
+ filter: import_typescript69.default.isIdentifier,
29226
29007
  withSpan: node.sourceSpan
29227
29008
  });
29228
29009
  if (nodeLocation !== null) {
@@ -29235,7 +29016,7 @@ var CompletionEngine = class {
29235
29016
  }
29236
29017
  if (node instanceof PropertyRead && node.receiver instanceof ImplicitReceiver) {
29237
29018
  const nodeLocation = findFirstMatchingNode(this.tcb, {
29238
- filter: import_typescript71.default.isPropertyAccessExpression,
29019
+ filter: import_typescript69.default.isPropertyAccessExpression,
29239
29020
  withSpan: node.sourceSpan
29240
29021
  });
29241
29022
  if (nodeLocation) {
@@ -29259,21 +29040,21 @@ var CompletionEngine = class {
29259
29040
  let tsExpr = null;
29260
29041
  if (expr instanceof PropertyRead || expr instanceof PropertyWrite) {
29261
29042
  tsExpr = findFirstMatchingNode(this.tcb, {
29262
- filter: import_typescript71.default.isPropertyAccessExpression,
29043
+ filter: import_typescript69.default.isPropertyAccessExpression,
29263
29044
  withSpan: expr.nameSpan
29264
29045
  });
29265
29046
  } else if (expr instanceof SafePropertyRead) {
29266
29047
  const ternaryExpr = findFirstMatchingNode(this.tcb, {
29267
- filter: import_typescript71.default.isParenthesizedExpression,
29048
+ filter: import_typescript69.default.isParenthesizedExpression,
29268
29049
  withSpan: expr.sourceSpan
29269
29050
  });
29270
- if (ternaryExpr === null || !import_typescript71.default.isConditionalExpression(ternaryExpr.expression)) {
29051
+ if (ternaryExpr === null || !import_typescript69.default.isConditionalExpression(ternaryExpr.expression)) {
29271
29052
  return null;
29272
29053
  }
29273
29054
  const whenTrue = ternaryExpr.expression.whenTrue;
29274
- if (import_typescript71.default.isPropertyAccessExpression(whenTrue)) {
29055
+ if (import_typescript69.default.isPropertyAccessExpression(whenTrue)) {
29275
29056
  tsExpr = whenTrue;
29276
- } else if (import_typescript71.default.isCallExpression(whenTrue) && import_typescript71.default.isPropertyAccessExpression(whenTrue.expression)) {
29057
+ } else if (import_typescript69.default.isCallExpression(whenTrue) && import_typescript69.default.isPropertyAccessExpression(whenTrue.expression)) {
29277
29058
  tsExpr = whenTrue.expression;
29278
29059
  }
29279
29060
  }
@@ -29295,15 +29076,15 @@ var CompletionEngine = class {
29295
29076
  let tsExpr = null;
29296
29077
  if (expr instanceof TextAttribute) {
29297
29078
  const strNode = findFirstMatchingNode(this.tcb, {
29298
- filter: import_typescript71.default.isParenthesizedExpression,
29079
+ filter: import_typescript69.default.isParenthesizedExpression,
29299
29080
  withSpan: expr.sourceSpan
29300
29081
  });
29301
- if (strNode !== null && import_typescript71.default.isStringLiteral(strNode.expression)) {
29082
+ if (strNode !== null && import_typescript69.default.isStringLiteral(strNode.expression)) {
29302
29083
  tsExpr = strNode.expression;
29303
29084
  }
29304
29085
  } else {
29305
29086
  tsExpr = findFirstMatchingNode(this.tcb, {
29306
- filter: (n) => import_typescript71.default.isStringLiteral(n) || import_typescript71.default.isNumericLiteral(n),
29087
+ filter: (n) => import_typescript69.default.isStringLiteral(n) || import_typescript69.default.isNumericLiteral(n),
29307
29088
  withSpan: expr.sourceSpan
29308
29089
  });
29309
29090
  }
@@ -29311,7 +29092,7 @@ var CompletionEngine = class {
29311
29092
  return null;
29312
29093
  }
29313
29094
  let positionInShimFile = tsExpr.getEnd();
29314
- if (import_typescript71.default.isStringLiteral(tsExpr)) {
29095
+ if (import_typescript69.default.isStringLiteral(tsExpr)) {
29315
29096
  positionInShimFile -= 1;
29316
29097
  }
29317
29098
  const res = {
@@ -29346,10 +29127,10 @@ var CompletionEngine = class {
29346
29127
  };
29347
29128
 
29348
29129
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
29349
- var import_typescript86 = __toESM(require("typescript"), 1);
29130
+ var import_typescript84 = __toESM(require("typescript"), 1);
29350
29131
 
29351
29132
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
29352
- var import_typescript72 = __toESM(require("typescript"), 1);
29133
+ var import_typescript70 = __toESM(require("typescript"), 1);
29353
29134
  var REGISTRY = new DomElementSchemaRegistry();
29354
29135
  var REMOVE_XHTML_REGEX = /^:xhtml:/;
29355
29136
  var RegistryDomSchemaChecker = class {
@@ -29374,7 +29155,7 @@ var RegistryDomSchemaChecker = class {
29374
29155
  } else {
29375
29156
  errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
29376
29157
  }
29377
- const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, import_typescript72.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
29158
+ const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, import_typescript70.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
29378
29159
  this._diagnostics.push(diag);
29379
29160
  }
29380
29161
  }
@@ -29394,100 +29175,100 @@ var RegistryDomSchemaChecker = class {
29394
29175
  2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.
29395
29176
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
29396
29177
  }
29397
- const diag = makeTemplateDiagnostic(id, mapping, span, import_typescript72.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
29178
+ const diag = makeTemplateDiagnostic(id, mapping, span, import_typescript70.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
29398
29179
  this._diagnostics.push(diag);
29399
29180
  }
29400
29181
  }
29401
29182
  };
29402
29183
 
29403
29184
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
29404
- var import_typescript79 = __toESM(require("typescript"), 1);
29185
+ var import_typescript77 = __toESM(require("typescript"), 1);
29405
29186
 
29406
29187
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
29407
- var import_typescript73 = __toESM(require("typescript"), 1);
29188
+ var import_typescript71 = __toESM(require("typescript"), 1);
29408
29189
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
29409
- import_typescript73.default.SyntaxKind.ParenthesizedExpression,
29410
- import_typescript73.default.SyntaxKind.Identifier,
29411
- import_typescript73.default.SyntaxKind.CallExpression,
29412
- import_typescript73.default.SyntaxKind.NonNullExpression,
29413
- import_typescript73.default.SyntaxKind.ElementAccessExpression,
29414
- import_typescript73.default.SyntaxKind.PropertyAccessExpression,
29415
- import_typescript73.default.SyntaxKind.ArrayLiteralExpression,
29416
- import_typescript73.default.SyntaxKind.ObjectLiteralExpression,
29417
- import_typescript73.default.SyntaxKind.StringLiteral,
29418
- import_typescript73.default.SyntaxKind.NumericLiteral,
29419
- import_typescript73.default.SyntaxKind.TrueKeyword,
29420
- import_typescript73.default.SyntaxKind.FalseKeyword,
29421
- import_typescript73.default.SyntaxKind.NullKeyword,
29422
- import_typescript73.default.SyntaxKind.UndefinedKeyword
29190
+ import_typescript71.default.SyntaxKind.ParenthesizedExpression,
29191
+ import_typescript71.default.SyntaxKind.Identifier,
29192
+ import_typescript71.default.SyntaxKind.CallExpression,
29193
+ import_typescript71.default.SyntaxKind.NonNullExpression,
29194
+ import_typescript71.default.SyntaxKind.ElementAccessExpression,
29195
+ import_typescript71.default.SyntaxKind.PropertyAccessExpression,
29196
+ import_typescript71.default.SyntaxKind.ArrayLiteralExpression,
29197
+ import_typescript71.default.SyntaxKind.ObjectLiteralExpression,
29198
+ import_typescript71.default.SyntaxKind.StringLiteral,
29199
+ import_typescript71.default.SyntaxKind.NumericLiteral,
29200
+ import_typescript71.default.SyntaxKind.TrueKeyword,
29201
+ import_typescript71.default.SyntaxKind.FalseKeyword,
29202
+ import_typescript71.default.SyntaxKind.NullKeyword,
29203
+ import_typescript71.default.SyntaxKind.UndefinedKeyword
29423
29204
  ]);
29424
29205
  function tsCastToAny(expr) {
29425
29206
  if (!SAFE_TO_CAST_WITHOUT_PARENS.has(expr.kind)) {
29426
- expr = import_typescript73.default.factory.createParenthesizedExpression(expr);
29207
+ expr = import_typescript71.default.factory.createParenthesizedExpression(expr);
29427
29208
  }
29428
- return import_typescript73.default.factory.createParenthesizedExpression(import_typescript73.default.factory.createAsExpression(expr, import_typescript73.default.factory.createKeywordTypeNode(import_typescript73.default.SyntaxKind.AnyKeyword)));
29209
+ return import_typescript71.default.factory.createParenthesizedExpression(import_typescript71.default.factory.createAsExpression(expr, import_typescript71.default.factory.createKeywordTypeNode(import_typescript71.default.SyntaxKind.AnyKeyword)));
29429
29210
  }
29430
29211
  function tsCreateElement(tagName) {
29431
- const createElement = import_typescript73.default.factory.createPropertyAccessExpression(
29432
- import_typescript73.default.factory.createIdentifier("document"),
29212
+ const createElement = import_typescript71.default.factory.createPropertyAccessExpression(
29213
+ import_typescript71.default.factory.createIdentifier("document"),
29433
29214
  "createElement"
29434
29215
  );
29435
- return import_typescript73.default.factory.createCallExpression(
29216
+ return import_typescript71.default.factory.createCallExpression(
29436
29217
  createElement,
29437
29218
  void 0,
29438
- [import_typescript73.default.factory.createStringLiteral(tagName)]
29219
+ [import_typescript71.default.factory.createStringLiteral(tagName)]
29439
29220
  );
29440
29221
  }
29441
29222
  function tsDeclareVariable(id, type) {
29442
- const decl = import_typescript73.default.factory.createVariableDeclaration(
29223
+ const decl = import_typescript71.default.factory.createVariableDeclaration(
29443
29224
  id,
29444
29225
  void 0,
29445
29226
  type,
29446
- import_typescript73.default.factory.createNonNullExpression(import_typescript73.default.factory.createNull())
29227
+ import_typescript71.default.factory.createNonNullExpression(import_typescript71.default.factory.createNull())
29447
29228
  );
29448
- return import_typescript73.default.factory.createVariableStatement(
29229
+ return import_typescript71.default.factory.createVariableStatement(
29449
29230
  void 0,
29450
29231
  [decl]
29451
29232
  );
29452
29233
  }
29453
29234
  function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
29454
- return import_typescript73.default.factory.createTypeQueryNode(import_typescript73.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
29235
+ return import_typescript71.default.factory.createTypeQueryNode(import_typescript71.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
29455
29236
  }
29456
29237
  function tsCreateVariable(id, initializer) {
29457
- const decl = import_typescript73.default.factory.createVariableDeclaration(
29238
+ const decl = import_typescript71.default.factory.createVariableDeclaration(
29458
29239
  id,
29459
29240
  void 0,
29460
29241
  void 0,
29461
29242
  initializer
29462
29243
  );
29463
- return import_typescript73.default.factory.createVariableStatement(
29244
+ return import_typescript71.default.factory.createVariableStatement(
29464
29245
  void 0,
29465
29246
  [decl]
29466
29247
  );
29467
29248
  }
29468
29249
  function tsCallMethod(receiver, methodName, args = []) {
29469
- const methodAccess = import_typescript73.default.factory.createPropertyAccessExpression(receiver, methodName);
29470
- return import_typescript73.default.factory.createCallExpression(
29250
+ const methodAccess = import_typescript71.default.factory.createPropertyAccessExpression(receiver, methodName);
29251
+ return import_typescript71.default.factory.createCallExpression(
29471
29252
  methodAccess,
29472
29253
  void 0,
29473
29254
  args
29474
29255
  );
29475
29256
  }
29476
29257
  function isAccessExpression(node) {
29477
- return import_typescript73.default.isPropertyAccessExpression(node) || import_typescript73.default.isElementAccessExpression(node);
29258
+ return import_typescript71.default.isPropertyAccessExpression(node) || import_typescript71.default.isElementAccessExpression(node);
29478
29259
  }
29479
29260
 
29480
29261
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
29481
- var import_typescript78 = __toESM(require("typescript"), 1);
29262
+ var import_typescript76 = __toESM(require("typescript"), 1);
29482
29263
 
29483
29264
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
29484
- var import_typescript76 = __toESM(require("typescript"), 1);
29265
+ var import_typescript74 = __toESM(require("typescript"), 1);
29485
29266
 
29486
29267
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
29487
- var import_typescript75 = __toESM(require("typescript"), 1);
29268
+ var import_typescript73 = __toESM(require("typescript"), 1);
29488
29269
 
29489
29270
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
29490
- var import_typescript74 = __toESM(require("typescript"), 1);
29271
+ var import_typescript72 = __toESM(require("typescript"), 1);
29491
29272
  var INELIGIBLE = {};
29492
29273
  function canEmitType(type, canEmit) {
29493
29274
  return canEmitTypeWorker(type);
@@ -29495,13 +29276,13 @@ function canEmitType(type, canEmit) {
29495
29276
  return visitNode(type2) !== INELIGIBLE;
29496
29277
  }
29497
29278
  function visitNode(node) {
29498
- if (import_typescript74.default.isImportTypeNode(node)) {
29279
+ if (import_typescript72.default.isImportTypeNode(node)) {
29499
29280
  return INELIGIBLE;
29500
29281
  }
29501
- if (import_typescript74.default.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
29282
+ if (import_typescript72.default.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
29502
29283
  return INELIGIBLE;
29503
29284
  } else {
29504
- return import_typescript74.default.forEachChild(node, visitNode);
29285
+ return import_typescript72.default.forEachChild(node, visitNode);
29505
29286
  }
29506
29287
  }
29507
29288
  function canEmitTypeReference(type2) {
@@ -29518,35 +29299,35 @@ var TypeEmitter = class {
29518
29299
  emitType(type) {
29519
29300
  const typeReferenceTransformer = (context) => {
29520
29301
  const visitNode = (node) => {
29521
- if (import_typescript74.default.isImportTypeNode(node)) {
29302
+ if (import_typescript72.default.isImportTypeNode(node)) {
29522
29303
  throw new Error("Unable to emit import type");
29523
29304
  }
29524
- if (import_typescript74.default.isTypeReferenceNode(node)) {
29305
+ if (import_typescript72.default.isTypeReferenceNode(node)) {
29525
29306
  return this.emitTypeReference(node);
29526
- } else if (import_typescript74.default.isLiteralExpression(node)) {
29307
+ } else if (import_typescript72.default.isLiteralExpression(node)) {
29527
29308
  let clone;
29528
- if (import_typescript74.default.isStringLiteral(node)) {
29529
- clone = import_typescript74.default.factory.createStringLiteral(node.text);
29530
- } else if (import_typescript74.default.isNumericLiteral(node)) {
29531
- clone = import_typescript74.default.factory.createNumericLiteral(node.text);
29532
- } else if (import_typescript74.default.isBigIntLiteral(node)) {
29533
- clone = import_typescript74.default.factory.createBigIntLiteral(node.text);
29534
- } else if (import_typescript74.default.isNoSubstitutionTemplateLiteral(node)) {
29535
- clone = import_typescript74.default.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
29536
- } else if (import_typescript74.default.isRegularExpressionLiteral(node)) {
29537
- clone = import_typescript74.default.factory.createRegularExpressionLiteral(node.text);
29309
+ if (import_typescript72.default.isStringLiteral(node)) {
29310
+ clone = import_typescript72.default.factory.createStringLiteral(node.text);
29311
+ } else if (import_typescript72.default.isNumericLiteral(node)) {
29312
+ clone = import_typescript72.default.factory.createNumericLiteral(node.text);
29313
+ } else if (import_typescript72.default.isBigIntLiteral(node)) {
29314
+ clone = import_typescript72.default.factory.createBigIntLiteral(node.text);
29315
+ } else if (import_typescript72.default.isNoSubstitutionTemplateLiteral(node)) {
29316
+ clone = import_typescript72.default.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
29317
+ } else if (import_typescript72.default.isRegularExpressionLiteral(node)) {
29318
+ clone = import_typescript72.default.factory.createRegularExpressionLiteral(node.text);
29538
29319
  } else {
29539
- throw new Error(`Unsupported literal kind ${import_typescript74.default.SyntaxKind[node.kind]}`);
29320
+ throw new Error(`Unsupported literal kind ${import_typescript72.default.SyntaxKind[node.kind]}`);
29540
29321
  }
29541
- import_typescript74.default.setTextRange(clone, { pos: -1, end: -1 });
29322
+ import_typescript72.default.setTextRange(clone, { pos: -1, end: -1 });
29542
29323
  return clone;
29543
29324
  } else {
29544
- return import_typescript74.default.visitEachChild(node, visitNode, context);
29325
+ return import_typescript72.default.visitEachChild(node, visitNode, context);
29545
29326
  }
29546
29327
  };
29547
- return (node) => import_typescript74.default.visitNode(node, visitNode);
29328
+ return (node) => import_typescript72.default.visitNode(node, visitNode);
29548
29329
  };
29549
- return import_typescript74.default.transform(type, [typeReferenceTransformer]).transformed[0];
29330
+ return import_typescript72.default.transform(type, [typeReferenceTransformer]).transformed[0];
29550
29331
  }
29551
29332
  emitTypeReference(type) {
29552
29333
  const translatedType = this.translator(type);
@@ -29555,9 +29336,9 @@ var TypeEmitter = class {
29555
29336
  }
29556
29337
  let typeArguments = void 0;
29557
29338
  if (type.typeArguments !== void 0) {
29558
- typeArguments = import_typescript74.default.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
29339
+ typeArguments = import_typescript72.default.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
29559
29340
  }
29560
- return import_typescript74.default.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
29341
+ return import_typescript72.default.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
29561
29342
  }
29562
29343
  };
29563
29344
 
@@ -29598,11 +29379,11 @@ var TypeParameterEmitter = class {
29598
29379
  return this.typeParameters.map((typeParam) => {
29599
29380
  const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
29600
29381
  const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
29601
- return import_typescript75.default.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
29382
+ return import_typescript73.default.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
29602
29383
  });
29603
29384
  }
29604
29385
  resolveTypeReference(type) {
29605
- const target = import_typescript75.default.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
29386
+ const target = import_typescript73.default.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
29606
29387
  const declaration = this.reflector.getDeclarationOfIdentifier(target);
29607
29388
  if (declaration === null || declaration.node === null) {
29608
29389
  return null;
@@ -29628,8 +29409,8 @@ var TypeParameterEmitter = class {
29628
29409
  if (typeNode === null) {
29629
29410
  return null;
29630
29411
  }
29631
- if (!import_typescript75.default.isTypeReferenceNode(typeNode)) {
29632
- throw new Error(`Expected TypeReferenceNode for emitted reference, got ${import_typescript75.default.SyntaxKind[typeNode.kind]}.`);
29412
+ if (!import_typescript73.default.isTypeReferenceNode(typeNode)) {
29413
+ throw new Error(`Expected TypeReferenceNode for emitted reference, got ${import_typescript73.default.SyntaxKind[typeNode.kind]}.`);
29633
29414
  }
29634
29415
  return typeNode;
29635
29416
  }
@@ -29671,14 +29452,14 @@ function getTemplateMapping(shimSf, position, resolver, isDiagnosticRequest) {
29671
29452
  }
29672
29453
  function findTypeCheckBlock(file, id, isDiagnosticRequest) {
29673
29454
  for (const stmt of file.statements) {
29674
- if (import_typescript76.default.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
29455
+ if (import_typescript74.default.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
29675
29456
  return stmt;
29676
29457
  }
29677
29458
  }
29678
29459
  return null;
29679
29460
  }
29680
29461
  function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
29681
- while (node !== void 0 && !import_typescript76.default.isFunctionDeclaration(node)) {
29462
+ while (node !== void 0 && !import_typescript74.default.isFunctionDeclaration(node)) {
29682
29463
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticsRequest) {
29683
29464
  return null;
29684
29465
  }
@@ -29695,7 +29476,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
29695
29476
  return null;
29696
29477
  }
29697
29478
  function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
29698
- while (!import_typescript76.default.isFunctionDeclaration(node)) {
29479
+ while (!import_typescript74.default.isFunctionDeclaration(node)) {
29699
29480
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticRequest) {
29700
29481
  return null;
29701
29482
  }
@@ -29705,8 +29486,8 @@ function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
29705
29486
  }
29706
29487
  }
29707
29488
  const start = node.getFullStart();
29708
- return import_typescript76.default.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
29709
- if (kind !== import_typescript76.default.SyntaxKind.MultiLineCommentTrivia) {
29489
+ return import_typescript74.default.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
29490
+ if (kind !== import_typescript74.default.SyntaxKind.MultiLineCommentTrivia) {
29710
29491
  return null;
29711
29492
  }
29712
29493
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29721,29 +29502,29 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
29721
29502
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
29722
29503
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
29723
29504
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
29724
- const rawType = import_typescript78.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
29505
+ const rawType = import_typescript76.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
29725
29506
  const initParam = constructTypeCtorParameter(node, meta, rawType);
29726
29507
  const typeParameters = typeParametersWithDefaultTypes(typeParams);
29727
29508
  if (meta.body) {
29728
- const fnType = import_typescript78.default.factory.createFunctionTypeNode(
29509
+ const fnType = import_typescript76.default.factory.createFunctionTypeNode(
29729
29510
  typeParameters,
29730
29511
  [initParam],
29731
29512
  rawType
29732
29513
  );
29733
- const decl = import_typescript78.default.factory.createVariableDeclaration(
29514
+ const decl = import_typescript76.default.factory.createVariableDeclaration(
29734
29515
  meta.fnName,
29735
29516
  void 0,
29736
29517
  fnType,
29737
- import_typescript78.default.factory.createNonNullExpression(import_typescript78.default.factory.createNull())
29518
+ import_typescript76.default.factory.createNonNullExpression(import_typescript76.default.factory.createNull())
29738
29519
  );
29739
- const declList = import_typescript78.default.factory.createVariableDeclarationList([decl], import_typescript78.default.NodeFlags.Const);
29740
- return import_typescript78.default.factory.createVariableStatement(
29520
+ const declList = import_typescript76.default.factory.createVariableDeclarationList([decl], import_typescript76.default.NodeFlags.Const);
29521
+ return import_typescript76.default.factory.createVariableStatement(
29741
29522
  void 0,
29742
29523
  declList
29743
29524
  );
29744
29525
  } else {
29745
29526
  return createFunctionDeclaration(
29746
- [import_typescript78.default.factory.createModifier(import_typescript78.default.SyntaxKind.DeclareKeyword)],
29527
+ [import_typescript76.default.factory.createModifier(import_typescript76.default.SyntaxKind.DeclareKeyword)],
29747
29528
  void 0,
29748
29529
  meta.fnName,
29749
29530
  typeParameters,
@@ -29755,16 +29536,16 @@ function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
29755
29536
  }
29756
29537
  function generateInlineTypeCtor(node, meta) {
29757
29538
  const rawTypeArgs = node.typeParameters !== void 0 ? generateGenericArgs(node.typeParameters) : void 0;
29758
- const rawType = import_typescript78.default.factory.createTypeReferenceNode(node.name, rawTypeArgs);
29539
+ const rawType = import_typescript76.default.factory.createTypeReferenceNode(node.name, rawTypeArgs);
29759
29540
  const initParam = constructTypeCtorParameter(node, meta, rawType);
29760
29541
  let body = void 0;
29761
29542
  if (meta.body) {
29762
- body = import_typescript78.default.factory.createBlock([
29763
- import_typescript78.default.factory.createReturnStatement(import_typescript78.default.factory.createNonNullExpression(import_typescript78.default.factory.createNull()))
29543
+ body = import_typescript76.default.factory.createBlock([
29544
+ import_typescript76.default.factory.createReturnStatement(import_typescript76.default.factory.createNonNullExpression(import_typescript76.default.factory.createNull()))
29764
29545
  ]);
29765
29546
  }
29766
- return import_typescript78.default.factory.createMethodDeclaration(
29767
- [import_typescript78.default.factory.createModifier(import_typescript78.default.SyntaxKind.StaticKeyword)],
29547
+ return import_typescript76.default.factory.createMethodDeclaration(
29548
+ [import_typescript76.default.factory.createModifier(import_typescript76.default.SyntaxKind.StaticKeyword)],
29768
29549
  void 0,
29769
29550
  meta.fnName,
29770
29551
  void 0,
@@ -29781,9 +29562,9 @@ function constructTypeCtorParameter(node, meta, rawType) {
29781
29562
  const coercedKeys = [];
29782
29563
  for (const key of keys) {
29783
29564
  if (!meta.coercedInputFields.has(key)) {
29784
- plainKeys.push(import_typescript78.default.factory.createLiteralTypeNode(import_typescript78.default.factory.createStringLiteral(key)));
29565
+ plainKeys.push(import_typescript76.default.factory.createLiteralTypeNode(import_typescript76.default.factory.createStringLiteral(key)));
29785
29566
  } else {
29786
- coercedKeys.push(import_typescript78.default.factory.createPropertySignature(
29567
+ coercedKeys.push(import_typescript76.default.factory.createPropertySignature(
29787
29568
  void 0,
29788
29569
  key,
29789
29570
  void 0,
@@ -29792,15 +29573,15 @@ function constructTypeCtorParameter(node, meta, rawType) {
29792
29573
  }
29793
29574
  }
29794
29575
  if (plainKeys.length > 0) {
29795
- const keyTypeUnion = import_typescript78.default.factory.createUnionTypeNode(plainKeys);
29796
- initType = import_typescript78.default.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
29576
+ const keyTypeUnion = import_typescript76.default.factory.createUnionTypeNode(plainKeys);
29577
+ initType = import_typescript76.default.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
29797
29578
  }
29798
29579
  if (coercedKeys.length > 0) {
29799
- const coercedLiteral = import_typescript78.default.factory.createTypeLiteralNode(coercedKeys);
29800
- initType = initType !== null ? import_typescript78.default.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
29580
+ const coercedLiteral = import_typescript76.default.factory.createTypeLiteralNode(coercedKeys);
29581
+ initType = initType !== null ? import_typescript76.default.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
29801
29582
  }
29802
29583
  if (initType === null) {
29803
- initType = import_typescript78.default.factory.createTypeLiteralNode([]);
29584
+ initType = import_typescript76.default.factory.createTypeLiteralNode([]);
29804
29585
  }
29805
29586
  return createParameterDeclaration(
29806
29587
  void 0,
@@ -29812,7 +29593,7 @@ function constructTypeCtorParameter(node, meta, rawType) {
29812
29593
  );
29813
29594
  }
29814
29595
  function generateGenericArgs(params) {
29815
- return params.map((param) => import_typescript78.default.factory.createTypeReferenceNode(param.name, void 0));
29596
+ return params.map((param) => import_typescript76.default.factory.createTypeReferenceNode(param.name, void 0));
29816
29597
  }
29817
29598
  function requiresInlineTypeCtor(node, host, env) {
29818
29599
  return !checkIfGenericTypeBoundsCanBeEmitted(node, host, env);
@@ -29823,7 +29604,7 @@ function typeParametersWithDefaultTypes(params) {
29823
29604
  }
29824
29605
  return params.map((param) => {
29825
29606
  if (param.default === void 0) {
29826
- return import_typescript78.default.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, import_typescript78.default.factory.createKeywordTypeNode(import_typescript78.default.SyntaxKind.AnyKeyword));
29607
+ return import_typescript76.default.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, import_typescript76.default.factory.createKeywordTypeNode(import_typescript76.default.SyntaxKind.AnyKeyword));
29827
29608
  } else {
29828
29609
  return param;
29829
29610
  }
@@ -29855,13 +29636,13 @@ var Environment = class {
29855
29636
  }
29856
29637
  if (requiresInlineTypeCtor(node, this.reflector, this)) {
29857
29638
  const ref = this.reference(dirRef);
29858
- const typeCtorExpr = import_typescript79.default.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
29639
+ const typeCtorExpr = import_typescript77.default.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
29859
29640
  this.typeCtors.set(node, typeCtorExpr);
29860
29641
  return typeCtorExpr;
29861
29642
  } else {
29862
29643
  const fnName = `_ctor${this.nextIds.typeCtor++}`;
29863
29644
  const nodeTypeRef = this.referenceType(dirRef);
29864
- if (!import_typescript79.default.isTypeReferenceNode(nodeTypeRef)) {
29645
+ if (!import_typescript77.default.isTypeReferenceNode(nodeTypeRef)) {
29865
29646
  throw new Error(`Expected TypeReferenceNode from reference to ${dirRef.debugName}`);
29866
29647
  }
29867
29648
  const meta = {
@@ -29877,7 +29658,7 @@ var Environment = class {
29877
29658
  const typeParams = this.emitTypeParameters(node);
29878
29659
  const typeCtor = generateTypeCtorDeclarationFn(node, meta, nodeTypeRef.typeName, typeParams);
29879
29660
  this.typeCtorStatements.push(typeCtor);
29880
- const fnId = import_typescript79.default.factory.createIdentifier(fnName);
29661
+ const fnId = import_typescript77.default.factory.createIdentifier(fnName);
29881
29662
  this.typeCtors.set(node, fnId);
29882
29663
  return fnId;
29883
29664
  }
@@ -29887,7 +29668,7 @@ var Environment = class {
29887
29668
  return this.pipeInsts.get(ref.node);
29888
29669
  }
29889
29670
  const pipeType = this.referenceType(ref);
29890
- const pipeInstId = import_typescript79.default.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
29671
+ const pipeInstId = import_typescript77.default.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
29891
29672
  this.pipeInstStatements.push(tsDeclareVariable(pipeInstId, pipeType));
29892
29673
  this.pipeInsts.set(ref.node, pipeInstId);
29893
29674
  return pipeInstId;
@@ -29923,7 +29704,7 @@ var Environment = class {
29923
29704
  };
29924
29705
 
29925
29706
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
29926
- var import_typescript80 = __toESM(require("typescript"), 1);
29707
+ var import_typescript78 = __toESM(require("typescript"), 1);
29927
29708
  var OutOfBandDiagnosticRecorderImpl = class {
29928
29709
  constructor(resolver) {
29929
29710
  this.resolver = resolver;
@@ -29937,7 +29718,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29937
29718
  const mapping = this.resolver.getSourceMapping(templateId);
29938
29719
  const value = ref.value.trim();
29939
29720
  const errorMsg = `No directive found with exportAs '${value}'.`;
29940
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
29721
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
29941
29722
  }
29942
29723
  missingPipe(templateId, ast) {
29943
29724
  if (this.recordedPipes.has(ast)) {
@@ -29949,7 +29730,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29949
29730
  if (sourceSpan === null) {
29950
29731
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
29951
29732
  }
29952
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
29733
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
29953
29734
  this.recordedPipes.add(ast);
29954
29735
  }
29955
29736
  illegalAssignmentToTemplateVar(templateId, assignment, target) {
@@ -29960,7 +29741,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29960
29741
  if (sourceSpan === null) {
29961
29742
  throw new Error(`Assertion failure: no SourceLocation found for property binding.`);
29962
29743
  }
29963
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
29744
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
29964
29745
  text: `The variable ${assignment.name} is declared here.`,
29965
29746
  start: ((_a = target.valueSpan) == null ? void 0 : _a.start.offset) || target.sourceSpan.start.offset,
29966
29747
  end: ((_b = target.valueSpan) == null ? void 0 : _b.end.offset) || target.sourceSpan.end.offset,
@@ -29970,7 +29751,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29970
29751
  duplicateTemplateVar(templateId, variable2, firstDecl) {
29971
29752
  const mapping = this.resolver.getSourceMapping(templateId);
29972
29753
  const errorMsg = `Cannot redeclare variable '${variable2.name}' as it was previously declared elsewhere for the same template.`;
29973
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable2.sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
29754
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable2.sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
29974
29755
  text: `The variable '${firstDecl.name}' was first declared here.`,
29975
29756
  start: firstDecl.sourceSpan.start.offset,
29976
29757
  end: firstDecl.sourceSpan.end.offset,
@@ -30009,7 +29790,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
30009
29790
  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.
30010
29791
 
30011
29792
  Consider enabling the 'strictTemplates' option in your tsconfig.json for better type inference within this template.`;
30012
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, import_typescript80.default.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
29793
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, import_typescript78.default.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
30013
29794
  }
30014
29795
  splitTwoWayBinding(templateId, input, output, inputConsumer, outputConsumer) {
30015
29796
  const mapping = this.resolver.getSourceMapping(templateId);
@@ -30043,7 +29824,7 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
30043
29824
  sourceFile: outputConsumer.name.getSourceFile()
30044
29825
  });
30045
29826
  }
30046
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
29827
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
30047
29828
  }
30048
29829
  };
30049
29830
  function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
@@ -30054,7 +29835,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
30054
29835
  }
30055
29836
 
30056
29837
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
30057
- var import_typescript81 = __toESM(require("typescript"), 1);
29838
+ var import_typescript79 = __toESM(require("typescript"), 1);
30058
29839
  var TypeCheckShimGenerator = class {
30059
29840
  constructor() {
30060
29841
  this.extensionPrefix = "ngtypecheck";
@@ -30064,7 +29845,7 @@ var TypeCheckShimGenerator = class {
30064
29845
  if (priorShimSf !== null) {
30065
29846
  return priorShimSf;
30066
29847
  }
30067
- 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);
29848
+ return import_typescript79.default.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", import_typescript79.default.ScriptTarget.Latest, true, import_typescript79.default.ScriptKind.TS);
30068
29849
  }
30069
29850
  static shimFor(fileName) {
30070
29851
  return absoluteFrom(fileName.replace(/\.tsx?$/, ".ngtypecheck.ts"));
@@ -30072,15 +29853,15 @@ var TypeCheckShimGenerator = class {
30072
29853
  };
30073
29854
 
30074
29855
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
30075
- var import_typescript84 = __toESM(require("typescript"), 1);
29856
+ var import_typescript82 = __toESM(require("typescript"), 1);
30076
29857
 
30077
29858
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
30078
- var import_typescript82 = __toESM(require("typescript"), 1);
29859
+ var import_typescript80 = __toESM(require("typescript"), 1);
30079
29860
  function wrapForDiagnostics(expr) {
30080
- return import_typescript82.default.factory.createParenthesizedExpression(expr);
29861
+ return import_typescript80.default.factory.createParenthesizedExpression(expr);
30081
29862
  }
30082
29863
  function wrapForTypeChecker(expr) {
30083
- return import_typescript82.default.factory.createParenthesizedExpression(expr);
29864
+ return import_typescript80.default.factory.createParenthesizedExpression(expr);
30084
29865
  }
30085
29866
  function addParseSpanInfo(node, span) {
30086
29867
  let commentText;
@@ -30089,10 +29870,10 @@ function addParseSpanInfo(node, span) {
30089
29870
  } else {
30090
29871
  commentText = `${span.start.offset},${span.end.offset}`;
30091
29872
  }
30092
- import_typescript82.default.addSyntheticTrailingComment(node, import_typescript82.default.SyntaxKind.MultiLineCommentTrivia, commentText, false);
29873
+ import_typescript80.default.addSyntheticTrailingComment(node, import_typescript80.default.SyntaxKind.MultiLineCommentTrivia, commentText, false);
30093
29874
  }
30094
29875
  function addTemplateId(tcb, id) {
30095
- import_typescript82.default.addSyntheticLeadingComment(tcb, import_typescript82.default.SyntaxKind.MultiLineCommentTrivia, id, true);
29876
+ import_typescript80.default.addSyntheticLeadingComment(tcb, import_typescript80.default.SyntaxKind.MultiLineCommentTrivia, id, true);
30096
29877
  }
30097
29878
  function shouldReportDiagnostic(diagnostic) {
30098
29879
  const { code } = diagnostic;
@@ -30120,32 +29901,32 @@ function translateDiagnostic(diagnostic, resolver) {
30120
29901
  }
30121
29902
 
30122
29903
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
30123
- var import_typescript83 = __toESM(require("typescript"), 1);
30124
- var NULL_AS_ANY = import_typescript83.default.factory.createAsExpression(import_typescript83.default.factory.createNull(), import_typescript83.default.factory.createKeywordTypeNode(import_typescript83.default.SyntaxKind.AnyKeyword));
30125
- var UNDEFINED = import_typescript83.default.factory.createIdentifier("undefined");
29904
+ var import_typescript81 = __toESM(require("typescript"), 1);
29905
+ var NULL_AS_ANY = import_typescript81.default.factory.createAsExpression(import_typescript81.default.factory.createNull(), import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
29906
+ var UNDEFINED = import_typescript81.default.factory.createIdentifier("undefined");
30126
29907
  var UNARY_OPS = /* @__PURE__ */ new Map([
30127
- ["+", import_typescript83.default.SyntaxKind.PlusToken],
30128
- ["-", import_typescript83.default.SyntaxKind.MinusToken]
29908
+ ["+", import_typescript81.default.SyntaxKind.PlusToken],
29909
+ ["-", import_typescript81.default.SyntaxKind.MinusToken]
30129
29910
  ]);
30130
29911
  var BINARY_OPS = /* @__PURE__ */ new Map([
30131
- ["+", import_typescript83.default.SyntaxKind.PlusToken],
30132
- ["-", import_typescript83.default.SyntaxKind.MinusToken],
30133
- ["<", import_typescript83.default.SyntaxKind.LessThanToken],
30134
- [">", import_typescript83.default.SyntaxKind.GreaterThanToken],
30135
- ["<=", import_typescript83.default.SyntaxKind.LessThanEqualsToken],
30136
- [">=", import_typescript83.default.SyntaxKind.GreaterThanEqualsToken],
30137
- ["==", import_typescript83.default.SyntaxKind.EqualsEqualsToken],
30138
- ["===", import_typescript83.default.SyntaxKind.EqualsEqualsEqualsToken],
30139
- ["*", import_typescript83.default.SyntaxKind.AsteriskToken],
30140
- ["/", import_typescript83.default.SyntaxKind.SlashToken],
30141
- ["%", import_typescript83.default.SyntaxKind.PercentToken],
30142
- ["!=", import_typescript83.default.SyntaxKind.ExclamationEqualsToken],
30143
- ["!==", import_typescript83.default.SyntaxKind.ExclamationEqualsEqualsToken],
30144
- ["||", import_typescript83.default.SyntaxKind.BarBarToken],
30145
- ["&&", import_typescript83.default.SyntaxKind.AmpersandAmpersandToken],
30146
- ["&", import_typescript83.default.SyntaxKind.AmpersandToken],
30147
- ["|", import_typescript83.default.SyntaxKind.BarToken],
30148
- ["??", import_typescript83.default.SyntaxKind.QuestionQuestionToken]
29912
+ ["+", import_typescript81.default.SyntaxKind.PlusToken],
29913
+ ["-", import_typescript81.default.SyntaxKind.MinusToken],
29914
+ ["<", import_typescript81.default.SyntaxKind.LessThanToken],
29915
+ [">", import_typescript81.default.SyntaxKind.GreaterThanToken],
29916
+ ["<=", import_typescript81.default.SyntaxKind.LessThanEqualsToken],
29917
+ [">=", import_typescript81.default.SyntaxKind.GreaterThanEqualsToken],
29918
+ ["==", import_typescript81.default.SyntaxKind.EqualsEqualsToken],
29919
+ ["===", import_typescript81.default.SyntaxKind.EqualsEqualsEqualsToken],
29920
+ ["*", import_typescript81.default.SyntaxKind.AsteriskToken],
29921
+ ["/", import_typescript81.default.SyntaxKind.SlashToken],
29922
+ ["%", import_typescript81.default.SyntaxKind.PercentToken],
29923
+ ["!=", import_typescript81.default.SyntaxKind.ExclamationEqualsToken],
29924
+ ["!==", import_typescript81.default.SyntaxKind.ExclamationEqualsEqualsToken],
29925
+ ["||", import_typescript81.default.SyntaxKind.BarBarToken],
29926
+ ["&&", import_typescript81.default.SyntaxKind.AmpersandAmpersandToken],
29927
+ ["&", import_typescript81.default.SyntaxKind.AmpersandToken],
29928
+ ["|", import_typescript81.default.SyntaxKind.BarToken],
29929
+ ["??", import_typescript81.default.SyntaxKind.QuestionQuestionToken]
30149
29930
  ]);
30150
29931
  function astToTypescript(ast, maybeResolve, config) {
30151
29932
  const translator = new AstTranslator(maybeResolve, config);
@@ -30161,7 +29942,7 @@ var AstTranslator = class {
30161
29942
  ast = ast.ast;
30162
29943
  }
30163
29944
  if (ast instanceof EmptyExpr) {
30164
- const res = import_typescript83.default.factory.createIdentifier("undefined");
29945
+ const res = import_typescript81.default.factory.createIdentifier("undefined");
30165
29946
  addParseSpanInfo(res, ast.sourceSpan);
30166
29947
  return res;
30167
29948
  }
@@ -30177,7 +29958,7 @@ var AstTranslator = class {
30177
29958
  if (op === void 0) {
30178
29959
  throw new Error(`Unsupported Unary.operator: ${ast.operator}`);
30179
29960
  }
30180
- const node = wrapForDiagnostics(import_typescript83.default.factory.createPrefixUnaryExpression(op, expr));
29961
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createPrefixUnaryExpression(op, expr));
30181
29962
  addParseSpanInfo(node, ast.sourceSpan);
30182
29963
  return node;
30183
29964
  }
@@ -30188,13 +29969,13 @@ var AstTranslator = class {
30188
29969
  if (op === void 0) {
30189
29970
  throw new Error(`Unsupported Binary.operation: ${ast.operation}`);
30190
29971
  }
30191
- const node = import_typescript83.default.factory.createBinaryExpression(lhs, op, rhs);
29972
+ const node = import_typescript81.default.factory.createBinaryExpression(lhs, op, rhs);
30192
29973
  addParseSpanInfo(node, ast.sourceSpan);
30193
29974
  return node;
30194
29975
  }
30195
29976
  visitChain(ast) {
30196
29977
  const elements = ast.expressions.map((expr) => this.translate(expr));
30197
- const node = wrapForDiagnostics(import_typescript83.default.factory.createCommaListExpression(elements));
29978
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createCommaListExpression(elements));
30198
29979
  addParseSpanInfo(node, ast.sourceSpan);
30199
29980
  return node;
30200
29981
  }
@@ -30202,7 +29983,7 @@ var AstTranslator = class {
30202
29983
  const condExpr = this.translate(ast.condition);
30203
29984
  const trueExpr = this.translate(ast.trueExp);
30204
29985
  const falseExpr = wrapForTypeChecker(this.translate(ast.falseExp));
30205
- const node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
29986
+ const node = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
30206
29987
  addParseSpanInfo(node, ast.sourceSpan);
30207
29988
  return node;
30208
29989
  }
@@ -30213,26 +29994,26 @@ var AstTranslator = class {
30213
29994
  throw new Error("Method not implemented.");
30214
29995
  }
30215
29996
  visitInterpolation(ast) {
30216
- 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(""));
29997
+ return ast.expressions.reduce((lhs, ast2) => import_typescript81.default.factory.createBinaryExpression(lhs, import_typescript81.default.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), import_typescript81.default.factory.createStringLiteral(""));
30217
29998
  }
30218
29999
  visitKeyedRead(ast) {
30219
30000
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30220
30001
  const key = this.translate(ast.key);
30221
- const node = import_typescript83.default.factory.createElementAccessExpression(receiver, key);
30002
+ const node = import_typescript81.default.factory.createElementAccessExpression(receiver, key);
30222
30003
  addParseSpanInfo(node, ast.sourceSpan);
30223
30004
  return node;
30224
30005
  }
30225
30006
  visitKeyedWrite(ast) {
30226
30007
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30227
- const left = import_typescript83.default.factory.createElementAccessExpression(receiver, this.translate(ast.key));
30008
+ const left = import_typescript81.default.factory.createElementAccessExpression(receiver, this.translate(ast.key));
30228
30009
  const right = wrapForTypeChecker(this.translate(ast.value));
30229
- const node = wrapForDiagnostics(import_typescript83.default.factory.createBinaryExpression(left, import_typescript83.default.SyntaxKind.EqualsToken, right));
30010
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createBinaryExpression(left, import_typescript81.default.SyntaxKind.EqualsToken, right));
30230
30011
  addParseSpanInfo(node, ast.sourceSpan);
30231
30012
  return node;
30232
30013
  }
30233
30014
  visitLiteralArray(ast) {
30234
30015
  const elements = ast.expressions.map((expr) => this.translate(expr));
30235
- const literal3 = import_typescript83.default.factory.createArrayLiteralExpression(elements);
30016
+ const literal3 = import_typescript81.default.factory.createArrayLiteralExpression(elements);
30236
30017
  const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
30237
30018
  addParseSpanInfo(node, ast.sourceSpan);
30238
30019
  return node;
@@ -30240,9 +30021,9 @@ var AstTranslator = class {
30240
30021
  visitLiteralMap(ast) {
30241
30022
  const properties = ast.keys.map(({ key }, idx) => {
30242
30023
  const value = this.translate(ast.values[idx]);
30243
- return import_typescript83.default.factory.createPropertyAssignment(import_typescript83.default.factory.createStringLiteral(key), value);
30024
+ return import_typescript81.default.factory.createPropertyAssignment(import_typescript81.default.factory.createStringLiteral(key), value);
30244
30025
  });
30245
- const literal3 = import_typescript83.default.factory.createObjectLiteralExpression(properties, true);
30026
+ const literal3 = import_typescript81.default.factory.createObjectLiteralExpression(properties, true);
30246
30027
  const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
30247
30028
  addParseSpanInfo(node, ast.sourceSpan);
30248
30029
  return node;
@@ -30250,15 +30031,15 @@ var AstTranslator = class {
30250
30031
  visitLiteralPrimitive(ast) {
30251
30032
  let node;
30252
30033
  if (ast.value === void 0) {
30253
- node = import_typescript83.default.factory.createIdentifier("undefined");
30034
+ node = import_typescript81.default.factory.createIdentifier("undefined");
30254
30035
  } else if (ast.value === null) {
30255
- node = import_typescript83.default.factory.createNull();
30036
+ node = import_typescript81.default.factory.createNull();
30256
30037
  } else if (typeof ast.value === "string") {
30257
- node = import_typescript83.default.factory.createStringLiteral(ast.value);
30038
+ node = import_typescript81.default.factory.createStringLiteral(ast.value);
30258
30039
  } else if (typeof ast.value === "number") {
30259
- node = import_typescript83.default.factory.createNumericLiteral(ast.value);
30040
+ node = import_typescript81.default.factory.createNumericLiteral(ast.value);
30260
30041
  } else if (typeof ast.value === "boolean") {
30261
- node = ast.value ? import_typescript83.default.factory.createTrue() : import_typescript83.default.factory.createFalse();
30042
+ node = ast.value ? import_typescript81.default.factory.createTrue() : import_typescript81.default.factory.createFalse();
30262
30043
  } else {
30263
30044
  throw Error(`Unsupported AST value of type ${typeof ast.value}`);
30264
30045
  }
@@ -30267,7 +30048,7 @@ var AstTranslator = class {
30267
30048
  }
30268
30049
  visitNonNullAssert(ast) {
30269
30050
  const expr = wrapForDiagnostics(this.translate(ast.expression));
30270
- const node = import_typescript83.default.factory.createNonNullExpression(expr);
30051
+ const node = import_typescript81.default.factory.createNonNullExpression(expr);
30271
30052
  addParseSpanInfo(node, ast.sourceSpan);
30272
30053
  return node;
30273
30054
  }
@@ -30276,13 +30057,13 @@ var AstTranslator = class {
30276
30057
  }
30277
30058
  visitPrefixNot(ast) {
30278
30059
  const expression = wrapForDiagnostics(this.translate(ast.expression));
30279
- const node = import_typescript83.default.factory.createLogicalNot(expression);
30060
+ const node = import_typescript81.default.factory.createLogicalNot(expression);
30280
30061
  addParseSpanInfo(node, ast.sourceSpan);
30281
30062
  return node;
30282
30063
  }
30283
30064
  visitPropertyRead(ast) {
30284
30065
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30285
- const name = import_typescript83.default.factory.createPropertyAccessExpression(receiver, ast.name);
30066
+ const name = import_typescript81.default.factory.createPropertyAccessExpression(receiver, ast.name);
30286
30067
  addParseSpanInfo(name, ast.nameSpan);
30287
30068
  const node = wrapForDiagnostics(name);
30288
30069
  addParseSpanInfo(node, ast.sourceSpan);
@@ -30290,12 +30071,12 @@ var AstTranslator = class {
30290
30071
  }
30291
30072
  visitPropertyWrite(ast) {
30292
30073
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30293
- const left = import_typescript83.default.factory.createPropertyAccessExpression(receiver, ast.name);
30074
+ const left = import_typescript81.default.factory.createPropertyAccessExpression(receiver, ast.name);
30294
30075
  addParseSpanInfo(left, ast.nameSpan);
30295
30076
  const leftWithPath = wrapForDiagnostics(left);
30296
30077
  addParseSpanInfo(leftWithPath, ast.sourceSpan);
30297
30078
  const right = wrapForTypeChecker(this.translate(ast.value));
30298
- const node = wrapForDiagnostics(import_typescript83.default.factory.createBinaryExpression(leftWithPath, import_typescript83.default.SyntaxKind.EqualsToken, right));
30079
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createBinaryExpression(leftWithPath, import_typescript81.default.SyntaxKind.EqualsToken, right));
30299
30080
  addParseSpanInfo(node, ast.sourceSpan);
30300
30081
  return node;
30301
30082
  }
@@ -30303,13 +30084,13 @@ var AstTranslator = class {
30303
30084
  let node;
30304
30085
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30305
30086
  if (this.config.strictSafeNavigationTypes) {
30306
- const expr = import_typescript83.default.factory.createPropertyAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), ast.name);
30087
+ const expr = import_typescript81.default.factory.createPropertyAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), ast.name);
30307
30088
  addParseSpanInfo(expr, ast.nameSpan);
30308
- node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30089
+ node = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30309
30090
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30310
- node = import_typescript83.default.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
30091
+ node = import_typescript81.default.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
30311
30092
  } else {
30312
- const expr = import_typescript83.default.factory.createPropertyAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), ast.name);
30093
+ const expr = import_typescript81.default.factory.createPropertyAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), ast.name);
30313
30094
  addParseSpanInfo(expr, ast.nameSpan);
30314
30095
  node = tsCastToAny(expr);
30315
30096
  }
@@ -30321,13 +30102,13 @@ var AstTranslator = class {
30321
30102
  const key = this.translate(ast.key);
30322
30103
  let node;
30323
30104
  if (this.config.strictSafeNavigationTypes) {
30324
- const expr = import_typescript83.default.factory.createElementAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), key);
30105
+ const expr = import_typescript81.default.factory.createElementAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), key);
30325
30106
  addParseSpanInfo(expr, ast.sourceSpan);
30326
- node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30107
+ node = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30327
30108
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30328
- node = import_typescript83.default.factory.createElementAccessExpression(tsCastToAny(receiver), key);
30109
+ node = import_typescript81.default.factory.createElementAccessExpression(tsCastToAny(receiver), key);
30329
30110
  } else {
30330
- const expr = import_typescript83.default.factory.createElementAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), key);
30111
+ const expr = import_typescript81.default.factory.createElementAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), key);
30331
30112
  addParseSpanInfo(expr, ast.sourceSpan);
30332
30113
  node = tsCastToAny(expr);
30333
30114
  }
@@ -30344,7 +30125,7 @@ var AstTranslator = class {
30344
30125
  expr = resolved;
30345
30126
  } else {
30346
30127
  const propertyReceiver = wrapForDiagnostics(this.translate(receiver.receiver));
30347
- expr = import_typescript83.default.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
30128
+ expr = import_typescript81.default.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
30348
30129
  addParseSpanInfo(expr, receiver.nameSpan);
30349
30130
  }
30350
30131
  } else {
@@ -30354,7 +30135,7 @@ var AstTranslator = class {
30354
30135
  if (ast.receiver instanceof SafePropertyRead || ast.receiver instanceof SafeKeyedRead) {
30355
30136
  node = this.convertToSafeCall(ast, expr, args);
30356
30137
  } else {
30357
- node = import_typescript83.default.factory.createCallExpression(expr, void 0, args);
30138
+ node = import_typescript81.default.factory.createCallExpression(expr, void 0, args);
30358
30139
  }
30359
30140
  addParseSpanInfo(node, ast.sourceSpan);
30360
30141
  return node;
@@ -30368,13 +30149,13 @@ var AstTranslator = class {
30368
30149
  }
30369
30150
  convertToSafeCall(ast, expr, args) {
30370
30151
  if (this.config.strictSafeNavigationTypes) {
30371
- const call = import_typescript83.default.factory.createCallExpression(import_typescript83.default.factory.createNonNullExpression(expr), void 0, args);
30372
- return import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
30152
+ const call = import_typescript81.default.factory.createCallExpression(import_typescript81.default.factory.createNonNullExpression(expr), void 0, args);
30153
+ return import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
30373
30154
  }
30374
30155
  if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30375
- return import_typescript83.default.factory.createCallExpression(tsCastToAny(expr), void 0, args);
30156
+ return import_typescript81.default.factory.createCallExpression(tsCastToAny(expr), void 0, args);
30376
30157
  }
30377
- return tsCastToAny(import_typescript83.default.factory.createCallExpression(import_typescript83.default.factory.createNonNullExpression(expr), void 0, args));
30158
+ return tsCastToAny(import_typescript81.default.factory.createCallExpression(import_typescript81.default.factory.createNonNullExpression(expr), void 0, args));
30378
30159
  }
30379
30160
  };
30380
30161
  var VeSafeLhsInferenceBugDetector = class {
@@ -30482,7 +30263,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
30482
30263
  const tcb = new Context2(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
30483
30264
  const scope = Scope2.forNodes(tcb, null, tcb.boundTarget.target.template, null);
30484
30265
  const ctxRawType = env.referenceType(ref);
30485
- if (!import_typescript84.default.isTypeReferenceNode(ctxRawType)) {
30266
+ if (!import_typescript82.default.isTypeReferenceNode(ctxRawType)) {
30486
30267
  throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
30487
30268
  }
30488
30269
  let typeParameters = void 0;
@@ -30494,24 +30275,24 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
30494
30275
  switch (genericContextBehavior) {
30495
30276
  case TcbGenericContextBehavior.UseEmitter:
30496
30277
  typeParameters = new TypeParameterEmitter(ref.node.typeParameters, env.reflector).emit((typeRef) => env.referenceType(typeRef));
30497
- typeArguments = typeParameters.map((param) => import_typescript84.default.factory.createTypeReferenceNode(param.name));
30278
+ typeArguments = typeParameters.map((param) => import_typescript82.default.factory.createTypeReferenceNode(param.name));
30498
30279
  break;
30499
30280
  case TcbGenericContextBehavior.CopyClassNodes:
30500
30281
  typeParameters = [...ref.node.typeParameters];
30501
- typeArguments = typeParameters.map((param) => import_typescript84.default.factory.createTypeReferenceNode(param.name));
30282
+ typeArguments = typeParameters.map((param) => import_typescript82.default.factory.createTypeReferenceNode(param.name));
30502
30283
  break;
30503
30284
  case TcbGenericContextBehavior.FallbackToAny:
30504
- typeArguments = ref.node.typeParameters.map(() => import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30285
+ typeArguments = ref.node.typeParameters.map(() => import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30505
30286
  break;
30506
30287
  }
30507
30288
  }
30508
30289
  const paramList = [tcbThisParam(ctxRawType.typeName, typeArguments)];
30509
30290
  const scopeStatements = scope.render();
30510
- const innerBody = import_typescript84.default.factory.createBlock([
30291
+ const innerBody = import_typescript82.default.factory.createBlock([
30511
30292
  ...env.getPreludeStatements(),
30512
30293
  ...scopeStatements
30513
30294
  ]);
30514
- const body = import_typescript84.default.factory.createBlock([import_typescript84.default.factory.createIfStatement(import_typescript84.default.factory.createTrue(), innerBody, void 0)]);
30295
+ const body = import_typescript82.default.factory.createBlock([import_typescript82.default.factory.createIfStatement(import_typescript82.default.factory.createTrue(), innerBody, void 0)]);
30515
30296
  const fnDecl = createFunctionDeclaration(
30516
30297
  void 0,
30517
30298
  void 0,
@@ -30561,7 +30342,7 @@ var TcbVariableOp = class extends TcbOp {
30561
30342
  execute() {
30562
30343
  const ctx = this.scope.resolve(this.template);
30563
30344
  const id = this.tcb.allocateId();
30564
- const initializer = import_typescript84.default.factory.createPropertyAccessExpression(
30345
+ const initializer = import_typescript82.default.factory.createPropertyAccessExpression(
30565
30346
  ctx,
30566
30347
  this.variable.value || "$implicit"
30567
30348
  );
@@ -30587,7 +30368,7 @@ var TcbTemplateContextOp = class extends TcbOp {
30587
30368
  }
30588
30369
  execute() {
30589
30370
  const ctx = this.tcb.allocateId();
30590
- const type = import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword);
30371
+ const type = import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword);
30591
30372
  this.scope.addStatement(tsDeclareVariable(ctx, type));
30592
30373
  return ctx;
30593
30374
  }
@@ -30640,16 +30421,16 @@ var TcbTemplateBodyOp = class extends TcbOp {
30640
30421
  }
30641
30422
  let guard = null;
30642
30423
  if (directiveGuards.length > 0) {
30643
- guard = directiveGuards.reduce((expr, dirGuard) => import_typescript84.default.factory.createBinaryExpression(expr, import_typescript84.default.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
30424
+ guard = directiveGuards.reduce((expr, dirGuard) => import_typescript82.default.factory.createBinaryExpression(expr, import_typescript82.default.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
30644
30425
  }
30645
30426
  const tmplScope = Scope2.forNodes(this.tcb, this.scope, this.template, guard);
30646
30427
  const statements = tmplScope.render();
30647
30428
  if (statements.length === 0) {
30648
30429
  return null;
30649
30430
  }
30650
- let tmplBlock = import_typescript84.default.factory.createBlock(statements);
30431
+ let tmplBlock = import_typescript82.default.factory.createBlock(statements);
30651
30432
  if (guard !== null) {
30652
- tmplBlock = import_typescript84.default.factory.createIfStatement(guard, tmplBlock);
30433
+ tmplBlock = import_typescript82.default.factory.createIfStatement(guard, tmplBlock);
30653
30434
  }
30654
30435
  this.scope.addStatement(tmplBlock);
30655
30436
  return null;
@@ -30667,7 +30448,7 @@ var TcbTextInterpolationOp = class extends TcbOp {
30667
30448
  }
30668
30449
  execute() {
30669
30450
  const expr = tcbExpression(this.binding.value, this.tcb, this.scope);
30670
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30451
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(expr));
30671
30452
  return null;
30672
30453
  }
30673
30454
  };
@@ -30689,11 +30470,11 @@ var TcbDirectiveTypeOpBase = class extends TcbOp {
30689
30470
  if (this.dir.isGeneric === false || dirRef.node.typeParameters === void 0) {
30690
30471
  type = rawType;
30691
30472
  } else {
30692
- if (!import_typescript84.default.isTypeReferenceNode(rawType)) {
30473
+ if (!import_typescript82.default.isTypeReferenceNode(rawType)) {
30693
30474
  throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);
30694
30475
  }
30695
- const typeArguments = dirRef.node.typeParameters.map(() => import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30696
- type = import_typescript84.default.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
30476
+ const typeArguments = dirRef.node.typeParameters.map(() => import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30477
+ type = import_typescript82.default.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
30697
30478
  }
30698
30479
  const id = this.tcb.allocateId();
30699
30480
  addExpressionIdentifier(type, ExpressionIdentifier.DIRECTIVE);
@@ -30734,11 +30515,11 @@ var TcbReferenceOp = class extends TcbOp {
30734
30515
  const id = this.tcb.allocateId();
30735
30516
  let initializer = this.target instanceof Template || this.target instanceof Element ? this.scope.resolve(this.target) : this.scope.resolve(this.host, this.target);
30736
30517
  if (this.target instanceof Element && !this.tcb.env.config.checkTypeOfDomReferences || !this.tcb.env.config.checkTypeOfNonDomReferences) {
30737
- initializer = import_typescript84.default.factory.createAsExpression(initializer, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30518
+ initializer = import_typescript82.default.factory.createAsExpression(initializer, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30738
30519
  } else if (this.target instanceof Template) {
30739
- initializer = import_typescript84.default.factory.createAsExpression(initializer, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30740
- initializer = import_typescript84.default.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
30741
- initializer = import_typescript84.default.factory.createParenthesizedExpression(initializer);
30520
+ initializer = import_typescript82.default.factory.createAsExpression(initializer, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30521
+ initializer = import_typescript82.default.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
30522
+ initializer = import_typescript82.default.factory.createParenthesizedExpression(initializer);
30742
30523
  }
30743
30524
  addParseSpanInfo(initializer, this.node.sourceSpan);
30744
30525
  addParseSpanInfo(id, this.node.keySpan);
@@ -30828,7 +30609,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30828
30609
  let target;
30829
30610
  if (this.dir.coercedInputFields.has(fieldName)) {
30830
30611
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
30831
- if (!import_typescript84.default.isTypeReferenceNode(dirTypeRef)) {
30612
+ if (!import_typescript82.default.isTypeReferenceNode(dirTypeRef)) {
30832
30613
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
30833
30614
  }
30834
30615
  const id = this.tcb.allocateId();
@@ -30843,10 +30624,10 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30843
30624
  }
30844
30625
  const id = this.tcb.allocateId();
30845
30626
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
30846
- if (!import_typescript84.default.isTypeReferenceNode(dirTypeRef)) {
30627
+ if (!import_typescript82.default.isTypeReferenceNode(dirTypeRef)) {
30847
30628
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
30848
30629
  }
30849
- const type = import_typescript84.default.factory.createIndexedAccessTypeNode(import_typescript84.default.factory.createTypeQueryNode(dirId), import_typescript84.default.factory.createLiteralTypeNode(import_typescript84.default.factory.createStringLiteral(fieldName)));
30630
+ const type = import_typescript82.default.factory.createIndexedAccessTypeNode(import_typescript82.default.factory.createTypeQueryNode(dirId), import_typescript82.default.factory.createLiteralTypeNode(import_typescript82.default.factory.createStringLiteral(fieldName)));
30850
30631
  const temp = tsDeclareVariable(id, type);
30851
30632
  this.scope.addStatement(temp);
30852
30633
  target = id;
@@ -30854,18 +30635,18 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30854
30635
  if (dirId === null) {
30855
30636
  dirId = this.scope.resolve(this.node, this.dir);
30856
30637
  }
30857
- 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));
30638
+ target = this.dir.stringLiteralInputFields.has(fieldName) ? import_typescript82.default.factory.createElementAccessExpression(dirId, import_typescript82.default.factory.createStringLiteral(fieldName)) : import_typescript82.default.factory.createPropertyAccessExpression(dirId, import_typescript82.default.factory.createIdentifier(fieldName));
30858
30639
  }
30859
30640
  if (input.attribute.keySpan !== void 0) {
30860
30641
  addParseSpanInfo(target, input.attribute.keySpan);
30861
30642
  }
30862
- assignment = import_typescript84.default.factory.createBinaryExpression(target, import_typescript84.default.SyntaxKind.EqualsToken, assignment);
30643
+ assignment = import_typescript82.default.factory.createBinaryExpression(target, import_typescript82.default.SyntaxKind.EqualsToken, assignment);
30863
30644
  }
30864
30645
  addParseSpanInfo(assignment, input.attribute.sourceSpan);
30865
30646
  if (!this.tcb.env.config.checkTypeOfAttributes && input.attribute instanceof TextAttribute) {
30866
30647
  markIgnoreDiagnostics(assignment);
30867
30648
  }
30868
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(assignment));
30649
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(assignment));
30869
30650
  }
30870
30651
  return null;
30871
30652
  }
@@ -30884,7 +30665,7 @@ var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
30884
30665
  execute() {
30885
30666
  const id = this.tcb.allocateId();
30886
30667
  const typeCtor = this.tcb.env.typeCtorFor(this.dir);
30887
- const circularPlaceholder = import_typescript84.default.factory.createCallExpression(typeCtor, void 0, [import_typescript84.default.factory.createNonNullExpression(import_typescript84.default.factory.createNull())]);
30668
+ const circularPlaceholder = import_typescript82.default.factory.createCallExpression(typeCtor, void 0, [import_typescript82.default.factory.createNonNullExpression(import_typescript82.default.factory.createNull())]);
30888
30669
  this.scope.addStatement(tsCreateVariable(id, circularPlaceholder));
30889
30670
  return id;
30890
30671
  }
@@ -30952,15 +30733,15 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
30952
30733
  elId = this.scope.resolve(this.element);
30953
30734
  }
30954
30735
  const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
30955
- const prop = import_typescript84.default.factory.createElementAccessExpression(elId, import_typescript84.default.factory.createStringLiteral(propertyName));
30956
- const stmt = import_typescript84.default.factory.createBinaryExpression(prop, import_typescript84.default.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
30736
+ const prop = import_typescript82.default.factory.createElementAccessExpression(elId, import_typescript82.default.factory.createStringLiteral(propertyName));
30737
+ const stmt = import_typescript82.default.factory.createBinaryExpression(prop, import_typescript82.default.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
30957
30738
  addParseSpanInfo(stmt, binding.sourceSpan);
30958
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(stmt));
30739
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(stmt));
30959
30740
  } else {
30960
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30741
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(expr));
30961
30742
  }
30962
30743
  } else {
30963
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30744
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(expr));
30964
30745
  }
30965
30746
  }
30966
30747
  return null;
@@ -30992,18 +30773,18 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
30992
30773
  if (dirId === null) {
30993
30774
  dirId = this.scope.resolve(this.node, this.dir);
30994
30775
  }
30995
- const outputField = import_typescript84.default.factory.createElementAccessExpression(dirId, import_typescript84.default.factory.createStringLiteral(field));
30776
+ const outputField = import_typescript82.default.factory.createElementAccessExpression(dirId, import_typescript82.default.factory.createStringLiteral(field));
30996
30777
  addParseSpanInfo(outputField, output.keySpan);
30997
30778
  if (this.tcb.env.config.checkTypeOfOutputEvents) {
30998
30779
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
30999
- const subscribeFn = import_typescript84.default.factory.createPropertyAccessExpression(outputField, "subscribe");
31000
- const call = import_typescript84.default.factory.createCallExpression(subscribeFn, void 0, [handler]);
30780
+ const subscribeFn = import_typescript82.default.factory.createPropertyAccessExpression(outputField, "subscribe");
30781
+ const call = import_typescript82.default.factory.createCallExpression(subscribeFn, void 0, [handler]);
31001
30782
  addParseSpanInfo(call, output.sourceSpan);
31002
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(call));
30783
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(call));
31003
30784
  } else {
31004
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(outputField));
30785
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(outputField));
31005
30786
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
31006
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30787
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(handler));
31007
30788
  }
31008
30789
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
31009
30790
  }
@@ -31036,24 +30817,24 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
31036
30817
  if (output.type === 1) {
31037
30818
  const eventType = this.tcb.env.config.checkTypeOfAnimationEvents ? this.tcb.env.referenceExternalType("@angular/animations", "AnimationEvent") : 1;
31038
30819
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, eventType);
31039
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30820
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(handler));
31040
30821
  } else if (this.tcb.env.config.checkTypeOfDomEvents) {
31041
30822
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
31042
30823
  if (elId === null) {
31043
30824
  elId = this.scope.resolve(this.element);
31044
30825
  }
31045
- const propertyAccess = import_typescript84.default.factory.createPropertyAccessExpression(elId, "addEventListener");
30826
+ const propertyAccess = import_typescript82.default.factory.createPropertyAccessExpression(elId, "addEventListener");
31046
30827
  addParseSpanInfo(propertyAccess, output.keySpan);
31047
- const call = import_typescript84.default.factory.createCallExpression(
30828
+ const call = import_typescript82.default.factory.createCallExpression(
31048
30829
  propertyAccess,
31049
30830
  void 0,
31050
- [import_typescript84.default.factory.createStringLiteral(output.name), handler]
30831
+ [import_typescript82.default.factory.createStringLiteral(output.name), handler]
31051
30832
  );
31052
30833
  addParseSpanInfo(call, output.sourceSpan);
31053
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(call));
30834
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(call));
31054
30835
  } else {
31055
30836
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
31056
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30837
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(handler));
31057
30838
  }
31058
30839
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
31059
30840
  }
@@ -31067,15 +30848,15 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
31067
30848
  this.optional = false;
31068
30849
  }
31069
30850
  execute() {
31070
- const ctx = import_typescript84.default.factory.createThis();
31071
- const ctxDot = import_typescript84.default.factory.createPropertyAccessExpression(ctx, "");
30851
+ const ctx = import_typescript82.default.factory.createThis();
30852
+ const ctxDot = import_typescript82.default.factory.createPropertyAccessExpression(ctx, "");
31072
30853
  markIgnoreDiagnostics(ctxDot);
31073
30854
  addExpressionIdentifier(ctxDot, ExpressionIdentifier.COMPONENT_COMPLETION);
31074
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(ctxDot));
30855
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(ctxDot));
31075
30856
  return null;
31076
30857
  }
31077
30858
  };
31078
- var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = import_typescript84.default.factory.createNonNullExpression(import_typescript84.default.factory.createNull());
30859
+ var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = import_typescript82.default.factory.createNonNullExpression(import_typescript82.default.factory.createNull());
31079
30860
  var Context2 = class {
31080
30861
  constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone) {
31081
30862
  this.env = env;
@@ -31089,7 +30870,7 @@ var Context2 = class {
31089
30870
  this.nextId = 1;
31090
30871
  }
31091
30872
  allocateId() {
31092
- return import_typescript84.default.factory.createIdentifier(`_t${this.nextId++}`);
30873
+ return import_typescript82.default.factory.createIdentifier(`_t${this.nextId++}`);
31093
30874
  }
31094
30875
  getPipeByName(name) {
31095
30876
  if (!this.pipes.has(name)) {
@@ -31142,16 +30923,16 @@ var Scope2 = class {
31142
30923
  const res = this.resolveLocal(node, directive);
31143
30924
  if (res !== null) {
31144
30925
  let clone;
31145
- if (import_typescript84.default.isIdentifier(res)) {
31146
- clone = import_typescript84.default.factory.createIdentifier(res.text);
31147
- } else if (import_typescript84.default.isNonNullExpression(res)) {
31148
- clone = import_typescript84.default.factory.createNonNullExpression(res.expression);
30926
+ if (import_typescript82.default.isIdentifier(res)) {
30927
+ clone = import_typescript82.default.factory.createIdentifier(res.text);
30928
+ } else if (import_typescript82.default.isNonNullExpression(res)) {
30929
+ clone = import_typescript82.default.factory.createNonNullExpression(res.expression);
31149
30930
  } else {
31150
30931
  throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
31151
30932
  }
31152
- import_typescript84.default.setOriginalNode(clone, res);
30933
+ import_typescript82.default.setOriginalNode(clone, res);
31153
30934
  clone.parent = clone.parent;
31154
- return import_typescript84.default.setSyntheticTrailingComments(clone, []);
30935
+ return import_typescript82.default.setSyntheticTrailingComments(clone, []);
31155
30936
  } else if (this.parent !== null) {
31156
30937
  return this.parent.resolve(node, directive);
31157
30938
  } else {
@@ -31178,7 +30959,7 @@ var Scope2 = class {
31178
30959
  } else if (parentGuards === null) {
31179
30960
  return this.guard;
31180
30961
  } else {
31181
- return import_typescript84.default.factory.createBinaryExpression(parentGuards, import_typescript84.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
30962
+ return import_typescript82.default.factory.createBinaryExpression(parentGuards, import_typescript82.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
31182
30963
  }
31183
30964
  }
31184
30965
  resolveLocal(ref, directive) {
@@ -31363,7 +31144,7 @@ function tcbThisParam(name, typeArguments) {
31363
31144
  void 0,
31364
31145
  "this",
31365
31146
  void 0,
31366
- import_typescript84.default.factory.createTypeReferenceNode(name, typeArguments),
31147
+ import_typescript82.default.factory.createTypeReferenceNode(name, typeArguments),
31367
31148
  void 0
31368
31149
  );
31369
31150
  }
@@ -31388,11 +31169,11 @@ var TcbExpressionTranslator = class {
31388
31169
  return null;
31389
31170
  }
31390
31171
  const expr = this.translate(ast.value);
31391
- const result = import_typescript84.default.factory.createParenthesizedExpression(import_typescript84.default.factory.createBinaryExpression(target, import_typescript84.default.SyntaxKind.EqualsToken, expr));
31172
+ const result = import_typescript82.default.factory.createParenthesizedExpression(import_typescript82.default.factory.createBinaryExpression(target, import_typescript82.default.SyntaxKind.EqualsToken, expr));
31392
31173
  addParseSpanInfo(result, ast.sourceSpan);
31393
31174
  return result;
31394
31175
  } else if (ast instanceof ImplicitReceiver) {
31395
- return import_typescript84.default.factory.createThis();
31176
+ return import_typescript82.default.factory.createThis();
31396
31177
  } else if (ast instanceof BindingPipe) {
31397
31178
  const expr = this.translate(ast.exp);
31398
31179
  const pipeRef = this.tcb.getPipeByName(ast.name);
@@ -31404,12 +31185,12 @@ var TcbExpressionTranslator = class {
31404
31185
  pipe = this.tcb.env.pipeInst(pipeRef);
31405
31186
  }
31406
31187
  const args = ast.args.map((arg) => this.translate(arg));
31407
- let methodAccess = import_typescript84.default.factory.createPropertyAccessExpression(pipe, "transform");
31188
+ let methodAccess = import_typescript82.default.factory.createPropertyAccessExpression(pipe, "transform");
31408
31189
  addParseSpanInfo(methodAccess, ast.nameSpan);
31409
31190
  if (!this.tcb.env.config.checkTypeOfPipes) {
31410
- methodAccess = import_typescript84.default.factory.createAsExpression(methodAccess, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
31191
+ methodAccess = import_typescript82.default.factory.createAsExpression(methodAccess, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
31411
31192
  }
31412
- const result = import_typescript84.default.factory.createCallExpression(
31193
+ const result = import_typescript82.default.factory.createCallExpression(
31413
31194
  methodAccess,
31414
31195
  void 0,
31415
31196
  [expr, ...args]
@@ -31419,8 +31200,8 @@ var TcbExpressionTranslator = class {
31419
31200
  } else if ((ast instanceof Call || ast instanceof SafeCall) && (ast.receiver instanceof PropertyRead || ast.receiver instanceof SafePropertyRead)) {
31420
31201
  if (ast.receiver.receiver instanceof ImplicitReceiver && !(ast.receiver.receiver instanceof ThisReceiver) && ast.receiver.name === "$any" && ast.args.length === 1) {
31421
31202
  const expr = this.translate(ast.args[0]);
31422
- const exprAsAny = import_typescript84.default.factory.createAsExpression(expr, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
31423
- const result = import_typescript84.default.factory.createParenthesizedExpression(exprAsAny);
31203
+ const exprAsAny = import_typescript82.default.factory.createAsExpression(expr, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
31204
+ const result = import_typescript82.default.factory.createParenthesizedExpression(exprAsAny);
31424
31205
  addParseSpanInfo(result, ast.sourceSpan);
31425
31206
  return result;
31426
31207
  }
@@ -31431,7 +31212,7 @@ var TcbExpressionTranslator = class {
31431
31212
  const method = wrapForDiagnostics(receiver);
31432
31213
  addParseSpanInfo(method, ast.receiver.nameSpan);
31433
31214
  const args = ast.args.map((arg) => this.translate(arg));
31434
- const node = import_typescript84.default.factory.createCallExpression(method, void 0, args);
31215
+ const node = import_typescript82.default.factory.createCallExpression(method, void 0, args);
31435
31216
  addParseSpanInfo(node, ast.sourceSpan);
31436
31217
  return node;
31437
31218
  } else {
@@ -31451,20 +31232,20 @@ var TcbExpressionTranslator = class {
31451
31232
  function tcbCallTypeCtor(dir, tcb, inputs) {
31452
31233
  const typeCtor = tcb.env.typeCtorFor(dir);
31453
31234
  const members = inputs.map((input) => {
31454
- const propertyName = import_typescript84.default.factory.createStringLiteral(input.field);
31235
+ const propertyName = import_typescript82.default.factory.createStringLiteral(input.field);
31455
31236
  if (input.type === "binding") {
31456
31237
  const expr = widenBinding(input.expression, tcb);
31457
- const assignment = import_typescript84.default.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
31238
+ const assignment = import_typescript82.default.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
31458
31239
  addParseSpanInfo(assignment, input.sourceSpan);
31459
31240
  return assignment;
31460
31241
  } else {
31461
- return import_typescript84.default.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
31242
+ return import_typescript82.default.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
31462
31243
  }
31463
31244
  });
31464
- return import_typescript84.default.factory.createCallExpression(
31245
+ return import_typescript82.default.factory.createCallExpression(
31465
31246
  typeCtor,
31466
31247
  void 0,
31467
- [import_typescript84.default.factory.createObjectLiteralExpression(members)]
31248
+ [import_typescript82.default.factory.createObjectLiteralExpression(members)]
31468
31249
  );
31469
31250
  }
31470
31251
  function getBoundInputs(directive, node, tcb) {
@@ -31491,17 +31272,17 @@ function translateInput(attr, tcb, scope) {
31491
31272
  if (attr instanceof BoundAttribute) {
31492
31273
  return tcbExpression(attr.value, tcb, scope);
31493
31274
  } else {
31494
- return import_typescript84.default.factory.createStringLiteral(attr.value);
31275
+ return import_typescript82.default.factory.createStringLiteral(attr.value);
31495
31276
  }
31496
31277
  }
31497
31278
  function widenBinding(expr, tcb) {
31498
31279
  if (!tcb.env.config.checkTypeOfInputBindings) {
31499
31280
  return tsCastToAny(expr);
31500
31281
  } else if (!tcb.env.config.strictNullInputBindings) {
31501
- if (import_typescript84.default.isObjectLiteralExpression(expr) || import_typescript84.default.isArrayLiteralExpression(expr)) {
31282
+ if (import_typescript82.default.isObjectLiteralExpression(expr) || import_typescript82.default.isArrayLiteralExpression(expr)) {
31502
31283
  return expr;
31503
31284
  } else {
31504
- return import_typescript84.default.factory.createNonNullExpression(expr);
31285
+ return import_typescript82.default.factory.createNonNullExpression(expr);
31505
31286
  }
31506
31287
  } else {
31507
31288
  return expr;
@@ -31514,14 +31295,14 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
31514
31295
  if (eventType === 0) {
31515
31296
  eventParamType = void 0;
31516
31297
  } else if (eventType === 1) {
31517
- eventParamType = import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword);
31298
+ eventParamType = import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword);
31518
31299
  } else {
31519
31300
  eventParamType = eventType;
31520
31301
  }
31521
31302
  const guards = scope.guards();
31522
- let body = import_typescript84.default.factory.createExpressionStatement(handler);
31303
+ let body = import_typescript82.default.factory.createExpressionStatement(handler);
31523
31304
  if (guards !== null) {
31524
- body = import_typescript84.default.factory.createIfStatement(guards, body);
31305
+ body = import_typescript82.default.factory.createIfStatement(guards, body);
31525
31306
  }
31526
31307
  const eventParam = createParameterDeclaration(
31527
31308
  void 0,
@@ -31531,13 +31312,13 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
31531
31312
  eventParamType
31532
31313
  );
31533
31314
  addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
31534
- return import_typescript84.default.factory.createArrowFunction(
31315
+ return import_typescript82.default.factory.createArrowFunction(
31535
31316
  void 0,
31536
31317
  void 0,
31537
31318
  [eventParam],
31538
- import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword),
31319
+ import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword),
31539
31320
  void 0,
31540
- import_typescript84.default.factory.createBlock([body])
31321
+ import_typescript82.default.factory.createBlock([body])
31541
31322
  );
31542
31323
  }
31543
31324
  function tcbEventHandlerExpression(ast, tcb, scope) {
@@ -31566,7 +31347,7 @@ function isSplitTwoWayBinding(inputName, output, inputs, tcb) {
31566
31347
  var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
31567
31348
  resolve(ast) {
31568
31349
  if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver && !(ast.receiver instanceof ThisReceiver) && ast.name === EVENT_PARAMETER) {
31569
- const event = import_typescript84.default.factory.createIdentifier(EVENT_PARAMETER);
31350
+ const event = import_typescript82.default.factory.createIdentifier(EVENT_PARAMETER);
31570
31351
  addParseSpanInfo(event, ast.nameSpan);
31571
31352
  return event;
31572
31353
  }
@@ -31575,32 +31356,32 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
31575
31356
  };
31576
31357
 
31577
31358
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
31578
- var import_typescript85 = __toESM(require("typescript"), 1);
31359
+ var import_typescript83 = __toESM(require("typescript"), 1);
31579
31360
  var TypeCheckFile = class extends Environment {
31580
31361
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
31581
- super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, import_typescript85.default.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", import_typescript85.default.ScriptTarget.Latest, true));
31362
+ super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, import_typescript83.default.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", import_typescript83.default.ScriptTarget.Latest, true));
31582
31363
  this.fileName = fileName;
31583
31364
  this.nextTcbId = 1;
31584
31365
  this.tcbStatements = [];
31585
31366
  }
31586
31367
  addTypeCheckBlock(ref, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
31587
- const fnId = import_typescript85.default.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
31368
+ const fnId = import_typescript83.default.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
31588
31369
  const fn2 = generateTypeCheckBlock(this, ref, fnId, meta, domSchemaChecker, oobRecorder, genericContextBehavior);
31589
31370
  this.tcbStatements.push(fn2);
31590
31371
  }
31591
31372
  render(removeComments) {
31592
31373
  let source = this.importManager.getAllImports(this.contextFile.fileName).map((i) => `import * as ${i.qualifier.text} from '${i.specifier}';`).join("\n") + "\n\n";
31593
- const printer = import_typescript85.default.createPrinter({ removeComments });
31374
+ const printer = import_typescript83.default.createPrinter({ removeComments });
31594
31375
  source += "\n";
31595
31376
  for (const stmt of this.pipeInstStatements) {
31596
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31377
+ source += printer.printNode(import_typescript83.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31597
31378
  }
31598
31379
  for (const stmt of this.typeCtorStatements) {
31599
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31380
+ source += printer.printNode(import_typescript83.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31600
31381
  }
31601
31382
  source += "\n";
31602
31383
  for (const stmt of this.tcbStatements) {
31603
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31384
+ source += printer.printNode(import_typescript83.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31604
31385
  }
31605
31386
  source += "\nexport const IS_A_MODULE = true;\n";
31606
31387
  return source;
@@ -31716,7 +31497,7 @@ var TypeCheckContextImpl = class {
31716
31497
  const importManager = new ImportManager(new NoopImportRewriter(), "_i");
31717
31498
  const ops = this.opMap.get(sf).sort(orderOps);
31718
31499
  const textParts = splitStringAtPoints(sf.text, ops.map((op) => op.splitPoint));
31719
- const printer = import_typescript86.default.createPrinter({ omitTrailingSemicolon: true });
31500
+ const printer = import_typescript84.default.createPrinter({ omitTrailingSemicolon: true });
31720
31501
  let code = textParts[0];
31721
31502
  ops.forEach((op, idx) => {
31722
31503
  const text = op.execute(importManager, sf, this.refEmitter, printer);
@@ -31797,7 +31578,7 @@ var TypeCheckContextImpl = class {
31797
31578
  if (span.start.offset === span.end.offset) {
31798
31579
  span.end.offset++;
31799
31580
  }
31800
- return makeTemplateDiagnostic(templateId, sourceMapping, span, import_typescript86.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error2.msg);
31581
+ return makeTemplateDiagnostic(templateId, sourceMapping, span, import_typescript84.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error2.msg);
31801
31582
  });
31802
31583
  }
31803
31584
  };
@@ -31815,9 +31596,9 @@ var InlineTcbOp = class {
31815
31596
  }
31816
31597
  execute(im, sf, refEmitter, printer) {
31817
31598
  const env = new Environment(this.config, im, refEmitter, this.reflector, sf);
31818
- const fnName = import_typescript86.default.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
31599
+ const fnName = import_typescript84.default.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
31819
31600
  const fn2 = generateTypeCheckBlock(env, this.ref, fnName, this.meta, this.domSchemaChecker, this.oobRecorder, TcbGenericContextBehavior.CopyClassNodes);
31820
- return printer.printNode(import_typescript86.default.EmitHint.Unspecified, fn2, sf);
31601
+ return printer.printNode(import_typescript84.default.EmitHint.Unspecified, fn2, sf);
31821
31602
  }
31822
31603
  };
31823
31604
  var TypeCtorOp = class {
@@ -31830,7 +31611,7 @@ var TypeCtorOp = class {
31830
31611
  }
31831
31612
  execute(im, sf, refEmitter, printer) {
31832
31613
  const tcb = generateInlineTypeCtor(this.ref.node, this.meta);
31833
- return printer.printNode(import_typescript86.default.EmitHint.Unspecified, tcb, sf);
31614
+ return printer.printNode(import_typescript84.default.EmitHint.Unspecified, tcb, sf);
31834
31615
  }
31835
31616
  };
31836
31617
  function orderOps(op1, op2) {
@@ -31941,7 +31722,7 @@ var TemplateSourceManager = class {
31941
31722
  };
31942
31723
 
31943
31724
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
31944
- var import_typescript87 = __toESM(require("typescript"), 1);
31725
+ var import_typescript85 = __toESM(require("typescript"), 1);
31945
31726
  var SymbolBuilder = class {
31946
31727
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
31947
31728
  this.tcbPath = tcbPath;
@@ -31985,7 +31766,7 @@ var SymbolBuilder = class {
31985
31766
  getSymbolOfElement(element) {
31986
31767
  var _a;
31987
31768
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
31988
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: import_typescript87.default.isVariableDeclaration });
31769
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: import_typescript85.default.isVariableDeclaration });
31989
31770
  if (node === null) {
31990
31771
  return null;
31991
31772
  }
@@ -32004,12 +31785,12 @@ var SymbolBuilder = class {
32004
31785
  var _a;
32005
31786
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
32006
31787
  const tcbSourceFile = this.typeCheckBlock.getSourceFile();
32007
- const isDirectiveDeclaration = (node) => (import_typescript87.default.isTypeNode(node) || import_typescript87.default.isIdentifier(node)) && import_typescript87.default.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
31788
+ const isDirectiveDeclaration = (node) => (import_typescript85.default.isTypeNode(node) || import_typescript85.default.isIdentifier(node)) && import_typescript85.default.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
32008
31789
  const nodes = findAllMatchingNodes(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: isDirectiveDeclaration });
32009
31790
  const symbols = [];
32010
31791
  for (const node of nodes) {
32011
31792
  const symbol = this.getSymbolOfTsNode(node.parent);
32012
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript87.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
31793
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript85.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32013
31794
  continue;
32014
31795
  }
32015
31796
  const meta = this.getDirectiveMeta(element, symbol.tsSymbol.valueDeclaration);
@@ -32036,7 +31817,7 @@ var SymbolBuilder = class {
32036
31817
  }
32037
31818
  addHostDirectiveSymbols(host, hostDirectives, symbols) {
32038
31819
  for (const current of hostDirectives) {
32039
- if (!import_typescript87.default.isClassDeclaration(current.directive.node)) {
31820
+ if (!import_typescript85.default.isClassDeclaration(current.directive.node)) {
32040
31821
  continue;
32041
31822
  }
32042
31823
  const symbol = this.getSymbolOfTsNode(current.directive.node);
@@ -32108,17 +31889,17 @@ var SymbolBuilder = class {
32108
31889
  if (!isAccessExpression(n)) {
32109
31890
  return false;
32110
31891
  }
32111
- if (import_typescript87.default.isPropertyAccessExpression(n)) {
31892
+ if (import_typescript85.default.isPropertyAccessExpression(n)) {
32112
31893
  return n.name.getText() === expectedAccess;
32113
31894
  } else {
32114
- return import_typescript87.default.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
31895
+ return import_typescript85.default.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
32115
31896
  }
32116
31897
  }
32117
31898
  const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, { withSpan: eventBinding.keySpan, filter });
32118
31899
  const bindings = [];
32119
31900
  for (const outputFieldAccess of outputFieldAccesses) {
32120
31901
  if (consumer instanceof Template || consumer instanceof Element) {
32121
- if (!import_typescript87.default.isPropertyAccessExpression(outputFieldAccess)) {
31902
+ if (!import_typescript85.default.isPropertyAccessExpression(outputFieldAccess)) {
32122
31903
  continue;
32123
31904
  }
32124
31905
  const addEventListener = outputFieldAccess.name;
@@ -32141,7 +31922,7 @@ var SymbolBuilder = class {
32141
31922
  }
32142
31923
  });
32143
31924
  } else {
32144
- if (!import_typescript87.default.isElementAccessExpression(outputFieldAccess)) {
31925
+ if (!import_typescript85.default.isElementAccessExpression(outputFieldAccess)) {
32145
31926
  continue;
32146
31927
  }
32147
31928
  const tsSymbol = this.getTypeChecker().getSymbolAtLocation(outputFieldAccess.argumentExpression);
@@ -32213,7 +31994,7 @@ var SymbolBuilder = class {
32213
31994
  return null;
32214
31995
  }
32215
31996
  const [declaration] = tsSymbol.declarations;
32216
- if (!import_typescript87.default.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
31997
+ if (!import_typescript85.default.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
32217
31998
  declaration.getSourceFile(),
32218
31999
  (_a = declaration.type) != null ? _a : declaration.name,
32219
32000
  ExpressionIdentifier.DIRECTIVE
@@ -32221,7 +32002,7 @@ var SymbolBuilder = class {
32221
32002
  return null;
32222
32003
  }
32223
32004
  const symbol = this.getSymbolOfTsNode(declaration);
32224
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript87.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32005
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript85.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32225
32006
  return null;
32226
32007
  }
32227
32008
  const ref = new Reference2(symbol.tsSymbol.valueDeclaration);
@@ -32241,7 +32022,7 @@ var SymbolBuilder = class {
32241
32022
  };
32242
32023
  }
32243
32024
  getSymbolOfVariable(variable2) {
32244
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable2.sourceSpan, filter: import_typescript87.default.isVariableDeclaration });
32025
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable2.sourceSpan, filter: import_typescript85.default.isVariableDeclaration });
32245
32026
  if (node === null || node.initializer === void 0) {
32246
32027
  return null;
32247
32028
  }
@@ -32264,11 +32045,11 @@ var SymbolBuilder = class {
32264
32045
  }
32265
32046
  getSymbolOfReference(ref) {
32266
32047
  const target = this.templateData.boundTarget.getReferenceTarget(ref);
32267
- let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: import_typescript87.default.isVariableDeclaration });
32048
+ let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: import_typescript85.default.isVariableDeclaration });
32268
32049
  if (node === null || target === null || node.initializer === void 0) {
32269
32050
  return null;
32270
32051
  }
32271
- 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);
32052
+ const originalDeclaration = import_typescript85.default.isParenthesizedExpression(node.initializer) && import_typescript85.default.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
32272
32053
  if (originalDeclaration === void 0 || originalDeclaration.valueDeclaration === void 0) {
32273
32054
  return null;
32274
32055
  }
@@ -32292,7 +32073,7 @@ var SymbolBuilder = class {
32292
32073
  referenceVarLocation: referenceVarTcbLocation
32293
32074
  };
32294
32075
  } else {
32295
- if (!import_typescript87.default.isClassDeclaration(target.directive.ref.node)) {
32076
+ if (!import_typescript85.default.isClassDeclaration(target.directive.ref.node)) {
32296
32077
  return null;
32297
32078
  }
32298
32079
  return {
@@ -32307,7 +32088,7 @@ var SymbolBuilder = class {
32307
32088
  }
32308
32089
  }
32309
32090
  getSymbolOfPipe(expression) {
32310
- const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: import_typescript87.default.isPropertyAccessExpression });
32091
+ const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: import_typescript85.default.isPropertyAccessExpression });
32311
32092
  if (methodAccess === null) {
32312
32093
  return null;
32313
32094
  }
@@ -32346,7 +32127,7 @@ var SymbolBuilder = class {
32346
32127
  }
32347
32128
  let node = null;
32348
32129
  if (expression instanceof PropertyRead) {
32349
- node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: import_typescript87.default.isPropertyAccessExpression });
32130
+ node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: import_typescript85.default.isPropertyAccessExpression });
32350
32131
  }
32351
32132
  if (node === null) {
32352
32133
  node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: anyNodeFilter });
@@ -32354,10 +32135,10 @@ var SymbolBuilder = class {
32354
32135
  if (node === null) {
32355
32136
  return null;
32356
32137
  }
32357
- while (import_typescript87.default.isParenthesizedExpression(node)) {
32138
+ while (import_typescript85.default.isParenthesizedExpression(node)) {
32358
32139
  node = node.expression;
32359
32140
  }
32360
- if (expression instanceof SafePropertyRead && import_typescript87.default.isConditionalExpression(node)) {
32141
+ if (expression instanceof SafePropertyRead && import_typescript85.default.isConditionalExpression(node)) {
32361
32142
  const whenTrueSymbol = this.getSymbolOfTsNode(node.whenTrue);
32362
32143
  if (whenTrueSymbol === null) {
32363
32144
  return null;
@@ -32373,13 +32154,13 @@ var SymbolBuilder = class {
32373
32154
  }
32374
32155
  getSymbolOfTsNode(node) {
32375
32156
  var _a;
32376
- while (import_typescript87.default.isParenthesizedExpression(node)) {
32157
+ while (import_typescript85.default.isParenthesizedExpression(node)) {
32377
32158
  node = node.expression;
32378
32159
  }
32379
32160
  let tsSymbol;
32380
- if (import_typescript87.default.isPropertyAccessExpression(node)) {
32161
+ if (import_typescript85.default.isPropertyAccessExpression(node)) {
32381
32162
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
32382
- } else if (import_typescript87.default.isElementAccessExpression(node)) {
32163
+ } else if (import_typescript85.default.isElementAccessExpression(node)) {
32383
32164
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.argumentExpression);
32384
32165
  } else {
32385
32166
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
@@ -32397,13 +32178,13 @@ var SymbolBuilder = class {
32397
32178
  };
32398
32179
  }
32399
32180
  getTcbPositionForNode(node) {
32400
- if (import_typescript87.default.isTypeReferenceNode(node)) {
32181
+ if (import_typescript85.default.isTypeReferenceNode(node)) {
32401
32182
  return this.getTcbPositionForNode(node.typeName);
32402
- } else if (import_typescript87.default.isQualifiedName(node)) {
32183
+ } else if (import_typescript85.default.isQualifiedName(node)) {
32403
32184
  return node.right.getStart();
32404
- } else if (import_typescript87.default.isPropertyAccessExpression(node)) {
32185
+ } else if (import_typescript85.default.isPropertyAccessExpression(node)) {
32405
32186
  return node.name.getStart();
32406
- } else if (import_typescript87.default.isElementAccessExpression(node)) {
32187
+ } else if (import_typescript85.default.isElementAccessExpression(node)) {
32407
32188
  return node.argumentExpression.getStart();
32408
32189
  } else {
32409
32190
  return node.getStart();
@@ -33288,7 +33069,7 @@ var factory3 = {
33288
33069
  };
33289
33070
 
33290
33071
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
33291
- var import_typescript90 = __toESM(require("typescript"), 1);
33072
+ var import_typescript88 = __toESM(require("typescript"), 1);
33292
33073
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
33293
33074
  constructor() {
33294
33075
  super(...arguments);
@@ -33302,7 +33083,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
33302
33083
  return [];
33303
33084
  }
33304
33085
  const typeLeft = symbolLeft.tsType;
33305
- if (typeLeft.flags & (import_typescript90.default.TypeFlags.Any | import_typescript90.default.TypeFlags.Unknown)) {
33086
+ if (typeLeft.flags & (import_typescript88.default.TypeFlags.Any | import_typescript88.default.TypeFlags.Unknown)) {
33306
33087
  return [];
33307
33088
  }
33308
33089
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -33332,7 +33113,7 @@ var factory4 = {
33332
33113
  };
33333
33114
 
33334
33115
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
33335
- var import_typescript91 = __toESM(require("typescript"), 1);
33116
+ var import_typescript89 = __toESM(require("typescript"), 1);
33336
33117
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
33337
33118
  constructor() {
33338
33119
  super(...arguments);
@@ -33346,7 +33127,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
33346
33127
  return [];
33347
33128
  }
33348
33129
  const typeLeft = symbolLeft.tsType;
33349
- if (typeLeft.flags & (import_typescript91.default.TypeFlags.Any | import_typescript91.default.TypeFlags.Unknown)) {
33130
+ if (typeLeft.flags & (import_typescript89.default.TypeFlags.Any | import_typescript89.default.TypeFlags.Unknown)) {
33350
33131
  return [];
33351
33132
  }
33352
33133
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -33438,7 +33219,7 @@ var factory7 = {
33438
33219
  };
33439
33220
 
33440
33221
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
33441
- var import_typescript92 = __toESM(require("typescript"), 1);
33222
+ var import_typescript90 = __toESM(require("typescript"), 1);
33442
33223
 
33443
33224
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
33444
33225
  var DiagnosticCategoryLabel;
@@ -33486,9 +33267,9 @@ var ExtendedTemplateCheckerImpl = class {
33486
33267
  function diagnosticLabelToCategory(label) {
33487
33268
  switch (label) {
33488
33269
  case DiagnosticCategoryLabel.Warning:
33489
- return import_typescript92.default.DiagnosticCategory.Warning;
33270
+ return import_typescript90.default.DiagnosticCategory.Warning;
33490
33271
  case DiagnosticCategoryLabel.Error:
33491
- return import_typescript92.default.DiagnosticCategory.Error;
33272
+ return import_typescript90.default.DiagnosticCategory.Error;
33492
33273
  case DiagnosticCategoryLabel.Suppress:
33493
33274
  return null;
33494
33275
  default:
@@ -33584,7 +33365,7 @@ var NgCompiler = class {
33584
33365
  this.currentProgram = inputProgram;
33585
33366
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
33586
33367
  this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
33587
- const moduleResolutionCache = import_typescript93.default.createModuleResolutionCache(
33368
+ const moduleResolutionCache = import_typescript91.default.createModuleResolutionCache(
33588
33369
  this.adapter.getCurrentDirectory(),
33589
33370
  this.adapter.getCanonicalFileName.bind(this.adapter)
33590
33371
  );
@@ -33631,7 +33412,7 @@ var NgCompiler = class {
33631
33412
  }
33632
33413
  for (const clazz of classesToUpdate) {
33633
33414
  this.compilation.traitCompiler.updateResources(clazz);
33634
- if (!import_typescript93.default.isClassDeclaration(clazz)) {
33415
+ if (!import_typescript91.default.isClassDeclaration(clazz)) {
33635
33416
  continue;
33636
33417
  }
33637
33418
  this.compilation.templateTypeChecker.invalidateClass(clazz);
@@ -33769,9 +33550,6 @@ var NgCompiler = class {
33769
33550
  if (compilation.aliasingHost !== null && compilation.aliasingHost.aliasExportsInDts) {
33770
33551
  afterDeclarations.push(aliasTransformFactory(compilation.traitCompiler.exportStatements));
33771
33552
  }
33772
- if (this.adapter.factoryTracker !== null) {
33773
- before.push(generatedFactoryTransform(this.adapter.factoryTracker.sourceInfo, importRewriter));
33774
- }
33775
33553
  return { transformers: { before, afterDeclarations } };
33776
33554
  }
33777
33555
  getIndexedComponents() {
@@ -34014,7 +33792,7 @@ var NgCompiler = class {
34014
33792
  new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
34015
33793
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
34016
33794
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder),
34017
- 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)
33795
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
34018
33796
  ];
34019
33797
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
34020
33798
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -34046,18 +33824,18 @@ function isAngularCorePackage(program) {
34046
33824
  return false;
34047
33825
  }
34048
33826
  return r3Symbols.statements.some((stmt) => {
34049
- if (!import_typescript93.default.isVariableStatement(stmt)) {
33827
+ if (!import_typescript91.default.isVariableStatement(stmt)) {
34050
33828
  return false;
34051
33829
  }
34052
- const modifiers = import_typescript93.default.getModifiers(stmt);
34053
- if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === import_typescript93.default.SyntaxKind.ExportKeyword)) {
33830
+ const modifiers = import_typescript91.default.getModifiers(stmt);
33831
+ if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === import_typescript91.default.SyntaxKind.ExportKeyword)) {
34054
33832
  return false;
34055
33833
  }
34056
33834
  return stmt.declarationList.declarations.some((decl) => {
34057
- if (!import_typescript93.default.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
33835
+ if (!import_typescript91.default.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
34058
33836
  return false;
34059
33837
  }
34060
- if (decl.initializer === void 0 || decl.initializer.kind !== import_typescript93.default.SyntaxKind.TrueKeyword) {
33838
+ if (decl.initializer === void 0 || decl.initializer.kind !== import_typescript91.default.SyntaxKind.TrueKeyword) {
34061
33839
  return false;
34062
33840
  }
34063
33841
  return true;
@@ -34071,7 +33849,7 @@ function* verifyCompatibleTypeCheckOptions(options) {
34071
33849
  var _a, _b, _c;
34072
33850
  if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) {
34073
33851
  yield makeConfigDiagnostic({
34074
- category: import_typescript93.default.DiagnosticCategory.Error,
33852
+ category: import_typescript91.default.DiagnosticCategory.Error,
34075
33853
  code: ErrorCode.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK,
34076
33854
  messageText: `
34077
33855
  Angular compiler option "strictTemplates" is enabled, however "fullTemplateTypeCheck" is disabled.
@@ -34090,7 +33868,7 @@ https://angular.io/guide/template-typecheck
34090
33868
  }
34091
33869
  if (options.extendedDiagnostics && options.strictTemplates === false) {
34092
33870
  yield makeConfigDiagnostic({
34093
- category: import_typescript93.default.DiagnosticCategory.Error,
33871
+ category: import_typescript91.default.DiagnosticCategory.Error,
34094
33872
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES,
34095
33873
  messageText: `
34096
33874
  Angular compiler option "extendedDiagnostics" is configured, however "strictTemplates" is disabled.
@@ -34107,7 +33885,7 @@ One of the following actions is required:
34107
33885
  const defaultCategory = (_a = options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory;
34108
33886
  if (defaultCategory && !allowedCategoryLabels.includes(defaultCategory)) {
34109
33887
  yield makeConfigDiagnostic({
34110
- category: import_typescript93.default.DiagnosticCategory.Error,
33888
+ category: import_typescript91.default.DiagnosticCategory.Error,
34111
33889
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
34112
33890
  messageText: `
34113
33891
  Angular compiler option "extendedDiagnostics.defaultCategory" has an unknown diagnostic category: "${defaultCategory}".
@@ -34121,7 +33899,7 @@ ${allowedCategoryLabels.join("\n")}
34121
33899
  for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
34122
33900
  if (!allExtendedDiagnosticNames.includes(checkName)) {
34123
33901
  yield makeConfigDiagnostic({
34124
- category: import_typescript93.default.DiagnosticCategory.Error,
33902
+ category: import_typescript91.default.DiagnosticCategory.Error,
34125
33903
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK,
34126
33904
  messageText: `
34127
33905
  Angular compiler option "extendedDiagnostics.checks" has an unknown check: "${checkName}".
@@ -34133,7 +33911,7 @@ ${allExtendedDiagnosticNames.join("\n")}
34133
33911
  }
34134
33912
  if (!allowedCategoryLabels.includes(category)) {
34135
33913
  yield makeConfigDiagnostic({
34136
- category: import_typescript93.default.DiagnosticCategory.Error,
33914
+ category: import_typescript91.default.DiagnosticCategory.Error,
34137
33915
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
34138
33916
  messageText: `
34139
33917
  Angular compiler option "extendedDiagnostics.checks['${checkName}']" has an unknown diagnostic category: "${category}".
@@ -34163,7 +33941,7 @@ var ReferenceGraphAdapter = class {
34163
33941
  for (const { node } of references) {
34164
33942
  let sourceFile = node.getSourceFile();
34165
33943
  if (sourceFile === void 0) {
34166
- sourceFile = import_typescript93.default.getOriginalNode(node).getSourceFile();
33944
+ sourceFile = import_typescript91.default.getOriginalNode(node).getSourceFile();
34167
33945
  }
34168
33946
  if (sourceFile === void 0 || !isDtsPath(sourceFile.fileName)) {
34169
33947
  this.graph.add(source, node);
@@ -34202,7 +33980,7 @@ function versionMapFromProgram(program, driver) {
34202
33980
  }
34203
33981
 
34204
33982
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
34205
- var import_typescript95 = __toESM(require("typescript"), 1);
33983
+ var import_typescript93 = __toESM(require("typescript"), 1);
34206
33984
  var DelegatingCompilerHost2 = class {
34207
33985
  constructor(delegate) {
34208
33986
  this.delegate = delegate;
@@ -34239,13 +34017,11 @@ var DelegatingCompilerHost2 = class {
34239
34017
  }
34240
34018
  };
34241
34019
  var NgCompilerHost = class extends DelegatingCompilerHost2 {
34242
- constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics) {
34020
+ constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics) {
34243
34021
  super(delegate);
34244
34022
  this.shimAdapter = shimAdapter;
34245
34023
  this.shimTagger = shimTagger;
34246
- this.factoryTracker = null;
34247
34024
  this.entryPoint = null;
34248
- this.factoryTracker = factoryTracker;
34249
34025
  this.entryPoint = entryPoint;
34250
34026
  this.constructionDiagnostics = diagnostics;
34251
34027
  this.inputFiles = [...inputFiles, ...shimAdapter.extraInputFiles];
@@ -34264,20 +34040,8 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34264
34040
  this.shimTagger.finalize();
34265
34041
  }
34266
34042
  static wrap(delegate, inputFiles, options, oldProgram) {
34267
- const allowEmptyCodegenFiles = options.allowEmptyCodegenFiles || false;
34268
- const shouldGenerateFactoryShims = options.generateNgFactoryShims !== void 0 ? options.generateNgFactoryShims : allowEmptyCodegenFiles;
34269
- const shouldGenerateSummaryShims = options.generateNgSummaryShims !== void 0 ? options.generateNgSummaryShims : allowEmptyCodegenFiles;
34270
34043
  const topLevelShimGenerators = [];
34271
34044
  const perFileShimGenerators = [];
34272
- if (shouldGenerateSummaryShims) {
34273
- perFileShimGenerators.push(new SummaryGenerator());
34274
- }
34275
- let factoryTracker = null;
34276
- if (shouldGenerateFactoryShims) {
34277
- const factoryGenerator = new FactoryGenerator();
34278
- perFileShimGenerators.push(factoryGenerator);
34279
- factoryTracker = factoryGenerator;
34280
- }
34281
34045
  const rootDirs = getRootDirs(delegate, options);
34282
34046
  perFileShimGenerators.push(new TypeCheckShimGenerator());
34283
34047
  let diagnostics = [];
@@ -34293,7 +34057,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34293
34057
  entryPoint = findFlatIndexEntryPoint(normalizedTsInputFiles);
34294
34058
  if (entryPoint === null) {
34295
34059
  diagnostics.push({
34296
- category: import_typescript95.default.DiagnosticCategory.Error,
34060
+ category: import_typescript93.default.DiagnosticCategory.Error,
34297
34061
  code: ngErrorCode(ErrorCode.CONFIG_FLAT_MODULE_NO_INDEX),
34298
34062
  file: void 0,
34299
34063
  start: void 0,
@@ -34309,7 +34073,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34309
34073
  }
34310
34074
  const shimAdapter = new ShimAdapter(delegate, normalizedTsInputFiles, topLevelShimGenerators, perFileShimGenerators, oldProgram);
34311
34075
  const shimTagger = new ShimReferenceTagger(perFileShimGenerators.map((gen) => gen.extensionPrefix));
34312
- return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics);
34076
+ return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics);
34313
34077
  }
34314
34078
  isShim(sf) {
34315
34079
  return isShim(sf);
@@ -34336,10 +34100,10 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34336
34100
  return this.fileNameToModuleName !== void 0 ? this : null;
34337
34101
  }
34338
34102
  createCachedResolveModuleNamesFunction() {
34339
- const moduleResolutionCache = import_typescript95.default.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
34103
+ const moduleResolutionCache = import_typescript93.default.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
34340
34104
  return (moduleNames, containingFile, reusedNames, redirectedReference, options) => {
34341
34105
  return moduleNames.map((moduleName) => {
34342
- const module3 = import_typescript95.default.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
34106
+ const module3 = import_typescript93.default.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
34343
34107
  return module3.resolvedModule;
34344
34108
  });
34345
34109
  };
@@ -34360,7 +34124,7 @@ var NgtscProgram = class {
34360
34124
  if (reuseProgram !== void 0) {
34361
34125
  retagAllTsFiles(reuseProgram);
34362
34126
  }
34363
- this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => import_typescript97.default.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
34127
+ this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => import_typescript95.default.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
34364
34128
  perfRecorder.phase(PerfPhase.Unaccounted);
34365
34129
  perfRecorder.memory(PerfCheckpoint.TypeScriptProgramCreate);
34366
34130
  this.host.postProgramCreationCleanup();
@@ -34570,13 +34334,13 @@ function createProgram({ rootNames, options, host, oldProgram }) {
34570
34334
  }
34571
34335
 
34572
34336
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
34573
- var import_typescript99 = __toESM(require("typescript"), 1);
34337
+ var import_typescript97 = __toESM(require("typescript"), 1);
34574
34338
 
34575
34339
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
34576
- var import_typescript98 = __toESM(require("typescript"), 1);
34340
+ var import_typescript96 = __toESM(require("typescript"), 1);
34577
34341
 
34578
34342
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
34579
- var import_typescript100 = __toESM(require("typescript"), 1);
34343
+ var import_typescript98 = __toESM(require("typescript"), 1);
34580
34344
 
34581
34345
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
34582
34346
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -34611,7 +34375,7 @@ setFileSystem(new NodeJSFileSystem());
34611
34375
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
34612
34376
  var import_fs2 = require("fs");
34613
34377
  var import_path8 = require("path");
34614
- var import_typescript112 = __toESM(require("typescript"), 1);
34378
+ var import_typescript110 = __toESM(require("typescript"), 1);
34615
34379
 
34616
34380
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
34617
34381
  var import_core13 = require("@angular-devkit/core");
@@ -34695,23 +34459,23 @@ function getWorkspace(tree) {
34695
34459
 
34696
34460
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
34697
34461
  var import_path4 = require("path");
34698
- var import_typescript102 = __toESM(require("typescript"), 1);
34462
+ var import_typescript100 = __toESM(require("typescript"), 1);
34699
34463
 
34700
34464
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
34701
34465
  var path2 = __toESM(require("path"), 1);
34702
- var import_typescript101 = __toESM(require("typescript"), 1);
34466
+ var import_typescript99 = __toESM(require("typescript"), 1);
34703
34467
  function parseTsconfigFile(tsconfigPath, basePath) {
34704
- const { config } = import_typescript101.default.readConfigFile(tsconfigPath, import_typescript101.default.sys.readFile);
34468
+ const { config } = import_typescript99.default.readConfigFile(tsconfigPath, import_typescript99.default.sys.readFile);
34705
34469
  const parseConfigHost = {
34706
- useCaseSensitiveFileNames: import_typescript101.default.sys.useCaseSensitiveFileNames,
34707
- fileExists: import_typescript101.default.sys.fileExists,
34708
- readDirectory: import_typescript101.default.sys.readDirectory,
34709
- readFile: import_typescript101.default.sys.readFile
34470
+ useCaseSensitiveFileNames: import_typescript99.default.sys.useCaseSensitiveFileNames,
34471
+ fileExists: import_typescript99.default.sys.fileExists,
34472
+ readDirectory: import_typescript99.default.sys.readDirectory,
34473
+ readFile: import_typescript99.default.sys.readFile
34710
34474
  };
34711
34475
  if (!path2.isAbsolute(basePath)) {
34712
34476
  throw Error("Unexpected relative base path has been specified.");
34713
34477
  }
34714
- return import_typescript101.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
34478
+ return import_typescript99.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
34715
34479
  }
34716
34480
 
34717
34481
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
@@ -34723,7 +34487,7 @@ function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additi
34723
34487
  return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
34724
34488
  }
34725
34489
  function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
34726
- const host = import_typescript102.default.createCompilerHost(options, true);
34490
+ const host = import_typescript100.default.createCompilerHost(options, true);
34727
34491
  const defaultReadFile = host.readFile;
34728
34492
  host.readFile = (fileName) => {
34729
34493
  var _a;
@@ -34744,24 +34508,24 @@ function canMigrateFile(basePath, sourceFile, program) {
34744
34508
  }
34745
34509
 
34746
34510
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
34747
- var import_typescript108 = __toESM(require("typescript"), 1);
34511
+ var import_typescript106 = __toESM(require("typescript"), 1);
34748
34512
 
34749
34513
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
34750
- var import_typescript104 = __toESM(require("typescript"), 1);
34514
+ var import_typescript102 = __toESM(require("typescript"), 1);
34751
34515
 
34752
34516
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
34753
- var import_typescript103 = __toESM(require("typescript"), 1);
34517
+ var import_typescript101 = __toESM(require("typescript"), 1);
34754
34518
  function getImportOfIdentifier(typeChecker, node) {
34755
34519
  const symbol = typeChecker.getSymbolAtLocation(node);
34756
34520
  if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
34757
34521
  return null;
34758
34522
  }
34759
34523
  const decl = symbol.declarations[0];
34760
- if (!import_typescript103.default.isImportSpecifier(decl)) {
34524
+ if (!import_typescript101.default.isImportSpecifier(decl)) {
34761
34525
  return null;
34762
34526
  }
34763
34527
  const importDecl = decl.parent.parent.parent;
34764
- if (!import_typescript103.default.isStringLiteral(importDecl.moduleSpecifier)) {
34528
+ if (!import_typescript101.default.isStringLiteral(importDecl.moduleSpecifier)) {
34765
34529
  return null;
34766
34530
  }
34767
34531
  return {
@@ -34773,10 +34537,10 @@ function getImportOfIdentifier(typeChecker, node) {
34773
34537
  function getImportSpecifier(sourceFile, moduleName, specifierName) {
34774
34538
  var _a;
34775
34539
  for (const node of sourceFile.statements) {
34776
- if (import_typescript103.default.isImportDeclaration(node) && import_typescript103.default.isStringLiteral(node.moduleSpecifier)) {
34540
+ if (import_typescript101.default.isImportDeclaration(node) && import_typescript101.default.isStringLiteral(node.moduleSpecifier)) {
34777
34541
  const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
34778
34542
  const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
34779
- if (isMatch && namedBindings && import_typescript103.default.isNamedImports(namedBindings)) {
34543
+ if (isMatch && namedBindings && import_typescript101.default.isNamedImports(namedBindings)) {
34780
34544
  const match = findImportSpecifier(namedBindings.elements, specifierName);
34781
34545
  if (match) {
34782
34546
  return match;
@@ -34795,7 +34559,7 @@ function findImportSpecifier(nodes, specifierName) {
34795
34559
 
34796
34560
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
34797
34561
  function getCallDecoratorImport(typeChecker, decorator) {
34798
- if (!import_typescript104.default.isCallExpression(decorator.expression) || !import_typescript104.default.isIdentifier(decorator.expression.expression)) {
34562
+ if (!import_typescript102.default.isCallExpression(decorator.expression) || !import_typescript102.default.isIdentifier(decorator.expression.expression)) {
34799
34563
  return null;
34800
34564
  }
34801
34565
  const identifier = decorator.expression.expression;
@@ -34813,10 +34577,10 @@ function getAngularDecorators(typeChecker, decorators) {
34813
34577
  }
34814
34578
 
34815
34579
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
34816
- var import_typescript105 = __toESM(require("typescript"), 1);
34580
+ var import_typescript103 = __toESM(require("typescript"), 1);
34817
34581
  function closestNode(node, predicate) {
34818
34582
  let current = node.parent;
34819
- while (current && !import_typescript105.default.isSourceFile(current)) {
34583
+ while (current && !import_typescript103.default.isSourceFile(current)) {
34820
34584
  if (predicate(current)) {
34821
34585
  return current;
34822
34586
  }
@@ -34827,11 +34591,11 @@ function closestNode(node, predicate) {
34827
34591
 
34828
34592
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
34829
34593
  var import_path6 = require("path");
34830
- var import_typescript107 = __toESM(require("typescript"), 1);
34594
+ var import_typescript105 = __toESM(require("typescript"), 1);
34831
34595
 
34832
34596
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
34833
34597
  var import_path5 = require("path");
34834
- var import_typescript106 = __toESM(require("typescript"), 1);
34598
+ var import_typescript104 = __toESM(require("typescript"), 1);
34835
34599
  var IS_AFTER_TS_492 = isAfterVersion2(4, 9);
34836
34600
  var ImportManager2 = class {
34837
34601
  constructor(getUpdateRecorder, printer) {
@@ -34853,7 +34617,7 @@ var ImportManager2 = class {
34853
34617
  }
34854
34618
  for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
34855
34619
  const statement = sourceFile.statements[i];
34856
- if (!import_typescript106.default.isImportDeclaration(statement) || !import_typescript106.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
34620
+ if (!import_typescript104.default.isImportDeclaration(statement) || !import_typescript104.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
34857
34621
  continue;
34858
34622
  }
34859
34623
  if (importStartIndex === 0) {
@@ -34865,9 +34629,9 @@ var ImportManager2 = class {
34865
34629
  }
34866
34630
  if (statement.importClause.namedBindings) {
34867
34631
  const namedBindings = statement.importClause.namedBindings;
34868
- if (import_typescript106.default.isNamespaceImport(namedBindings) && !typeImport) {
34869
- return import_typescript106.default.factory.createPropertyAccessExpression(import_typescript106.default.factory.createIdentifier(namedBindings.name.text), import_typescript106.default.factory.createIdentifier(alias || symbolName || "default"));
34870
- } else if (import_typescript106.default.isNamedImports(namedBindings) && symbolName) {
34632
+ if (import_typescript104.default.isNamespaceImport(namedBindings) && !typeImport) {
34633
+ return import_typescript104.default.factory.createPropertyAccessExpression(import_typescript104.default.factory.createIdentifier(namedBindings.name.text), import_typescript104.default.factory.createIdentifier(alias || symbolName || "default"));
34634
+ } else if (import_typescript104.default.isNamedImports(namedBindings) && symbolName) {
34871
34635
  const existingElement = namedBindings.elements.find((e) => {
34872
34636
  if (alias) {
34873
34637
  return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
@@ -34875,12 +34639,12 @@ var ImportManager2 = class {
34875
34639
  return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
34876
34640
  });
34877
34641
  if (existingElement) {
34878
- return import_typescript106.default.factory.createIdentifier(existingElement.name.text);
34642
+ return import_typescript104.default.factory.createIdentifier(existingElement.name.text);
34879
34643
  }
34880
34644
  existingImport = statement;
34881
34645
  }
34882
34646
  } else if (statement.importClause.name && !symbolName) {
34883
- return import_typescript106.default.factory.createIdentifier(statement.importClause.name.text);
34647
+ return import_typescript104.default.factory.createIdentifier(statement.importClause.name.text);
34884
34648
  }
34885
34649
  }
34886
34650
  if (existingImport) {
@@ -34904,7 +34668,7 @@ var ImportManager2 = class {
34904
34668
  if (!importMap.has(moduleName)) {
34905
34669
  importMap.set(moduleName, []);
34906
34670
  }
34907
- importMap.get(moduleName).push(import_typescript106.default.factory.createImportSpecifier(false, propertyName, name));
34671
+ importMap.get(moduleName).push(import_typescript104.default.factory.createImportSpecifier(false, propertyName, name));
34908
34672
  } else {
34909
34673
  const importMap = this.newImports.get(sourceFile).defaultImports;
34910
34674
  identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
@@ -34918,19 +34682,19 @@ var ImportManager2 = class {
34918
34682
  const sourceFile = importDecl.getSourceFile();
34919
34683
  const recorder = this.getUpdateRecorder(sourceFile);
34920
34684
  const namedBindings = importDecl.importClause.namedBindings;
34921
- const newNamedBindings = import_typescript106.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript106.default.factory.createImportSpecifier(false, propertyName, importName))));
34922
- const newNamedBindingsText = this.printer.printNode(import_typescript106.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
34685
+ const newNamedBindings = import_typescript104.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript104.default.factory.createImportSpecifier(false, propertyName, importName))));
34686
+ const newNamedBindingsText = this.printer.printNode(import_typescript104.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
34923
34687
  recorder.updateExistingImport(namedBindings, newNamedBindingsText);
34924
34688
  });
34925
34689
  this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
34926
34690
  const recorder = this.getUpdateRecorder(sourceFile);
34927
34691
  const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
34928
34692
  defaultImports.forEach((identifier, moduleName) => {
34929
- const newImport = createImportDeclaration2(void 0, import_typescript106.default.factory.createImportClause(false, identifier, void 0), import_typescript106.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34693
+ const newImport = createImportDeclaration2(void 0, import_typescript104.default.factory.createImportClause(false, identifier, void 0), import_typescript104.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34930
34694
  recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
34931
34695
  });
34932
34696
  namedImports.forEach((specifiers, moduleName) => {
34933
- 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));
34697
+ const newImport = createImportDeclaration2(void 0, import_typescript104.default.factory.createImportClause(false, void 0, import_typescript104.default.factory.createNamedImports(specifiers)), import_typescript104.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34934
34698
  recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
34935
34699
  });
34936
34700
  });
@@ -34938,7 +34702,7 @@ var ImportManager2 = class {
34938
34702
  _getUniqueIdentifier(sourceFile, baseName) {
34939
34703
  if (this.isUniqueIdentifierName(sourceFile, baseName)) {
34940
34704
  this._recordUsedIdentifier(sourceFile, baseName);
34941
- return import_typescript106.default.factory.createIdentifier(baseName);
34705
+ return import_typescript104.default.factory.createIdentifier(baseName);
34942
34706
  }
34943
34707
  let name = null;
34944
34708
  let counter = 1;
@@ -34946,7 +34710,7 @@ var ImportManager2 = class {
34946
34710
  name = `${baseName}_${counter++}`;
34947
34711
  } while (!this.isUniqueIdentifierName(sourceFile, name));
34948
34712
  this._recordUsedIdentifier(sourceFile, name);
34949
- return import_typescript106.default.factory.createIdentifier(name);
34713
+ return import_typescript104.default.factory.createIdentifier(name);
34950
34714
  }
34951
34715
  isUniqueIdentifierName(sourceFile, name) {
34952
34716
  if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
@@ -34955,7 +34719,7 @@ var ImportManager2 = class {
34955
34719
  const nodeQueue = [sourceFile];
34956
34720
  while (nodeQueue.length) {
34957
34721
  const node = nodeQueue.shift();
34958
- if (import_typescript106.default.isIdentifier(node) && node.text === name && (!import_typescript106.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
34722
+ if (import_typescript104.default.isIdentifier(node) && node.text === name && (!import_typescript104.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
34959
34723
  return false;
34960
34724
  }
34961
34725
  nodeQueue.push(...node.getChildren());
@@ -34967,21 +34731,21 @@ var ImportManager2 = class {
34967
34731
  }
34968
34732
  _getEndPositionOfNode(node) {
34969
34733
  const nodeEndPos = node.getEnd();
34970
- const commentRanges = import_typescript106.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
34734
+ const commentRanges = import_typescript104.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
34971
34735
  if (!commentRanges || !commentRanges.length) {
34972
34736
  return nodeEndPos;
34973
34737
  }
34974
34738
  return commentRanges[commentRanges.length - 1].end;
34975
34739
  }
34976
34740
  _getNewImportText(importStartIndex, newImport, sourceFile) {
34977
- const text = this.printer.printNode(import_typescript106.default.EmitHint.Unspecified, newImport, sourceFile);
34741
+ const text = this.printer.printNode(import_typescript104.default.EmitHint.Unspecified, newImport, sourceFile);
34978
34742
  return importStartIndex === 0 ? `${text}
34979
34743
  ` : `
34980
34744
  ${text}`;
34981
34745
  }
34982
34746
  _getImportParts(sourceFile, symbolName, alias) {
34983
- const symbolIdentifier = import_typescript106.default.factory.createIdentifier(symbolName);
34984
- const aliasIdentifier = alias ? import_typescript106.default.factory.createIdentifier(alias) : null;
34747
+ const symbolIdentifier = import_typescript104.default.factory.createIdentifier(symbolName);
34748
+ const aliasIdentifier = alias ? import_typescript104.default.factory.createIdentifier(alias) : null;
34985
34749
  const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
34986
34750
  const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
34987
34751
  let propertyName;
@@ -35001,7 +34765,7 @@ ${text}`;
35001
34765
  if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
35002
34766
  let quoteStyle;
35003
34767
  for (const statement of sourceFile.statements) {
35004
- if (import_typescript106.default.isImportDeclaration(statement) && import_typescript106.default.isStringLiteralLike(statement.moduleSpecifier)) {
34768
+ if (import_typescript104.default.isImportDeclaration(statement) && import_typescript104.default.isStringLiteralLike(statement.moduleSpecifier)) {
35005
34769
  quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
35006
34770
  break;
35007
34771
  }
@@ -35012,10 +34776,10 @@ ${text}`;
35012
34776
  }
35013
34777
  };
35014
34778
  function createImportDeclaration2(modifiers, importClause, moduleSpecifier, assertClause) {
35015
- 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);
34779
+ return IS_AFTER_TS_492 ? import_typescript104.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript104.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
35016
34780
  }
35017
34781
  function isAfterVersion2(targetMajor, targetMinor) {
35018
- const [major, minor] = import_typescript106.default.versionMajorMinor.split(".").map((part) => parseInt(part));
34782
+ const [major, minor] = import_typescript104.default.versionMajorMinor.split(".").map((part) => parseInt(part));
35019
34783
  if (major < targetMajor) {
35020
34784
  return false;
35021
34785
  }
@@ -35039,7 +34803,7 @@ var ChangeTracker = class {
35039
34803
  replaceText(sourceFile, start, removeLength, text) {
35040
34804
  this._trackChange(sourceFile, { start, removeLength, text });
35041
34805
  }
35042
- replaceNode(oldNode, newNode, emitHint = import_typescript107.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
34806
+ replaceNode(oldNode, newNode, emitHint = import_typescript105.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
35043
34807
  const sourceFile = oldNode.getSourceFile();
35044
34808
  this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
35045
34809
  }
@@ -35110,7 +34874,7 @@ var ReferenceResolver = class {
35110
34874
  const results = /* @__PURE__ */ new Map();
35111
34875
  for (const symbol of referencedSymbols) {
35112
34876
  for (const ref of symbol.references) {
35113
- if (!ref.isDefinition || symbol.definition.kind === import_typescript107.default.ScriptElementKind.alias) {
34877
+ if (!ref.isDefinition || symbol.definition.kind === import_typescript105.default.ScriptElementKind.alias) {
35114
34878
  if (!results.has(ref.fileName)) {
35115
34879
  results.set(ref.fileName, []);
35116
34880
  }
@@ -35134,7 +34898,7 @@ var ReferenceResolver = class {
35134
34898
  for (const file of highlights) {
35135
34899
  if (file.fileName === fileName) {
35136
34900
  for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
35137
- if (kind !== import_typescript107.default.HighlightSpanKind.none) {
34901
+ if (kind !== import_typescript105.default.HighlightSpanKind.none) {
35138
34902
  results.push([start, start + length]);
35139
34903
  }
35140
34904
  }
@@ -35160,19 +34924,19 @@ var ReferenceResolver = class {
35160
34924
  rootFileNames.push(fileName);
35161
34925
  }
35162
34926
  });
35163
- this._languageService = import_typescript107.default.createLanguageService({
34927
+ this._languageService = import_typescript105.default.createLanguageService({
35164
34928
  getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
35165
34929
  getScriptFileNames: () => rootFileNames,
35166
34930
  getScriptVersion: () => "0",
35167
34931
  getScriptSnapshot: (path3) => {
35168
34932
  const content = this._readFile(path3);
35169
- return content ? import_typescript107.default.ScriptSnapshot.fromString(content) : void 0;
34933
+ return content ? import_typescript105.default.ScriptSnapshot.fromString(content) : void 0;
35170
34934
  },
35171
34935
  getCurrentDirectory: () => this._basePath,
35172
- getDefaultLibFileName: (options) => import_typescript107.default.getDefaultLibFilePath(options),
34936
+ getDefaultLibFileName: (options) => import_typescript105.default.getDefaultLibFilePath(options),
35173
34937
  readFile: (path3) => this._readFile(path3),
35174
34938
  fileExists: (path3) => this._host.fileExists(path3)
35175
- }, import_typescript107.default.createDocumentRegistry(), import_typescript107.default.LanguageServiceMode.PartialSemantic);
34939
+ }, import_typescript105.default.createDocumentRegistry(), import_typescript105.default.LanguageServiceMode.PartialSemantic);
35176
34940
  }
35177
34941
  return this._languageService;
35178
34942
  }
@@ -35202,10 +34966,10 @@ function offsetsToNodes(lookup, offsets, results) {
35202
34966
  }
35203
34967
  function findClassDeclaration(reference, typeChecker) {
35204
34968
  var _a, _b;
35205
- return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript107.default.isClassDeclaration)) || null;
34969
+ return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript105.default.isClassDeclaration)) || null;
35206
34970
  }
35207
34971
  function findLiteralProperty(literal3, name) {
35208
- return literal3.properties.find((prop) => prop.name && import_typescript107.default.isIdentifier(prop.name) && prop.name.text === name);
34972
+ return literal3.properties.find((prop) => prop.name && import_typescript105.default.isIdentifier(prop.name) && prop.name.text === name);
35209
34973
  }
35210
34974
  function getRelativeImportPath(fromFile, toFile) {
35211
34975
  let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
@@ -35229,9 +34993,9 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
35229
34993
  const externalName = `@angular/${moduleName}`;
35230
34994
  const internalName = `angular2/rc/packages/${moduleName}`;
35231
34995
  return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
35232
- const closestClass = closestOrSelf(decl, import_typescript107.default.isClassDeclaration);
34996
+ const closestClass = closestOrSelf(decl, import_typescript105.default.isClassDeclaration);
35233
34997
  const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
35234
- if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript107.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
34998
+ if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript105.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
35235
34999
  return false;
35236
35000
  }
35237
35001
  return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
@@ -35252,7 +35016,7 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
35252
35016
  unknown: /* @__PURE__ */ new Set()
35253
35017
  };
35254
35018
  sourceFiles.forEach(function walk(node) {
35255
- if (import_typescript108.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
35019
+ if (import_typescript106.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
35256
35020
  collectRemovalLocations(node, removalLocations, referenceResolver, program);
35257
35021
  removalLocations.classes.add(node);
35258
35022
  }
@@ -35283,17 +35047,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
35283
35047
  }
35284
35048
  }
35285
35049
  for (const node of nodes) {
35286
- const closestArray = closestNode(node, import_typescript108.default.isArrayLiteralExpression);
35050
+ const closestArray = closestNode(node, import_typescript106.default.isArrayLiteralExpression);
35287
35051
  if (closestArray) {
35288
35052
  removalLocations.arrays.track(closestArray, node);
35289
35053
  continue;
35290
35054
  }
35291
- const closestImport = closestNode(node, import_typescript108.default.isNamedImports);
35055
+ const closestImport = closestNode(node, import_typescript106.default.isNamedImports);
35292
35056
  if (closestImport) {
35293
35057
  removalLocations.imports.track(closestImport, node);
35294
35058
  continue;
35295
35059
  }
35296
- const closestExport = closestNode(node, import_typescript108.default.isNamedExports);
35060
+ const closestExport = closestNode(node, import_typescript106.default.isNamedExports);
35297
35061
  if (closestExport) {
35298
35062
  removalLocations.exports.track(closestExport, node);
35299
35063
  continue;
@@ -35304,24 +35068,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
35304
35068
  function removeArrayReferences(locations, tracker) {
35305
35069
  for (const [array, toRemove] of locations.getEntries()) {
35306
35070
  const newElements = filterRemovedElements(array.elements, toRemove);
35307
- tracker.replaceNode(array, import_typescript108.default.factory.updateArrayLiteralExpression(array, newElements));
35071
+ tracker.replaceNode(array, import_typescript106.default.factory.updateArrayLiteralExpression(array, newElements));
35308
35072
  }
35309
35073
  }
35310
35074
  function removeImportReferences(locations, tracker) {
35311
35075
  for (const [namedImports, toRemove] of locations.getEntries()) {
35312
35076
  const newElements = filterRemovedElements(namedImports.elements, toRemove);
35313
35077
  if (newElements.length === 0) {
35314
- const importClause = closestNode(namedImports, import_typescript108.default.isImportClause);
35078
+ const importClause = closestNode(namedImports, import_typescript106.default.isImportClause);
35315
35079
  if (importClause && importClause.name) {
35316
- tracker.replaceNode(importClause, import_typescript108.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
35080
+ tracker.replaceNode(importClause, import_typescript106.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
35317
35081
  } else {
35318
- const declaration = closestNode(namedImports, import_typescript108.default.isImportDeclaration);
35082
+ const declaration = closestNode(namedImports, import_typescript106.default.isImportDeclaration);
35319
35083
  if (declaration) {
35320
35084
  tracker.removeNode(declaration);
35321
35085
  }
35322
35086
  }
35323
35087
  } else {
35324
- tracker.replaceNode(namedImports, import_typescript108.default.factory.updateNamedImports(namedImports, newElements));
35088
+ tracker.replaceNode(namedImports, import_typescript106.default.factory.updateNamedImports(namedImports, newElements));
35325
35089
  }
35326
35090
  }
35327
35091
  }
@@ -35329,22 +35093,22 @@ function removeExportReferences(locations, tracker) {
35329
35093
  for (const [namedExports, toRemove] of locations.getEntries()) {
35330
35094
  const newElements = filterRemovedElements(namedExports.elements, toRemove);
35331
35095
  if (newElements.length === 0) {
35332
- const declaration = closestNode(namedExports, import_typescript108.default.isExportDeclaration);
35096
+ const declaration = closestNode(namedExports, import_typescript106.default.isExportDeclaration);
35333
35097
  if (declaration) {
35334
35098
  tracker.removeNode(declaration);
35335
35099
  }
35336
35100
  } else {
35337
- tracker.replaceNode(namedExports, import_typescript108.default.factory.updateNamedExports(namedExports, newElements));
35101
+ tracker.replaceNode(namedExports, import_typescript106.default.factory.updateNamedExports(namedExports, newElements));
35338
35102
  }
35339
35103
  }
35340
35104
  }
35341
35105
  function canRemoveClass(node, typeChecker) {
35342
35106
  var _a;
35343
35107
  const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
35344
- if (!decorator || !import_typescript108.default.isCallExpression(decorator.expression)) {
35108
+ if (!decorator || !import_typescript106.default.isCallExpression(decorator.expression)) {
35345
35109
  return false;
35346
35110
  }
35347
- if (decorator.expression.arguments.length > 0 && !import_typescript108.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
35111
+ if (decorator.expression.arguments.length > 0 && !import_typescript106.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
35348
35112
  return false;
35349
35113
  }
35350
35114
  if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
@@ -35357,7 +35121,7 @@ function canRemoveClass(node, typeChecker) {
35357
35121
  const imports = findLiteralProperty(literal3, "imports");
35358
35122
  if (imports && isNonEmptyNgModuleProperty(imports)) {
35359
35123
  for (const dep of imports.initializer.elements) {
35360
- if (!import_typescript108.default.isIdentifier(dep)) {
35124
+ if (!import_typescript106.default.isIdentifier(dep)) {
35361
35125
  return false;
35362
35126
  }
35363
35127
  const depDeclaration = findClassDeclaration(dep, typeChecker);
@@ -35375,15 +35139,15 @@ function canRemoveClass(node, typeChecker) {
35375
35139
  return true;
35376
35140
  }
35377
35141
  function isNonEmptyNgModuleProperty(node) {
35378
- return import_typescript108.default.isPropertyAssignment(node) && import_typescript108.default.isIdentifier(node.name) && import_typescript108.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
35142
+ return import_typescript106.default.isPropertyAssignment(node) && import_typescript106.default.isIdentifier(node.name) && import_typescript106.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
35379
35143
  }
35380
35144
  function canRemoveFile(sourceFile, classesToBeRemoved) {
35381
35145
  var _a;
35382
35146
  for (const node of sourceFile.statements) {
35383
- if (import_typescript108.default.isImportDeclaration(node) || import_typescript108.default.isClassDeclaration(node) && classesToBeRemoved.has(node)) {
35147
+ if (import_typescript106.default.isImportDeclaration(node) || import_typescript106.default.isClassDeclaration(node) && classesToBeRemoved.has(node)) {
35384
35148
  continue;
35385
35149
  }
35386
- if (import_typescript108.default.canHaveModifiers(node) && ((_a = import_typescript108.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript108.default.SyntaxKind.ExportKeyword))) {
35150
+ if (import_typescript106.default.canHaveModifiers(node) && ((_a = import_typescript106.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript106.default.SyntaxKind.ExportKeyword))) {
35387
35151
  return false;
35388
35152
  }
35389
35153
  }
@@ -35403,7 +35167,7 @@ function filterRemovedElements(elements, toRemove) {
35403
35167
  });
35404
35168
  }
35405
35169
  function isEmptyConstructor(node) {
35406
- return import_typescript108.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
35170
+ return import_typescript106.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
35407
35171
  }
35408
35172
  function addRemovalTodos(nodes, tracker) {
35409
35173
  for (const node of nodes) {
@@ -35411,19 +35175,19 @@ function addRemovalTodos(nodes, tracker) {
35411
35175
  }
35412
35176
  }
35413
35177
  function findNgModuleDecorator(node, typeChecker) {
35414
- const decorators = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []);
35178
+ const decorators = getAngularDecorators(typeChecker, import_typescript106.default.getDecorators(node) || []);
35415
35179
  return decorators.find((decorator) => decorator.name === "NgModule") || null;
35416
35180
  }
35417
35181
 
35418
35182
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
35419
35183
  var import_path7 = require("path");
35420
- var import_typescript111 = __toESM(require("typescript"), 1);
35184
+ var import_typescript109 = __toESM(require("typescript"), 1);
35421
35185
 
35422
35186
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
35423
- var import_typescript110 = __toESM(require("typescript"), 1);
35187
+ var import_typescript108 = __toESM(require("typescript"), 1);
35424
35188
 
35425
35189
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
35426
- var import_typescript109 = __toESM(require("typescript"), 1);
35190
+ var import_typescript107 = __toESM(require("typescript"), 1);
35427
35191
  function isReferenceToImport(typeChecker, node, importSpecifier) {
35428
35192
  var _a, _b;
35429
35193
  const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
@@ -35468,7 +35232,7 @@ function convertNgModuleDeclarationToStandalone(ref, allDeclarations, tracker, t
35468
35232
  if (directiveMeta.isComponent) {
35469
35233
  const importsToAdd = getComponentImportExpressions(ref, allDeclarations, tracker, typeChecker, importRemapper);
35470
35234
  if (importsToAdd.length > 0) {
35471
- decorator = addPropertyToAngularDecorator(decorator, import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(importsToAdd)));
35235
+ decorator = addPropertyToAngularDecorator(decorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(importsToAdd)));
35472
35236
  }
35473
35237
  }
35474
35238
  tracker.replaceNode(directiveMeta.decorator, decorator);
@@ -35498,11 +35262,11 @@ function getComponentImportExpressions(ref, allDeclarations, tracker, typeChecke
35498
35262
  const identifier = tracker.addImport(ref.node.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
35499
35263
  imports.push(identifier);
35500
35264
  } else {
35501
- const identifier = import_typescript110.default.factory.createIdentifier(importLocation.symbolName);
35265
+ const identifier = import_typescript108.default.factory.createIdentifier(importLocation.symbolName);
35502
35266
  if (importLocation.isForwardReference) {
35503
35267
  const forwardRefExpression = tracker.addImport(ref.node.getSourceFile(), "forwardRef", "@angular/core");
35504
- const arrowFunction = import_typescript110.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
35505
- imports.push(import_typescript110.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
35268
+ const arrowFunction = import_typescript108.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
35269
+ imports.push(import_typescript108.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
35506
35270
  } else {
35507
35271
  imports.push(identifier);
35508
35272
  }
@@ -35527,10 +35291,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35527
35291
  const declarationsToCopy = [];
35528
35292
  const properties = [];
35529
35293
  const importsProp = findLiteralProperty(literal3, "imports");
35530
- if (import_typescript110.default.isPropertyAssignment(declarationsProp)) {
35531
- if (import_typescript110.default.isArrayLiteralExpression(declarationsProp.initializer)) {
35294
+ if (import_typescript108.default.isPropertyAssignment(declarationsProp)) {
35295
+ if (import_typescript108.default.isArrayLiteralExpression(declarationsProp.initializer)) {
35532
35296
  for (const el of declarationsProp.initializer.elements) {
35533
- if (import_typescript110.default.isIdentifier(el)) {
35297
+ if (import_typescript108.default.isIdentifier(el)) {
35534
35298
  const correspondingClass = findClassDeclaration(el, typeChecker);
35535
35299
  if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
35536
35300
  declarationsToCopy.push(el);
@@ -35542,11 +35306,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35542
35306
  }
35543
35307
  }
35544
35308
  } else {
35545
- declarationsToCopy.push(import_typescript110.default.factory.createSpreadElement(declarationsProp.initializer));
35309
+ declarationsToCopy.push(import_typescript108.default.factory.createSpreadElement(declarationsProp.initializer));
35546
35310
  }
35547
35311
  }
35548
35312
  if (!importsProp && declarationsToCopy.length > 0) {
35549
- properties.push(import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(declarationsToCopy)));
35313
+ properties.push(import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(declarationsToCopy)));
35550
35314
  }
35551
35315
  for (const prop of literal3.properties) {
35552
35316
  if (!isNamedPropertyAssignment(prop)) {
@@ -35555,43 +35319,43 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35555
35319
  }
35556
35320
  if (prop === declarationsProp) {
35557
35321
  if (declarationsToPreserve.length > 0) {
35558
- properties.push(import_typescript110.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript110.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
35322
+ properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript108.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
35559
35323
  }
35560
35324
  continue;
35561
35325
  }
35562
35326
  if (prop === importsProp && declarationsToCopy.length > 0) {
35563
35327
  let initializer;
35564
- if (import_typescript110.default.isArrayLiteralExpression(prop.initializer)) {
35565
- initializer = import_typescript110.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
35328
+ if (import_typescript108.default.isArrayLiteralExpression(prop.initializer)) {
35329
+ initializer = import_typescript108.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
35566
35330
  } else {
35567
- initializer = import_typescript110.default.factory.createArrayLiteralExpression([import_typescript110.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
35331
+ initializer = import_typescript108.default.factory.createArrayLiteralExpression([import_typescript108.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
35568
35332
  }
35569
- properties.push(import_typescript110.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
35333
+ properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
35570
35334
  continue;
35571
35335
  }
35572
35336
  properties.push(prop);
35573
35337
  }
35574
- tracker.replaceNode(literal3, import_typescript110.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript110.default.EmitHint.Expression);
35338
+ tracker.replaceNode(literal3, import_typescript108.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript108.default.EmitHint.Expression);
35575
35339
  }
35576
35340
  function addStandaloneToDecorator(node) {
35577
- return addPropertyToAngularDecorator(node, import_typescript110.default.factory.createPropertyAssignment("standalone", import_typescript110.default.factory.createToken(import_typescript110.default.SyntaxKind.TrueKeyword)));
35341
+ return addPropertyToAngularDecorator(node, import_typescript108.default.factory.createPropertyAssignment("standalone", import_typescript108.default.factory.createToken(import_typescript108.default.SyntaxKind.TrueKeyword)));
35578
35342
  }
35579
35343
  function addPropertyToAngularDecorator(node, property) {
35580
- if (!import_typescript110.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
35344
+ if (!import_typescript108.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
35581
35345
  return node;
35582
35346
  }
35583
35347
  let literalProperties;
35584
35348
  if (node.expression.arguments.length === 0) {
35585
35349
  literalProperties = [property];
35586
- } else if (import_typescript110.default.isObjectLiteralExpression(node.expression.arguments[0])) {
35350
+ } else if (import_typescript108.default.isObjectLiteralExpression(node.expression.arguments[0])) {
35587
35351
  literalProperties = [...node.expression.arguments[0].properties, property];
35588
35352
  } else {
35589
35353
  return node;
35590
35354
  }
35591
- 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)]));
35355
+ return import_typescript108.default.factory.createDecorator(import_typescript108.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript108.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
35592
35356
  }
35593
35357
  function isNamedPropertyAssignment(node) {
35594
- return import_typescript110.default.isPropertyAssignment(node) && node.name && import_typescript110.default.isIdentifier(node.name);
35358
+ return import_typescript108.default.isPropertyAssignment(node) && node.name && import_typescript108.default.isIdentifier(node.name);
35595
35359
  }
35596
35360
  function findImportLocation(target, inComponent, importMode, typeChecker) {
35597
35361
  const importLocations = typeChecker.getPotentialImportsFor(target, inComponent.node, importMode);
@@ -35611,14 +35375,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
35611
35375
  return firstSameFileImport || firstModuleImport || importLocations[0] || null;
35612
35376
  }
35613
35377
  function hasNgModuleMetadataElements(node) {
35614
- return import_typescript110.default.isPropertyAssignment(node) && (!import_typescript110.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
35378
+ return import_typescript108.default.isPropertyAssignment(node) && (!import_typescript108.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
35615
35379
  }
35616
35380
  function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
35617
35381
  const modules = [];
35618
35382
  if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
35619
35383
  sourceFile.forEachChild(function walk(node) {
35620
- if (import_typescript110.default.isClassDeclaration(node)) {
35621
- const decorator = getAngularDecorators(typeChecker, import_typescript110.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
35384
+ if (import_typescript108.default.isClassDeclaration(node)) {
35385
+ const decorator = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
35622
35386
  const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
35623
35387
  if (metadata) {
35624
35388
  const declarations = findLiteralProperty(metadata, "declarations");
@@ -35638,8 +35402,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
35638
35402
  const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
35639
35403
  if (testBedImport || catalystImport) {
35640
35404
  sourceFile.forEachChild(function walk(node) {
35641
- if (import_typescript110.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript110.default.isObjectLiteralExpression(node.arguments[0])) {
35642
- 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)) {
35405
+ if (import_typescript108.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript108.default.isObjectLiteralExpression(node.arguments[0])) {
35406
+ if (testBedImport && import_typescript108.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript108.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
35643
35407
  testObjects.push(node.arguments[0]);
35644
35408
  }
35645
35409
  }
@@ -35654,7 +35418,7 @@ function findTemplateDependencies(ref, typeChecker) {
35654
35418
  const usedPipes = typeChecker.getUsedPipes(ref.node);
35655
35419
  if (usedDirectives !== null) {
35656
35420
  for (const dir of usedDirectives) {
35657
- if (import_typescript110.default.isClassDeclaration(dir.ref.node)) {
35421
+ if (import_typescript108.default.isClassDeclaration(dir.ref.node)) {
35658
35422
  results.push(dir.ref);
35659
35423
  }
35660
35424
  }
@@ -35662,7 +35426,7 @@ function findTemplateDependencies(ref, typeChecker) {
35662
35426
  if (usedPipes !== null) {
35663
35427
  const potentialPipes = typeChecker.getPotentialPipes(ref.node);
35664
35428
  for (const pipe of potentialPipes) {
35665
- if (import_typescript110.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
35429
+ if (import_typescript108.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
35666
35430
  results.push(pipe.ref);
35667
35431
  }
35668
35432
  }
@@ -35676,12 +35440,12 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
35676
35440
  if (!bootstrapProp) {
35677
35441
  return declarations;
35678
35442
  }
35679
- if (!import_typescript110.default.isPropertyAssignment(bootstrapProp) || !import_typescript110.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
35443
+ if (!import_typescript108.default.isPropertyAssignment(bootstrapProp) || !import_typescript108.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
35680
35444
  return [];
35681
35445
  }
35682
35446
  const bootstrappedClasses = /* @__PURE__ */ new Set();
35683
35447
  for (const el of bootstrapProp.initializer.elements) {
35684
- const referencedClass = import_typescript110.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
35448
+ const referencedClass = import_typescript108.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
35685
35449
  if (referencedClass) {
35686
35450
  bootstrappedClasses.add(referencedClass);
35687
35451
  } else {
@@ -35692,13 +35456,13 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
35692
35456
  }
35693
35457
  function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
35694
35458
  const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
35695
- return metadata ? metadata.declarations.filter((decl) => import_typescript110.default.isClassDeclaration(decl.node)) : [];
35459
+ return metadata ? metadata.declarations.filter((decl) => import_typescript108.default.isClassDeclaration(decl.node)) : [];
35696
35460
  }
35697
35461
  function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
35698
35462
  const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
35699
35463
  const allDeclarations = declarationsOutsideOfTestFiles.map((ref) => ref.node);
35700
35464
  for (const decorator of decorators) {
35701
- const closestClass = closestNode(decorator.node, import_typescript110.default.isClassDeclaration);
35465
+ const closestClass = closestNode(decorator.node, import_typescript108.default.isClassDeclaration);
35702
35466
  if (decorator.name === "Pipe" || decorator.name === "Directive") {
35703
35467
  tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
35704
35468
  if (closestClass) {
@@ -35711,7 +35475,7 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
35711
35475
  allDeclarations.push(closestClass);
35712
35476
  }
35713
35477
  if (importsToAdd && importsToAdd.size > 0) {
35714
- tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
35478
+ tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
35715
35479
  } else {
35716
35480
  tracker.replaceNode(decorator.node, newDecorator);
35717
35481
  }
@@ -35732,13 +35496,13 @@ function analyzeTestingModules(testObjects, typeChecker) {
35732
35496
  }
35733
35497
  const importsProp = findLiteralProperty(obj, "imports");
35734
35498
  const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
35735
- return !import_typescript110.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
35499
+ return !import_typescript108.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
35736
35500
  }) : null;
35737
35501
  for (const decl of declarations) {
35738
35502
  if (seenDeclarations.has(decl)) {
35739
35503
  continue;
35740
35504
  }
35741
- const [decorator] = getAngularDecorators(typeChecker, import_typescript110.default.getDecorators(decl) || []);
35505
+ const [decorator] = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(decl) || []);
35742
35506
  if (decorator) {
35743
35507
  seenDeclarations.add(decl);
35744
35508
  decorators.push(decorator);
@@ -35769,7 +35533,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
35769
35533
  return results;
35770
35534
  }
35771
35535
  function extractMetadataLiteral(decorator) {
35772
- 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;
35536
+ return import_typescript108.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript108.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
35773
35537
  }
35774
35538
  function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
35775
35539
  if (declarationsInMigration.includes(node)) {
@@ -35790,7 +35554,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
35790
35554
  const allDeclarations = [];
35791
35555
  for (const sourceFile of sourceFiles) {
35792
35556
  sourceFile.forEachChild(function walk(node) {
35793
- if (import_typescript111.default.isCallExpression(node) && import_typescript111.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
35557
+ if (import_typescript109.default.isCallExpression(node) && import_typescript109.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
35794
35558
  const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
35795
35559
  if (call) {
35796
35560
  bootstrapCalls.push(call);
@@ -35811,24 +35575,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
35811
35575
  return tracker.recordChanges();
35812
35576
  }
35813
35577
  function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
35814
- if (call.arguments.length === 0 || !import_typescript111.default.isIdentifier(call.arguments[0])) {
35578
+ if (call.arguments.length === 0 || !import_typescript109.default.isIdentifier(call.arguments[0])) {
35815
35579
  return null;
35816
35580
  }
35817
35581
  const declaration = findClassDeclaration(call.arguments[0], typeChecker);
35818
35582
  if (!declaration) {
35819
35583
  return null;
35820
35584
  }
35821
- const decorator = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
35822
- if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript111.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
35585
+ const decorator = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
35586
+ if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript109.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
35823
35587
  return null;
35824
35588
  }
35825
35589
  const metadata = decorator.node.expression.arguments[0];
35826
35590
  const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
35827
- 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])) {
35591
+ if (!bootstrapProp || !import_typescript109.default.isPropertyAssignment(bootstrapProp) || !import_typescript109.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript109.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
35828
35592
  return null;
35829
35593
  }
35830
35594
  const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
35831
- if (component && component.name && import_typescript111.default.isIdentifier(component.name)) {
35595
+ if (component && component.name && import_typescript109.default.isIdentifier(component.name)) {
35832
35596
  return {
35833
35597
  module: declaration,
35834
35598
  metadata,
@@ -35850,16 +35614,16 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
35850
35614
  let nodeLookup = null;
35851
35615
  tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
35852
35616
  tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
35853
- if (providers && import_typescript111.default.isPropertyAssignment(providers)) {
35617
+ if (providers && import_typescript109.default.isPropertyAssignment(providers)) {
35854
35618
  nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
35855
- if (import_typescript111.default.isArrayLiteralExpression(providers.initializer)) {
35619
+ if (import_typescript109.default.isArrayLiteralExpression(providers.initializer)) {
35856
35620
  providersInNewCall.push(...providers.initializer.elements);
35857
35621
  } else {
35858
- providersInNewCall.push(import_typescript111.default.factory.createSpreadElement(providers.initializer));
35622
+ providersInNewCall.push(import_typescript109.default.factory.createSpreadElement(providers.initializer));
35859
35623
  }
35860
35624
  addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
35861
35625
  }
35862
- if (imports && import_typescript111.default.isPropertyAssignment(imports)) {
35626
+ if (imports && import_typescript109.default.isPropertyAssignment(imports)) {
35863
35627
  nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
35864
35628
  migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
35865
35629
  }
@@ -35870,7 +35634,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
35870
35634
  if (transformedNode === node) {
35871
35635
  text += transformedNode.getText() + "\n";
35872
35636
  } else {
35873
- text += printer.printNode(import_typescript111.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
35637
+ text += printer.printNode(import_typescript109.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
35874
35638
  }
35875
35639
  });
35876
35640
  text += "\n";
@@ -35887,30 +35651,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
35887
35651
  const combinedProviders = [];
35888
35652
  if (modules.length > 0) {
35889
35653
  const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
35890
- combinedProviders.push(import_typescript111.default.factory.createCallExpression(importProvidersExpression, [], modules));
35654
+ combinedProviders.push(import_typescript109.default.factory.createCallExpression(importProvidersExpression, [], modules));
35891
35655
  }
35892
35656
  combinedProviders.push(...providers);
35893
- const initializer = remapDynamicImports(sourceFile.fileName, import_typescript111.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
35894
- args.push(import_typescript111.default.factory.createObjectLiteralExpression([import_typescript111.default.factory.createPropertyAssignment("providers", initializer)], true));
35657
+ const initializer = remapDynamicImports(sourceFile.fileName, import_typescript109.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
35658
+ args.push(import_typescript109.default.factory.createObjectLiteralExpression([import_typescript109.default.factory.createPropertyAssignment("providers", initializer)], true));
35895
35659
  }
35896
35660
  tracker.replaceNode(
35897
35661
  analysis.call,
35898
- import_typescript111.default.factory.createCallExpression(bootstrapExpression, [], args),
35662
+ import_typescript109.default.factory.createCallExpression(bootstrapExpression, [], args),
35899
35663
  void 0,
35900
35664
  analysis.metadata.getSourceFile()
35901
35665
  );
35902
35666
  }
35903
35667
  function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
35904
- if (!import_typescript111.default.isArrayLiteralExpression(imports.initializer)) {
35668
+ if (!import_typescript109.default.isArrayLiteralExpression(imports.initializer)) {
35905
35669
  importsForNewCall.push(imports.initializer);
35906
35670
  return;
35907
35671
  }
35908
35672
  for (const element of imports.initializer.elements) {
35909
- 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)) {
35673
+ if (import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
35910
35674
  const options = element.arguments[1];
35911
35675
  const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
35912
35676
  if (features !== null) {
35913
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
35677
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
35914
35678
  addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
35915
35679
  if (options) {
35916
35680
  addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
@@ -35918,30 +35682,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
35918
35682
  continue;
35919
35683
  }
35920
35684
  }
35921
- if (import_typescript111.default.isIdentifier(element)) {
35685
+ if (import_typescript109.default.isIdentifier(element)) {
35922
35686
  const animationsModule = "platform-browser/animations";
35923
35687
  const animationsImport = `@angular/${animationsModule}`;
35924
35688
  if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
35925
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
35689
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
35926
35690
  continue;
35927
35691
  }
35928
35692
  if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
35929
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
35693
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
35930
35694
  continue;
35931
35695
  }
35932
35696
  const httpClientModule = "common/http";
35933
35697
  const httpClientImport = `@angular/${httpClientModule}`;
35934
35698
  if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
35935
35699
  const callArgs = [
35936
- import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
35700
+ import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
35937
35701
  ];
35938
- providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
35702
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
35939
35703
  continue;
35940
35704
  }
35941
35705
  }
35942
- const target = import_typescript111.default.isCallExpression(element) && import_typescript111.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
35706
+ const target = import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
35943
35707
  const classDeclaration = findClassDeclaration(target, typeChecker);
35944
- const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(classDeclaration) || []) : void 0;
35708
+ const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(classDeclaration) || []) : void 0;
35945
35709
  if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
35946
35710
  importsForNewCall.push(element);
35947
35711
  addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
@@ -35949,7 +35713,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
35949
35713
  }
35950
35714
  }
35951
35715
  function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35952
- if (!import_typescript111.default.isObjectLiteralExpression(options)) {
35716
+ if (!import_typescript109.default.isObjectLiteralExpression(options)) {
35953
35717
  return null;
35954
35718
  }
35955
35719
  const featureExpressions = [];
@@ -35957,7 +35721,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35957
35721
  const inMemoryScrollingOptions = [];
35958
35722
  const features = new UniqueItemTracker();
35959
35723
  for (const prop of options.properties) {
35960
- if (!import_typescript111.default.isPropertyAssignment(prop) || !import_typescript111.default.isIdentifier(prop.name) && !import_typescript111.default.isStringLiteralLike(prop.name)) {
35724
+ if (!import_typescript109.default.isPropertyAssignment(prop) || !import_typescript109.default.isIdentifier(prop.name) && !import_typescript109.default.isStringLiteralLike(prop.name)) {
35961
35725
  return null;
35962
35726
  }
35963
35727
  switch (prop.name.text) {
@@ -35965,12 +35729,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35965
35729
  features.track("withPreloading", prop.initializer);
35966
35730
  break;
35967
35731
  case "enableTracing":
35968
- if (prop.initializer.kind === import_typescript111.default.SyntaxKind.TrueKeyword) {
35732
+ if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
35969
35733
  features.track("withDebugTracing", null);
35970
35734
  }
35971
35735
  break;
35972
35736
  case "initialNavigation":
35973
- if (!import_typescript111.default.isStringLiteralLike(prop.initializer)) {
35737
+ if (!import_typescript109.default.isStringLiteralLike(prop.initializer)) {
35974
35738
  return null;
35975
35739
  }
35976
35740
  if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
@@ -35980,7 +35744,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35980
35744
  }
35981
35745
  break;
35982
35746
  case "useHash":
35983
- if (prop.initializer.kind === import_typescript111.default.SyntaxKind.TrueKeyword) {
35747
+ if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
35984
35748
  features.track("withHashLocation", null);
35985
35749
  }
35986
35750
  break;
@@ -35997,10 +35761,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35997
35761
  }
35998
35762
  }
35999
35763
  if (inMemoryScrollingOptions.length > 0) {
36000
- features.track("withInMemoryScrolling", import_typescript111.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
35764
+ features.track("withInMemoryScrolling", import_typescript109.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
36001
35765
  }
36002
35766
  if (configOptions.length > 0) {
36003
- features.track("withRouterConfig", import_typescript111.default.factory.createObjectLiteralExpression(configOptions));
35767
+ features.track("withRouterConfig", import_typescript109.default.factory.createObjectLiteralExpression(configOptions));
36004
35768
  }
36005
35769
  for (const [feature, featureArgs] of features.getEntries()) {
36006
35770
  const callArgs = [];
@@ -36009,26 +35773,26 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
36009
35773
  callArgs.push(arg);
36010
35774
  }
36011
35775
  });
36012
- featureExpressions.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
35776
+ featureExpressions.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
36013
35777
  }
36014
35778
  return featureExpressions;
36015
35779
  }
36016
35780
  function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
36017
35781
  const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
36018
35782
  for (const ref of refs) {
36019
- const importSpecifier = closestOrSelf(ref, import_typescript111.default.isImportSpecifier);
36020
- const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript111.default.isImportDeclaration) : null;
36021
- if (importDeclaration && importSpecifier && import_typescript111.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
35783
+ const importSpecifier = closestOrSelf(ref, import_typescript109.default.isImportSpecifier);
35784
+ const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript109.default.isImportDeclaration) : null;
35785
+ if (importDeclaration && importSpecifier && import_typescript109.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
36022
35786
  const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
36023
35787
  const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
36024
35788
  const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
36025
35789
  tracker.addImport(targetFile, symbolName, moduleName, alias);
36026
35790
  continue;
36027
35791
  }
36028
- const variableDeclaration = closestOrSelf(ref, import_typescript111.default.isVariableDeclaration);
36029
- const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript111.default.isVariableStatement) : null;
36030
- if (variableDeclaration && variableStatement && import_typescript111.default.isIdentifier(variableDeclaration.name)) {
36031
- if (isExported3(variableStatement)) {
35792
+ const variableDeclaration = closestOrSelf(ref, import_typescript109.default.isVariableDeclaration);
35793
+ const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript109.default.isVariableStatement) : null;
35794
+ if (variableDeclaration && variableStatement && import_typescript109.default.isIdentifier(variableDeclaration.name)) {
35795
+ if (isExported(variableStatement)) {
36032
35796
  tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
36033
35797
  } else {
36034
35798
  nodesToCopy.add(variableStatement);
@@ -36037,7 +35801,7 @@ function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy,
36037
35801
  }
36038
35802
  const closestExportable = closestOrSelf(ref, isExportableDeclaration);
36039
35803
  if (closestExportable) {
36040
- if (isExported3(closestExportable) && closestExportable.name) {
35804
+ if (isExported(closestExportable) && closestExportable.name) {
36041
35805
  tracker.addImport(targetFile, closestExportable.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
36042
35806
  } else {
36043
35807
  nodesToCopy.add(closestExportable);
@@ -36068,7 +35832,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
36068
35832
  if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
36069
35833
  continue;
36070
35834
  }
36071
- if (!import_typescript111.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
35835
+ if (!import_typescript109.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
36072
35836
  traversedTopLevelNodes.add(closestTopLevel);
36073
35837
  walk(closestTopLevel);
36074
35838
  }
@@ -36089,25 +35853,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
36089
35853
  function remapDynamicImports(targetFileName, rootNode) {
36090
35854
  let hasChanged = false;
36091
35855
  const transformer = (context) => {
36092
- return (sourceFile) => import_typescript111.default.visitNode(sourceFile, function walk(node) {
36093
- 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(".")) {
35856
+ return (sourceFile) => import_typescript109.default.visitNode(sourceFile, function walk(node) {
35857
+ if (import_typescript109.default.isCallExpression(node) && node.expression.kind === import_typescript109.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript109.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
36094
35858
  hasChanged = true;
36095
35859
  return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
36096
35860
  context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
36097
35861
  ...node.arguments.slice(1)
36098
35862
  ]);
36099
35863
  }
36100
- return import_typescript111.default.visitEachChild(node, walk, context);
35864
+ return import_typescript109.default.visitEachChild(node, walk, context);
36101
35865
  });
36102
35866
  };
36103
- const result = import_typescript111.default.transform(rootNode, [transformer]).transformed[0];
35867
+ const result = import_typescript109.default.transform(rootNode, [transformer]).transformed[0];
36104
35868
  return hasChanged ? result : rootNode;
36105
35869
  }
36106
35870
  function isTopLevelStatement(node) {
36107
- return node.parent != null && import_typescript111.default.isSourceFile(node.parent);
35871
+ return node.parent != null && import_typescript109.default.isSourceFile(node.parent);
36108
35872
  }
36109
35873
  function isReferenceIdentifier(node) {
36110
- return import_typescript111.default.isIdentifier(node) && (!import_typescript111.default.isPropertyAssignment(node.parent) && !import_typescript111.default.isParameter(node.parent) || node.parent.name !== node);
35874
+ return import_typescript109.default.isIdentifier(node) && (!import_typescript109.default.isPropertyAssignment(node.parent) && !import_typescript109.default.isParameter(node.parent) || node.parent.name !== node);
36111
35875
  }
36112
35876
  function isOutsideRange(excludeStart, excludeEnd, start, end) {
36113
35877
  return start < excludeStart && end < excludeStart || start > excludeEnd;
@@ -36115,16 +35879,16 @@ function isOutsideRange(excludeStart, excludeEnd, start, end) {
36115
35879
  function remapRelativeImport(targetFileName, specifier) {
36116
35880
  return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
36117
35881
  }
36118
- function isExported3(node) {
36119
- return import_typescript111.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript111.default.SyntaxKind.ExportKeyword) : false;
35882
+ function isExported(node) {
35883
+ return import_typescript109.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript109.default.SyntaxKind.ExportKeyword) : false;
36120
35884
  }
36121
35885
  function isExportableDeclaration(node) {
36122
- 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);
35886
+ return import_typescript109.default.isEnumDeclaration(node) || import_typescript109.default.isClassDeclaration(node) || import_typescript109.default.isFunctionDeclaration(node) || import_typescript109.default.isInterfaceDeclaration(node) || import_typescript109.default.isTypeAliasDeclaration(node);
36123
35887
  }
36124
35888
  function getLastImportEnd(sourceFile) {
36125
35889
  let index = 0;
36126
35890
  for (const statement of sourceFile.statements) {
36127
- if (import_typescript111.default.isImportDeclaration(statement)) {
35891
+ if (import_typescript109.default.isImportDeclaration(statement)) {
36128
35892
  index = Math.max(index, statement.getEnd());
36129
35893
  } else {
36130
35894
  break;
@@ -36172,7 +35936,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
36172
35936
  });
36173
35937
  const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
36174
35938
  const program = createProgram({ rootNames, host, options, oldProgram });
36175
- const printer = import_typescript112.default.createPrinter();
35939
+ const printer = import_typescript110.default.createPrinter();
36176
35940
  if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
36177
35941
  throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
36178
35942
  }
@@ -36230,5 +35994,4 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
36230
35994
  * Use of this source code is governed by an MIT-style license that can be
36231
35995
  * found in the LICENSE file at https://angular.io/license
36232
35996
  */
36233
- // Closure Compiler ignores @suppress and similar if the comment contains @license.
36234
35997
  //# sourceMappingURL=bundle.js.map