@angular/compiler-cli 13.0.0-rc.3 → 13.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/bundles/index.js +857 -897
  2. package/bundles/index.js.map +2 -2
  3. package/bundles/linker/babel/index.js +67 -67
  4. package/bundles/linker/babel/index.js.map +1 -1
  5. package/bundles/linker/index.js +59 -59
  6. package/bundles/linker/index.js.map +1 -1
  7. package/bundles/ngcc/index.js +1256 -1225
  8. package/bundles/ngcc/index.js.map +2 -2
  9. package/bundles/ngcc/main-ngcc.js +1257 -1226
  10. package/bundles/ngcc/main-ngcc.js.map +2 -2
  11. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +761 -743
  12. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
  13. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +8 -8
  14. package/bundles/private/bazel.js +2 -2
  15. package/bundles/private/localize.js +14 -14
  16. package/bundles/private/migrations.js +84 -64
  17. package/bundles/private/migrations.js.map +1 -1
  18. package/bundles/private/tooling.js +11 -11
  19. package/bundles/private/tooling.js.map +1 -1
  20. package/bundles/src/bin/ng_xi18n.js +867 -907
  21. package/bundles/src/bin/ng_xi18n.js.map +2 -2
  22. package/bundles/src/bin/ngc.js +865 -905
  23. package/bundles/src/bin/ngc.js.map +2 -2
  24. package/bundles_metadata.json +1 -1
  25. package/linker/src/file_linker/partial_linkers/util.d.ts +2 -2
  26. package/linker/src/file_linker/translator.d.ts +1 -1
  27. package/ngcc/src/host/delegating_host.d.ts +1 -2
  28. package/ngcc/src/host/esm2015_host.d.ts +1 -8
  29. package/ngcc/src/host/ngcc_host.d.ts +0 -13
  30. package/ngcc/src/host/umd_host.d.ts +3 -0
  31. package/ngcc/src/packages/build_marker.d.ts +1 -1
  32. package/ngcc/src/packages/entry_point.d.ts +5 -0
  33. package/ngcc/src/packages/transformer.d.ts +0 -2
  34. package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +1 -1
  35. package/ngcc/src/rendering/esm_rendering_formatter.d.ts +1 -5
  36. package/ngcc/src/rendering/renderer.d.ts +2 -3
  37. package/ngcc/src/rendering/rendering_formatter.d.ts +0 -2
  38. package/ngcc/src/utils.d.ts +0 -7
  39. package/package.json +2 -2
  40. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +5 -0
  41. package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
  42. package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
  43. package/ngcc/src/analysis/switch_marker_analyzer.d.ts +0 -35
  44. package/src/ngtsc/switch/index.d.ts +0 -9
  45. package/src/ngtsc/switch/src/switch.d.ts +0 -10
@@ -30,16 +30,16 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
30
30
  throw new Error('Dynamic require of "' + x + '" is not supported');
31
31
  });
32
32
 
33
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/command_line_options.mjs
33
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/command_line_options.mjs
34
34
  import yargs from "yargs";
35
35
 
36
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
36
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
37
37
  import {
38
38
  EOL
39
39
  } from "os";
40
40
  import ts from "typescript";
41
41
 
42
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
42
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
43
43
  var InvalidFileSystem = class {
44
44
  exists(path7) {
45
45
  throw makeError();
@@ -127,13 +127,13 @@ function makeError() {
127
127
  return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
128
128
  }
129
129
 
130
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
130
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
131
131
  var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
132
132
  function stripExtension(path7) {
133
133
  return path7.replace(TS_DTS_JS_EXTENSION, "");
134
134
  }
135
135
 
136
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
136
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
137
137
  var fs = new InvalidFileSystem();
138
138
  function getFileSystem() {
139
139
  return fs;
@@ -174,7 +174,7 @@ function toRelativeImport(relativePath) {
174
174
  return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
175
175
  }
176
176
 
177
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
177
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
178
178
  var NgtscCompilerHost = class {
179
179
  constructor(fs5, options = {}) {
180
180
  this.fs = fs5;
@@ -227,7 +227,7 @@ var NgtscCompilerHost = class {
227
227
  }
228
228
  };
229
229
 
230
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
230
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
231
231
  var LogicalProjectPath = {
232
232
  relativePathBetween: function(from, to) {
233
233
  const relativePath = relative(dirname(resolve(from)), resolve(to));
@@ -273,7 +273,7 @@ function isWithinBasePath(base, path7) {
273
273
  return isLocalRelativePath(relative(base, path7));
274
274
  }
275
275
 
276
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
276
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
277
277
  import {
278
278
  copyFileSync,
279
279
  existsSync,
@@ -418,7 +418,7 @@ function toggleCase(str) {
418
418
  return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
419
419
  }
420
420
 
421
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
421
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
422
422
  var LogLevel;
423
423
  (function(LogLevel2) {
424
424
  LogLevel2[LogLevel2["debug"] = 0] = "debug";
@@ -427,7 +427,7 @@ var LogLevel;
427
427
  LogLevel2[LogLevel2["error"] = 3] = "error";
428
428
  })(LogLevel || (LogLevel = {}));
429
429
 
430
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
430
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
431
431
  var RESET = "";
432
432
  var RED = "";
433
433
  var YELLOW = "";
@@ -457,7 +457,7 @@ var ConsoleLogger = class {
457
457
  }
458
458
  };
459
459
 
460
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/command_line_options.mjs
460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/command_line_options.mjs
461
461
  function parseCommandLineOptions(args) {
462
462
  var _a;
463
463
  const options = yargs(args).option("s", {
@@ -547,16 +547,16 @@ function parseCommandLineOptions(args) {
547
547
  };
548
548
  }
549
549
 
550
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
550
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
551
551
  import {
552
552
  cpus
553
553
  } from "os";
554
554
 
555
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
555
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
556
556
  import { isSyntaxError as isSyntaxError2 } from "@angular/compiler";
557
- import ts86 from "typescript";
557
+ import ts85 from "typescript";
558
558
 
559
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
559
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
560
560
  var ErrorCode;
561
561
  (function(ErrorCode2) {
562
562
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -607,7 +607,7 @@ var ErrorCode;
607
607
  ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
608
608
  })(ErrorCode || (ErrorCode = {}));
609
609
 
610
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
610
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
611
611
  var COMPILER_ERRORS_WITH_GUIDES = new Set([
612
612
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
613
613
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -618,10 +618,10 @@ var COMPILER_ERRORS_WITH_GUIDES = new Set([
618
618
  ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
619
619
  ]);
620
620
 
621
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
621
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
622
622
  import ts2 from "typescript";
623
623
 
624
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
624
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
625
625
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
626
626
  function replaceTsWithNgInErrors(errors) {
627
627
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -630,7 +630,7 @@ function ngErrorCode(code) {
630
630
  return parseInt("-99" + code);
631
631
  }
632
632
 
633
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
633
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
634
634
  var FatalDiagnosticError = class {
635
635
  constructor(code, node, message, relatedInformation) {
636
636
  this.code = code;
@@ -670,7 +670,7 @@ function isFatalDiagnosticError(err) {
670
670
  return err._isFatalDiagnosticError === true;
671
671
  }
672
672
 
673
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
673
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
674
674
  var UNKNOWN_ERROR_CODE = 500;
675
675
  var EmitFlags;
676
676
  (function(EmitFlags2) {
@@ -683,7 +683,7 @@ var EmitFlags;
683
683
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
684
684
  })(EmitFlags || (EmitFlags = {}));
685
685
 
686
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
686
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
687
687
  import { collectExternalReferences, syntaxError as syntaxError2, TypeScriptEmitter } from "@angular/compiler";
688
688
  import fs3 from "fs";
689
689
  import {
@@ -696,18 +696,18 @@ import {
696
696
  } from "path";
697
697
  import ts9 from "typescript";
698
698
 
699
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/metadata/collector.mjs
699
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/metadata/collector.mjs
700
700
  import ts5 from "typescript";
701
701
 
702
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/metadata/evaluator.mjs
702
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/metadata/evaluator.mjs
703
703
  import ts3 from "typescript";
704
704
  var spreadElementSyntaxKind = ts3.SyntaxKind.SpreadElement || ts3.SyntaxKind.SpreadElementExpression;
705
705
  var empty = ts3.createNodeArray();
706
706
 
707
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/metadata/symbols.mjs
707
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/metadata/symbols.mjs
708
708
  import ts4 from "typescript";
709
709
 
710
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/metadata/bundle_index_host.mjs
710
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/metadata/bundle_index_host.mjs
711
711
  import {
712
712
  basename as basename4,
713
713
  dirname as dirname4,
@@ -716,7 +716,7 @@ import {
716
716
  } from "path";
717
717
  import ts7 from "typescript";
718
718
 
719
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/metadata/bundler.mjs
719
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/metadata/bundler.mjs
720
720
  import {
721
721
  basename as basename3,
722
722
  dirname as dirname3,
@@ -726,39 +726,39 @@ import {
726
726
  } from "path";
727
727
  import ts6 from "typescript";
728
728
 
729
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
729
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
730
730
  import { syntaxError } from "@angular/compiler";
731
731
  import {
732
732
  relative as relative3
733
733
  } from "path";
734
734
  import ts8 from "typescript";
735
735
 
736
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
736
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
737
737
  import { core, createAotCompiler, getMissingNgModuleMetadataErrorData, getParseErrors, isFormattedError, isSyntaxError } from "@angular/compiler";
738
738
  import {
739
739
  readFileSync as readFileSync2
740
740
  } from "fs";
741
741
  import * as path6 from "path";
742
- import ts85 from "typescript";
742
+ import ts84 from "typescript";
743
743
 
744
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/diagnostics/translate_diagnostics.mjs
744
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/diagnostics/translate_diagnostics.mjs
745
745
  import ts10 from "typescript";
746
746
 
747
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
748
- import ts73 from "typescript";
747
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
748
+ import ts72 from "typescript";
749
749
 
750
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
750
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
751
751
  import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DomElementSchemaRegistry, ExternalExpr as ExternalExpr7, FactoryTarget as FactoryTarget3, InterpolationConfig, makeBindingParser as makeBindingParser2, ParseSourceFile as ParseSourceFile2, parseTemplate, R3TargetBinder, SelectorMatcher, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
752
752
  import ts39 from "typescript";
753
753
 
754
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
754
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
755
755
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
756
756
 
757
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
757
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
758
758
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
759
759
  import ts13 from "typescript";
760
760
 
761
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
761
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
762
762
  import ts11 from "typescript";
763
763
  var D_TS = /\.d\.ts$/i;
764
764
  function isSymbolWithValueDeclaration(symbol) {
@@ -826,7 +826,7 @@ function isAssignment(node) {
826
826
  return ts11.isBinaryExpression(node) && node.operatorToken.kind === ts11.SyntaxKind.EqualsToken;
827
827
  }
828
828
 
829
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
829
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
830
830
  import ts12 from "typescript";
831
831
  function findExportedNameOfNode(target, file, reflector) {
832
832
  const exports = reflector.getExportsOfModule(file);
@@ -850,7 +850,7 @@ function findExportedNameOfNode(target, file, reflector) {
850
850
  return foundExportName;
851
851
  }
852
852
 
853
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
853
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
854
854
  var ImportFlags;
855
855
  (function(ImportFlags2) {
856
856
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -980,7 +980,7 @@ var LogicalProjectStrategy = class {
980
980
  }
981
981
  };
982
982
 
983
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
983
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
984
984
  var PrivateExportAliasingHost = class {
985
985
  constructor(host) {
986
986
  this.host = host;
@@ -1010,13 +1010,13 @@ var PrivateExportAliasingHost = class {
1010
1010
  }
1011
1011
  };
1012
1012
 
1013
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1013
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1014
1014
  function relativePathBetween(from, to) {
1015
1015
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1016
1016
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
1017
1017
  }
1018
1018
 
1019
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1019
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1020
1020
  var NoopImportRewriter = class {
1021
1021
  shouldImportSymbol(symbol, specifier) {
1022
1022
  return true;
@@ -1074,14 +1074,14 @@ function validateAndRewriteCoreSymbol(name) {
1074
1074
  return CORE_SUPPORTED_SYMBOLS.get(name);
1075
1075
  }
1076
1076
 
1077
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1077
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1078
1078
  import ts14 from "typescript";
1079
1079
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1080
1080
  function attachDefaultImportDeclaration(expr, importDecl) {
1081
1081
  expr[DefaultImportDeclaration] = importDecl;
1082
1082
  }
1083
1083
 
1084
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1084
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1085
1085
  var Reference = class {
1086
1086
  constructor(node, bestGuessOwningModule = null) {
1087
1087
  this.node = node;
@@ -1144,7 +1144,7 @@ var Reference = class {
1144
1144
  }
1145
1145
  };
1146
1146
 
1147
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1147
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1148
1148
  var ModuleResolver = class {
1149
1149
  constructor(program, compilerOptions, host, moduleResolutionCache) {
1150
1150
  this.program = program;
@@ -1161,7 +1161,7 @@ var ModuleResolver = class {
1161
1161
  }
1162
1162
  };
1163
1163
 
1164
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
1164
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
1165
1165
  import ts15 from "typescript";
1166
1166
  var SemanticSymbol = class {
1167
1167
  constructor(decl) {
@@ -1177,13 +1177,13 @@ function getSymbolIdentifier(decl) {
1177
1177
  return decl.name.text;
1178
1178
  }
1179
1179
 
1180
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
1180
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
1181
1181
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
1182
1182
 
1183
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1183
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1184
1184
  import ts16 from "typescript";
1185
1185
 
1186
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
1186
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
1187
1187
  function isSymbolEqual(a, b) {
1188
1188
  if (a.decl === b.decl) {
1189
1189
  return true;
@@ -1233,7 +1233,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
1233
1233
  return true;
1234
1234
  }
1235
1235
 
1236
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1236
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1237
1237
  function extractSemanticTypeParameters(node) {
1238
1238
  if (!ts16.isClassDeclaration(node) || node.typeParameters === void 0) {
1239
1239
  return null;
@@ -1253,17 +1253,17 @@ function isTypeParameterEqual(a, b) {
1253
1253
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
1254
1254
  }
1255
1255
 
1256
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1256
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1257
1257
  var MetaType;
1258
1258
  (function(MetaType2) {
1259
1259
  MetaType2[MetaType2["Pipe"] = 0] = "Pipe";
1260
1260
  MetaType2[MetaType2["Directive"] = 1] = "Directive";
1261
1261
  })(MetaType || (MetaType = {}));
1262
1262
 
1263
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1263
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1264
1264
  import ts22 from "typescript";
1265
1265
 
1266
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
1266
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
1267
1267
  import ts17 from "typescript";
1268
1268
  var Decorator = {
1269
1269
  nodeForError: (decorator) => {
@@ -1298,7 +1298,7 @@ function isConcreteDeclaration(decl) {
1298
1298
  return decl.kind === 0;
1299
1299
  }
1300
1300
 
1301
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
1301
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
1302
1302
  import ts18 from "typescript";
1303
1303
  function typeToValue(typeNode, checker) {
1304
1304
  if (typeNode === null) {
@@ -1459,10 +1459,10 @@ function extractModuleName(node) {
1459
1459
  return node.moduleSpecifier.text;
1460
1460
  }
1461
1461
 
1462
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
1462
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
1463
1463
  import ts20 from "typescript";
1464
1464
 
1465
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
1465
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
1466
1466
  import ts19 from "typescript";
1467
1467
  function isNamedClassDeclaration(node) {
1468
1468
  return ts19.isClassDeclaration(node) && isIdentifier(node.name);
@@ -1477,7 +1477,7 @@ function isIdentifier(node) {
1477
1477
  return node !== void 0 && ts19.isIdentifier(node);
1478
1478
  }
1479
1479
 
1480
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
1480
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
1481
1481
  var TypeScriptReflectionHost = class {
1482
1482
  constructor(checker) {
1483
1483
  this.checker = checker;
@@ -1913,7 +1913,7 @@ function getExportedName(decl, originalId) {
1913
1913
  }
1914
1914
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
1915
1915
 
1916
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1916
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1917
1917
  var ClassPropertyMapping = class {
1918
1918
  constructor(forwardMap) {
1919
1919
  this.forwardMap = forwardMap;
@@ -1989,7 +1989,7 @@ function reverseMapFromForwardMap(forwardMap) {
1989
1989
  return reverseMap;
1990
1990
  }
1991
1991
 
1992
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1992
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1993
1993
  import ts21 from "typescript";
1994
1994
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1995
1995
  if (!ts21.isTupleTypeNode(def)) {
@@ -2156,7 +2156,7 @@ function hasInjectableFields(clazz, host) {
2156
2156
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
2157
2157
  }
2158
2158
 
2159
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2159
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2160
2160
  var DtsMetadataReader = class {
2161
2161
  constructor(checker, reflector) {
2162
2162
  this.checker = checker;
@@ -2256,7 +2256,7 @@ function readBaseClass(clazz, checker, reflector) {
2256
2256
  return null;
2257
2257
  }
2258
2258
 
2259
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
2259
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
2260
2260
  function flattenInheritedDirectiveMetadata(reader, dir) {
2261
2261
  const topMeta = reader.getDirectiveMetadata(dir);
2262
2262
  if (topMeta === null) {
@@ -2313,7 +2313,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
2313
2313
  });
2314
2314
  }
2315
2315
 
2316
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2316
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2317
2317
  var LocalMetadataRegistry = class {
2318
2318
  constructor() {
2319
2319
  this.directives = new Map();
@@ -2372,7 +2372,7 @@ var InjectableClassRegistry = class {
2372
2372
  }
2373
2373
  };
2374
2374
 
2375
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2375
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2376
2376
  var ResourceRegistry = class {
2377
2377
  constructor() {
2378
2378
  this.externalTemplateToComponentsMap = new Map();
@@ -2437,10 +2437,10 @@ var ResourceRegistry = class {
2437
2437
  }
2438
2438
  };
2439
2439
 
2440
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
2440
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
2441
2441
  import ts23 from "typescript";
2442
2442
 
2443
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
2443
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
2444
2444
  var DynamicValue = class {
2445
2445
  constructor(node, reason, code) {
2446
2446
  this.node = node;
@@ -2525,7 +2525,7 @@ var DynamicValue = class {
2525
2525
  }
2526
2526
  };
2527
2527
 
2528
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
2528
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
2529
2529
  var ResolvedModule = class {
2530
2530
  constructor(exports, evaluate) {
2531
2531
  this.exports = exports;
@@ -2555,7 +2555,7 @@ var EnumValue = class {
2555
2555
  var KnownFn = class {
2556
2556
  };
2557
2557
 
2558
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
2558
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
2559
2559
  function describeResolvedType(value, maxDepth = 1) {
2560
2560
  var _a, _b;
2561
2561
  if (value === null) {
@@ -2681,10 +2681,10 @@ function getContainerNode(node) {
2681
2681
  return node.getSourceFile();
2682
2682
  }
2683
2683
 
2684
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
2684
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
2685
2685
  import ts24 from "typescript";
2686
2686
 
2687
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
2687
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
2688
2688
  var ArraySliceBuiltinFn = class extends KnownFn {
2689
2689
  constructor(lhs) {
2690
2690
  super();
@@ -2717,6 +2717,24 @@ var ArrayConcatBuiltinFn = class extends KnownFn {
2717
2717
  return result;
2718
2718
  }
2719
2719
  };
2720
+ var StringConcatBuiltinFn = class extends KnownFn {
2721
+ constructor(lhs) {
2722
+ super();
2723
+ this.lhs = lhs;
2724
+ }
2725
+ evaluate(node, args) {
2726
+ let result = this.lhs;
2727
+ for (const arg of args) {
2728
+ const resolved = arg instanceof EnumValue ? arg.resolved : arg;
2729
+ if (typeof resolved === "string" || typeof resolved === "number" || typeof resolved === "boolean" || resolved == null) {
2730
+ result = result.concat(resolved);
2731
+ } else {
2732
+ return DynamicValue.fromUnknown(node);
2733
+ }
2734
+ }
2735
+ return result;
2736
+ }
2737
+ };
2720
2738
  var ObjectAssignBuiltinFn = class extends KnownFn {
2721
2739
  evaluate(node, args) {
2722
2740
  if (args.length === 0) {
@@ -2737,7 +2755,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
2737
2755
  }
2738
2756
  };
2739
2757
 
2740
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
2758
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
2741
2759
  var AssignHelperFn = class extends ObjectAssignBuiltinFn {
2742
2760
  };
2743
2761
  var SpreadHelperFn = class extends KnownFn {
@@ -2790,7 +2808,7 @@ var ReadHelperFn = class extends KnownFn {
2790
2808
  }
2791
2809
  };
2792
2810
 
2793
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
2811
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
2794
2812
  var jsGlobalObjectValue = new Map([["assign", new ObjectAssignBuiltinFn()]]);
2795
2813
  var assignTsHelperFn = new AssignHelperFn();
2796
2814
  var spreadTsHelperFn = new SpreadHelperFn();
@@ -2814,7 +2832,7 @@ function resolveKnownDeclaration(decl) {
2814
2832
  }
2815
2833
  }
2816
2834
 
2817
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
2835
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
2818
2836
  function literalBinaryOp(op) {
2819
2837
  return { op, literal: true };
2820
2838
  }
@@ -3106,6 +3124,8 @@ var StaticInterpreter = class {
3106
3124
  return DynamicValue.fromInvalidExpressionType(node, rhs);
3107
3125
  }
3108
3126
  return lhs[rhs];
3127
+ } else if (typeof lhs === "string" && rhs === "concat") {
3128
+ return new StringConcatBuiltinFn(lhs);
3109
3129
  } else if (lhs instanceof Reference) {
3110
3130
  const ref = lhs.node;
3111
3131
  if (this.host.isClass(ref)) {
@@ -3399,7 +3419,7 @@ function owningModule(context, override = null) {
3399
3419
  }
3400
3420
  }
3401
3421
 
3402
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
3422
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
3403
3423
  var PartialEvaluator = class {
3404
3424
  constructor(host, checker, dependencyTracker) {
3405
3425
  this.host = host;
@@ -3419,7 +3439,7 @@ var PartialEvaluator = class {
3419
3439
  }
3420
3440
  };
3421
3441
 
3422
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
3442
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
3423
3443
  var PerfPhase;
3424
3444
  (function(PerfPhase2) {
3425
3445
  PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
@@ -3484,7 +3504,7 @@ var PerfCheckpoint;
3484
3504
  PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
3485
3505
  })(PerfCheckpoint || (PerfCheckpoint = {}));
3486
3506
 
3487
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
3507
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
3488
3508
  var NoopPerfRecorder = class {
3489
3509
  eventCount() {
3490
3510
  }
@@ -3501,7 +3521,7 @@ var NoopPerfRecorder = class {
3501
3521
  };
3502
3522
  var NOOP_PERF_RECORDER = new NoopPerfRecorder();
3503
3523
 
3504
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3524
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3505
3525
  var CompilationMode;
3506
3526
  (function(CompilationMode2) {
3507
3527
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -3519,13 +3539,13 @@ var HandlerFlags;
3519
3539
  HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
3520
3540
  })(HandlerFlags || (HandlerFlags = {}));
3521
3541
 
3522
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3542
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3523
3543
  import ts25 from "typescript";
3524
3544
 
3525
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3545
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3526
3546
  import ts26 from "typescript";
3527
3547
 
3528
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3548
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3529
3549
  var TraitState;
3530
3550
  (function(TraitState2) {
3531
3551
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -3580,7 +3600,7 @@ var TraitImpl = class {
3580
3600
  }
3581
3601
  };
3582
3602
 
3583
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3603
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3584
3604
  var TraitCompiler = class {
3585
3605
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater) {
3586
3606
  this.handlers = handlers;
@@ -4017,10 +4037,10 @@ var TraitCompiler = class {
4017
4037
  }
4018
4038
  };
4019
4039
 
4020
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
4040
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
4021
4041
  import ts31 from "typescript";
4022
4042
 
4023
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
4043
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
4024
4044
  var Context = class {
4025
4045
  constructor(isStatement) {
4026
4046
  this.isStatement = isStatement;
@@ -4033,7 +4053,7 @@ var Context = class {
4033
4053
  }
4034
4054
  };
4035
4055
 
4036
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
4056
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
4037
4057
  import ts27 from "typescript";
4038
4058
  var ImportManager = class {
4039
4059
  constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
@@ -4069,7 +4089,7 @@ var ImportManager = class {
4069
4089
  }
4070
4090
  };
4071
4091
 
4072
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
4092
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
4073
4093
  import {
4074
4094
  BinaryOperator,
4075
4095
  ConditionalExpr,
@@ -4313,7 +4333,7 @@ function createRange(span) {
4313
4333
  };
4314
4334
  }
4315
4335
 
4316
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
4336
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
4317
4337
  import {
4318
4338
  BuiltinTypeName
4319
4339
  } from "@angular/compiler";
@@ -4492,7 +4512,7 @@ var TypeTranslatorVisitor = class {
4492
4512
  }
4493
4513
  };
4494
4514
 
4495
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
4515
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
4496
4516
  import ts29 from "typescript";
4497
4517
  var PureAnnotation;
4498
4518
  (function(PureAnnotation2) {
@@ -4664,15 +4684,15 @@ function attachComments(statement, leadingComments) {
4664
4684
  }
4665
4685
  }
4666
4686
 
4667
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
4687
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
4668
4688
  function translateStatement(statement, imports, options = {}) {
4669
4689
  return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
4670
4690
  }
4671
4691
 
4672
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
4692
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
4673
4693
  import ts30 from "typescript";
4674
4694
 
4675
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
4695
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
4676
4696
  var DtsTransformRegistry = class {
4677
4697
  constructor() {
4678
4698
  this.ivyDeclarationTransforms = new Map();
@@ -4723,20 +4743,20 @@ function markForEmitAsSingleLine(node) {
4723
4743
  ts31.forEachChild(node, markForEmitAsSingleLine);
4724
4744
  }
4725
4745
 
4726
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4746
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4727
4747
  import { ConstantPool } from "@angular/compiler";
4728
4748
  import ts33 from "typescript";
4729
4749
 
4730
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
4750
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
4731
4751
  import ts32 from "typescript";
4732
4752
 
4733
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4753
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4734
4754
  var NO_DECORATORS = new Set();
4735
4755
 
4736
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/diagnostics.mjs
4756
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/diagnostics.mjs
4737
4757
  import ts35 from "typescript";
4738
4758
 
4739
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/util.mjs
4759
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/util.mjs
4740
4760
  import { ExternalExpr as ExternalExpr4, LiteralExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
4741
4761
  import ts34 from "typescript";
4742
4762
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -5096,7 +5116,7 @@ function toFactoryMetadata(meta, target) {
5096
5116
  };
5097
5117
  }
5098
5118
 
5099
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/diagnostics.mjs
5119
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/diagnostics.mjs
5100
5120
  function createValueHasWrongTypeError(node, value, messageText) {
5101
5121
  var _a;
5102
5122
  let chainedMessage;
@@ -5192,11 +5212,11 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
5192
5212
  return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${dirOrComp.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @Directive decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
5193
5213
  }
5194
5214
 
5195
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
5196
- import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr5, FactoryTarget, getSafePropertyAccessString, makeBindingParser, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
5215
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
5216
+ import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr5, FactoryTarget, getSafePropertyAccessString, makeBindingParser, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
5197
5217
  import ts37 from "typescript";
5198
5218
 
5199
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/factory.mjs
5219
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/factory.mjs
5200
5220
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
5201
5221
  function compileNgFactoryDefField(metadata) {
5202
5222
  const res = compileFactoryFunction(metadata);
@@ -5207,7 +5227,7 @@ function compileDeclareFactory(metadata) {
5207
5227
  return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
5208
5228
  }
5209
5229
 
5210
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/metadata.mjs
5230
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/metadata.mjs
5211
5231
  import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
5212
5232
  import ts36 from "typescript";
5213
5233
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -5295,7 +5315,7 @@ function removeIdentifierReferences(node, name) {
5295
5315
  return result.transformed[0];
5296
5316
  }
5297
5317
 
5298
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
5318
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
5299
5319
  var EMPTY_OBJECT = {};
5300
5320
  var FIELD_DECORATORS = [
5301
5321
  "Input",
@@ -5603,17 +5623,17 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, isCore
5603
5623
  };
5604
5624
  }
5605
5625
  function extractQueryMetadata(exprNode, name, args, propertyName, reflector, evaluator) {
5606
- var _a;
5607
5626
  if (args.length === 0) {
5608
5627
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, exprNode, `@${name} must have arguments`);
5609
5628
  }
5610
5629
  const first = name === "ViewChild" || name === "ContentChild";
5611
- const node = (_a = tryUnwrapForwardRef(args[0], reflector)) != null ? _a : args[0];
5630
+ const forwardReferenceTarget = tryUnwrapForwardRef(args[0], reflector);
5631
+ const node = forwardReferenceTarget != null ? forwardReferenceTarget : args[0];
5612
5632
  const arg = evaluator.evaluate(node);
5613
5633
  let isStatic = false;
5614
5634
  let predicate = null;
5615
5635
  if (arg instanceof Reference || arg instanceof DynamicValue) {
5616
- predicate = new WrappedNodeExpr4(node);
5636
+ predicate = createMayBeForwardRefExpression(new WrappedNodeExpr4(node), forwardReferenceTarget !== null ? 2 : 0);
5617
5637
  } else if (typeof arg === "string") {
5618
5638
  predicate = [arg];
5619
5639
  } else if (isStringArrayOrDie(arg, `@${name} predicate`, node)) {
@@ -5857,7 +5877,7 @@ var QUERY_TYPES = new Set([
5857
5877
  "ViewChildren"
5858
5878
  ]);
5859
5879
 
5860
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.mjs
5880
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.mjs
5861
5881
  import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, CUSTOM_ELEMENTS_SCHEMA, ExternalExpr as ExternalExpr6, FactoryTarget as FactoryTarget2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, NO_ERRORS_SCHEMA, R3Identifiers, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
5862
5882
  import ts38 from "typescript";
5863
5883
  var NgModuleSymbol = class extends SemanticSymbol {
@@ -6291,7 +6311,7 @@ function isNgModule(node, compilation) {
6291
6311
  return !compilation.directives.some((directive) => directive.ref.node === node) && !compilation.pipes.some((pipe) => pipe.ref.node === node);
6292
6312
  }
6293
6313
 
6294
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
6314
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
6295
6315
  var EMPTY_MAP = new Map();
6296
6316
  var EMPTY_ARRAY = [];
6297
6317
  var ComponentSymbol = class extends DirectiveSymbol {
@@ -7175,8 +7195,8 @@ function checkCustomElementSelectorForErrors(selector) {
7175
7195
  return null;
7176
7196
  }
7177
7197
 
7178
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
7179
- import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createR3ProviderExpression, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
7198
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
7199
+ import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
7180
7200
  import ts40 from "typescript";
7181
7201
  var InjectableDecoratorHandler = class {
7182
7202
  constructor(reflector, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
@@ -7264,7 +7284,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
7264
7284
  type,
7265
7285
  typeArgumentCount,
7266
7286
  internalType,
7267
- providedIn: createR3ProviderExpression(new LiteralExpr3(null), false)
7287
+ providedIn: createMayBeForwardRefExpression2(new LiteralExpr3(null), 0)
7268
7288
  };
7269
7289
  } else if (decorator.args.length === 1) {
7270
7290
  const metaNode = decorator.args[0];
@@ -7272,7 +7292,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
7272
7292
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
7273
7293
  }
7274
7294
  const meta = reflectObjectLiteral(metaNode);
7275
- const providedIn = meta.has("providedIn") ? getProviderExpression(meta.get("providedIn"), reflector) : createR3ProviderExpression(new LiteralExpr3(null), false);
7295
+ const providedIn = meta.has("providedIn") ? getProviderExpression(meta.get("providedIn"), reflector) : createMayBeForwardRefExpression2(new LiteralExpr3(null), 0);
7276
7296
  let deps = void 0;
7277
7297
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
7278
7298
  const depsExpr = meta.get("deps");
@@ -7300,7 +7320,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
7300
7320
  }
7301
7321
  function getProviderExpression(expression, reflector) {
7302
7322
  const forwardRefValue = tryUnwrapForwardRef(expression, reflector);
7303
- return createR3ProviderExpression(new WrappedNodeExpr7(forwardRefValue != null ? forwardRefValue : expression), forwardRefValue !== null);
7323
+ return createMayBeForwardRefExpression2(new WrappedNodeExpr7(forwardRefValue != null ? forwardRefValue : expression), forwardRefValue !== null ? 2 : 0);
7304
7324
  }
7305
7325
  function extractInjectableCtorDeps(clazz, meta, decorator, reflector, isCore, strictCtorDeps) {
7306
7326
  if (decorator.args === null) {
@@ -7375,7 +7395,7 @@ function getDep(dep, reflector) {
7375
7395
  return meta;
7376
7396
  }
7377
7397
 
7378
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
7398
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
7379
7399
  import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
7380
7400
  import ts41 from "typescript";
7381
7401
  var PipeSymbol = class extends SemanticSymbol {
@@ -7500,7 +7520,7 @@ var PipeDecoratorHandler = class {
7500
7520
  }
7501
7521
  };
7502
7522
 
7503
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
7523
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
7504
7524
  var CycleAnalyzer = class {
7505
7525
  constructor(importGraph) {
7506
7526
  this.importGraph = importGraph;
@@ -7571,7 +7591,7 @@ var Cycle = class {
7571
7591
  }
7572
7592
  };
7573
7593
 
7574
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
7594
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
7575
7595
  import ts42 from "typescript";
7576
7596
  var ImportGraph = class {
7577
7597
  constructor(checker, perf) {
@@ -7654,13 +7674,13 @@ var Found = class {
7654
7674
  }
7655
7675
  };
7656
7676
 
7657
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
7677
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
7658
7678
  import ts43 from "typescript";
7659
7679
 
7660
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
7680
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
7661
7681
  import ts44 from "typescript";
7662
7682
 
7663
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7683
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7664
7684
  var NgOriginalFile = Symbol("NgOriginalFile");
7665
7685
  var UpdateMode;
7666
7686
  (function(UpdateMode2) {
@@ -7668,22 +7688,22 @@ var UpdateMode;
7668
7688
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
7669
7689
  })(UpdateMode || (UpdateMode = {}));
7670
7690
 
7671
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7691
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7672
7692
  import ts48 from "typescript";
7673
7693
 
7674
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7694
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7675
7695
  import ts45 from "typescript";
7676
7696
 
7677
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7697
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7678
7698
  var NgExtension = Symbol("NgExtension");
7679
7699
 
7680
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
7700
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
7681
7701
  import ts46 from "typescript";
7682
7702
 
7683
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
7703
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
7684
7704
  import ts47 from "typescript";
7685
7705
 
7686
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
7706
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
7687
7707
  var IncrementalStateKind;
7688
7708
  (function(IncrementalStateKind2) {
7689
7709
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -7691,17 +7711,17 @@ var IncrementalStateKind;
7691
7711
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
7692
7712
  })(IncrementalStateKind || (IncrementalStateKind = {}));
7693
7713
 
7694
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
7714
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
7695
7715
  var PhaseKind;
7696
7716
  (function(PhaseKind2) {
7697
7717
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
7698
7718
  PhaseKind2[PhaseKind2["TypeCheckAndEmit"] = 1] = "TypeCheckAndEmit";
7699
7719
  })(PhaseKind || (PhaseKind = {}));
7700
7720
 
7701
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
7721
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
7702
7722
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
7703
7723
 
7704
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
7724
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
7705
7725
  var IdentifierKind;
7706
7726
  (function(IdentifierKind2) {
7707
7727
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -7713,18 +7733,18 @@ var IdentifierKind;
7713
7733
  IdentifierKind2[IdentifierKind2["Variable"] = 6] = "Variable";
7714
7734
  })(IdentifierKind || (IdentifierKind = {}));
7715
7735
 
7716
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
7736
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
7717
7737
  import { ParseSourceFile as ParseSourceFile3 } from "@angular/compiler";
7718
7738
 
7719
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
7739
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
7720
7740
  import { ASTWithSource, ImplicitReceiver, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
7721
7741
 
7722
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
7742
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
7723
7743
  import ts49 from "typescript";
7724
7744
  var RESOURCE_MARKER = ".$ngresource$";
7725
7745
  var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
7726
7746
 
7727
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
7747
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
7728
7748
  var MetadataDtsModuleScopeResolver = class {
7729
7749
  constructor(dtsMetaReader, aliasingHost) {
7730
7750
  this.dtsMetaReader = dtsMetaReader;
@@ -7810,7 +7830,7 @@ var MetadataDtsModuleScopeResolver = class {
7810
7830
  }
7811
7831
  };
7812
7832
 
7813
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
7833
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
7814
7834
  import { ExternalExpr as ExternalExpr8 } from "@angular/compiler";
7815
7835
  import ts50 from "typescript";
7816
7836
  var LocalModuleScopeRegistry = class {
@@ -8118,7 +8138,7 @@ function reexportCollision(module2, refA, refB) {
8118
8138
  ]);
8119
8139
  }
8120
8140
 
8121
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
8141
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
8122
8142
  import { CssSelector as CssSelector2, SelectorMatcher as SelectorMatcher2 } from "@angular/compiler";
8123
8143
  import ts51 from "typescript";
8124
8144
  var TypeCheckScopeRegistry = class {
@@ -8179,27 +8199,24 @@ var TypeCheckScopeRegistry = class {
8179
8199
  }
8180
8200
  };
8181
8201
 
8182
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/switch/src/switch.mjs
8183
- import ts52 from "typescript";
8184
-
8185
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
8202
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
8186
8203
  import { CssSelector as CssSelector3, DomElementSchemaRegistry as DomElementSchemaRegistry3 } from "@angular/compiler";
8187
8204
 
8188
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
8205
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
8189
8206
  var OptimizeFor;
8190
8207
  (function(OptimizeFor2) {
8191
8208
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
8192
8209
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
8193
8210
  })(OptimizeFor || (OptimizeFor = {}));
8194
8211
 
8195
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
8212
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
8196
8213
  var CompletionKind;
8197
8214
  (function(CompletionKind2) {
8198
8215
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
8199
8216
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
8200
8217
  })(CompletionKind || (CompletionKind = {}));
8201
8218
 
8202
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
8219
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
8203
8220
  var SymbolKind;
8204
8221
  (function(SymbolKind2) {
8205
8222
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -8215,20 +8232,20 @@ var SymbolKind;
8215
8232
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
8216
8233
  })(SymbolKind || (SymbolKind = {}));
8217
8234
 
8218
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
8219
- import ts53 from "typescript";
8235
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
8236
+ import ts52 from "typescript";
8220
8237
 
8221
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
8238
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
8222
8239
  var TEMPLATE_ID = Symbol("ngTemplateId");
8223
8240
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
8224
8241
 
8225
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
8242
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
8226
8243
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead, PropertyWrite, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
8227
- import ts55 from "typescript";
8244
+ import ts54 from "typescript";
8228
8245
 
8229
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
8246
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
8230
8247
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
8231
- import ts54 from "typescript";
8248
+ import ts53 from "typescript";
8232
8249
  var CommentTriviaType;
8233
8250
  (function(CommentTriviaType2) {
8234
8251
  CommentTriviaType2["DIAGNOSTIC"] = "D";
@@ -8242,50 +8259,50 @@ var ExpressionIdentifier;
8242
8259
  })(ExpressionIdentifier || (ExpressionIdentifier = {}));
8243
8260
  var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
8244
8261
 
8245
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8246
- import ts69 from "typescript";
8262
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8263
+ import ts68 from "typescript";
8247
8264
 
8248
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
8265
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
8249
8266
  import { DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
8250
- import ts56 from "typescript";
8267
+ import ts55 from "typescript";
8251
8268
  var REGISTRY = new DomElementSchemaRegistry2();
8252
8269
 
8253
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
8270
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
8254
8271
  import { ExpressionType, ExternalExpr as ExternalExpr9 } from "@angular/compiler";
8255
- import ts62 from "typescript";
8272
+ import ts61 from "typescript";
8256
8273
 
8257
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
8258
- import ts57 from "typescript";
8274
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
8275
+ import ts56 from "typescript";
8259
8276
  var SAFE_TO_CAST_WITHOUT_PARENS = new Set([
8260
- ts57.SyntaxKind.ParenthesizedExpression,
8261
- ts57.SyntaxKind.Identifier,
8262
- ts57.SyntaxKind.CallExpression,
8263
- ts57.SyntaxKind.NonNullExpression,
8264
- ts57.SyntaxKind.ElementAccessExpression,
8265
- ts57.SyntaxKind.PropertyAccessExpression,
8266
- ts57.SyntaxKind.ArrayLiteralExpression,
8267
- ts57.SyntaxKind.ObjectLiteralExpression,
8268
- ts57.SyntaxKind.StringLiteral,
8269
- ts57.SyntaxKind.NumericLiteral,
8270
- ts57.SyntaxKind.TrueKeyword,
8271
- ts57.SyntaxKind.FalseKeyword,
8272
- ts57.SyntaxKind.NullKeyword,
8273
- ts57.SyntaxKind.UndefinedKeyword
8277
+ ts56.SyntaxKind.ParenthesizedExpression,
8278
+ ts56.SyntaxKind.Identifier,
8279
+ ts56.SyntaxKind.CallExpression,
8280
+ ts56.SyntaxKind.NonNullExpression,
8281
+ ts56.SyntaxKind.ElementAccessExpression,
8282
+ ts56.SyntaxKind.PropertyAccessExpression,
8283
+ ts56.SyntaxKind.ArrayLiteralExpression,
8284
+ ts56.SyntaxKind.ObjectLiteralExpression,
8285
+ ts56.SyntaxKind.StringLiteral,
8286
+ ts56.SyntaxKind.NumericLiteral,
8287
+ ts56.SyntaxKind.TrueKeyword,
8288
+ ts56.SyntaxKind.FalseKeyword,
8289
+ ts56.SyntaxKind.NullKeyword,
8290
+ ts56.SyntaxKind.UndefinedKeyword
8274
8291
  ]);
8275
8292
 
8276
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
8277
- import ts61 from "typescript";
8278
-
8279
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
8293
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
8280
8294
  import ts60 from "typescript";
8281
8295
 
8282
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
8296
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
8283
8297
  import ts59 from "typescript";
8284
8298
 
8285
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
8299
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
8286
8300
  import ts58 from "typescript";
8287
8301
 
8288
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
8302
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
8303
+ import ts57 from "typescript";
8304
+
8305
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
8289
8306
  var TcbInliningRequirement;
8290
8307
  (function(TcbInliningRequirement2) {
8291
8308
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -8293,49 +8310,49 @@ var TcbInliningRequirement;
8293
8310
  TcbInliningRequirement2[TcbInliningRequirement2["None"] = 2] = "None";
8294
8311
  })(TcbInliningRequirement || (TcbInliningRequirement = {}));
8295
8312
 
8296
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
8313
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
8297
8314
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
8298
- import ts63 from "typescript";
8315
+ import ts62 from "typescript";
8299
8316
 
8300
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
8301
- import ts64 from "typescript";
8317
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
8318
+ import ts63 from "typescript";
8302
8319
 
8303
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
8320
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
8304
8321
  import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
8305
- import ts67 from "typescript";
8322
+ import ts66 from "typescript";
8306
8323
 
8307
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
8324
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
8308
8325
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
8309
- import ts65 from "typescript";
8326
+ import ts64 from "typescript";
8310
8327
 
8311
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
8328
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
8312
8329
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
8313
- import ts66 from "typescript";
8314
- var NULL_AS_ANY = ts66.createAsExpression(ts66.createNull(), ts66.createKeywordTypeNode(ts66.SyntaxKind.AnyKeyword));
8315
- var UNDEFINED = ts66.createIdentifier("undefined");
8330
+ import ts65 from "typescript";
8331
+ var NULL_AS_ANY = ts65.createAsExpression(ts65.createNull(), ts65.createKeywordTypeNode(ts65.SyntaxKind.AnyKeyword));
8332
+ var UNDEFINED = ts65.createIdentifier("undefined");
8316
8333
  var UNARY_OPS = new Map([
8317
- ["+", ts66.SyntaxKind.PlusToken],
8318
- ["-", ts66.SyntaxKind.MinusToken]
8334
+ ["+", ts65.SyntaxKind.PlusToken],
8335
+ ["-", ts65.SyntaxKind.MinusToken]
8319
8336
  ]);
8320
8337
  var BINARY_OPS = new Map([
8321
- ["+", ts66.SyntaxKind.PlusToken],
8322
- ["-", ts66.SyntaxKind.MinusToken],
8323
- ["<", ts66.SyntaxKind.LessThanToken],
8324
- [">", ts66.SyntaxKind.GreaterThanToken],
8325
- ["<=", ts66.SyntaxKind.LessThanEqualsToken],
8326
- [">=", ts66.SyntaxKind.GreaterThanEqualsToken],
8327
- ["==", ts66.SyntaxKind.EqualsEqualsToken],
8328
- ["===", ts66.SyntaxKind.EqualsEqualsEqualsToken],
8329
- ["*", ts66.SyntaxKind.AsteriskToken],
8330
- ["/", ts66.SyntaxKind.SlashToken],
8331
- ["%", ts66.SyntaxKind.PercentToken],
8332
- ["!=", ts66.SyntaxKind.ExclamationEqualsToken],
8333
- ["!==", ts66.SyntaxKind.ExclamationEqualsEqualsToken],
8334
- ["||", ts66.SyntaxKind.BarBarToken],
8335
- ["&&", ts66.SyntaxKind.AmpersandAmpersandToken],
8336
- ["&", ts66.SyntaxKind.AmpersandToken],
8337
- ["|", ts66.SyntaxKind.BarToken],
8338
- ["??", ts66.SyntaxKind.QuestionQuestionToken]
8338
+ ["+", ts65.SyntaxKind.PlusToken],
8339
+ ["-", ts65.SyntaxKind.MinusToken],
8340
+ ["<", ts65.SyntaxKind.LessThanToken],
8341
+ [">", ts65.SyntaxKind.GreaterThanToken],
8342
+ ["<=", ts65.SyntaxKind.LessThanEqualsToken],
8343
+ [">=", ts65.SyntaxKind.GreaterThanEqualsToken],
8344
+ ["==", ts65.SyntaxKind.EqualsEqualsToken],
8345
+ ["===", ts65.SyntaxKind.EqualsEqualsEqualsToken],
8346
+ ["*", ts65.SyntaxKind.AsteriskToken],
8347
+ ["/", ts65.SyntaxKind.SlashToken],
8348
+ ["%", ts65.SyntaxKind.PercentToken],
8349
+ ["!=", ts65.SyntaxKind.ExclamationEqualsToken],
8350
+ ["!==", ts65.SyntaxKind.ExclamationEqualsEqualsToken],
8351
+ ["||", ts65.SyntaxKind.BarBarToken],
8352
+ ["&&", ts65.SyntaxKind.AmpersandAmpersandToken],
8353
+ ["&", ts65.SyntaxKind.AmpersandToken],
8354
+ ["|", ts65.SyntaxKind.BarToken],
8355
+ ["??", ts65.SyntaxKind.QuestionQuestionToken]
8339
8356
  ]);
8340
8357
  var VeSafeLhsInferenceBugDetector = class {
8341
8358
  static veWillInferAnyFor(ast) {
@@ -8408,50 +8425,50 @@ var VeSafeLhsInferenceBugDetector = class {
8408
8425
  };
8409
8426
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
8410
8427
 
8411
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
8428
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
8412
8429
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
8413
8430
 
8414
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
8431
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
8415
8432
  var TcbGenericContextBehavior;
8416
8433
  (function(TcbGenericContextBehavior2) {
8417
8434
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
8418
8435
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["CopyClassNodes"] = 1] = "CopyClassNodes";
8419
8436
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["FallbackToAny"] = 2] = "FallbackToAny";
8420
8437
  })(TcbGenericContextBehavior || (TcbGenericContextBehavior = {}));
8421
- var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts67.createNonNullExpression(ts67.createNull());
8438
+ var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts66.createNonNullExpression(ts66.createNull());
8422
8439
 
8423
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
8424
- import ts68 from "typescript";
8440
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
8441
+ import ts67 from "typescript";
8425
8442
 
8426
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8443
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8427
8444
  var InliningMode;
8428
8445
  (function(InliningMode2) {
8429
8446
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
8430
8447
  InliningMode2[InliningMode2["Error"] = 1] = "Error";
8431
8448
  })(InliningMode || (InliningMode = {}));
8432
8449
 
8433
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
8450
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
8434
8451
  import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
8435
8452
 
8436
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
8453
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
8437
8454
  import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead3, PropertyWrite as PropertyWrite3, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
8438
- import ts70 from "typescript";
8455
+ import ts69 from "typescript";
8439
8456
 
8440
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
8457
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
8441
8458
  var REGISTRY2 = new DomElementSchemaRegistry3();
8442
8459
 
8443
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
8460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
8444
8461
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
8445
- import ts71 from "typescript";
8462
+ import ts70 from "typescript";
8446
8463
 
8447
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
8464
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
8448
8465
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
8449
8466
 
8450
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
8467
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
8451
8468
  import { Binary } from "@angular/compiler";
8452
- import ts72 from "typescript";
8469
+ import ts71 from "typescript";
8453
8470
 
8454
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
8471
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
8455
8472
  var CompilationTicketKind;
8456
8473
  (function(CompilationTicketKind2) {
8457
8474
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -8459,11 +8476,11 @@ var CompilationTicketKind;
8459
8476
  CompilationTicketKind2[CompilationTicketKind2["IncrementalResource"] = 2] = "IncrementalResource";
8460
8477
  })(CompilationTicketKind || (CompilationTicketKind = {}));
8461
8478
 
8462
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
8479
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
8463
8480
  import { HtmlParser, MessageBundle } from "@angular/compiler";
8464
- import ts76 from "typescript";
8481
+ import ts75 from "typescript";
8465
8482
 
8466
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
8483
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
8467
8484
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
8468
8485
  import {
8469
8486
  relative as relative5,
@@ -8471,42 +8488,42 @@ import {
8471
8488
  sep as sep2
8472
8489
  } from "path";
8473
8490
 
8474
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
8475
- import ts74 from "typescript";
8476
- var tsVersion = ts74.version;
8477
-
8478
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
8479
- import ts75 from "typescript";
8491
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
8492
+ import ts73 from "typescript";
8493
+ var tsVersion = ts73.version;
8480
8494
 
8481
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
8482
- import ts78 from "typescript";
8495
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
8496
+ import ts74 from "typescript";
8483
8497
 
8484
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.mjs
8498
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
8485
8499
  import ts77 from "typescript";
8500
+
8501
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.mjs
8502
+ import ts76 from "typescript";
8486
8503
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
8487
8504
 
8488
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/inline_resources.mjs
8489
- import ts79 from "typescript";
8505
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/inline_resources.mjs
8506
+ import ts78 from "typescript";
8490
8507
 
8491
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/lower_expressions.mjs
8508
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/lower_expressions.mjs
8492
8509
  import { createLoweredSymbol, isLoweredSymbol } from "@angular/compiler";
8493
- import ts80 from "typescript";
8510
+ import ts79 from "typescript";
8494
8511
 
8495
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/metadata_cache.mjs
8496
- import ts81 from "typescript";
8512
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/metadata_cache.mjs
8513
+ import ts80 from "typescript";
8497
8514
 
8498
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/node_emitter_transform.mjs
8499
- import ts83 from "typescript";
8515
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/node_emitter_transform.mjs
8516
+ import ts82 from "typescript";
8500
8517
 
8501
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/node_emitter.mjs
8518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/node_emitter.mjs
8502
8519
  import { BinaryOperator as BinaryOperator2, BuiltinMethod, BuiltinVar, ClassStmt, ExternalExpr as ExternalExpr10, Statement, StmtModifier as StmtModifier2, UnaryOperator as UnaryOperator2 } from "@angular/compiler";
8503
- import ts82 from "typescript";
8520
+ import ts81 from "typescript";
8504
8521
 
8505
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/r3_metadata_transform.mjs
8522
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/r3_metadata_transform.mjs
8506
8523
  import { ClassStmt as ClassStmt2, StmtModifier as StmtModifier3 } from "@angular/compiler";
8507
- import ts84 from "typescript";
8524
+ import ts83 from "typescript";
8508
8525
 
8509
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
8526
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
8510
8527
  var VE_DISABLED_MESSAGE = `
8511
8528
  This compilation is using the View Engine compiler which is no longer supported by the Angular team
8512
8529
  and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
@@ -8520,7 +8537,7 @@ var emptyModules = {
8520
8537
  files: []
8521
8538
  };
8522
8539
 
8523
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8540
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8524
8541
  function calcProjectFileAndBasePath(project, host = getFileSystem()) {
8525
8542
  const absProject = host.resolve(project);
8526
8543
  const projectIsDir = host.lstat(absProject).isDirectory();
@@ -8533,7 +8550,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
8533
8550
  var _a;
8534
8551
  try {
8535
8552
  const fs5 = getFileSystem();
8536
- const readConfigFile = (configFile) => ts86.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
8553
+ const readConfigFile = (configFile) => ts85.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
8537
8554
  const readAngularCompilerOptions = (configFile, parentOptions = {}) => {
8538
8555
  const { config: config2, error: error3 } = readConfigFile(configFile);
8539
8556
  if (error3) {
@@ -8565,7 +8582,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
8565
8582
  basePath
8566
8583
  }, readAngularCompilerOptions(configFileName)), existingOptions);
8567
8584
  const parseConfigHost = createParseConfigHost(host, fs5);
8568
- const { options, errors, fileNames: rootNames, projectReferences } = ts86.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
8585
+ const { options, errors, fileNames: rootNames, projectReferences } = ts85.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
8569
8586
  options.enableIvy = !!((_a = options.enableIvy) != null ? _a : true);
8570
8587
  let emitFlags = EmitFlags.Default;
8571
8588
  if (!(options.skipMetadataEmit || options.flatModuleOutFile)) {
@@ -8577,7 +8594,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
8577
8594
  return { project: projectFile, rootNames, projectReferences, options, errors, emitFlags };
8578
8595
  } catch (e) {
8579
8596
  const errors = [{
8580
- category: ts86.DiagnosticCategory.Error,
8597
+ category: ts85.DiagnosticCategory.Error,
8581
8598
  messageText: e.stack,
8582
8599
  file: void 0,
8583
8600
  start: void 0,
@@ -8591,7 +8608,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
8591
8608
  function createParseConfigHost(host, fs5 = getFileSystem()) {
8592
8609
  return {
8593
8610
  fileExists: host.exists.bind(host),
8594
- readDirectory: ts86.sys.readDirectory,
8611
+ readDirectory: ts85.sys.readDirectory,
8595
8612
  readFile: host.readFile.bind(host),
8596
8613
  useCaseSensitiveFileNames: fs5.isCaseSensitive()
8597
8614
  };
@@ -8611,7 +8628,7 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs5) {
8611
8628
  }
8612
8629
  } else {
8613
8630
  const parseConfigHost = createParseConfigHost(host, fs5);
8614
- const { resolvedModule } = ts86.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts86.ModuleResolutionKind.NodeJs, resolveJsonModule: true }, parseConfigHost);
8631
+ const { resolvedModule } = ts85.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts85.ModuleResolutionKind.NodeJs, resolveJsonModule: true }, parseConfigHost);
8615
8632
  if (resolvedModule) {
8616
8633
  return absoluteFrom(resolvedModule.resolvedFileName);
8617
8634
  }
@@ -8619,35 +8636,23 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs5) {
8619
8636
  return null;
8620
8637
  }
8621
8638
 
8622
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
8623
- import ts94 from "typescript";
8639
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
8640
+ import ts92 from "typescript";
8624
8641
 
8625
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
8626
- import ts93 from "typescript";
8642
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
8643
+ import ts91 from "typescript";
8627
8644
 
8628
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/utils.mjs
8629
- import ts87 from "typescript";
8645
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/utils.mjs
8646
+ import ts86 from "typescript";
8630
8647
  function isDefined(value) {
8631
8648
  return value !== void 0 && value !== null;
8632
8649
  }
8633
8650
  function getNameText(name) {
8634
- return ts87.isIdentifier(name) || ts87.isLiteralExpression(name) ? name.text : name.getText();
8635
- }
8636
- function findAll(node, test) {
8637
- const nodes = [];
8638
- findAllVisitor(node);
8639
- return nodes;
8640
- function findAllVisitor(n) {
8641
- if (test(n)) {
8642
- nodes.push(n);
8643
- } else {
8644
- n.forEachChild((child) => findAllVisitor(child));
8645
- }
8646
- }
8651
+ return ts86.isIdentifier(name) || ts86.isLiteralExpression(name) ? name.text : name.getText();
8647
8652
  }
8648
8653
  function hasNameIdentifier(declaration) {
8649
8654
  const namedDeclaration = declaration;
8650
- return namedDeclaration.name !== void 0 && ts87.isIdentifier(namedDeclaration.name);
8655
+ return namedDeclaration.name !== void 0 && ts86.isIdentifier(namedDeclaration.name);
8651
8656
  }
8652
8657
  function isRelativePath(path7) {
8653
8658
  return isRooted(path7) || /^\.\.?(\/|\\|$)/.test(path7);
@@ -8677,10 +8682,10 @@ function resolveFileWithPostfixes(fs5, path7, postFixes) {
8677
8682
  return null;
8678
8683
  }
8679
8684
  function getTsHelperFnFromDeclaration(decl) {
8680
- if (!ts87.isFunctionDeclaration(decl) && !ts87.isVariableDeclaration(decl)) {
8685
+ if (!ts86.isFunctionDeclaration(decl) && !ts86.isVariableDeclaration(decl)) {
8681
8686
  return null;
8682
8687
  }
8683
- if (decl.name === void 0 || !ts87.isIdentifier(decl.name)) {
8688
+ if (decl.name === void 0 || !ts86.isIdentifier(decl.name)) {
8684
8689
  return null;
8685
8690
  }
8686
8691
  return getTsHelperFnFromIdentifier(decl.name);
@@ -8708,26 +8713,26 @@ function stripExtension2(fileName) {
8708
8713
  return fileName.replace(/\..+$/, "");
8709
8714
  }
8710
8715
 
8711
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.mjs
8712
- import ts88 from "typescript";
8716
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.mjs
8717
+ import ts87 from "typescript";
8713
8718
  function findNamespaceOfIdentifier(id) {
8714
- return id.parent && ts88.isPropertyAccessExpression(id.parent) && id.parent.name === id && ts88.isIdentifier(id.parent.expression) ? id.parent.expression : null;
8719
+ return id.parent && ts87.isPropertyAccessExpression(id.parent) && id.parent.name === id && ts87.isIdentifier(id.parent.expression) ? id.parent.expression : null;
8715
8720
  }
8716
8721
  function findRequireCallReference(id, checker) {
8717
8722
  var _a, _b;
8718
8723
  const symbol = checker.getSymbolAtLocation(id) || null;
8719
8724
  const declaration = (_b = symbol == null ? void 0 : symbol.valueDeclaration) != null ? _b : (_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a[0];
8720
- const initializer = declaration && ts88.isVariableDeclaration(declaration) && declaration.initializer || null;
8725
+ const initializer = declaration && ts87.isVariableDeclaration(declaration) && declaration.initializer || null;
8721
8726
  return initializer && isRequireCall(initializer) ? initializer : null;
8722
8727
  }
8723
8728
  function isWildcardReexportStatement(stmt) {
8724
- if (!ts88.isExpressionStatement(stmt) || !ts88.isCallExpression(stmt.expression)) {
8729
+ if (!ts87.isExpressionStatement(stmt) || !ts87.isCallExpression(stmt.expression)) {
8725
8730
  return false;
8726
8731
  }
8727
8732
  let fnName = null;
8728
- if (ts88.isIdentifier(stmt.expression.expression)) {
8733
+ if (ts87.isIdentifier(stmt.expression.expression)) {
8729
8734
  fnName = stmt.expression.expression.text;
8730
- } else if (ts88.isPropertyAccessExpression(stmt.expression.expression) && ts88.isIdentifier(stmt.expression.expression.name)) {
8735
+ } else if (ts87.isPropertyAccessExpression(stmt.expression.expression) && ts87.isIdentifier(stmt.expression.expression.name)) {
8731
8736
  fnName = stmt.expression.expression.name.text;
8732
8737
  }
8733
8738
  if (fnName !== "__export" && fnName !== "__exportStar") {
@@ -8736,10 +8741,10 @@ function isWildcardReexportStatement(stmt) {
8736
8741
  return stmt.expression.arguments.length > 0;
8737
8742
  }
8738
8743
  function isDefinePropertyReexportStatement(stmt) {
8739
- if (!ts88.isExpressionStatement(stmt) || !ts88.isCallExpression(stmt.expression)) {
8744
+ if (!ts87.isExpressionStatement(stmt) || !ts87.isCallExpression(stmt.expression)) {
8740
8745
  return false;
8741
8746
  }
8742
- if (!ts88.isPropertyAccessExpression(stmt.expression.expression) || !ts88.isIdentifier(stmt.expression.expression.expression) || stmt.expression.expression.expression.text !== "Object" || !ts88.isIdentifier(stmt.expression.expression.name) || stmt.expression.expression.name.text !== "defineProperty") {
8747
+ if (!ts87.isPropertyAccessExpression(stmt.expression.expression) || !ts87.isIdentifier(stmt.expression.expression.expression) || stmt.expression.expression.expression.text !== "Object" || !ts87.isIdentifier(stmt.expression.expression.name) || stmt.expression.expression.name.text !== "defineProperty") {
8743
8748
  return false;
8744
8749
  }
8745
8750
  const args = stmt.expression.arguments;
@@ -8747,33 +8752,33 @@ function isDefinePropertyReexportStatement(stmt) {
8747
8752
  return false;
8748
8753
  }
8749
8754
  const exportsObject = args[0];
8750
- if (!ts88.isIdentifier(exportsObject) || exportsObject.text !== "exports") {
8755
+ if (!ts87.isIdentifier(exportsObject) || exportsObject.text !== "exports") {
8751
8756
  return false;
8752
8757
  }
8753
8758
  const propertyKey = args[1];
8754
- if (!ts88.isStringLiteral(propertyKey)) {
8759
+ if (!ts87.isStringLiteral(propertyKey)) {
8755
8760
  return false;
8756
8761
  }
8757
8762
  const propertyDescriptor = args[2];
8758
- if (!ts88.isObjectLiteralExpression(propertyDescriptor)) {
8763
+ if (!ts87.isObjectLiteralExpression(propertyDescriptor)) {
8759
8764
  return false;
8760
8765
  }
8761
- return propertyDescriptor.properties.some((prop) => prop.name !== void 0 && ts88.isIdentifier(prop.name) && prop.name.text === "get");
8766
+ return propertyDescriptor.properties.some((prop) => prop.name !== void 0 && ts87.isIdentifier(prop.name) && prop.name.text === "get");
8762
8767
  }
8763
8768
  function extractGetterFnExpression(statement) {
8764
8769
  const args = statement.expression.arguments;
8765
- const getterFn = args[2].properties.find((prop) => prop.name !== void 0 && ts88.isIdentifier(prop.name) && prop.name.text === "get");
8766
- if (getterFn === void 0 || !ts88.isPropertyAssignment(getterFn) || !ts88.isFunctionExpression(getterFn.initializer)) {
8770
+ const getterFn = args[2].properties.find((prop) => prop.name !== void 0 && ts87.isIdentifier(prop.name) && prop.name.text === "get");
8771
+ if (getterFn === void 0 || !ts87.isPropertyAssignment(getterFn) || !ts87.isFunctionExpression(getterFn.initializer)) {
8767
8772
  return null;
8768
8773
  }
8769
8774
  const returnStatement = getterFn.initializer.body.statements[0];
8770
- if (!ts88.isReturnStatement(returnStatement) || returnStatement.expression === void 0) {
8775
+ if (!ts87.isReturnStatement(returnStatement) || returnStatement.expression === void 0) {
8771
8776
  return null;
8772
8777
  }
8773
8778
  return returnStatement.expression;
8774
8779
  }
8775
8780
  function isRequireCall(node) {
8776
- return ts88.isCallExpression(node) && ts88.isIdentifier(node.expression) && node.expression.text === "require" && node.arguments.length === 1 && ts88.isStringLiteral(node.arguments[0]);
8781
+ return ts87.isCallExpression(node) && ts87.isIdentifier(node.expression) && node.expression.text === "require" && node.arguments.length === 1 && ts87.isStringLiteral(node.arguments[0]);
8777
8782
  }
8778
8783
  function isExternalImport(path7) {
8779
8784
  return !/^\.\.?(\/|$)/.test(path7);
@@ -8782,10 +8787,10 @@ function isExportsDeclaration(expr) {
8782
8787
  return expr.parent && isExportsAssignment(expr.parent);
8783
8788
  }
8784
8789
  function isExportsAssignment(expr) {
8785
- return isAssignment(expr) && ts88.isPropertyAccessExpression(expr.left) && ts88.isIdentifier(expr.left.expression) && expr.left.expression.text === "exports" && ts88.isIdentifier(expr.left.name);
8790
+ return isAssignment(expr) && ts87.isPropertyAccessExpression(expr.left) && ts87.isIdentifier(expr.left.expression) && expr.left.expression.text === "exports" && ts87.isIdentifier(expr.left.name);
8786
8791
  }
8787
8792
  function isExportsStatement(stmt) {
8788
- return ts88.isExpressionStatement(stmt) && isExportsAssignment(stmt.expression);
8793
+ return ts87.isExpressionStatement(stmt) && isExportsAssignment(stmt.expression);
8789
8794
  }
8790
8795
  function skipAliases(node) {
8791
8796
  while (isAssignment(node)) {
@@ -8794,10 +8799,10 @@ function skipAliases(node) {
8794
8799
  return node;
8795
8800
  }
8796
8801
 
8797
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
8798
- import ts91 from "typescript";
8802
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
8803
+ import ts89 from "typescript";
8799
8804
 
8800
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/util.mjs
8805
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/util.mjs
8801
8806
  function isWithinPackage(packagePath, filePath) {
8802
8807
  const relativePath = relative(packagePath, filePath);
8803
8808
  return isLocalRelativePath(relativePath) && !relativePath.startsWith("node_modules/");
@@ -8812,21 +8817,13 @@ var NoopDependencyTracker = class {
8812
8817
  };
8813
8818
  var NOOP_DEPENDENCY_TRACKER = new NoopDependencyTracker();
8814
8819
 
8815
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/ngcc_host.mjs
8816
- import ts89 from "typescript";
8817
- var PRE_R3_MARKER = "__PRE_R3__";
8818
- var POST_R3_MARKER = "__POST_R3__";
8819
- function isSwitchableVariableDeclaration(node) {
8820
- return ts89.isVariableDeclaration(node) && !!node.initializer && ts89.isIdentifier(node.initializer) && node.initializer.text.endsWith(PRE_R3_MARKER);
8821
- }
8822
-
8823
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/utils.mjs
8824
- import ts90 from "typescript";
8820
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/utils.mjs
8821
+ import ts88 from "typescript";
8825
8822
  function stripParentheses(node) {
8826
- return ts90.isParenthesizedExpression(node) ? node.expression : node;
8823
+ return ts88.isParenthesizedExpression(node) ? node.expression : node;
8827
8824
  }
8828
8825
 
8829
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
8826
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
8830
8827
  var DECORATORS = "decorators";
8831
8828
  var PROP_DECORATORS = "propDecorators";
8832
8829
  var CONSTRUCTOR = "__constructor";
@@ -8926,7 +8923,7 @@ ${declaration.getText()}`);
8926
8923
  let declarationNode = superDeclaration.node;
8927
8924
  if (isNamedVariableDeclaration(superDeclaration.node) && !isTopLevel(superDeclaration.node)) {
8928
8925
  const variableValue = this.getVariableValue(superDeclaration.node);
8929
- if (variableValue !== null && ts91.isClassExpression(variableValue)) {
8926
+ if (variableValue !== null && ts89.isClassExpression(variableValue)) {
8930
8927
  declarationNode = getContainingStatement(variableValue);
8931
8928
  }
8932
8929
  }
@@ -8939,7 +8936,7 @@ ${declaration.getText()}`);
8939
8936
  if (aliasedIdentifier !== null) {
8940
8937
  return this.getDeclarationOfIdentifier(aliasedIdentifier);
8941
8938
  }
8942
- if (isConcreteDeclaration(declaration) && ts91.isVariableDeclaration(declaration.node)) {
8939
+ if (isConcreteDeclaration(declaration) && ts89.isVariableDeclaration(declaration.node)) {
8943
8940
  const enumMembers = this.resolveEnumMembers(declaration.node);
8944
8941
  if (enumMembers !== null) {
8945
8942
  declaration.identity = { kind: 0, enumMembers };
@@ -8954,9 +8951,6 @@ ${declaration.getText()}`);
8954
8951
  }
8955
8952
  return Array.from(classDecorators);
8956
8953
  }
8957
- getSwitchableDeclarations(module2) {
8958
- return module2.getText().indexOf(PRE_R3_MARKER) >= 0 ? findAll(module2, isSwitchableVariableDeclaration) : [];
8959
- }
8960
8954
  getVariableValue(declaration) {
8961
8955
  const value = super.getVariableValue(declaration);
8962
8956
  if (value) {
@@ -8964,16 +8958,16 @@ ${declaration.getText()}`);
8964
8958
  }
8965
8959
  const block = declaration.parent.parent.parent;
8966
8960
  const symbol = this.checker.getSymbolAtLocation(declaration.name);
8967
- if (symbol && (ts91.isBlock(block) || ts91.isSourceFile(block))) {
8961
+ if (symbol && (ts89.isBlock(block) || ts89.isSourceFile(block))) {
8968
8962
  const decorateCall = this.findDecoratedVariableValue(block, symbol);
8969
8963
  const target = decorateCall && decorateCall.arguments[1];
8970
- if (target && ts91.isIdentifier(target)) {
8964
+ if (target && ts89.isIdentifier(target)) {
8971
8965
  const targetSymbol = this.checker.getSymbolAtLocation(target);
8972
8966
  const targetDeclaration = targetSymbol && targetSymbol.valueDeclaration;
8973
8967
  if (targetDeclaration) {
8974
- if (ts91.isClassDeclaration(targetDeclaration) || ts91.isFunctionDeclaration(targetDeclaration)) {
8968
+ if (ts89.isClassDeclaration(targetDeclaration) || ts89.isFunctionDeclaration(targetDeclaration)) {
8975
8969
  return targetDeclaration.name || null;
8976
- } else if (ts91.isVariableDeclaration(targetDeclaration)) {
8970
+ } else if (ts89.isVariableDeclaration(targetDeclaration)) {
8977
8971
  let targetValue = targetDeclaration.initializer;
8978
8972
  while (targetValue && isAssignment2(targetValue)) {
8979
8973
  targetValue = targetValue.right;
@@ -8994,7 +8988,7 @@ ${declaration.getText()}`);
8994
8988
  }
8995
8989
  getGenericArityOfClass(clazz) {
8996
8990
  const dtsDeclaration = this.getDtsDeclaration(clazz);
8997
- if (dtsDeclaration && ts91.isClassDeclaration(dtsDeclaration)) {
8991
+ if (dtsDeclaration && ts89.isClassDeclaration(dtsDeclaration)) {
8998
8992
  return dtsDeclaration.typeParameters ? dtsDeclaration.typeParameters.length : 0;
8999
8993
  }
9000
8994
  return null;
@@ -9031,13 +9025,13 @@ ${declaration.getText()}`);
9031
9025
  if (implementationStatement === null)
9032
9026
  return last;
9033
9027
  const container = implementationStatement.parent;
9034
- if (ts91.isBlock(container)) {
9035
- const returnStatementIndex = container.statements.findIndex(ts91.isReturnStatement);
9028
+ if (ts89.isBlock(container)) {
9029
+ const returnStatementIndex = container.statements.findIndex(ts89.isReturnStatement);
9036
9030
  if (returnStatementIndex === -1) {
9037
9031
  throw new Error(`Compiled class wrapper IIFE does not have a return statement: ${classSymbol.name} in ${classSymbol.declaration.valueDeclaration.getSourceFile().fileName}`);
9038
9032
  }
9039
9033
  last = container.statements[returnStatementIndex - 1];
9040
- } else if (ts91.isSourceFile(container)) {
9034
+ } else if (ts89.isSourceFile(container)) {
9041
9035
  if (implementation.exports !== void 0) {
9042
9036
  implementation.exports.forEach((exportSymbol) => {
9043
9037
  if (exportSymbol.valueDeclaration === void 0) {
@@ -9066,14 +9060,14 @@ ${declaration.getText()}`);
9066
9060
  return decl;
9067
9061
  }
9068
9062
  addClassSymbolsFromStatement(classes, statement) {
9069
- if (ts91.isVariableStatement(statement)) {
9063
+ if (ts89.isVariableStatement(statement)) {
9070
9064
  statement.declarationList.declarations.forEach((declaration) => {
9071
9065
  const classSymbol = this.getClassSymbol(declaration);
9072
9066
  if (classSymbol) {
9073
9067
  classes.set(classSymbol.implementation, classSymbol);
9074
9068
  }
9075
9069
  });
9076
- } else if (ts91.isClassDeclaration(statement)) {
9070
+ } else if (ts89.isClassDeclaration(statement)) {
9077
9071
  const classSymbol = this.getClassSymbol(statement);
9078
9072
  if (classSymbol) {
9079
9073
  classes.set(classSymbol.implementation, classSymbol);
@@ -9104,7 +9098,7 @@ ${declaration.getText()}`);
9104
9098
  }
9105
9099
  getClassSymbolFromInnerDeclaration(declaration) {
9106
9100
  let outerDeclaration = void 0;
9107
- if (ts91.isClassExpression(declaration) && hasNameIdentifier(declaration)) {
9101
+ if (ts89.isClassExpression(declaration) && hasNameIdentifier(declaration)) {
9108
9102
  outerDeclaration = getFarLeftHandSideOfAssignment(declaration);
9109
9103
  if (outerDeclaration !== void 0 && !isTopLevel(outerDeclaration)) {
9110
9104
  outerDeclaration = getContainingVariableDeclaration(outerDeclaration);
@@ -9146,7 +9140,7 @@ ${declaration.getText()}`);
9146
9140
  return void 0;
9147
9141
  }
9148
9142
  const innerDeclaration = implementationSymbol.valueDeclaration;
9149
- if (!ts91.isClassExpression(innerDeclaration) && !ts91.isFunctionExpression(innerDeclaration)) {
9143
+ if (!ts89.isClassExpression(innerDeclaration) && !ts89.isFunctionExpression(innerDeclaration)) {
9150
9144
  return void 0;
9151
9145
  }
9152
9146
  const adjacentDeclaration = getFarLeftHandSideOfAssignment(innerDeclaration);
@@ -9179,7 +9173,7 @@ ${declaration.getText()}`);
9179
9173
  }
9180
9174
  }
9181
9175
  preprocessStatement(statement) {
9182
- if (!ts91.isVariableStatement(statement)) {
9176
+ if (!ts89.isVariableStatement(statement)) {
9183
9177
  return;
9184
9178
  }
9185
9179
  const declarations = statement.declarationList.declarations;
@@ -9188,7 +9182,7 @@ ${declaration.getText()}`);
9188
9182
  }
9189
9183
  const declaration = declarations[0];
9190
9184
  const initializer = declaration.initializer;
9191
- if (!ts91.isIdentifier(declaration.name) || !initializer || !isAssignment2(initializer) || !ts91.isIdentifier(initializer.left) || !this.isClass(declaration)) {
9185
+ if (!ts89.isIdentifier(declaration.name) || !initializer || !isAssignment2(initializer) || !ts89.isIdentifier(initializer.left) || !this.isClass(declaration)) {
9192
9186
  return;
9193
9187
  }
9194
9188
  const aliasedIdentifier = initializer.left;
@@ -9205,11 +9199,11 @@ ${declaration.getText()}`);
9205
9199
  if (!node) {
9206
9200
  return null;
9207
9201
  }
9208
- if (ts91.isBinaryExpression(node) && node.operatorToken.kind === ts91.SyntaxKind.EqualsToken) {
9202
+ if (ts89.isBinaryExpression(node) && node.operatorToken.kind === ts89.SyntaxKind.EqualsToken) {
9209
9203
  const left = node.left;
9210
9204
  const right = node.right;
9211
- if (ts91.isIdentifier(left) && this.checker.getSymbolAtLocation(left) === symbol) {
9212
- return ts91.isCallExpression(right) && getCalleeName(right) === "__decorate" ? right : null;
9205
+ if (ts89.isIdentifier(left) && this.checker.getSymbolAtLocation(left) === symbol) {
9206
+ return ts89.isCallExpression(right) && getCalleeName(right) === "__decorate" ? right : null;
9213
9207
  }
9214
9208
  return this.findDecoratedVariableValue(right, symbol);
9215
9209
  }
@@ -9255,7 +9249,7 @@ ${declaration.getText()}`);
9255
9249
  getClassDecoratorsFromStaticProperty(decoratorsSymbol) {
9256
9250
  const decoratorsIdentifier = decoratorsSymbol.valueDeclaration;
9257
9251
  if (decoratorsIdentifier && decoratorsIdentifier.parent) {
9258
- if (ts91.isBinaryExpression(decoratorsIdentifier.parent) && decoratorsIdentifier.parent.operatorToken.kind === ts91.SyntaxKind.EqualsToken) {
9252
+ if (ts89.isBinaryExpression(decoratorsIdentifier.parent) && decoratorsIdentifier.parent.operatorToken.kind === ts89.SyntaxKind.EqualsToken) {
9259
9253
  const decoratorsArray = decoratorsIdentifier.parent.right;
9260
9254
  return this.reflectDecorators(decoratorsArray).filter((decorator) => this.isFromCore(decorator));
9261
9255
  }
@@ -9286,7 +9280,7 @@ ${declaration.getText()}`);
9286
9280
  }
9287
9281
  });
9288
9282
  }
9289
- if (ts91.isVariableDeclaration(symbol.declaration.valueDeclaration)) {
9283
+ if (ts89.isVariableDeclaration(symbol.declaration.valueDeclaration)) {
9290
9284
  if (symbol.declaration.exports) {
9291
9285
  symbol.declaration.exports.forEach((value, key) => {
9292
9286
  const decorators = decoratorsMap.get(key);
@@ -9299,7 +9293,7 @@ ${declaration.getText()}`);
9299
9293
  }
9300
9294
  }
9301
9295
  if (symbol.adjacent !== void 0) {
9302
- if (ts91.isVariableDeclaration(symbol.adjacent.valueDeclaration)) {
9296
+ if (ts89.isVariableDeclaration(symbol.adjacent.valueDeclaration)) {
9303
9297
  if (symbol.adjacent.exports !== void 0) {
9304
9298
  symbol.adjacent.exports.forEach((value, key) => {
9305
9299
  const decorators = decoratorsMap.get(key);
@@ -9330,7 +9324,7 @@ ${declaration.getText()}`);
9330
9324
  getMemberDecoratorsFromStaticProperty(decoratorsProperty) {
9331
9325
  const memberDecorators = new Map();
9332
9326
  const propDecoratorsMap = getPropertyValueFromSymbol(decoratorsProperty);
9333
- if (propDecoratorsMap && ts91.isObjectLiteralExpression(propDecoratorsMap)) {
9327
+ if (propDecoratorsMap && ts89.isObjectLiteralExpression(propDecoratorsMap)) {
9334
9328
  const propertiesMap = reflectObjectLiteral(propDecoratorsMap);
9335
9329
  propertiesMap.forEach((value, name) => {
9336
9330
  const decorators = this.reflectDecorators(value).filter((decorator) => this.isFromCore(decorator));
@@ -9401,18 +9395,18 @@ ${declaration.getText()}`);
9401
9395
  return { classDecorators, memberDecorators, constructorParamInfo };
9402
9396
  }
9403
9397
  reflectDecorateHelperEntry(expression) {
9404
- if (!ts91.isCallExpression(expression)) {
9398
+ if (!ts89.isCallExpression(expression)) {
9405
9399
  return null;
9406
9400
  }
9407
9401
  const call = expression;
9408
9402
  const helperName = getCalleeName(call);
9409
9403
  if (helperName === "__metadata") {
9410
9404
  const key = call.arguments[0];
9411
- if (key === void 0 || !ts91.isStringLiteral(key) || key.text !== "design:paramtypes") {
9405
+ if (key === void 0 || !ts89.isStringLiteral(key) || key.text !== "design:paramtypes") {
9412
9406
  return null;
9413
9407
  }
9414
9408
  const value = call.arguments[1];
9415
- if (value === void 0 || !ts91.isArrayLiteralExpression(value)) {
9409
+ if (value === void 0 || !ts89.isArrayLiteralExpression(value)) {
9416
9410
  return null;
9417
9411
  }
9418
9412
  return {
@@ -9422,12 +9416,12 @@ ${declaration.getText()}`);
9422
9416
  }
9423
9417
  if (helperName === "__param") {
9424
9418
  const indexArg = call.arguments[0];
9425
- const index = indexArg && ts91.isNumericLiteral(indexArg) ? parseInt(indexArg.text, 10) : NaN;
9419
+ const index = indexArg && ts89.isNumericLiteral(indexArg) ? parseInt(indexArg.text, 10) : NaN;
9426
9420
  if (isNaN(index)) {
9427
9421
  return null;
9428
9422
  }
9429
9423
  const decoratorCall = call.arguments[1];
9430
- if (decoratorCall === void 0 || !ts91.isCallExpression(decoratorCall)) {
9424
+ if (decoratorCall === void 0 || !ts89.isCallExpression(decoratorCall)) {
9431
9425
  return null;
9432
9426
  }
9433
9427
  const decorator2 = this.reflectDecoratorCall(decoratorCall);
@@ -9454,7 +9448,7 @@ ${declaration.getText()}`);
9454
9448
  if (!isDecoratorIdentifier(decoratorExpression)) {
9455
9449
  return null;
9456
9450
  }
9457
- const decoratorIdentifier = ts91.isIdentifier(decoratorExpression) ? decoratorExpression : decoratorExpression.name;
9451
+ const decoratorIdentifier = ts89.isIdentifier(decoratorExpression) ? decoratorExpression : decoratorExpression.name;
9458
9452
  return {
9459
9453
  name: decoratorIdentifier.text,
9460
9454
  identifier: decoratorExpression,
@@ -9464,12 +9458,12 @@ ${declaration.getText()}`);
9464
9458
  };
9465
9459
  }
9466
9460
  getHelperCall(statement, helperNames) {
9467
- if ((ts91.isExpressionStatement(statement) || ts91.isReturnStatement(statement)) && statement.expression) {
9461
+ if ((ts89.isExpressionStatement(statement) || ts89.isReturnStatement(statement)) && statement.expression) {
9468
9462
  let expression = statement.expression;
9469
9463
  while (isAssignment2(expression)) {
9470
9464
  expression = expression.right;
9471
9465
  }
9472
- if (ts91.isCallExpression(expression)) {
9466
+ if (ts89.isCallExpression(expression)) {
9473
9467
  const calleeName = getCalleeName(expression);
9474
9468
  if (calleeName !== null && helperNames.includes(calleeName)) {
9475
9469
  return expression;
@@ -9480,14 +9474,14 @@ ${declaration.getText()}`);
9480
9474
  }
9481
9475
  reflectDecorators(decoratorsArray) {
9482
9476
  const decorators = [];
9483
- if (ts91.isArrayLiteralExpression(decoratorsArray)) {
9477
+ if (ts89.isArrayLiteralExpression(decoratorsArray)) {
9484
9478
  decoratorsArray.elements.forEach((node) => {
9485
- if (ts91.isObjectLiteralExpression(node)) {
9479
+ if (ts89.isObjectLiteralExpression(node)) {
9486
9480
  const decorator = reflectObjectLiteral(node);
9487
9481
  if (decorator.has("type")) {
9488
9482
  let decoratorType = decorator.get("type");
9489
9483
  if (isDecoratorIdentifier(decoratorType)) {
9490
- const decoratorIdentifier = ts91.isIdentifier(decoratorType) ? decoratorType : decoratorType.name;
9484
+ const decoratorIdentifier = ts89.isIdentifier(decoratorType) ? decoratorType : decoratorType.name;
9491
9485
  decorators.push({
9492
9486
  name: decoratorIdentifier.text,
9493
9487
  identifier: decoratorType,
@@ -9503,10 +9497,10 @@ ${declaration.getText()}`);
9503
9497
  return decorators;
9504
9498
  }
9505
9499
  reflectMembers(symbol, decorators, isStatic) {
9506
- if (symbol.flags & ts91.SymbolFlags.Accessor) {
9500
+ if (symbol.flags & ts89.SymbolFlags.Accessor) {
9507
9501
  const members = [];
9508
- const setter = symbol.declarations && symbol.declarations.find(ts91.isSetAccessor);
9509
- const getter = symbol.declarations && symbol.declarations.find(ts91.isGetAccessor);
9502
+ const setter = symbol.declarations && symbol.declarations.find(ts89.isSetAccessor);
9503
+ const getter = symbol.declarations && symbol.declarations.find(ts89.isGetAccessor);
9510
9504
  const setterMember = setter && this.reflectMember(setter, ClassMemberKind.Setter, decorators, isStatic);
9511
9505
  if (setterMember) {
9512
9506
  members.push(setterMember);
@@ -9519,9 +9513,9 @@ ${declaration.getText()}`);
9519
9513
  return members;
9520
9514
  }
9521
9515
  let kind = null;
9522
- if (symbol.flags & ts91.SymbolFlags.Method) {
9516
+ if (symbol.flags & ts89.SymbolFlags.Method) {
9523
9517
  kind = ClassMemberKind.Method;
9524
- } else if (symbol.flags & ts91.SymbolFlags.Property) {
9518
+ } else if (symbol.flags & ts89.SymbolFlags.Property) {
9525
9519
  kind = ClassMemberKind.Property;
9526
9520
  }
9527
9521
  const node = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];
@@ -9549,7 +9543,7 @@ ${declaration.getText()}`);
9549
9543
  name = node.left.name.text;
9550
9544
  value = node.right;
9551
9545
  isStatic = false;
9552
- } else if (ts91.isConstructorDeclaration(node)) {
9546
+ } else if (ts89.isConstructorDeclaration(node)) {
9553
9547
  kind = ClassMemberKind.Constructor;
9554
9548
  name = "constructor";
9555
9549
  isStatic = false;
@@ -9567,7 +9561,7 @@ ${declaration.getText()}`);
9567
9561
  }
9568
9562
  }
9569
9563
  if (isStatic === void 0) {
9570
- isStatic = node.modifiers !== void 0 && node.modifiers.some((mod) => mod.kind === ts91.SyntaxKind.StaticKeyword);
9564
+ isStatic = node.modifiers !== void 0 && node.modifiers.some((mod) => mod.kind === ts89.SyntaxKind.StaticKeyword);
9571
9565
  }
9572
9566
  const type = node.type || null;
9573
9567
  return {
@@ -9640,9 +9634,9 @@ ${declaration.getText()}`);
9640
9634
  };
9641
9635
  }
9642
9636
  getImportOfExpression(expression) {
9643
- if (ts91.isIdentifier(expression)) {
9637
+ if (ts89.isIdentifier(expression)) {
9644
9638
  return this.getImportOfIdentifier(expression);
9645
- } else if (ts91.isPropertyAccessExpression(expression) && ts91.isIdentifier(expression.name)) {
9639
+ } else if (ts89.isPropertyAccessExpression(expression) && ts89.isIdentifier(expression.name)) {
9646
9640
  return this.getImportOfIdentifier(expression.name);
9647
9641
  } else {
9648
9642
  return null;
@@ -9651,10 +9645,10 @@ ${declaration.getText()}`);
9651
9645
  getParamInfoFromStaticProperty(paramDecoratorsProperty) {
9652
9646
  const paramDecorators = getPropertyValueFromSymbol(paramDecoratorsProperty);
9653
9647
  if (paramDecorators) {
9654
- const container = ts91.isArrowFunction(paramDecorators) ? paramDecorators.body : paramDecorators;
9655
- if (ts91.isArrayLiteralExpression(container)) {
9648
+ const container = ts89.isArrowFunction(paramDecorators) ? paramDecorators.body : paramDecorators;
9649
+ if (ts89.isArrayLiteralExpression(container)) {
9656
9650
  const elements = container.elements;
9657
- return elements.map((element) => ts91.isObjectLiteralExpression(element) ? reflectObjectLiteral(element) : null).map((paramInfo) => {
9651
+ return elements.map((element) => ts89.isObjectLiteralExpression(element) ? reflectObjectLiteral(element) : null).map((paramInfo) => {
9658
9652
  const typeExpression = paramInfo && paramInfo.has("type") ? paramInfo.get("type") : null;
9659
9653
  const decoratorInfo = paramInfo && paramInfo.has("decorators") ? paramInfo.get("decorators") : null;
9660
9654
  const decorators = decoratorInfo && this.reflectDecorators(decoratorInfo).filter((decorator) => this.isFromCore(decorator));
@@ -9675,7 +9669,7 @@ ${declaration.getText()}`);
9675
9669
  return this.getModuleStatements(classNode.getSourceFile());
9676
9670
  }
9677
9671
  const statement = getContainingStatement(classNode);
9678
- if (ts91.isBlock(statement.parent)) {
9672
+ if (ts89.isBlock(statement.parent)) {
9679
9673
  return Array.from(statement.parent.statements);
9680
9674
  }
9681
9675
  throw new Error(`Unable to find adjacent statements for ${classSymbol.name}`);
@@ -9716,7 +9710,7 @@ ${declaration.getText()}`);
9716
9710
  if (moduleExports) {
9717
9711
  moduleExports.forEach((exportedSymbol) => {
9718
9712
  const name = exportedSymbol.name;
9719
- if (exportedSymbol.flags & ts91.SymbolFlags.Alias) {
9713
+ if (exportedSymbol.flags & ts89.SymbolFlags.Alias) {
9720
9714
  exportedSymbol = checker.getAliasedSymbol(exportedSymbol);
9721
9715
  }
9722
9716
  const declaration = exportedSymbol.valueDeclaration;
@@ -9737,14 +9731,14 @@ ${declaration.getText()}`);
9737
9731
  }
9738
9732
  }
9739
9733
  getDeclarationOfExpression(expression) {
9740
- if (ts91.isIdentifier(expression)) {
9734
+ if (ts89.isIdentifier(expression)) {
9741
9735
  return this.getDeclarationOfIdentifier(expression);
9742
9736
  }
9743
- if (!ts91.isPropertyAccessExpression(expression) || !ts91.isIdentifier(expression.expression)) {
9737
+ if (!ts89.isPropertyAccessExpression(expression) || !ts89.isIdentifier(expression.expression)) {
9744
9738
  return null;
9745
9739
  }
9746
9740
  const namespaceDecl = this.getDeclarationOfIdentifier(expression.expression);
9747
- if (!namespaceDecl || !ts91.isSourceFile(namespaceDecl.node)) {
9741
+ if (!namespaceDecl || !ts89.isSourceFile(namespaceDecl.node)) {
9748
9742
  return null;
9749
9743
  }
9750
9744
  const namespaceExports = this.getExportsOfModule(namespaceDecl.node);
@@ -9759,11 +9753,11 @@ ${declaration.getText()}`);
9759
9753
  }
9760
9754
  isJavaScriptObjectDeclaration(decl) {
9761
9755
  const node = decl.node;
9762
- if (!ts91.isVariableDeclaration(node) || !ts91.isIdentifier(node.name) || node.name.text !== "Object" || node.type === void 0) {
9756
+ if (!ts89.isVariableDeclaration(node) || !ts89.isIdentifier(node.name) || node.name.text !== "Object" || node.type === void 0) {
9763
9757
  return false;
9764
9758
  }
9765
9759
  const typeNode = node.type;
9766
- if (!ts91.isTypeReferenceNode(typeNode) || !ts91.isIdentifier(typeNode.typeName) || typeNode.typeName.text !== "ObjectConstructor") {
9760
+ if (!ts89.isTypeReferenceNode(typeNode) || !ts89.isIdentifier(typeNode.typeName) || typeNode.typeName.text !== "ObjectConstructor") {
9767
9761
  return false;
9768
9762
  }
9769
9763
  return this.src.program.isSourceFileDefaultLibrary(node.getSourceFile());
@@ -9772,22 +9766,22 @@ ${declaration.getText()}`);
9772
9766
  if (declaration.initializer !== void 0)
9773
9767
  return null;
9774
9768
  const variableStmt = declaration.parent.parent;
9775
- if (!ts91.isVariableStatement(variableStmt))
9769
+ if (!ts89.isVariableStatement(variableStmt))
9776
9770
  return null;
9777
9771
  const block = variableStmt.parent;
9778
- if (!ts91.isBlock(block) && !ts91.isSourceFile(block))
9772
+ if (!ts89.isBlock(block) && !ts89.isSourceFile(block))
9779
9773
  return null;
9780
9774
  const declarationIndex = block.statements.findIndex((statement) => statement === variableStmt);
9781
9775
  if (declarationIndex === -1 || declarationIndex === block.statements.length - 1)
9782
9776
  return null;
9783
9777
  const subsequentStmt = block.statements[declarationIndex + 1];
9784
- if (!ts91.isExpressionStatement(subsequentStmt))
9778
+ if (!ts89.isExpressionStatement(subsequentStmt))
9785
9779
  return null;
9786
9780
  const iife = stripParentheses(subsequentStmt.expression);
9787
- if (!ts91.isCallExpression(iife) || !isEnumDeclarationIife(iife))
9781
+ if (!ts89.isCallExpression(iife) || !isEnumDeclarationIife(iife))
9788
9782
  return null;
9789
9783
  const fn = stripParentheses(iife.expression);
9790
- if (!ts91.isFunctionExpression(fn))
9784
+ if (!ts89.isFunctionExpression(fn))
9791
9785
  return null;
9792
9786
  return this.reflectEnumMembers(fn);
9793
9787
  }
@@ -9795,7 +9789,7 @@ ${declaration.getText()}`);
9795
9789
  if (fn.parameters.length !== 1)
9796
9790
  return null;
9797
9791
  const enumName = fn.parameters[0].name;
9798
- if (!ts91.isIdentifier(enumName))
9792
+ if (!ts89.isIdentifier(enumName))
9799
9793
  return null;
9800
9794
  const enumMembers = [];
9801
9795
  for (const statement of fn.body.statements) {
@@ -9808,7 +9802,7 @@ ${declaration.getText()}`);
9808
9802
  return enumMembers;
9809
9803
  }
9810
9804
  reflectEnumMember(enumName, statement) {
9811
- if (!ts91.isExpressionStatement(statement))
9805
+ if (!ts89.isExpressionStatement(statement))
9812
9806
  return null;
9813
9807
  const expression = statement.expression;
9814
9808
  if (!isEnumAssignment(enumName, expression)) {
@@ -9836,78 +9830,78 @@ function isEnumDeclarationIife(iife) {
9836
9830
  if (iife.arguments.length !== 1)
9837
9831
  return false;
9838
9832
  const arg = iife.arguments[0];
9839
- if (!ts91.isBinaryExpression(arg) || arg.operatorToken.kind !== ts91.SyntaxKind.BarBarToken || !ts91.isParenthesizedExpression(arg.right)) {
9833
+ if (!ts89.isBinaryExpression(arg) || arg.operatorToken.kind !== ts89.SyntaxKind.BarBarToken || !ts89.isParenthesizedExpression(arg.right)) {
9840
9834
  return false;
9841
9835
  }
9842
9836
  const right = arg.right.expression;
9843
- if (!ts91.isBinaryExpression(right) || right.operatorToken.kind !== ts91.SyntaxKind.EqualsToken) {
9837
+ if (!ts89.isBinaryExpression(right) || right.operatorToken.kind !== ts89.SyntaxKind.EqualsToken) {
9844
9838
  return false;
9845
9839
  }
9846
- if (!ts91.isObjectLiteralExpression(right.right) || right.right.properties.length !== 0) {
9840
+ if (!ts89.isObjectLiteralExpression(right.right) || right.right.properties.length !== 0) {
9847
9841
  return false;
9848
9842
  }
9849
9843
  return true;
9850
9844
  }
9851
9845
  function isEnumAssignment(enumName, expression) {
9852
- if (!ts91.isBinaryExpression(expression) || expression.operatorToken.kind !== ts91.SyntaxKind.EqualsToken || !ts91.isElementAccessExpression(expression.left)) {
9846
+ if (!ts89.isBinaryExpression(expression) || expression.operatorToken.kind !== ts89.SyntaxKind.EqualsToken || !ts89.isElementAccessExpression(expression.left)) {
9853
9847
  return false;
9854
9848
  }
9855
9849
  const enumIdentifier = expression.left.expression;
9856
- return ts91.isIdentifier(enumIdentifier) && enumIdentifier.text === enumName.text;
9850
+ return ts89.isIdentifier(enumIdentifier) && enumIdentifier.text === enumName.text;
9857
9851
  }
9858
9852
  function reflectEnumAssignment(expression) {
9859
9853
  const memberName = expression.left.argumentExpression;
9860
- if (!ts91.isPropertyName(memberName))
9854
+ if (!ts89.isPropertyName(memberName))
9861
9855
  return null;
9862
9856
  return { name: memberName, initializer: expression.right };
9863
9857
  }
9864
9858
  function isAssignmentStatement(statement) {
9865
- return ts91.isExpressionStatement(statement) && isAssignment2(statement.expression) && ts91.isIdentifier(statement.expression.left);
9859
+ return ts89.isExpressionStatement(statement) && isAssignment2(statement.expression) && ts89.isIdentifier(statement.expression.left);
9866
9860
  }
9867
9861
  function getIifeBody(expression) {
9868
9862
  const call = stripParentheses(expression);
9869
- if (!ts91.isCallExpression(call)) {
9863
+ if (!ts89.isCallExpression(call)) {
9870
9864
  return void 0;
9871
9865
  }
9872
9866
  const fn = stripParentheses(call.expression);
9873
- if (!ts91.isFunctionExpression(fn) && !ts91.isArrowFunction(fn)) {
9867
+ if (!ts89.isFunctionExpression(fn) && !ts89.isArrowFunction(fn)) {
9874
9868
  return void 0;
9875
9869
  }
9876
9870
  return fn.body;
9877
9871
  }
9878
9872
  function isAssignment2(node) {
9879
- return ts91.isBinaryExpression(node) && node.operatorToken.kind === ts91.SyntaxKind.EqualsToken;
9873
+ return ts89.isBinaryExpression(node) && node.operatorToken.kind === ts89.SyntaxKind.EqualsToken;
9880
9874
  }
9881
9875
  function isClassDecorateCall(call, matches) {
9882
9876
  const helperArgs = call.arguments[0];
9883
- if (helperArgs === void 0 || !ts91.isArrayLiteralExpression(helperArgs)) {
9877
+ if (helperArgs === void 0 || !ts89.isArrayLiteralExpression(helperArgs)) {
9884
9878
  return false;
9885
9879
  }
9886
9880
  const target = call.arguments[1];
9887
- return target !== void 0 && ts91.isIdentifier(target) && matches(target);
9881
+ return target !== void 0 && ts89.isIdentifier(target) && matches(target);
9888
9882
  }
9889
9883
  function isMemberDecorateCall(call, matches) {
9890
9884
  const helperArgs = call.arguments[0];
9891
- if (helperArgs === void 0 || !ts91.isArrayLiteralExpression(helperArgs)) {
9885
+ if (helperArgs === void 0 || !ts89.isArrayLiteralExpression(helperArgs)) {
9892
9886
  return false;
9893
9887
  }
9894
9888
  const target = call.arguments[1];
9895
- if (target === void 0 || !ts91.isPropertyAccessExpression(target) || !ts91.isIdentifier(target.expression) || !matches(target.expression) || target.name.text !== "prototype") {
9889
+ if (target === void 0 || !ts89.isPropertyAccessExpression(target) || !ts89.isIdentifier(target.expression) || !matches(target.expression) || target.name.text !== "prototype") {
9896
9890
  return false;
9897
9891
  }
9898
9892
  const memberName = call.arguments[2];
9899
- return memberName !== void 0 && ts91.isStringLiteral(memberName);
9893
+ return memberName !== void 0 && ts89.isStringLiteral(memberName);
9900
9894
  }
9901
9895
  function getPropertyValueFromSymbol(propSymbol) {
9902
9896
  const propIdentifier = propSymbol.valueDeclaration;
9903
9897
  const parent = propIdentifier && propIdentifier.parent;
9904
- return parent && ts91.isBinaryExpression(parent) ? parent.right : void 0;
9898
+ return parent && ts89.isBinaryExpression(parent) ? parent.right : void 0;
9905
9899
  }
9906
9900
  function getCalleeName(call) {
9907
- if (ts91.isIdentifier(call.expression)) {
9901
+ if (ts89.isIdentifier(call.expression)) {
9908
9902
  return stripDollarSuffix(call.expression.text);
9909
9903
  }
9910
- if (ts91.isPropertyAccessExpression(call.expression)) {
9904
+ if (ts89.isPropertyAccessExpression(call.expression)) {
9911
9905
  return stripDollarSuffix(call.expression.name.text);
9912
9906
  }
9913
9907
  return null;
@@ -9923,25 +9917,25 @@ function skipClassAliases(node) {
9923
9917
  return expression;
9924
9918
  }
9925
9919
  function getInnerClassDeclaration(expression) {
9926
- if (ts91.isClassExpression(expression) && hasNameIdentifier(expression)) {
9920
+ if (ts89.isClassExpression(expression) && hasNameIdentifier(expression)) {
9927
9921
  return expression;
9928
9922
  }
9929
9923
  const iifeBody = getIifeBody(expression);
9930
9924
  if (iifeBody === void 0) {
9931
9925
  return null;
9932
9926
  }
9933
- if (!ts91.isBlock(iifeBody)) {
9934
- return ts91.isClassExpression(iifeBody) && isNamedDeclaration2(iifeBody) ? iifeBody : null;
9927
+ if (!ts89.isBlock(iifeBody)) {
9928
+ return ts89.isClassExpression(iifeBody) && isNamedDeclaration2(iifeBody) ? iifeBody : null;
9935
9929
  } else {
9936
9930
  for (const statement of iifeBody.statements) {
9937
9931
  if (isNamedClassDeclaration(statement) || isNamedFunctionDeclaration(statement)) {
9938
9932
  return statement;
9939
9933
  }
9940
- if (ts91.isVariableStatement(statement)) {
9934
+ if (ts89.isVariableStatement(statement)) {
9941
9935
  for (const declaration of statement.declarationList.declarations) {
9942
9936
  if (isInitializedVariableClassDeclaration(declaration)) {
9943
9937
  const expression2 = skipClassAliases(declaration);
9944
- if (ts91.isClassExpression(expression2) && hasNameIdentifier(expression2)) {
9938
+ if (ts89.isClassExpression(expression2) && hasNameIdentifier(expression2)) {
9945
9939
  return expression2;
9946
9940
  }
9947
9941
  }
@@ -9952,29 +9946,29 @@ function getInnerClassDeclaration(expression) {
9952
9946
  return null;
9953
9947
  }
9954
9948
  function getDecoratorArgs(node) {
9955
- const argsProperty = node.properties.filter(ts91.isPropertyAssignment).find((property2) => getNameText(property2.name) === "args");
9949
+ const argsProperty = node.properties.filter(ts89.isPropertyAssignment).find((property2) => getNameText(property2.name) === "args");
9956
9950
  const argsExpression = argsProperty && argsProperty.initializer;
9957
- return argsExpression && ts91.isArrayLiteralExpression(argsExpression) ? Array.from(argsExpression.elements) : [];
9951
+ return argsExpression && ts89.isArrayLiteralExpression(argsExpression) ? Array.from(argsExpression.elements) : [];
9958
9952
  }
9959
9953
  function isPropertyAccess(node) {
9960
- return !!node.parent && ts91.isBinaryExpression(node.parent) && ts91.isPropertyAccessExpression(node);
9954
+ return !!node.parent && ts89.isBinaryExpression(node.parent) && ts89.isPropertyAccessExpression(node);
9961
9955
  }
9962
9956
  function isThisAssignment(node) {
9963
- return ts91.isBinaryExpression(node) && ts91.isPropertyAccessExpression(node.left) && node.left.expression.kind === ts91.SyntaxKind.ThisKeyword;
9957
+ return ts89.isBinaryExpression(node) && ts89.isPropertyAccessExpression(node.left) && node.left.expression.kind === ts89.SyntaxKind.ThisKeyword;
9964
9958
  }
9965
9959
  function isNamedDeclaration2(node) {
9966
9960
  const anyNode = node;
9967
- return !!anyNode.name && ts91.isIdentifier(anyNode.name);
9961
+ return !!anyNode.name && ts89.isIdentifier(anyNode.name);
9968
9962
  }
9969
9963
  function isClassMemberType(node) {
9970
- return (ts91.isClassElement(node) || isPropertyAccess(node) || ts91.isBinaryExpression(node)) && !ts91.isIndexSignatureDeclaration(node);
9964
+ return (ts89.isClassElement(node) || isPropertyAccess(node) || ts89.isBinaryExpression(node)) && !ts89.isIndexSignatureDeclaration(node);
9971
9965
  }
9972
9966
  function getFarLeftHandSideOfAssignment(declaration) {
9973
9967
  let node = declaration.parent;
9974
- if (isAssignment2(node) && ts91.isIdentifier(node.left)) {
9968
+ if (isAssignment2(node) && ts89.isIdentifier(node.left)) {
9975
9969
  node = node.parent;
9976
9970
  }
9977
- return ts91.isVariableDeclaration(node) ? node : void 0;
9971
+ return ts89.isVariableDeclaration(node) ? node : void 0;
9978
9972
  }
9979
9973
  function getContainingVariableDeclaration(node) {
9980
9974
  node = node.parent;
@@ -9990,23 +9984,23 @@ function isSynthesizedConstructor(constructor) {
9990
9984
  if (!constructor.body)
9991
9985
  return false;
9992
9986
  const firstStatement = constructor.body.statements[0];
9993
- if (!firstStatement || !ts91.isExpressionStatement(firstStatement))
9987
+ if (!firstStatement || !ts89.isExpressionStatement(firstStatement))
9994
9988
  return false;
9995
9989
  return isSynthesizedSuperCall(firstStatement.expression);
9996
9990
  }
9997
9991
  function isSynthesizedSuperCall(expression) {
9998
- if (!ts91.isCallExpression(expression))
9992
+ if (!ts89.isCallExpression(expression))
9999
9993
  return false;
10000
- if (expression.expression.kind !== ts91.SyntaxKind.SuperKeyword)
9994
+ if (expression.expression.kind !== ts89.SyntaxKind.SuperKeyword)
10001
9995
  return false;
10002
9996
  if (expression.arguments.length !== 1)
10003
9997
  return false;
10004
9998
  const argument = expression.arguments[0];
10005
- return ts91.isSpreadElement(argument) && ts91.isIdentifier(argument.expression) && argument.expression.text === "arguments";
9999
+ return ts89.isSpreadElement(argument) && ts89.isIdentifier(argument.expression) && argument.expression.text === "arguments";
10006
10000
  }
10007
10001
  function getContainingStatement(node) {
10008
10002
  while (node.parent) {
10009
- if (ts91.isBlock(node.parent) || ts91.isSourceFile(node.parent)) {
10003
+ if (ts89.isBlock(node.parent) || ts89.isSourceFile(node.parent)) {
10010
10004
  break;
10011
10005
  }
10012
10006
  node = node.parent;
@@ -10026,30 +10020,30 @@ function getNonRootPackageFiles(bundle) {
10026
10020
  }
10027
10021
  function isTopLevel(node) {
10028
10022
  while (node = node.parent) {
10029
- if (ts91.isBlock(node)) {
10023
+ if (ts89.isBlock(node)) {
10030
10024
  return false;
10031
10025
  }
10032
10026
  }
10033
10027
  return true;
10034
10028
  }
10035
10029
  function getOuterNodeFromInnerDeclaration(node) {
10036
- if (!ts91.isFunctionDeclaration(node) && !ts91.isClassDeclaration(node) && !ts91.isVariableStatement(node)) {
10030
+ if (!ts89.isFunctionDeclaration(node) && !ts89.isClassDeclaration(node) && !ts89.isVariableStatement(node)) {
10037
10031
  return null;
10038
10032
  }
10039
10033
  let outerNode = node.parent;
10040
- if (!outerNode || !ts91.isBlock(outerNode))
10034
+ if (!outerNode || !ts89.isBlock(outerNode))
10041
10035
  return null;
10042
10036
  outerNode = outerNode.parent;
10043
- if (!outerNode || !ts91.isFunctionExpression(outerNode) && !ts91.isArrowFunction(outerNode)) {
10037
+ if (!outerNode || !ts89.isFunctionExpression(outerNode) && !ts89.isArrowFunction(outerNode)) {
10044
10038
  return null;
10045
10039
  }
10046
10040
  outerNode = outerNode.parent;
10047
- if (outerNode && ts91.isParenthesizedExpression(outerNode))
10041
+ if (outerNode && ts89.isParenthesizedExpression(outerNode))
10048
10042
  outerNode = outerNode.parent;
10049
- if (!outerNode || !ts91.isCallExpression(outerNode))
10043
+ if (!outerNode || !ts89.isCallExpression(outerNode))
10050
10044
  return null;
10051
10045
  outerNode = outerNode.parent;
10052
- if (outerNode && ts91.isParenthesizedExpression(outerNode))
10046
+ if (outerNode && ts89.isParenthesizedExpression(outerNode))
10053
10047
  outerNode = outerNode.parent;
10054
10048
  while (isAssignment2(outerNode.parent)) {
10055
10049
  outerNode = outerNode.parent;
@@ -10057,8 +10051,8 @@ function getOuterNodeFromInnerDeclaration(node) {
10057
10051
  return outerNode;
10058
10052
  }
10059
10053
 
10060
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm5_host.mjs
10061
- import ts92 from "typescript";
10054
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm5_host.mjs
10055
+ import ts90 from "typescript";
10062
10056
  var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10063
10057
  getBaseClassExpression(clazz) {
10064
10058
  const superBaseClassExpression = super.getBaseClassExpression(clazz);
@@ -10071,7 +10065,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10071
10065
  if (iife.parameters.length !== 1 || !isSuperIdentifier(iife.parameters[0].name)) {
10072
10066
  return null;
10073
10067
  }
10074
- if (!ts92.isCallExpression(iife.parent)) {
10068
+ if (!ts90.isCallExpression(iife.parent)) {
10075
10069
  return null;
10076
10070
  }
10077
10071
  return iife.parent.arguments[0];
@@ -10092,14 +10086,14 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10092
10086
  if (declaration === null || declaration.node === null || declaration.known !== null) {
10093
10087
  return declaration;
10094
10088
  }
10095
- if (!ts92.isVariableDeclaration(declaration.node) || declaration.node.initializer !== void 0 || !ts92.isBlock(declaration.node.parent.parent.parent)) {
10089
+ if (!ts90.isVariableDeclaration(declaration.node) || declaration.node.initializer !== void 0 || !ts90.isBlock(declaration.node.parent.parent.parent)) {
10096
10090
  return declaration;
10097
10091
  }
10098
10092
  const block = declaration.node.parent.parent.parent;
10099
10093
  const aliasSymbol = this.checker.getSymbolAtLocation(declaration.node.name);
10100
10094
  for (let i = 0; i < block.statements.length; i++) {
10101
10095
  const statement = block.statements[i];
10102
- if (isAssignmentStatement(statement) && ts92.isIdentifier(statement.expression.left) && ts92.isIdentifier(statement.expression.right) && this.checker.getSymbolAtLocation(statement.expression.left) === aliasSymbol) {
10096
+ if (isAssignmentStatement(statement) && ts90.isIdentifier(statement.expression.left) && ts90.isIdentifier(statement.expression.right) && this.checker.getSymbolAtLocation(statement.expression.left) === aliasSymbol) {
10103
10097
  return this.getDeclarationOfIdentifier(statement.expression.right);
10104
10098
  }
10105
10099
  }
@@ -10143,7 +10137,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10143
10137
  }
10144
10138
  getConstructorParameterDeclarations(classSymbol) {
10145
10139
  const constructor = classSymbol.implementation.valueDeclaration;
10146
- if (!ts92.isFunctionDeclaration(constructor))
10140
+ if (!ts90.isFunctionDeclaration(constructor))
10147
10141
  return null;
10148
10142
  if (constructor.parameters.length > 0) {
10149
10143
  return Array.from(constructor.parameters);
@@ -10157,7 +10151,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10157
10151
  const paramDecorators = getPropertyValueFromSymbol(paramDecoratorsProperty);
10158
10152
  const returnStatement = getReturnStatement(paramDecorators);
10159
10153
  const expression = returnStatement ? returnStatement.expression : paramDecorators;
10160
- if (expression && ts92.isArrayLiteralExpression(expression)) {
10154
+ if (expression && ts90.isArrayLiteralExpression(expression)) {
10161
10155
  const elements = expression.elements;
10162
10156
  return elements.map(reflectArrayElement).map((paramInfo) => {
10163
10157
  const typeExpression = paramInfo && paramInfo.has("type") ? paramInfo.get("type") : null;
@@ -10206,7 +10200,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10206
10200
  }
10207
10201
  const members = super.reflectMembers(symbol, decorators, isStatic);
10208
10202
  members && members.forEach((member) => {
10209
- if (member && member.kind === ClassMemberKind.Method && member.isStatic && member.node && ts92.isPropertyAccessExpression(member.node) && member.node.parent && ts92.isBinaryExpression(member.node.parent) && ts92.isFunctionExpression(member.node.parent.right)) {
10203
+ if (member && member.kind === ClassMemberKind.Method && member.isStatic && member.node && ts90.isPropertyAccessExpression(member.node) && member.node.parent && ts90.isBinaryExpression(member.node.parent) && ts90.isFunctionExpression(member.node.parent.right)) {
10210
10204
  member.implementation = member.node.parent.right;
10211
10205
  }
10212
10206
  });
@@ -10214,7 +10208,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10214
10208
  }
10215
10209
  getStatementsForClass(classSymbol) {
10216
10210
  const classDeclarationParent = classSymbol.implementation.valueDeclaration.parent;
10217
- return ts92.isBlock(classDeclarationParent) ? Array.from(classDeclarationParent.statements) : [];
10211
+ return ts90.isBlock(classDeclarationParent) ? Array.from(classDeclarationParent.statements) : [];
10218
10212
  }
10219
10213
  isSynthesizedConstructor(constructor) {
10220
10214
  if (!constructor.body)
@@ -10225,13 +10219,13 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10225
10219
  return this.isSynthesizedSuperThisAssignment(firstStatement) || this.isSynthesizedSuperReturnStatement(firstStatement);
10226
10220
  }
10227
10221
  isSynthesizedSuperThisAssignment(statement) {
10228
- if (!ts92.isVariableStatement(statement))
10222
+ if (!ts90.isVariableStatement(statement))
10229
10223
  return false;
10230
10224
  const variableDeclarations = statement.declarationList.declarations;
10231
10225
  if (variableDeclarations.length !== 1)
10232
10226
  return false;
10233
10227
  const variableDeclaration = variableDeclarations[0];
10234
- if (!ts92.isIdentifier(variableDeclaration.name) || !variableDeclaration.name.text.startsWith("_this"))
10228
+ if (!ts90.isIdentifier(variableDeclaration.name) || !variableDeclaration.name.text.startsWith("_this"))
10235
10229
  return false;
10236
10230
  const initializer = variableDeclaration.initializer;
10237
10231
  if (!initializer)
@@ -10239,7 +10233,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10239
10233
  return this.isSynthesizedDefaultSuperCall(initializer);
10240
10234
  }
10241
10235
  isSynthesizedSuperReturnStatement(statement) {
10242
- if (!ts92.isReturnStatement(statement))
10236
+ if (!ts90.isReturnStatement(statement))
10243
10237
  return false;
10244
10238
  const expression = statement.expression;
10245
10239
  if (!expression)
@@ -10247,29 +10241,29 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10247
10241
  return this.isSynthesizedDefaultSuperCall(expression);
10248
10242
  }
10249
10243
  isSynthesizedDefaultSuperCall(expression) {
10250
- if (!isBinaryExpr(expression, ts92.SyntaxKind.BarBarToken))
10244
+ if (!isBinaryExpr(expression, ts90.SyntaxKind.BarBarToken))
10251
10245
  return false;
10252
- if (expression.right.kind !== ts92.SyntaxKind.ThisKeyword)
10246
+ if (expression.right.kind !== ts90.SyntaxKind.ThisKeyword)
10253
10247
  return false;
10254
10248
  const left = expression.left;
10255
- if (isBinaryExpr(left, ts92.SyntaxKind.AmpersandAmpersandToken)) {
10249
+ if (isBinaryExpr(left, ts90.SyntaxKind.AmpersandAmpersandToken)) {
10256
10250
  return isSuperNotNull(left.left) && this.isSuperApplyCall(left.right);
10257
10251
  } else {
10258
10252
  return this.isSuperApplyCall(left);
10259
10253
  }
10260
10254
  }
10261
10255
  isSuperApplyCall(expression) {
10262
- if (!ts92.isCallExpression(expression) || expression.arguments.length !== 2)
10256
+ if (!ts90.isCallExpression(expression) || expression.arguments.length !== 2)
10263
10257
  return false;
10264
10258
  const targetFn = expression.expression;
10265
- if (!ts92.isPropertyAccessExpression(targetFn))
10259
+ if (!ts90.isPropertyAccessExpression(targetFn))
10266
10260
  return false;
10267
10261
  if (!isSuperIdentifier(targetFn.expression))
10268
10262
  return false;
10269
10263
  if (targetFn.name.text !== "apply")
10270
10264
  return false;
10271
10265
  const thisArgument = expression.arguments[0];
10272
- if (thisArgument.kind !== ts92.SyntaxKind.ThisKeyword)
10266
+ if (thisArgument.kind !== ts90.SyntaxKind.ThisKeyword)
10273
10267
  return false;
10274
10268
  const argumentsExpr = expression.arguments[1];
10275
10269
  if (isArgumentsIdentifier(argumentsExpr)) {
@@ -10289,7 +10283,7 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10289
10283
  return false;
10290
10284
  }
10291
10285
  const firstArg = call.args[0];
10292
- if (!ts92.isArrayLiteralExpression(firstArg) || firstArg.elements.length !== 0) {
10286
+ if (!ts90.isArrayLiteralExpression(firstArg) || firstArg.elements.length !== 0) {
10293
10287
  return false;
10294
10288
  }
10295
10289
  const secondArg = this.extractKnownHelperCall(call.args[1]);
@@ -10302,14 +10296,14 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10302
10296
  }
10303
10297
  }
10304
10298
  extractKnownHelperCall(expression) {
10305
- if (!ts92.isCallExpression(expression)) {
10299
+ if (!ts90.isCallExpression(expression)) {
10306
10300
  return null;
10307
10301
  }
10308
10302
  const receiverExpr = expression.expression;
10309
10303
  let receiver = null;
10310
- if (ts92.isIdentifier(receiverExpr)) {
10304
+ if (ts90.isIdentifier(receiverExpr)) {
10311
10305
  receiver = this.getDeclarationOfIdentifier(receiverExpr);
10312
- } else if (ts92.isPropertyAccessExpression(receiverExpr) && ts92.isIdentifier(receiverExpr.name)) {
10306
+ } else if (ts90.isPropertyAccessExpression(receiverExpr) && ts90.isIdentifier(receiverExpr.name)) {
10313
10307
  receiver = this.getDeclarationOfIdentifier(receiverExpr.name);
10314
10308
  }
10315
10309
  if (receiver === null || receiver.known === null) {
@@ -10322,13 +10316,13 @@ var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
10322
10316
  }
10323
10317
  };
10324
10318
  function getPropertyDefinition(node) {
10325
- if (!ts92.isCallExpression(node))
10319
+ if (!ts90.isCallExpression(node))
10326
10320
  return null;
10327
10321
  const fn = node.expression;
10328
- if (!ts92.isPropertyAccessExpression(fn) || !ts92.isIdentifier(fn.expression) || fn.expression.text !== "Object" || fn.name.text !== "defineProperty")
10322
+ if (!ts90.isPropertyAccessExpression(fn) || !ts90.isIdentifier(fn.expression) || fn.expression.text !== "Object" || fn.name.text !== "defineProperty")
10329
10323
  return null;
10330
10324
  const descriptor = node.arguments[2];
10331
- if (!descriptor || !ts92.isObjectLiteralExpression(descriptor))
10325
+ if (!descriptor || !ts90.isObjectLiteralExpression(descriptor))
10332
10326
  return null;
10333
10327
  return {
10334
10328
  setter: readPropertyFunctionExpression(descriptor, "set"),
@@ -10336,29 +10330,29 @@ function getPropertyDefinition(node) {
10336
10330
  };
10337
10331
  }
10338
10332
  function readPropertyFunctionExpression(object, name) {
10339
- const property2 = object.properties.find((p2) => ts92.isPropertyAssignment(p2) && ts92.isIdentifier(p2.name) && p2.name.text === name);
10340
- return property2 && ts92.isFunctionExpression(property2.initializer) && property2.initializer || null;
10333
+ const property2 = object.properties.find((p2) => ts90.isPropertyAssignment(p2) && ts90.isIdentifier(p2.name) && p2.name.text === name);
10334
+ return property2 && ts90.isFunctionExpression(property2.initializer) && property2.initializer || null;
10341
10335
  }
10342
10336
  function getReturnStatement(declaration) {
10343
- return declaration && ts92.isFunctionExpression(declaration) ? declaration.body.statements.find(ts92.isReturnStatement) : void 0;
10337
+ return declaration && ts90.isFunctionExpression(declaration) ? declaration.body.statements.find(ts90.isReturnStatement) : void 0;
10344
10338
  }
10345
10339
  function reflectArrayElement(element) {
10346
- return ts92.isObjectLiteralExpression(element) ? reflectObjectLiteral(element) : null;
10340
+ return ts90.isObjectLiteralExpression(element) ? reflectObjectLiteral(element) : null;
10347
10341
  }
10348
10342
  function isArgumentsIdentifier(expression) {
10349
- return ts92.isIdentifier(expression) && expression.text === "arguments";
10343
+ return ts90.isIdentifier(expression) && expression.text === "arguments";
10350
10344
  }
10351
10345
  function isSuperNotNull(expression) {
10352
- return isBinaryExpr(expression, ts92.SyntaxKind.ExclamationEqualsEqualsToken) && isSuperIdentifier(expression.left);
10346
+ return isBinaryExpr(expression, ts90.SyntaxKind.ExclamationEqualsEqualsToken) && isSuperIdentifier(expression.left);
10353
10347
  }
10354
10348
  function isBinaryExpr(expression, operator) {
10355
- return ts92.isBinaryExpression(expression) && expression.operatorToken.kind === operator;
10349
+ return ts90.isBinaryExpression(expression) && expression.operatorToken.kind === operator;
10356
10350
  }
10357
10351
  function isSuperIdentifier(node) {
10358
- return ts92.isIdentifier(node) && node.text.startsWith("_super");
10352
+ return ts90.isIdentifier(node) && node.text.startsWith("_super");
10359
10353
  }
10360
10354
  function captureParamInitializer(statement, parameters) {
10361
- if (ts92.isIfStatement(statement) && isUndefinedComparison(statement.expression) && ts92.isBlock(statement.thenStatement) && statement.thenStatement.statements.length === 1) {
10355
+ if (ts90.isIfStatement(statement) && isUndefinedComparison(statement.expression) && ts90.isBlock(statement.thenStatement) && statement.thenStatement.statements.length === 1) {
10362
10356
  const ifStatementComparison = statement.expression;
10363
10357
  const thenStatement = statement.thenStatement.statements[0];
10364
10358
  if (isAssignmentStatement(thenStatement)) {
@@ -10376,7 +10370,7 @@ function captureParamInitializer(statement, parameters) {
10376
10370
  return false;
10377
10371
  }
10378
10372
  function isUndefinedComparison(expression) {
10379
- return ts92.isBinaryExpression(expression) && expression.operatorToken.kind === ts92.SyntaxKind.EqualsEqualsEqualsToken && ts92.isVoidExpression(expression.right) && ts92.isIdentifier(expression.left);
10373
+ return ts90.isBinaryExpression(expression) && expression.operatorToken.kind === ts90.SyntaxKind.EqualsEqualsEqualsToken && ts90.isVoidExpression(expression.right) && ts90.isIdentifier(expression.left);
10380
10374
  }
10381
10375
  function getIifeFn(classSymbol) {
10382
10376
  if (classSymbol === void 0) {
@@ -10384,14 +10378,14 @@ function getIifeFn(classSymbol) {
10384
10378
  }
10385
10379
  const innerDeclaration = classSymbol.implementation.valueDeclaration;
10386
10380
  const iifeBody = innerDeclaration.parent;
10387
- if (!ts92.isBlock(iifeBody)) {
10381
+ if (!ts90.isBlock(iifeBody)) {
10388
10382
  return null;
10389
10383
  }
10390
10384
  const iifeWrapper = iifeBody.parent;
10391
- return iifeWrapper && ts92.isFunctionExpression(iifeWrapper) ? iifeWrapper : null;
10385
+ return iifeWrapper && ts90.isFunctionExpression(iifeWrapper) ? iifeWrapper : null;
10392
10386
  }
10393
10387
 
10394
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
10388
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
10395
10389
  var UmdReflectionHost = class extends Esm5ReflectionHost {
10396
10390
  constructor(logger, isCore, src, dts = null) {
10397
10391
  super(logger, isCore, src, dts);
@@ -10456,7 +10450,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10456
10450
  return void 0;
10457
10451
  }
10458
10452
  let initializer = skipAliases(declaration.parent.right);
10459
- if (ts93.isIdentifier(initializer)) {
10453
+ if (ts91.isIdentifier(initializer)) {
10460
10454
  const implementation = this.getDeclarationOfIdentifier(initializer);
10461
10455
  if (implementation !== null) {
10462
10456
  const implementationSymbol = this.getClassSymbol(implementation.node);
@@ -10501,7 +10495,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10501
10495
  }
10502
10496
  const declaration = statement.expression.left;
10503
10497
  const initializer = statement.expression.right;
10504
- if (!isAssignment2(initializer) || !ts93.isIdentifier(initializer.left) || !this.isClass(declaration)) {
10498
+ if (!isAssignment2(initializer) || !ts91.isIdentifier(initializer.left) || !this.isClass(declaration)) {
10505
10499
  return;
10506
10500
  }
10507
10501
  const aliasedIdentifier = initializer.left;
@@ -10572,11 +10566,11 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10572
10566
  }
10573
10567
  extractUmdWildcardReexports(statement, containingFile) {
10574
10568
  const reexportArg = statement.expression.arguments[0];
10575
- const requireCall = isRequireCall(reexportArg) ? reexportArg : ts93.isIdentifier(reexportArg) ? findRequireCallReference(reexportArg, this.checker) : null;
10569
+ const requireCall = isRequireCall(reexportArg) ? reexportArg : ts91.isIdentifier(reexportArg) ? findRequireCallReference(reexportArg, this.checker) : null;
10576
10570
  let importPath = null;
10577
10571
  if (requireCall !== null) {
10578
10572
  importPath = requireCall.arguments[0].text;
10579
- } else if (ts93.isIdentifier(reexportArg)) {
10573
+ } else if (ts91.isIdentifier(reexportArg)) {
10580
10574
  const importParameter = this.findUmdImportParameter(reexportArg);
10581
10575
  importPath = importParameter && this.getUmdImportPath(importParameter);
10582
10576
  }
@@ -10621,7 +10615,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10621
10615
  findUmdImportParameter(id) {
10622
10616
  const symbol = id && this.checker.getSymbolAtLocation(id) || null;
10623
10617
  const declaration = symbol && symbol.valueDeclaration;
10624
- return declaration && ts93.isParameter(declaration) ? declaration : null;
10618
+ return declaration && ts91.isParameter(declaration) ? declaration : null;
10625
10619
  }
10626
10620
  getUmdDeclaration(id) {
10627
10621
  const nsIdentifier = findNamespaceOfIdentifier(id);
@@ -10630,7 +10624,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10630
10624
  }
10631
10625
  if (nsIdentifier.parent.parent && isExportsAssignment(nsIdentifier.parent.parent)) {
10632
10626
  const initializer = nsIdentifier.parent.parent.right;
10633
- if (ts93.isIdentifier(initializer)) {
10627
+ if (ts91.isIdentifier(initializer)) {
10634
10628
  return this.getDeclarationOfIdentifier(initializer);
10635
10629
  }
10636
10630
  return this.detectKnownDeclaration({
@@ -10642,7 +10636,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10642
10636
  });
10643
10637
  }
10644
10638
  const moduleDeclaration = this.getUmdModuleDeclaration(nsIdentifier);
10645
- if (moduleDeclaration === null || moduleDeclaration.node === null || !ts93.isSourceFile(moduleDeclaration.node)) {
10639
+ if (moduleDeclaration === null || moduleDeclaration.node === null || !ts91.isSourceFile(moduleDeclaration.node)) {
10646
10640
  return null;
10647
10641
  }
10648
10642
  const moduleExports = this.getExportsOfModule(moduleDeclaration.node);
@@ -10660,8 +10654,8 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10660
10654
  if (!isExportsIdentifier(id)) {
10661
10655
  return null;
10662
10656
  }
10663
- const exportsSymbol = this.checker.getSymbolsInScope(id, ts93.SymbolFlags.Variable).find((symbol) => symbol.name === "exports");
10664
- const node = (exportsSymbol == null ? void 0 : exportsSymbol.valueDeclaration) !== void 0 && !ts93.isFunctionExpression(exportsSymbol.valueDeclaration.parent) ? exportsSymbol.valueDeclaration : id.getSourceFile();
10657
+ const exportsSymbol = this.checker.getSymbolsInScope(id, ts91.SymbolFlags.Variable).find((symbol) => symbol.name === "exports");
10658
+ const node = (exportsSymbol == null ? void 0 : exportsSymbol.valueDeclaration) !== void 0 && !ts91.isFunctionExpression(exportsSymbol.valueDeclaration.parent) ? exportsSymbol.valueDeclaration : id.getSourceFile();
10665
10659
  return {
10666
10660
  kind: 0,
10667
10661
  node,
@@ -10717,7 +10711,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
10717
10711
  const moduleInfo = this.compilerHost.resolveModuleNames([moduleName], containingFile.fileName, void 0, void 0, this.program.getCompilerOptions())[0];
10718
10712
  return moduleInfo && this.program.getSourceFile(absoluteFrom(moduleInfo.resolvedFileName));
10719
10713
  } else {
10720
- const moduleInfo = ts93.resolveModuleName(moduleName, containingFile.fileName, this.program.getCompilerOptions(), this.compilerHost);
10714
+ const moduleInfo = ts91.resolveModuleName(moduleName, containingFile.fileName, this.program.getCompilerOptions(), this.compilerHost);
10721
10715
  return moduleInfo.resolvedModule && this.program.getSourceFile(absoluteFrom(moduleInfo.resolvedModule.resolvedFileName));
10722
10716
  }
10723
10717
  }
@@ -10726,63 +10720,179 @@ function parseStatementForUmdModule(statement) {
10726
10720
  const wrapper = getUmdWrapper(statement);
10727
10721
  if (wrapper === null)
10728
10722
  return null;
10729
- const factoryFnParamIndex = wrapper.fn.parameters.findIndex((parameter) => ts93.isIdentifier(parameter.name) && parameter.name.text === "factory");
10723
+ const factoryFnParamIndex = wrapper.fn.parameters.findIndex((parameter) => ts91.isIdentifier(parameter.name) && parameter.name.text === "factory");
10730
10724
  if (factoryFnParamIndex === -1)
10731
10725
  return null;
10732
10726
  const factoryFn = stripParentheses(wrapper.call.arguments[factoryFnParamIndex]);
10733
- if (!factoryFn || !ts93.isFunctionExpression(factoryFn))
10727
+ if (!factoryFn || !ts91.isFunctionExpression(factoryFn))
10734
10728
  return null;
10735
- return { wrapperFn: wrapper.fn, factoryFn };
10729
+ let factoryCalls = null;
10730
+ return {
10731
+ wrapperFn: wrapper.fn,
10732
+ factoryFn,
10733
+ get factoryCalls() {
10734
+ if (factoryCalls === null) {
10735
+ factoryCalls = parseUmdWrapperFunction(this.wrapperFn);
10736
+ }
10737
+ return factoryCalls;
10738
+ }
10739
+ };
10736
10740
  }
10737
10741
  function getUmdWrapper(statement) {
10738
- if (!ts93.isExpressionStatement(statement))
10742
+ if (!ts91.isExpressionStatement(statement))
10739
10743
  return null;
10740
- if (ts93.isParenthesizedExpression(statement.expression) && ts93.isCallExpression(statement.expression.expression) && ts93.isFunctionExpression(statement.expression.expression.expression)) {
10744
+ if (ts91.isParenthesizedExpression(statement.expression) && ts91.isCallExpression(statement.expression.expression) && ts91.isFunctionExpression(statement.expression.expression.expression)) {
10741
10745
  const call = statement.expression.expression;
10742
10746
  const fn = statement.expression.expression.expression;
10743
10747
  return { call, fn };
10744
10748
  }
10745
- if (ts93.isCallExpression(statement.expression) && ts93.isParenthesizedExpression(statement.expression.expression) && ts93.isFunctionExpression(statement.expression.expression.expression)) {
10749
+ if (ts91.isCallExpression(statement.expression) && ts91.isParenthesizedExpression(statement.expression.expression) && ts91.isFunctionExpression(statement.expression.expression.expression)) {
10746
10750
  const call = statement.expression;
10747
10751
  const fn = statement.expression.expression.expression;
10748
10752
  return { call, fn };
10749
10753
  }
10750
10754
  return null;
10751
10755
  }
10752
- function getImportsOfUmdModule(umdModule) {
10753
- const imports = [];
10754
- for (let i = 1; i < umdModule.factoryFn.parameters.length; i++) {
10755
- imports.push({
10756
- parameter: umdModule.factoryFn.parameters[i],
10757
- path: getRequiredModulePath(umdModule.wrapperFn, i)
10756
+ function parseUmdWrapperFunction(wrapperFn) {
10757
+ const stmt = wrapperFn.body.statements[0];
10758
+ let conditionalFactoryCalls;
10759
+ if (ts91.isExpressionStatement(stmt) && ts91.isConditionalExpression(stmt.expression)) {
10760
+ conditionalFactoryCalls = extractFactoryCallsFromConditionalExpression(stmt.expression);
10761
+ } else if (ts91.isIfStatement(stmt)) {
10762
+ conditionalFactoryCalls = extractFactoryCallsFromIfStatement(stmt);
10763
+ } else {
10764
+ throw new Error("UMD wrapper body is not in a supported format (expected a conditional expression or if statement):\n" + wrapperFn.body.getText());
10765
+ }
10766
+ const amdDefine = getAmdDefineCall(conditionalFactoryCalls);
10767
+ const commonJs = getCommonJsFactoryCall(conditionalFactoryCalls);
10768
+ const commonJs2 = getCommonJs2FactoryCall(conditionalFactoryCalls);
10769
+ const global = getGlobalFactoryCall(conditionalFactoryCalls);
10770
+ const cjsCallForImports = commonJs2 || commonJs;
10771
+ if (cjsCallForImports === null) {
10772
+ throw new Error("Unable to find a CommonJS or CommonJS2 factory call inside the UMD wrapper function:\n" + stmt.getText());
10773
+ }
10774
+ return { amdDefine, commonJs, commonJs2, global, cjsCallForImports };
10775
+ }
10776
+ function extractFactoryCallsFromConditionalExpression(node) {
10777
+ const factoryCalls = [];
10778
+ let currentNode = node;
10779
+ while (ts91.isConditionalExpression(currentNode)) {
10780
+ if (!ts91.isBinaryExpression(currentNode.condition)) {
10781
+ throw new Error("Condition inside UMD wrapper is not a binary expression:\n" + currentNode.condition.getText());
10782
+ }
10783
+ factoryCalls.push({
10784
+ condition: currentNode.condition,
10785
+ factoryCall: getFunctionCallFromExpression(currentNode.whenTrue)
10758
10786
  });
10787
+ currentNode = currentNode.whenFalse;
10759
10788
  }
10760
- return imports;
10789
+ factoryCalls.push({
10790
+ condition: null,
10791
+ factoryCall: getFunctionCallFromExpression(currentNode)
10792
+ });
10793
+ return factoryCalls;
10761
10794
  }
10762
- function getRequiredModulePath(wrapperFn, paramIndex) {
10763
- const statement = wrapperFn.body.statements[0];
10764
- if (!ts93.isExpressionStatement(statement)) {
10765
- throw new Error("UMD wrapper body is not an expression statement:\n" + wrapperFn.body.getText());
10795
+ function extractFactoryCallsFromIfStatement(node) {
10796
+ const factoryCalls = [];
10797
+ let currentNode = node;
10798
+ while (currentNode && ts91.isIfStatement(currentNode)) {
10799
+ if (!ts91.isBinaryExpression(currentNode.expression)) {
10800
+ throw new Error("Condition inside UMD wrapper is not a binary expression:\n" + currentNode.expression.getText());
10801
+ }
10802
+ if (!ts91.isExpressionStatement(currentNode.thenStatement)) {
10803
+ throw new Error("Then-statement inside UMD wrapper is not an expression statement:\n" + currentNode.thenStatement.getText());
10804
+ }
10805
+ factoryCalls.push({
10806
+ condition: currentNode.expression,
10807
+ factoryCall: getFunctionCallFromExpression(currentNode.thenStatement.expression)
10808
+ });
10809
+ currentNode = currentNode.elseStatement;
10766
10810
  }
10767
- const modulePaths = [];
10768
- findModulePaths(statement.expression);
10769
- return modulePaths[paramIndex - 1];
10770
- function findModulePaths(node) {
10771
- if (isRequireCall(node)) {
10772
- const argument = node.arguments[0];
10773
- if (ts93.isStringLiteral(argument)) {
10774
- modulePaths.push(argument.text);
10775
- }
10776
- } else {
10777
- node.forEachChild(findModulePaths);
10811
+ if (currentNode) {
10812
+ if (!ts91.isExpressionStatement(currentNode)) {
10813
+ throw new Error("Else-statement inside UMD wrapper is not an expression statement:\n" + currentNode.getText());
10814
+ }
10815
+ factoryCalls.push({
10816
+ condition: null,
10817
+ factoryCall: getFunctionCallFromExpression(currentNode.expression)
10818
+ });
10819
+ }
10820
+ return factoryCalls;
10821
+ }
10822
+ function getFunctionCallFromExpression(node) {
10823
+ if (ts91.isParenthesizedExpression(node)) {
10824
+ return getFunctionCallFromExpression(node.expression);
10825
+ }
10826
+ if (ts91.isBinaryExpression(node) && [ts91.SyntaxKind.CommaToken, ts91.SyntaxKind.EqualsToken].includes(node.operatorToken.kind)) {
10827
+ return getFunctionCallFromExpression(node.right);
10828
+ }
10829
+ if (!ts91.isCallExpression(node)) {
10830
+ throw new Error("Expression inside UMD wrapper is not a call expression:\n" + node.getText());
10831
+ }
10832
+ return node;
10833
+ }
10834
+ function getAmdDefineCall(calls) {
10835
+ var _a;
10836
+ const amdConditionalCall = calls.find((call) => {
10837
+ var _a2;
10838
+ return ((_a2 = call.condition) == null ? void 0 : _a2.operatorToken.kind) === ts91.SyntaxKind.AmpersandAmpersandToken && oneOfBinaryConditions(call.condition, (exp) => isTypeOf(exp, "define")) && ts91.isIdentifier(call.factoryCall.expression) && call.factoryCall.expression.text === "define";
10839
+ });
10840
+ return (_a = amdConditionalCall == null ? void 0 : amdConditionalCall.factoryCall) != null ? _a : null;
10841
+ }
10842
+ function getCommonJsFactoryCall(calls) {
10843
+ var _a;
10844
+ const cjsConditionalCall = calls.find((call) => {
10845
+ var _a2;
10846
+ return ((_a2 = call.condition) == null ? void 0 : _a2.operatorToken.kind) === ts91.SyntaxKind.EqualsEqualsEqualsToken && isTypeOf(call.condition, "exports") && ts91.isIdentifier(call.factoryCall.expression) && call.factoryCall.expression.text === "factory";
10847
+ });
10848
+ return (_a = cjsConditionalCall == null ? void 0 : cjsConditionalCall.factoryCall) != null ? _a : null;
10849
+ }
10850
+ function getCommonJs2FactoryCall(calls) {
10851
+ var _a;
10852
+ const cjs2ConditionalCall = calls.find((call) => {
10853
+ var _a2;
10854
+ return ((_a2 = call.condition) == null ? void 0 : _a2.operatorToken.kind) === ts91.SyntaxKind.AmpersandAmpersandToken && oneOfBinaryConditions(call.condition, (exp) => isTypeOf(exp, "exports", "module")) && ts91.isIdentifier(call.factoryCall.expression) && call.factoryCall.expression.text === "factory";
10855
+ });
10856
+ return (_a = cjs2ConditionalCall == null ? void 0 : cjs2ConditionalCall.factoryCall) != null ? _a : null;
10857
+ }
10858
+ function getGlobalFactoryCall(calls) {
10859
+ var _a;
10860
+ const globalConditionalCall = calls.find((call) => call.condition === null);
10861
+ return (_a = globalConditionalCall == null ? void 0 : globalConditionalCall.factoryCall) != null ? _a : null;
10862
+ }
10863
+ function oneOfBinaryConditions(node, test) {
10864
+ return test(node.left) || test(node.right);
10865
+ }
10866
+ function isTypeOf(node, ...types) {
10867
+ return ts91.isBinaryExpression(node) && ts91.isTypeOfExpression(node.left) && ts91.isIdentifier(node.left.expression) && types.includes(node.left.expression.text);
10868
+ }
10869
+ function getImportsOfUmdModule(umdModule) {
10870
+ const imports = [];
10871
+ const cjsFactoryCall = umdModule.factoryCalls.cjsCallForImports;
10872
+ const depStartIndex = cjsFactoryCall.arguments.findIndex((arg) => isRequireCall(arg));
10873
+ if (depStartIndex !== -1) {
10874
+ for (let i = depStartIndex; i < umdModule.factoryFn.parameters.length; i++) {
10875
+ imports.push({
10876
+ parameter: umdModule.factoryFn.parameters[i],
10877
+ path: getRequiredModulePath(cjsFactoryCall, i)
10878
+ });
10778
10879
  }
10779
10880
  }
10881
+ return imports;
10882
+ }
10883
+ function getRequiredModulePath(cjsFactoryCall, paramIndex) {
10884
+ const requireCall = cjsFactoryCall.arguments[paramIndex];
10885
+ if (requireCall !== void 0 && !isRequireCall(requireCall)) {
10886
+ throw new Error(`Argument at index ${paramIndex} of UMD factory call is not a \`require\` call with a single string argument:
10887
+ ` + cjsFactoryCall.getText());
10888
+ }
10889
+ return requireCall.arguments[0].text;
10780
10890
  }
10781
10891
  function isExportsIdentifier(node) {
10782
- return ts93.isIdentifier(node) && node.text === "exports";
10892
+ return ts91.isIdentifier(node) && node.text === "exports";
10783
10893
  }
10784
10894
 
10785
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
10895
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
10786
10896
  var SUPPORTED_FORMAT_PROPERTIES = ["fesm2015", "fesm5", "es2015", "esm2015", "esm5", "main", "module", "browser"];
10787
10897
  function getEntryPointFormat(fs5, entryPoint, property2) {
10788
10898
  switch (property2) {
@@ -10823,11 +10933,11 @@ function sniffModuleFormat(fs5, sourceFilePath) {
10823
10933
  if (resolvedPath === null) {
10824
10934
  return void 0;
10825
10935
  }
10826
- const sourceFile = ts94.createSourceFile(sourceFilePath, fs5.readFile(resolvedPath), ts94.ScriptTarget.ES5);
10936
+ const sourceFile = ts92.createSourceFile(sourceFilePath, fs5.readFile(resolvedPath), ts92.ScriptTarget.ES5);
10827
10937
  if (sourceFile.statements.length === 0) {
10828
10938
  return void 0;
10829
10939
  }
10830
- if (ts94.isExternalModule(sourceFile)) {
10940
+ if (ts92.isExternalModule(sourceFile)) {
10831
10941
  return "esm5";
10832
10942
  } else if (parseStatementForUmdModule(sourceFile.statements[0]) !== null) {
10833
10943
  return "umd";
@@ -10836,7 +10946,7 @@ function sniffModuleFormat(fs5, sourceFilePath) {
10836
10946
  }
10837
10947
  }
10838
10948
 
10839
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/path_mappings.mjs
10949
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/path_mappings.mjs
10840
10950
  function getPathMappingsFromTsConfig(fs5, tsConfig, projectPath) {
10841
10951
  if (tsConfig !== null && tsConfig.options.baseUrl !== void 0 && tsConfig.options.paths !== void 0) {
10842
10952
  return {
@@ -10846,7 +10956,7 @@ function getPathMappingsFromTsConfig(fs5, tsConfig, projectPath) {
10846
10956
  }
10847
10957
  }
10848
10958
 
10849
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/in_place_file_writer.mjs
10959
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/in_place_file_writer.mjs
10850
10960
  var NGCC_BACKUP_EXTENSION = ".__ivy_ngcc_bak";
10851
10961
  var InPlaceFileWriter = class {
10852
10962
  constructor(fs5, logger, errorOnFailedEntryPoint) {
@@ -10895,7 +11005,7 @@ This error may be caused by one of the following:
10895
11005
  }
10896
11006
  };
10897
11007
 
10898
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.mjs
11008
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.mjs
10899
11009
  var NGCC_DIRECTORY = "__ivy_ngcc__";
10900
11010
  var NGCC_PROPERTY_EXTENSION = "_ivy_ngcc";
10901
11011
  var NewEntryPointFileWriter = class extends InPlaceFileWriter {
@@ -11003,7 +11113,7 @@ var NewEntryPointFileWriter = class extends InPlaceFileWriter {
11003
11113
  }
11004
11114
  };
11005
11115
 
11006
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
11116
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
11007
11117
  function getSharedSetup(options) {
11008
11118
  const fileSystem = getFileSystem();
11009
11119
  const absBasePath = absoluteFrom(options.basePath);
@@ -11062,10 +11172,10 @@ If you did intend to use this file, then you can hide this warning by providing
11062
11172
  }
11063
11173
  }
11064
11174
 
11065
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
11066
- import ts109 from "typescript";
11175
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
11176
+ import ts107 from "typescript";
11067
11177
 
11068
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/api.mjs
11178
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/api.mjs
11069
11179
  var DtsProcessing;
11070
11180
  (function(DtsProcessing2) {
11071
11181
  DtsProcessing2[DtsProcessing2["Yes"] = 0] = "Yes";
@@ -11073,21 +11183,21 @@ var DtsProcessing;
11073
11183
  DtsProcessing2[DtsProcessing2["Only"] = 2] = "Only";
11074
11184
  })(DtsProcessing || (DtsProcessing = {}));
11075
11185
 
11076
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
11077
- import ts96 from "typescript";
11186
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
11187
+ import ts94 from "typescript";
11078
11188
 
11079
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/patch_ts_expando_initializer.mjs
11080
- import ts95 from "typescript";
11189
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/patch_ts_expando_initializer.mjs
11190
+ import ts93 from "typescript";
11081
11191
  function patchTsGetExpandoInitializer() {
11082
11192
  if (isTs31778GetExpandoInitializerFixed()) {
11083
11193
  return null;
11084
11194
  }
11085
- const originalGetExpandoInitializer = ts95.getExpandoInitializer;
11195
+ const originalGetExpandoInitializer = ts93.getExpandoInitializer;
11086
11196
  if (originalGetExpandoInitializer === void 0) {
11087
11197
  throw makeUnsupportedTypeScriptError();
11088
11198
  }
11089
- ts95.getExpandoInitializer = (initializer, isPrototypeAssignment) => {
11090
- if (ts95.isParenthesizedExpression(initializer) && ts95.isCallExpression(initializer.expression)) {
11199
+ ts93.getExpandoInitializer = (initializer, isPrototypeAssignment) => {
11200
+ if (ts93.isParenthesizedExpression(initializer) && ts93.isCallExpression(initializer.expression)) {
11091
11201
  initializer = initializer.expression;
11092
11202
  }
11093
11203
  return originalGetExpandoInitializer(initializer, isPrototypeAssignment);
@@ -11096,7 +11206,7 @@ function patchTsGetExpandoInitializer() {
11096
11206
  }
11097
11207
  function restoreGetExpandoInitializer(originalGetExpandoInitializer) {
11098
11208
  if (originalGetExpandoInitializer !== null) {
11099
- ts95.getExpandoInitializer = originalGetExpandoInitializer;
11209
+ ts93.getExpandoInitializer = originalGetExpandoInitializer;
11100
11210
  }
11101
11211
  }
11102
11212
  var ts31778FixedResult = null;
@@ -11127,7 +11237,7 @@ function checkIfExpandoPropertyIsPresent() {
11127
11237
  }());
11128
11238
  A.expando = true;
11129
11239
  }());`;
11130
- const sourceFile = ts95.createSourceFile("test.js", sourceText, ts95.ScriptTarget.ES5, true, ts95.ScriptKind.JS);
11240
+ const sourceFile = ts93.createSourceFile("test.js", sourceText, ts93.ScriptTarget.ES5, true, ts93.ScriptKind.JS);
11131
11241
  const host = {
11132
11242
  getSourceFile() {
11133
11243
  return sourceFile;
@@ -11160,14 +11270,14 @@ function checkIfExpandoPropertyIsPresent() {
11160
11270
  }
11161
11271
  };
11162
11272
  const options = { noResolve: true, noLib: true, noEmit: true, allowJs: true };
11163
- const program = ts95.createProgram(["test.js"], options, host);
11273
+ const program = ts93.createProgram(["test.js"], options, host);
11164
11274
  function visitor(node) {
11165
- if (ts95.isVariableDeclaration(node) && hasNameIdentifier(node) && node.name.text === "A") {
11275
+ if (ts93.isVariableDeclaration(node) && hasNameIdentifier(node) && node.name.text === "A") {
11166
11276
  return node;
11167
11277
  }
11168
- return ts95.forEachChild(node, visitor);
11278
+ return ts93.forEachChild(node, visitor);
11169
11279
  }
11170
- const declaration = ts95.forEachChild(sourceFile, visitor);
11280
+ const declaration = ts93.forEachChild(sourceFile, visitor);
11171
11281
  if (declaration === void 0) {
11172
11282
  throw new Error("Unable to find declaration of outer A");
11173
11283
  }
@@ -11181,12 +11291,12 @@ function makeUnsupportedTypeScriptError() {
11181
11291
  return new Error("The TypeScript version used is not supported by ngcc.");
11182
11292
  }
11183
11293
 
11184
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
11294
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
11185
11295
  function makeBundleProgram(fs5, isCore, pkg, path7, r3FileName, options, host, additionalFiles = []) {
11186
11296
  const r3SymbolsPath = isCore ? findR3SymbolsPath(fs5, fs5.dirname(path7), r3FileName) : null;
11187
11297
  let rootPaths = r3SymbolsPath ? [path7, r3SymbolsPath, ...additionalFiles] : [path7, ...additionalFiles];
11188
11298
  const originalGetExpandoInitializer = patchTsGetExpandoInitializer();
11189
- const program = ts96.createProgram(rootPaths, options, host);
11299
+ const program = ts94.createProgram(rootPaths, options, host);
11190
11300
  program.getTypeChecker();
11191
11301
  restoreGetExpandoInitializer(originalGetExpandoInitializer);
11192
11302
  const file = program.getSourceFile(path7);
@@ -11211,8 +11321,8 @@ function findR3SymbolsPath(fs5, directory, filename) {
11211
11321
  return null;
11212
11322
  }
11213
11323
 
11214
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/ngcc_compiler_host.mjs
11215
- import ts97 from "typescript";
11324
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/ngcc_compiler_host.mjs
11325
+ import ts95 from "typescript";
11216
11326
  var NgccSourcesCompilerHost = class extends NgtscCompilerHost {
11217
11327
  constructor(fs5, options, cache, moduleResolutionCache, packagePath) {
11218
11328
  super(fs5, options);
@@ -11225,14 +11335,14 @@ var NgccSourcesCompilerHost = class extends NgtscCompilerHost {
11225
11335
  }
11226
11336
  resolveModuleNames(moduleNames, containingFile, reusedNames, redirectedReference) {
11227
11337
  return moduleNames.map((moduleName) => {
11228
- const { resolvedModule } = ts97.resolveModuleName(moduleName, containingFile, this.options, this, this.moduleResolutionCache, redirectedReference);
11229
- if ((resolvedModule == null ? void 0 : resolvedModule.extension) === ts97.Extension.Dts && containingFile.endsWith(".js") && isRelativePath(moduleName)) {
11338
+ const { resolvedModule } = ts95.resolveModuleName(moduleName, containingFile, this.options, this, this.moduleResolutionCache, redirectedReference);
11339
+ if ((resolvedModule == null ? void 0 : resolvedModule.extension) === ts95.Extension.Dts && containingFile.endsWith(".js") && isRelativePath(moduleName)) {
11230
11340
  const jsFile = resolvedModule.resolvedFileName.replace(/\.d\.ts$/, ".js");
11231
11341
  if (this.fileExists(jsFile)) {
11232
- return __spreadProps(__spreadValues({}, resolvedModule), { resolvedFileName: jsFile, extension: ts97.Extension.Js });
11342
+ return __spreadProps(__spreadValues({}, resolvedModule), { resolvedFileName: jsFile, extension: ts95.Extension.Js });
11233
11343
  }
11234
11344
  }
11235
- if ((resolvedModule == null ? void 0 : resolvedModule.extension) === ts97.Extension.Js && !isWithinPackage(this.packagePath, this.fs.resolve(resolvedModule.resolvedFileName))) {
11345
+ if ((resolvedModule == null ? void 0 : resolvedModule.extension) === ts95.Extension.Js && !isWithinPackage(this.packagePath, this.fs.resolve(resolvedModule.resolvedFileName))) {
11236
11346
  return void 0;
11237
11347
  }
11238
11348
  return resolvedModule;
@@ -11250,14 +11360,14 @@ var NgccDtsCompilerHost = class extends NgtscCompilerHost {
11250
11360
  }
11251
11361
  resolveModuleNames(moduleNames, containingFile, reusedNames, redirectedReference) {
11252
11362
  return moduleNames.map((moduleName) => {
11253
- const { resolvedModule } = ts97.resolveModuleName(moduleName, containingFile, this.options, this, this.moduleResolutionCache, redirectedReference);
11363
+ const { resolvedModule } = ts95.resolveModuleName(moduleName, containingFile, this.options, this, this.moduleResolutionCache, redirectedReference);
11254
11364
  return resolvedModule;
11255
11365
  });
11256
11366
  }
11257
11367
  };
11258
11368
 
11259
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/source_file_cache.mjs
11260
- import ts98 from "typescript";
11369
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/source_file_cache.mjs
11370
+ import ts96 from "typescript";
11261
11371
  var SharedFileCache = class {
11262
11372
  constructor(fs5) {
11263
11373
  this.fs = fs5;
@@ -11279,7 +11389,7 @@ var SharedFileCache = class {
11279
11389
  if (content === void 0) {
11280
11390
  return void 0;
11281
11391
  }
11282
- const sf = ts98.createSourceFile(absPath, content, ts98.ScriptTarget.ES2015);
11392
+ const sf = ts96.createSourceFile(absPath, content, ts96.ScriptTarget.ES2015);
11283
11393
  this.sfCache.set(absPath, sf);
11284
11394
  }
11285
11395
  return this.sfCache.get(absPath);
@@ -11290,7 +11400,7 @@ var SharedFileCache = class {
11290
11400
  return void 0;
11291
11401
  }
11292
11402
  if (!this.sfCache.has(absPath) || this.sfCache.get(absPath).text !== content) {
11293
- const sf = ts98.createSourceFile(absPath, content, ts98.ScriptTarget.ES2015);
11403
+ const sf = ts96.createSourceFile(absPath, content, ts96.ScriptTarget.ES2015);
11294
11404
  this.sfCache.set(absPath, sf);
11295
11405
  }
11296
11406
  return this.sfCache.get(absPath);
@@ -11340,7 +11450,7 @@ var EntryPointFileCache = class {
11340
11450
  if (content === void 0) {
11341
11451
  return void 0;
11342
11452
  }
11343
- const sf = ts98.createSourceFile(fileName, content, languageVersion);
11453
+ const sf = ts96.createSourceFile(fileName, content, languageVersion);
11344
11454
  this.sfCache.set(absPath, sf);
11345
11455
  return sf;
11346
11456
  }
@@ -11352,12 +11462,12 @@ function readFile(absPath, fs5) {
11352
11462
  return fs5.readFile(absPath);
11353
11463
  }
11354
11464
  function createModuleResolutionCache(fs5) {
11355
- return ts98.createModuleResolutionCache(fs5.pwd(), (fileName) => {
11465
+ return ts96.createModuleResolutionCache(fs5.pwd(), (fileName) => {
11356
11466
  return fs5.isCaseSensitive() ? fileName : fileName.toLowerCase();
11357
11467
  });
11358
11468
  }
11359
11469
 
11360
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point_bundle.mjs
11470
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point_bundle.mjs
11361
11471
  function makeEntryPointBundle(fs5, entryPoint, sharedFileCache, moduleResolutionCache, formatPath, isCore, format, dtsProcessing, pathMappings, mirrorDtsFromSrc = false, enableI18nLegacyMessageIdFormat = true) {
11362
11472
  const rootDir = entryPoint.packagePath;
11363
11473
  const options = __spreadValues({ allowJs: true, maxNodeModuleJsDepth: Infinity, rootDir }, pathMappings);
@@ -11398,14 +11508,14 @@ function computePotentialDtsFilesFromJsFiles(fs5, srcProgram, formatPath, typing
11398
11508
  return additionalFiles;
11399
11509
  }
11400
11510
 
11401
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
11402
- import ts108 from "typescript";
11511
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
11512
+ import ts106 from "typescript";
11403
11513
 
11404
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
11514
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
11405
11515
  import { ConstantPool as ConstantPool2 } from "@angular/compiler";
11406
11516
 
11407
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/utils.mjs
11408
- import ts99 from "typescript";
11517
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/utils.mjs
11518
+ import ts97 from "typescript";
11409
11519
  function isClassDeclaration(clazz) {
11410
11520
  return isNamedClassDeclaration(clazz) || isNamedFunctionDeclaration(clazz) || isNamedVariableDeclaration(clazz);
11411
11521
  }
@@ -11430,7 +11540,7 @@ function createDirectiveDecorator(clazz, metadata) {
11430
11540
  if (metadata.exportAs !== null) {
11431
11541
  metaArgs.push(property("exportAs", metadata.exportAs.join(", ")));
11432
11542
  }
11433
- args.push(reifySourceFile(ts99.createObjectLiteral(metaArgs)));
11543
+ args.push(reifySourceFile(ts97.createObjectLiteral(metaArgs)));
11434
11544
  }
11435
11545
  return {
11436
11546
  name: "Directive",
@@ -11458,7 +11568,7 @@ function createComponentDecorator(clazz, metadata) {
11458
11568
  node: null,
11459
11569
  synthesizedFor: clazz.name,
11460
11570
  args: [
11461
- reifySourceFile(ts99.createObjectLiteral(metaArgs))
11571
+ reifySourceFile(ts97.createObjectLiteral(metaArgs))
11462
11572
  ]
11463
11573
  };
11464
11574
  }
@@ -11473,21 +11583,21 @@ function createInjectableDecorator(clazz) {
11473
11583
  };
11474
11584
  }
11475
11585
  function property(name, value) {
11476
- return ts99.createPropertyAssignment(name, ts99.createStringLiteral(value));
11586
+ return ts97.createPropertyAssignment(name, ts97.createStringLiteral(value));
11477
11587
  }
11478
- var EMPTY_SF = ts99.createSourceFile("(empty)", "", ts99.ScriptTarget.Latest);
11588
+ var EMPTY_SF = ts97.createSourceFile("(empty)", "", ts97.ScriptTarget.Latest);
11479
11589
  function reifySourceFile(expr) {
11480
- const printer = ts99.createPrinter();
11481
- const exprText = printer.printNode(ts99.EmitHint.Unspecified, expr, EMPTY_SF);
11482
- const sf = ts99.createSourceFile("(synthetic)", `const expr = ${exprText};`, ts99.ScriptTarget.Latest, true, ts99.ScriptKind.JS);
11590
+ const printer = ts97.createPrinter();
11591
+ const exprText = printer.printNode(ts97.EmitHint.Unspecified, expr, EMPTY_SF);
11592
+ const sf = ts97.createSourceFile("(synthetic)", `const expr = ${exprText};`, ts97.ScriptTarget.Latest, true, ts97.ScriptKind.JS);
11483
11593
  const stmt = sf.statements[0];
11484
- if (!ts99.isVariableStatement(stmt)) {
11485
- throw new Error(`Expected VariableStatement, got ${ts99.SyntaxKind[stmt.kind]}`);
11594
+ if (!ts97.isVariableStatement(stmt)) {
11595
+ throw new Error(`Expected VariableStatement, got ${ts97.SyntaxKind[stmt.kind]}`);
11486
11596
  }
11487
11597
  return stmt.declarationList.declarations[0].initializer;
11488
11598
  }
11489
11599
 
11490
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/missing_injectable_migration.mjs
11600
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/missing_injectable_migration.mjs
11491
11601
  var MissingInjectableMigration = class {
11492
11602
  apply(clazz, host) {
11493
11603
  const decorators = host.reflectionHost.getDecoratorsOfDeclaration(clazz);
@@ -11592,7 +11702,7 @@ function getAngularCoreDecoratorName(decorator) {
11592
11702
  return decorator.import.name;
11593
11703
  }
11594
11704
 
11595
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_child_migration.mjs
11705
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_child_migration.mjs
11596
11706
  var UndecoratedChildMigration = class {
11597
11707
  apply(clazz, host) {
11598
11708
  const moduleMeta = host.metadata.getNgModuleMetadata(new Reference(clazz));
@@ -11627,7 +11737,7 @@ var UndecoratedChildMigration = class {
11627
11737
  }
11628
11738
  };
11629
11739
 
11630
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.mjs
11740
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.mjs
11631
11741
  var UndecoratedParentMigration = class {
11632
11742
  apply(clazz, host) {
11633
11743
  if (!hasDirectiveDecorator(host, clazz) || hasConstructor(host, clazz)) {
@@ -11660,8 +11770,8 @@ function determineBaseClass(clazz, host) {
11660
11770
  return baseClass;
11661
11771
  }
11662
11772
 
11663
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/migration_host.mjs
11664
- import ts100 from "typescript";
11773
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/migration_host.mjs
11774
+ import ts98 from "typescript";
11665
11775
  var DefaultMigrationHost = class {
11666
11776
  constructor(reflectionHost, metadata, evaluator, compiler, entryPointPath) {
11667
11777
  this.reflectionHost = reflectionHost;
@@ -11692,14 +11802,14 @@ function createMigrationDiagnostic(diagnostic, source, decorator) {
11692
11802
  const clone = __spreadValues({}, diagnostic);
11693
11803
  const chain = [{
11694
11804
  messageText: `Occurs for @${decorator.name} decorator inserted by an automatic migration`,
11695
- category: ts100.DiagnosticCategory.Message,
11805
+ category: ts98.DiagnosticCategory.Message,
11696
11806
  code: 0
11697
11807
  }];
11698
11808
  if (decorator.args !== null) {
11699
11809
  const args = decorator.args.map((arg) => arg.getText()).join(", ");
11700
11810
  chain.push({
11701
11811
  messageText: `@${decorator.name}(${args})`,
11702
- category: ts100.DiagnosticCategory.Message,
11812
+ category: ts98.DiagnosticCategory.Message,
11703
11813
  code: 0
11704
11814
  });
11705
11815
  }
@@ -11720,7 +11830,7 @@ function createMigrationDiagnostic(diagnostic, source, decorator) {
11720
11830
  return clone;
11721
11831
  }
11722
11832
 
11723
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.mjs
11833
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.mjs
11724
11834
  var NgccTraitCompiler = class extends TraitCompiler {
11725
11835
  constructor(handlers, ngccReflector) {
11726
11836
  super(handlers, ngccReflector, NOOP_PERF_RECORDER, new NoIncrementalBuild(), true, CompilationMode.FULL, new DtsTransformRegistry(), null);
@@ -11765,10 +11875,10 @@ var NoIncrementalBuild = class {
11765
11875
  }
11766
11876
  };
11767
11877
 
11768
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/types.mjs
11878
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/types.mjs
11769
11879
  var DecorationAnalyses = Map;
11770
11880
 
11771
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
11881
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
11772
11882
  var NgccResourceLoader = class {
11773
11883
  constructor(fs5) {
11774
11884
  this.fs = fs5;
@@ -11924,8 +12034,8 @@ var DecorationAnalyzer = class {
11924
12034
  }
11925
12035
  };
11926
12036
 
11927
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/module_with_providers_analyzer.mjs
11928
- import ts101 from "typescript";
12037
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/module_with_providers_analyzer.mjs
12038
+ import ts99 from "typescript";
11929
12039
  var ModuleWithProvidersAnalyses = Map;
11930
12040
  var ModuleWithProvidersAnalyzer = class {
11931
12041
  constructor(host, typeChecker, referencesRegistry, processDts) {
@@ -11947,7 +12057,7 @@ var ModuleWithProvidersAnalyzer = class {
11947
12057
  if (this.processDts) {
11948
12058
  const dtsFn = this.getDtsModuleWithProvidersFunction(fn);
11949
12059
  const dtsFnType = dtsFn.declaration.type;
11950
- const typeParam = dtsFnType && ts101.isTypeReferenceNode(dtsFnType) && dtsFnType.typeArguments && dtsFnType.typeArguments[0] || null;
12060
+ const typeParam = dtsFnType && ts99.isTypeReferenceNode(dtsFnType) && dtsFnType.typeArguments && dtsFnType.typeArguments[0] || null;
11951
12061
  if (!typeParam || isAnyKeyword(typeParam)) {
11952
12062
  const dtsFile = dtsFn.declaration.getSourceFile();
11953
12063
  const analysis = analyses.has(dtsFile) ? analyses.get(dtsFile) : [];
@@ -11992,7 +12102,7 @@ var ModuleWithProvidersAnalyzer = class {
11992
12102
  return infos;
11993
12103
  }
11994
12104
  parseForModuleWithProviders(name, node, implementation = node, container = null) {
11995
- if (implementation === null || !ts101.isFunctionDeclaration(implementation) && !ts101.isMethodDeclaration(implementation) && !ts101.isFunctionExpression(implementation)) {
12105
+ if (implementation === null || !ts99.isFunctionDeclaration(implementation) && !ts99.isMethodDeclaration(implementation) && !ts99.isFunctionExpression(implementation)) {
11996
12106
  return null;
11997
12107
  }
11998
12108
  const declaration = implementation;
@@ -12005,7 +12115,7 @@ var ModuleWithProvidersAnalyzer = class {
12005
12115
  return null;
12006
12116
  }
12007
12117
  const lastStatement = body[body.length - 1];
12008
- if (!ts101.isReturnStatement(lastStatement) || lastStatement.expression === void 0) {
12118
+ if (!ts99.isReturnStatement(lastStatement) || lastStatement.expression === void 0) {
12009
12119
  return null;
12010
12120
  }
12011
12121
  const result = this.evaluator.evaluate(lastStatement.expression);
@@ -12027,7 +12137,7 @@ var ModuleWithProvidersAnalyzer = class {
12027
12137
  const containerClass = fn.container && this.host.getClassSymbol(fn.container);
12028
12138
  if (containerClass) {
12029
12139
  const dtsClass = this.host.getDtsDeclaration(containerClass.declaration.valueDeclaration);
12030
- dtsFn = dtsClass && ts101.isClassDeclaration(dtsClass) ? dtsClass.members.find((member) => ts101.isMethodDeclaration(member) && ts101.isIdentifier(member.name) && member.name.text === fn.name) : null;
12140
+ dtsFn = dtsClass && ts99.isClassDeclaration(dtsClass) ? dtsClass.members.find((member) => ts99.isMethodDeclaration(member) && ts99.isIdentifier(member.name) && member.name.text === fn.name) : null;
12031
12141
  } else {
12032
12142
  dtsFn = this.host.getDtsDeclaration(fn.declaration);
12033
12143
  }
@@ -12057,13 +12167,13 @@ var ModuleWithProvidersAnalyzer = class {
12057
12167
  }
12058
12168
  };
12059
12169
  function isFunctionOrMethod(declaration) {
12060
- return ts101.isFunctionDeclaration(declaration) || ts101.isMethodDeclaration(declaration);
12170
+ return ts99.isFunctionDeclaration(declaration) || ts99.isMethodDeclaration(declaration);
12061
12171
  }
12062
12172
  function isAnyKeyword(typeParam) {
12063
- return typeParam.kind === ts101.SyntaxKind.AnyKeyword;
12173
+ return typeParam.kind === ts99.SyntaxKind.AnyKeyword;
12064
12174
  }
12065
12175
 
12066
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_references_registry.mjs
12176
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_references_registry.mjs
12067
12177
  var NgccReferencesRegistry = class {
12068
12178
  constructor(host) {
12069
12179
  this.host = host;
@@ -12084,7 +12194,7 @@ var NgccReferencesRegistry = class {
12084
12194
  }
12085
12195
  };
12086
12196
 
12087
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/private_declarations_analyzer.mjs
12197
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/private_declarations_analyzer.mjs
12088
12198
  var PrivateDeclarationsAnalyzer = class {
12089
12199
  constructor(host, referencesRegistry) {
12090
12200
  this.host = host;
@@ -12125,27 +12235,8 @@ var PrivateDeclarationsAnalyzer = class {
12125
12235
  }
12126
12236
  };
12127
12237
 
12128
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/switch_marker_analyzer.mjs
12129
- var SwitchMarkerAnalyses = Map;
12130
- var SwitchMarkerAnalyzer = class {
12131
- constructor(host, packagePath) {
12132
- this.host = host;
12133
- this.packagePath = packagePath;
12134
- }
12135
- analyzeProgram(program) {
12136
- const analyzedFiles = new SwitchMarkerAnalyses();
12137
- program.getSourceFiles().filter((sourceFile) => isWithinPackage(this.packagePath, absoluteFromSourceFile(sourceFile))).forEach((sourceFile) => {
12138
- const declarations = this.host.getSwitchableDeclarations(sourceFile);
12139
- if (declarations.length) {
12140
- analyzedFiles.set(sourceFile, { sourceFile, declarations });
12141
- }
12142
- });
12143
- return analyzedFiles;
12144
- }
12145
- };
12146
-
12147
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_host.mjs
12148
- import ts102 from "typescript";
12238
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_host.mjs
12239
+ import ts100 from "typescript";
12149
12240
  var CommonJsReflectionHost = class extends Esm5ReflectionHost {
12150
12241
  constructor(logger, isCore, src, dts = null) {
12151
12242
  super(logger, isCore, src, dts);
@@ -12219,7 +12310,7 @@ var CommonJsReflectionHost = class extends Esm5ReflectionHost {
12219
12310
  }
12220
12311
  extractCommonJsWildcardReexports(statement, containingFile) {
12221
12312
  const reexportArg = statement.expression.arguments[0];
12222
- const requireCall = isRequireCall(reexportArg) ? reexportArg : ts102.isIdentifier(reexportArg) ? findRequireCallReference(reexportArg, this.checker) : null;
12313
+ const requireCall = isRequireCall(reexportArg) ? reexportArg : ts100.isIdentifier(reexportArg) ? findRequireCallReference(reexportArg, this.checker) : null;
12223
12314
  if (requireCall === null) {
12224
12315
  return [];
12225
12316
  }
@@ -12302,13 +12393,13 @@ var CommonJsReflectionHost = class extends Esm5ReflectionHost {
12302
12393
  const moduleInfo = this.compilerHost.resolveModuleNames([moduleName], containingFile.fileName, void 0, void 0, this.program.getCompilerOptions())[0];
12303
12394
  return moduleInfo && this.program.getSourceFile(absoluteFrom(moduleInfo.resolvedFileName));
12304
12395
  } else {
12305
- const moduleInfo = ts102.resolveModuleName(moduleName, containingFile.fileName, this.program.getCompilerOptions(), this.compilerHost);
12396
+ const moduleInfo = ts100.resolveModuleName(moduleName, containingFile.fileName, this.program.getCompilerOptions(), this.compilerHost);
12306
12397
  return moduleInfo.resolvedModule && this.program.getSourceFile(absoluteFrom(moduleInfo.resolvedModule.resolvedFileName));
12307
12398
  }
12308
12399
  }
12309
12400
  };
12310
12401
 
12311
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/delegating_host.mjs
12402
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/delegating_host.mjs
12312
12403
  var DelegatingReflectionHost = class {
12313
12404
  constructor(tsHost, ngccHost) {
12314
12405
  this.tsHost = tsHost;
@@ -12418,9 +12509,6 @@ var DelegatingReflectionHost = class {
12418
12509
  getDecoratorsOfSymbol(symbol) {
12419
12510
  return this.ngccHost.getDecoratorsOfSymbol(symbol);
12420
12511
  }
12421
- getSwitchableDeclarations(module2) {
12422
- return this.ngccHost.getSwitchableDeclarations(module2);
12423
- }
12424
12512
  getEndOfClass(classSymbol) {
12425
12513
  return this.ngccHost.getEndOfClass(classSymbol);
12426
12514
  }
@@ -12432,16 +12520,16 @@ var DelegatingReflectionHost = class {
12432
12520
  }
12433
12521
  };
12434
12522
 
12435
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
12436
- import ts105 from "typescript";
12523
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
12524
+ import ts103 from "typescript";
12437
12525
 
12438
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
12439
- import ts104 from "typescript";
12526
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
12527
+ import ts102 from "typescript";
12440
12528
 
12441
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
12442
- import ts103 from "typescript";
12529
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
12530
+ import ts101 from "typescript";
12443
12531
 
12444
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/ngcc_import_rewriter.mjs
12532
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/ngcc_import_rewriter.mjs
12445
12533
  var NgccFlatImportRewriter = class {
12446
12534
  shouldImportSymbol(symbol, specifier) {
12447
12535
  if (specifier === "@angular/core") {
@@ -12462,7 +12550,7 @@ var NgccFlatImportRewriter = class {
12462
12550
  }
12463
12551
  };
12464
12552
 
12465
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/utils.mjs
12553
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/utils.mjs
12466
12554
  function getImportRewriter(r3SymbolsFile, isCore, isFlat) {
12467
12555
  if (isCore && isFlat) {
12468
12556
  return new NgccFlatImportRewriter();
@@ -12476,13 +12564,13 @@ function stripExtension3(filePath) {
12476
12564
  return filePath.replace(/\.(js|d\.ts)$/, "");
12477
12565
  }
12478
12566
 
12479
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
12567
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
12480
12568
  var EsmRenderingFormatter = class {
12481
12569
  constructor(fs5, host, isCore) {
12482
12570
  this.fs = fs5;
12483
12571
  this.host = host;
12484
12572
  this.isCore = isCore;
12485
- this.printer = ts103.createPrinter({ newLine: ts103.NewLineKind.LineFeed });
12573
+ this.printer = ts101.createPrinter({ newLine: ts101.NewLineKind.LineFeed });
12486
12574
  }
12487
12575
  addImports(output, imports, sf) {
12488
12576
  if (imports.length === 0) {
@@ -12542,14 +12630,14 @@ export {${e.symbolName} as ${e.asAlias}} from '${e.fromModule}';`;
12542
12630
  }
12543
12631
  removeDecorators(output, decoratorsToRemove) {
12544
12632
  decoratorsToRemove.forEach((nodesToRemove, containerNode) => {
12545
- if (ts103.isArrayLiteralExpression(containerNode)) {
12633
+ if (ts101.isArrayLiteralExpression(containerNode)) {
12546
12634
  const items = containerNode.elements;
12547
12635
  if (items.length === nodesToRemove.length) {
12548
12636
  const statement = findStatement(containerNode);
12549
12637
  if (statement) {
12550
- if (ts103.isExpressionStatement(statement)) {
12638
+ if (ts101.isExpressionStatement(statement)) {
12551
12639
  output.remove(statement.getFullStart(), statement.getEnd());
12552
- } else if (ts103.isReturnStatement(statement) && statement.expression && isAssignment2(statement.expression)) {
12640
+ } else if (ts101.isReturnStatement(statement) && statement.expression && isAssignment2(statement.expression)) {
12553
12641
  const startOfRemoval = statement.expression.left.getEnd();
12554
12642
  const endOfRemoval = getEndExceptSemicolon(statement);
12555
12643
  output.remove(startOfRemoval, endOfRemoval);
@@ -12572,14 +12660,6 @@ export {${e.symbolName} as ${e.asAlias}} from '${e.fromModule}';`;
12572
12660
  }
12573
12661
  });
12574
12662
  }
12575
- rewriteSwitchableDeclarations(outputText, sourceFile, declarations) {
12576
- declarations.forEach((declaration) => {
12577
- const start = declaration.initializer.getStart();
12578
- const end = declaration.initializer.getEnd();
12579
- const replacement = declaration.initializer.text.replace(PRE_R3_MARKER, POST_R3_MARKER);
12580
- outputText.overwrite(start, end, replacement);
12581
- });
12582
- }
12583
12663
  addModuleWithProvidersParams(outputText, moduleWithProviders, importManager) {
12584
12664
  moduleWithProviders.forEach((info) => {
12585
12665
  const ngModuleName = info.ngModule.node.name.text;
@@ -12590,7 +12670,7 @@ export {${e.symbolName} as ${e.asAlias}} from '${e.fromModule}';`;
12590
12670
  const importPath = info.ngModule.ownedByModuleGuess || (declarationFile !== ngModuleFile ? stripExtension3(relativeImport) : null);
12591
12671
  const ngModule = generateImportString(importManager, importPath, ngModuleName);
12592
12672
  if (info.declaration.type) {
12593
- const typeName = info.declaration.type && ts103.isTypeReferenceNode(info.declaration.type) ? info.declaration.type.typeName : null;
12673
+ const typeName = info.declaration.type && ts101.isTypeReferenceNode(info.declaration.type) ? info.declaration.type.typeName : null;
12594
12674
  if (this.isCoreModuleWithProvidersType(typeName)) {
12595
12675
  outputText.overwrite(info.declaration.type.getStart(), info.declaration.type.getEnd(), `ModuleWithProviders<${ngModule}>`);
12596
12676
  } else {
@@ -12599,32 +12679,32 @@ export {${e.symbolName} as ${e.asAlias}} from '${e.fromModule}';`;
12599
12679
  }
12600
12680
  } else {
12601
12681
  const lastToken = info.declaration.getLastToken();
12602
- const insertPoint = lastToken && lastToken.kind === ts103.SyntaxKind.SemicolonToken ? lastToken.getStart() : info.declaration.getEnd();
12682
+ const insertPoint = lastToken && lastToken.kind === ts101.SyntaxKind.SemicolonToken ? lastToken.getStart() : info.declaration.getEnd();
12603
12683
  outputText.appendLeft(insertPoint, `: ${generateImportString(importManager, "@angular/core", "ModuleWithProviders")}<${ngModule}>`);
12604
12684
  }
12605
12685
  });
12606
12686
  }
12607
12687
  printStatement(stmt, sourceFile, importManager) {
12608
12688
  const node = translateStatement(stmt, importManager);
12609
- const code = this.printer.printNode(ts103.EmitHint.Unspecified, node, sourceFile);
12689
+ const code = this.printer.printNode(ts101.EmitHint.Unspecified, node, sourceFile);
12610
12690
  return code;
12611
12691
  }
12612
12692
  findEndOfImports(sf) {
12613
12693
  for (const stmt of sf.statements) {
12614
- if (!ts103.isImportDeclaration(stmt) && !ts103.isImportEqualsDeclaration(stmt) && !ts103.isNamespaceImport(stmt)) {
12694
+ if (!ts101.isImportDeclaration(stmt) && !ts101.isImportEqualsDeclaration(stmt) && !ts101.isNamespaceImport(stmt)) {
12615
12695
  return stmt.getStart();
12616
12696
  }
12617
12697
  }
12618
12698
  return 0;
12619
12699
  }
12620
12700
  isCoreModuleWithProvidersType(typeName) {
12621
- const id = typeName && ts103.isIdentifier(typeName) ? this.host.getImportOfIdentifier(typeName) : null;
12701
+ const id = typeName && ts101.isIdentifier(typeName) ? this.host.getImportOfIdentifier(typeName) : null;
12622
12702
  return id && id.name === "ModuleWithProviders" && (this.isCore || id.from === "@angular/core");
12623
12703
  }
12624
12704
  };
12625
12705
  function findStatement(node) {
12626
12706
  while (node) {
12627
- if (ts103.isExpressionStatement(node) || ts103.isReturnStatement(node)) {
12707
+ if (ts101.isExpressionStatement(node) || ts101.isReturnStatement(node)) {
12628
12708
  return node;
12629
12709
  }
12630
12710
  node = node.parent;
@@ -12641,10 +12721,10 @@ function getNextSiblingInArray(node, array) {
12641
12721
  }
12642
12722
  function getEndExceptSemicolon(statement) {
12643
12723
  const lastToken = statement.getLastToken();
12644
- return lastToken && lastToken.kind === ts103.SyntaxKind.SemicolonToken ? statement.getEnd() - 1 : statement.getEnd();
12724
+ return lastToken && lastToken.kind === ts101.SyntaxKind.SemicolonToken ? statement.getEnd() - 1 : statement.getEnd();
12645
12725
  }
12646
12726
 
12647
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
12727
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
12648
12728
  var Esm5RenderingFormatter = class extends EsmRenderingFormatter {
12649
12729
  addDefinitions(output, compiledClass, definitions) {
12650
12730
  const classSymbol = this.host.getClassSymbol(compiledClass.declaration);
@@ -12655,10 +12735,10 @@ Expected an ES5 IIFE wrapped function. But got:
12655
12735
  }
12656
12736
  const declarationStatement = getContainingStatement(classSymbol.implementation.valueDeclaration);
12657
12737
  const iifeBody = declarationStatement.parent;
12658
- if (!iifeBody || !ts104.isBlock(iifeBody)) {
12738
+ if (!iifeBody || !ts102.isBlock(iifeBody)) {
12659
12739
  throw new Error(`Compiled class declaration is not inside an IIFE: ${compiledClass.name} in ${compiledClass.declaration.getSourceFile().fileName}`);
12660
12740
  }
12661
- const returnStatement = iifeBody.statements.find(ts104.isReturnStatement);
12741
+ const returnStatement = iifeBody.statements.find(ts102.isReturnStatement);
12662
12742
  if (!returnStatement) {
12663
12743
  throw new Error(`Compiled class wrapper IIFE does not have a return statement: ${compiledClass.name} in ${compiledClass.declaration.getSourceFile().fileName}`);
12664
12744
  }
@@ -12667,12 +12747,12 @@ Expected an ES5 IIFE wrapped function. But got:
12667
12747
  }
12668
12748
  printStatement(stmt, sourceFile, importManager) {
12669
12749
  const node = translateStatement(stmt, importManager, { downlevelTaggedTemplates: true, downlevelVariableDeclarations: true });
12670
- const code = this.printer.printNode(ts104.EmitHint.Unspecified, node, sourceFile);
12750
+ const code = this.printer.printNode(ts102.EmitHint.Unspecified, node, sourceFile);
12671
12751
  return code;
12672
12752
  }
12673
12753
  };
12674
12754
 
12675
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
12755
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
12676
12756
  var CommonJsRenderingFormatter = class extends Esm5RenderingFormatter {
12677
12757
  constructor(fs5, commonJsHost, isCore) {
12678
12758
  super(fs5, commonJsHost, isCore);
@@ -12709,10 +12789,10 @@ exports.${e.asAlias} = ${importNamespace}${namedImport.symbol};`;
12709
12789
  }
12710
12790
  findEndOfImports(sf) {
12711
12791
  for (const statement of sf.statements) {
12712
- if (ts105.isExpressionStatement(statement) && isRequireCall(statement.expression)) {
12792
+ if (ts103.isExpressionStatement(statement) && isRequireCall(statement.expression)) {
12713
12793
  continue;
12714
12794
  }
12715
- const declarations = ts105.isVariableStatement(statement) ? Array.from(statement.declarationList.declarations) : [];
12795
+ const declarations = ts103.isVariableStatement(statement) ? Array.from(statement.declarationList.declarations) : [];
12716
12796
  if (declarations.some((d) => !d.initializer || !isRequireCall(d.initializer))) {
12717
12797
  return statement.getStart();
12718
12798
  }
@@ -12721,17 +12801,17 @@ exports.${e.asAlias} = ${importNamespace}${namedImport.symbol};`;
12721
12801
  }
12722
12802
  };
12723
12803
 
12724
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
12804
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
12725
12805
  import MagicString from "magic-string";
12726
- import ts106 from "typescript";
12806
+ import ts104 from "typescript";
12727
12807
 
12728
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/constants.mjs
12808
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/constants.mjs
12729
12809
  var IMPORT_PREFIX = "\u0275ngcc";
12730
12810
 
12731
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
12811
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
12732
12812
  import mapHelpers3 from "convert-source-map";
12733
12813
 
12734
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
12814
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
12735
12815
  var ContentOrigin;
12736
12816
  (function(ContentOrigin2) {
12737
12817
  ContentOrigin2[ContentOrigin2["Provided"] = 0] = "Provided";
@@ -12739,11 +12819,11 @@ var ContentOrigin;
12739
12819
  ContentOrigin2[ContentOrigin2["FileSystem"] = 2] = "FileSystem";
12740
12820
  })(ContentOrigin || (ContentOrigin = {}));
12741
12821
 
12742
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
12822
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
12743
12823
  import mapHelpers from "convert-source-map";
12744
12824
  import { decode, encode } from "sourcemap-codec";
12745
12825
 
12746
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
12826
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
12747
12827
  function compareSegments(a, b) {
12748
12828
  return a.position - b.position;
12749
12829
  }
@@ -12763,7 +12843,7 @@ function offsetSegment(startOfLinePositions, marker, offset) {
12763
12843
  return { line, column, position, next: void 0 };
12764
12844
  }
12765
12845
 
12766
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
12846
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
12767
12847
  function removeSourceMapComments(contents) {
12768
12848
  return mapHelpers.removeMapFileComments(mapHelpers.removeComments(contents)).replace(/\n\n$/, "\n");
12769
12849
  }
@@ -13014,7 +13094,7 @@ var Cache = class {
13014
13094
  }
13015
13095
  };
13016
13096
 
13017
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
13097
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
13018
13098
  import mapHelpers2 from "convert-source-map";
13019
13099
  var SCHEME_MATCHER = /^([a-z][a-z0-9.-]*):\/\//i;
13020
13100
  var SourceFileLoader = class {
@@ -13131,7 +13211,7 @@ var SourceFileLoader = class {
13131
13211
  }
13132
13212
  };
13133
13213
 
13134
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
13214
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
13135
13215
  function renderSourceAndMap(logger, fs5, sourceFile, generatedMagicString) {
13136
13216
  var _a;
13137
13217
  const sourceFilePath = absoluteFromSourceFile(sourceFile);
@@ -13165,7 +13245,7 @@ ${sourceMapComment}` },
13165
13245
  }
13166
13246
  }
13167
13247
 
13168
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
13248
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
13169
13249
  var DtsRenderInfo = class {
13170
13250
  constructor() {
13171
13251
  this.classInfo = [];
@@ -13195,14 +13275,14 @@ var DtsRenderer = class {
13195
13275
  }
13196
13276
  renderDtsFile(dtsFile, renderInfo) {
13197
13277
  const outputText = new MagicString(dtsFile.text);
13198
- const printer = ts106.createPrinter();
13278
+ const printer = ts104.createPrinter();
13199
13279
  const importManager = new ImportManager(getImportRewriter(this.bundle.dts.r3SymbolsFile, this.bundle.isCore, false), IMPORT_PREFIX);
13200
13280
  renderInfo.classInfo.forEach((dtsClass) => {
13201
13281
  const endOfClass = dtsClass.dtsDeclaration.getEnd();
13202
13282
  dtsClass.compilation.forEach((declaration) => {
13203
13283
  const type = translateType(declaration.type, importManager);
13204
13284
  markForEmitAsSingleLine2(type);
13205
- const typeStr = printer.printNode(ts106.EmitHint.Unspecified, type, dtsFile);
13285
+ const typeStr = printer.printNode(ts104.EmitHint.Unspecified, type, dtsFile);
13206
13286
  const newStatement = ` static ${declaration.name}: ${typeStr};
13207
13287
  `;
13208
13288
  outputText.appendRight(endOfClass - 1, newStatement);
@@ -13262,18 +13342,18 @@ The simplest fix for this is to ensure that this class is exported from the pack
13262
13342
  }
13263
13343
  };
13264
13344
  function markForEmitAsSingleLine2(node) {
13265
- ts106.setEmitFlags(node, ts106.EmitFlags.SingleLine);
13266
- ts106.forEachChild(node, markForEmitAsSingleLine2);
13345
+ ts104.setEmitFlags(node, ts104.EmitFlags.SingleLine);
13346
+ ts104.forEachChild(node, markForEmitAsSingleLine2);
13267
13347
  }
13268
13348
 
13269
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
13349
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
13270
13350
  import { jsDocComment, WrappedNodeExpr as WrappedNodeExpr9, WritePropExpr } from "@angular/compiler";
13271
13351
  import MagicString2 from "magic-string";
13272
13352
 
13273
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/rendering_formatter.mjs
13353
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/rendering_formatter.mjs
13274
13354
  var RedundantDecoratorMap = Map;
13275
13355
 
13276
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
13356
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
13277
13357
  var Renderer = class {
13278
13358
  constructor(host, srcFormatter, fs5, logger, bundle, tsConfig = null) {
13279
13359
  this.host = host;
@@ -13283,23 +13363,19 @@ var Renderer = class {
13283
13363
  this.bundle = bundle;
13284
13364
  this.tsConfig = tsConfig;
13285
13365
  }
13286
- renderProgram(decorationAnalyses, switchMarkerAnalyses, privateDeclarationsAnalyses) {
13366
+ renderProgram(decorationAnalyses, privateDeclarationsAnalyses) {
13287
13367
  const renderedFiles = [];
13288
13368
  this.bundle.src.program.getSourceFiles().forEach((sourceFile) => {
13289
- if (decorationAnalyses.has(sourceFile) || switchMarkerAnalyses.has(sourceFile) || sourceFile === this.bundle.src.file) {
13369
+ if (decorationAnalyses.has(sourceFile) || sourceFile === this.bundle.src.file) {
13290
13370
  const compiledFile = decorationAnalyses.get(sourceFile);
13291
- const switchMarkerAnalysis = switchMarkerAnalyses.get(sourceFile);
13292
- renderedFiles.push(...this.renderFile(sourceFile, compiledFile, switchMarkerAnalysis, privateDeclarationsAnalyses));
13371
+ renderedFiles.push(...this.renderFile(sourceFile, compiledFile, privateDeclarationsAnalyses));
13293
13372
  }
13294
13373
  });
13295
13374
  return renderedFiles;
13296
13375
  }
13297
- renderFile(sourceFile, compiledFile, switchMarkerAnalysis, privateDeclarationsAnalyses) {
13376
+ renderFile(sourceFile, compiledFile, privateDeclarationsAnalyses) {
13298
13377
  const isEntryPoint = sourceFile === this.bundle.src.file;
13299
13378
  const outputText = new MagicString2(sourceFile.text);
13300
- if (switchMarkerAnalysis) {
13301
- this.srcFormatter.rewriteSwitchableDeclarations(outputText, switchMarkerAnalysis.sourceFile, switchMarkerAnalysis.declarations);
13302
- }
13303
13379
  const importManager = new ImportManager(getImportRewriter(this.bundle.src.r3SymbolsFile, this.bundle.isCore, this.bundle.isFlatCore), IMPORT_PREFIX);
13304
13380
  if (compiledFile) {
13305
13381
  const decoratorsToRemove = this.computeDecoratorsToRemove(compiledFile.compiledClasses);
@@ -13323,7 +13399,7 @@ var Renderer = class {
13323
13399
  if (isEntryPoint || compiledFile) {
13324
13400
  this.srcFormatter.addImports(outputText, importManager.getAllImports(sourceFile.fileName), sourceFile);
13325
13401
  }
13326
- if (compiledFile || switchMarkerAnalysis || isEntryPoint) {
13402
+ if (compiledFile || isEntryPoint) {
13327
13403
  return renderSourceAndMap(this.logger, this.fs, sourceFile, outputText);
13328
13404
  } else {
13329
13405
  return [];
@@ -13380,8 +13456,8 @@ function createAssignmentStatement(receiverName, propName, initializer, leadingC
13380
13456
  return statement;
13381
13457
  }
13382
13458
 
13383
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.mjs
13384
- import ts107 from "typescript";
13459
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.mjs
13460
+ import ts105 from "typescript";
13385
13461
  var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
13386
13462
  constructor(fs5, umdHost, isCore) {
13387
13463
  super(fs5, umdHost, isCore);
@@ -13395,10 +13471,11 @@ var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
13395
13471
  if (!umdModule) {
13396
13472
  return;
13397
13473
  }
13398
- const { wrapperFn, factoryFn } = umdModule;
13399
- renderCommonJsDependencies(output, wrapperFn, imports);
13400
- renderAmdDependencies(output, wrapperFn, imports);
13401
- renderGlobalDependencies(output, wrapperFn, imports);
13474
+ const { factoryFn, factoryCalls } = umdModule;
13475
+ renderCommonJsDependencies(output, factoryCalls.commonJs, imports);
13476
+ renderCommonJsDependencies(output, factoryCalls.commonJs2, imports);
13477
+ renderAmdDependencies(output, factoryCalls.amdDefine, imports);
13478
+ renderGlobalDependencies(output, factoryCalls.global, imports);
13402
13479
  renderFactoryParameters(output, factoryFn, imports);
13403
13480
  }
13404
13481
  addExports(output, entryPointBasePath, exports, importManager, file) {
@@ -13449,26 +13526,22 @@ exports.${e.asAlias} = ${importNamespace}${namedImport.symbol};`;
13449
13526
  output.appendLeft(insertionPoint, "\n" + constants + "\n");
13450
13527
  }
13451
13528
  };
13452
- function renderCommonJsDependencies(output, wrapperFunction, imports) {
13453
- const conditional = find(wrapperFunction.body.statements[0], isCommonJSConditional);
13454
- if (!conditional) {
13529
+ function renderCommonJsDependencies(output, factoryCall, imports) {
13530
+ if (factoryCall === null) {
13455
13531
  return;
13456
13532
  }
13457
- const factoryCall = conditional.whenTrue;
13458
13533
  const injectionPoint = factoryCall.arguments.length > 0 ? factoryCall.arguments[0].getFullStart() : factoryCall.getEnd() - 1;
13459
13534
  const importString = imports.map((i) => `require('${i.specifier}')`).join(",");
13460
13535
  output.appendLeft(injectionPoint, importString + (factoryCall.arguments.length > 0 ? "," : ""));
13461
13536
  }
13462
- function renderAmdDependencies(output, wrapperFunction, imports) {
13463
- const conditional = find(wrapperFunction.body.statements[0], isAmdConditional);
13464
- if (!conditional) {
13537
+ function renderAmdDependencies(output, amdDefineCall, imports) {
13538
+ if (amdDefineCall === null) {
13465
13539
  return;
13466
13540
  }
13467
- const amdDefineCall = conditional.whenTrue;
13468
13541
  const importString = imports.map((i) => `'${i.specifier}'`).join(",");
13469
13542
  const factoryIndex = amdDefineCall.arguments.length - 1;
13470
13543
  const dependencyArray = amdDefineCall.arguments[factoryIndex - 1];
13471
- if (dependencyArray === void 0 || !ts107.isArrayLiteralExpression(dependencyArray)) {
13544
+ if (dependencyArray === void 0 || !ts105.isArrayLiteralExpression(dependencyArray)) {
13472
13545
  const injectionPoint = amdDefineCall.arguments[factoryIndex].getFullStart();
13473
13546
  output.appendLeft(injectionPoint, `[${importString}],`);
13474
13547
  } else {
@@ -13476,14 +13549,13 @@ function renderAmdDependencies(output, wrapperFunction, imports) {
13476
13549
  output.appendLeft(injectionPoint, importString + (dependencyArray.elements.length > 0 ? "," : ""));
13477
13550
  }
13478
13551
  }
13479
- function renderGlobalDependencies(output, wrapperFunction, imports) {
13480
- const globalFactoryCall = find(wrapperFunction.body.statements[0], isGlobalFactoryCall);
13481
- if (!globalFactoryCall) {
13552
+ function renderGlobalDependencies(output, factoryCall, imports) {
13553
+ if (factoryCall === null) {
13482
13554
  return;
13483
13555
  }
13484
- const injectionPoint = globalFactoryCall.arguments.length > 0 ? globalFactoryCall.arguments[0].getFullStart() : globalFactoryCall.getEnd() - 1;
13556
+ const injectionPoint = factoryCall.arguments.length > 0 ? factoryCall.arguments[0].getFullStart() : factoryCall.getEnd() - 1;
13485
13557
  const importString = imports.map((i) => `global.${getGlobalIdentifier(i)}`).join(",");
13486
- output.appendLeft(injectionPoint, importString + (globalFactoryCall.arguments.length > 0 ? "," : ""));
13558
+ output.appendLeft(injectionPoint, importString + (factoryCall.arguments.length > 0 ? "," : ""));
13487
13559
  }
13488
13560
  function renderFactoryParameters(output, factoryFunction, imports) {
13489
13561
  const parameters = factoryFunction.parameters;
@@ -13496,62 +13568,11 @@ function renderFactoryParameters(output, factoryFunction, imports) {
13496
13568
  output.appendLeft(injectionPoint, parameterString);
13497
13569
  }
13498
13570
  }
13499
- function isCommonJSConditional(value) {
13500
- if (!ts107.isConditionalExpression(value)) {
13501
- return false;
13502
- }
13503
- if (!ts107.isBinaryExpression(value.condition) || value.condition.operatorToken.kind !== ts107.SyntaxKind.AmpersandAmpersandToken) {
13504
- return false;
13505
- }
13506
- if (!oneOfBinaryConditions(value.condition, (exp) => isTypeOf(exp, "exports", "module"))) {
13507
- return false;
13508
- }
13509
- if (!ts107.isCallExpression(value.whenTrue) || !ts107.isIdentifier(value.whenTrue.expression)) {
13510
- return false;
13511
- }
13512
- return value.whenTrue.expression.text === "factory";
13513
- }
13514
- function isAmdConditional(value) {
13515
- if (!ts107.isConditionalExpression(value)) {
13516
- return false;
13517
- }
13518
- if (!ts107.isBinaryExpression(value.condition) || value.condition.operatorToken.kind !== ts107.SyntaxKind.AmpersandAmpersandToken) {
13519
- return false;
13520
- }
13521
- if (!oneOfBinaryConditions(value.condition, (exp) => isTypeOf(exp, "define"))) {
13522
- return false;
13523
- }
13524
- if (!ts107.isCallExpression(value.whenTrue) || !ts107.isIdentifier(value.whenTrue.expression)) {
13525
- return false;
13526
- }
13527
- return value.whenTrue.expression.text === "define";
13528
- }
13529
- function isGlobalFactoryCall(value) {
13530
- if (ts107.isCallExpression(value) && !!value.parent) {
13531
- value = isCommaExpression(value.parent) ? value.parent : value;
13532
- value = ts107.isParenthesizedExpression(value.parent) ? value.parent : value;
13533
- return !!value.parent && ts107.isConditionalExpression(value.parent) && value.parent.whenFalse === value;
13534
- } else {
13535
- return false;
13536
- }
13537
- }
13538
- function isCommaExpression(value) {
13539
- return ts107.isBinaryExpression(value) && value.operatorToken.kind === ts107.SyntaxKind.CommaToken;
13540
- }
13541
13571
  function getGlobalIdentifier(i) {
13542
13572
  return i.specifier.replace(/^@angular\//, "ng.").replace(/^@/, "").replace(/\//g, ".").replace(/[-_]+(.?)/g, (_, c) => c.toUpperCase()).replace(/^./, (c) => c.toLowerCase());
13543
13573
  }
13544
- function find(node, test) {
13545
- return test(node) ? node : node.forEachChild((child) => find(child, test));
13546
- }
13547
- function oneOfBinaryConditions(node, test) {
13548
- return test(node.left) || test(node.right);
13549
- }
13550
- function isTypeOf(node, ...types) {
13551
- return ts107.isBinaryExpression(node) && ts107.isTypeOfExpression(node.left) && ts107.isIdentifier(node.left.expression) && types.indexOf(node.left.expression.text) !== -1;
13552
- }
13553
13574
 
13554
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
13575
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
13555
13576
  var Transformer = class {
13556
13577
  constructor(fs5, logger, tsConfig = null) {
13557
13578
  this.fs = fs5;
@@ -13562,7 +13583,7 @@ var Transformer = class {
13562
13583
  const ngccReflectionHost = this.getHost(bundle);
13563
13584
  const tsReflectionHost = new TypeScriptReflectionHost(bundle.src.program.getTypeChecker());
13564
13585
  const reflectionHost = new DelegatingReflectionHost(tsReflectionHost, ngccReflectionHost);
13565
- const { decorationAnalyses, switchMarkerAnalyses, privateDeclarationsAnalyses, moduleWithProvidersAnalyses, diagnostics } = this.analyzeProgram(reflectionHost, bundle);
13586
+ const { decorationAnalyses, privateDeclarationsAnalyses, moduleWithProvidersAnalyses, diagnostics } = this.analyzeProgram(reflectionHost, bundle);
13566
13587
  if (hasErrors(diagnostics)) {
13567
13588
  return { success: false, diagnostics };
13568
13589
  }
@@ -13570,7 +13591,7 @@ var Transformer = class {
13570
13591
  if (bundle.dtsProcessing !== DtsProcessing.Only) {
13571
13592
  const srcFormatter = this.getRenderingFormatter(ngccReflectionHost, bundle);
13572
13593
  const renderer = new Renderer(reflectionHost, srcFormatter, this.fs, this.logger, bundle, this.tsConfig);
13573
- renderedFiles = renderer.renderProgram(decorationAnalyses, switchMarkerAnalyses, privateDeclarationsAnalyses);
13594
+ renderedFiles = renderer.renderProgram(decorationAnalyses, privateDeclarationsAnalyses);
13574
13595
  }
13575
13596
  if (bundle.dts) {
13576
13597
  const dtsFormatter = new EsmRenderingFormatter(this.fs, reflectionHost, bundle.isCore);
@@ -13613,8 +13634,6 @@ var Transformer = class {
13613
13634
  }
13614
13635
  analyzeProgram(reflectionHost, bundle) {
13615
13636
  const referencesRegistry = new NgccReferencesRegistry(reflectionHost);
13616
- const switchMarkerAnalyzer = new SwitchMarkerAnalyzer(reflectionHost, bundle.entryPoint.packagePath);
13617
- const switchMarkerAnalyses = switchMarkerAnalyzer.analyzeProgram(bundle.src.program);
13618
13637
  const diagnostics = [];
13619
13638
  const decorationAnalyzer = new DecorationAnalyzer(this.fs, bundle, reflectionHost, referencesRegistry, (diagnostic) => diagnostics.push(diagnostic), this.tsConfig);
13620
13639
  const decorationAnalyses = decorationAnalyzer.analyzeProgram();
@@ -13624,7 +13643,6 @@ var Transformer = class {
13624
13643
  const privateDeclarationsAnalyses = privateDeclarationsAnalyzer.analyzeProgram(bundle.src.program);
13625
13644
  return {
13626
13645
  decorationAnalyses,
13627
- switchMarkerAnalyses,
13628
13646
  privateDeclarationsAnalyses,
13629
13647
  moduleWithProvidersAnalyses,
13630
13648
  diagnostics
@@ -13632,10 +13650,10 @@ var Transformer = class {
13632
13650
  }
13633
13651
  };
13634
13652
  function hasErrors(diagnostics) {
13635
- return diagnostics.some((d) => d.category === ts108.DiagnosticCategory.Error);
13653
+ return diagnostics.some((d) => d.category === ts106.DiagnosticCategory.Error);
13636
13654
  }
13637
13655
 
13638
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
13656
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
13639
13657
  function getCreateCompileFn(fileSystem, logger, fileWriter, enableI18nLegacyMessageIdFormat, tsConfig, pathMappings) {
13640
13658
  return (beforeWritingFiles, onTaskCompleted) => {
13641
13659
  const transformer = new Transformer(fileSystem, logger, tsConfig);
@@ -13651,12 +13669,12 @@ function getCreateCompileFn(fileSystem, logger, fileWriter, enableI18nLegacyMess
13651
13669
  onTaskCompleted(task, 1, `property \`${formatProperty}\` pointing to a missing or empty file: ${formatPath}`);
13652
13670
  return;
13653
13671
  }
13654
- logger.info(`Compiling ${entryPoint.name} : ${formatProperty} as ${format}`);
13672
+ logger.info(`- ${entryPoint.name} [${formatProperty}/${format}] (${entryPoint.repositoryUrl})`);
13655
13673
  const bundle = makeEntryPointBundle(fileSystem, entryPoint, sharedFileCache, moduleResolutionCache, formatPath, isCore, format, processDts, pathMappings, true, enableI18nLegacyMessageIdFormat);
13656
13674
  const result = transformer.transform(bundle);
13657
13675
  if (result.success) {
13658
13676
  if (result.diagnostics.length > 0) {
13659
- logger.warn(replaceTsWithNgInErrors(ts109.formatDiagnosticsWithColorAndContext(result.diagnostics, bundle.src.host)));
13677
+ logger.warn(replaceTsWithNgInErrors(ts107.formatDiagnosticsWithColorAndContext(result.diagnostics, bundle.src.host)));
13660
13678
  }
13661
13679
  const writeBundle = () => {
13662
13680
  fileWriter.writeBundle(bundle, result.transformedFiles, formatPropertiesToMarkAsProcessed);
@@ -13666,7 +13684,7 @@ function getCreateCompileFn(fileSystem, logger, fileWriter, enableI18nLegacyMess
13666
13684
  const beforeWritingResult = beforeWritingFiles(result.transformedFiles);
13667
13685
  return beforeWritingResult instanceof Promise ? beforeWritingResult.then(writeBundle) : writeBundle();
13668
13686
  } else {
13669
- const errors = replaceTsWithNgInErrors(ts109.formatDiagnosticsWithColorAndContext(result.diagnostics, bundle.src.host));
13687
+ const errors = replaceTsWithNgInErrors(ts107.formatDiagnosticsWithColorAndContext(result.diagnostics, bundle.src.host));
13670
13688
  onTaskCompleted(task, 1, `compilation errors:
13671
13689
  ${errors}`);
13672
13690
  }
@@ -13674,10 +13692,10 @@ ${errors}`);
13674
13692
  };
13675
13693
  }
13676
13694
 
13677
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/package_json_updater.mjs
13695
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/package_json_updater.mjs
13678
13696
  import cluster2 from "cluster";
13679
13697
 
13680
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/package_json_updater.mjs
13698
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/package_json_updater.mjs
13681
13699
  var PackageJsonUpdate = class {
13682
13700
  constructor(writeChangesImpl) {
13683
13701
  this.writeChangesImpl = writeChangesImpl;
@@ -13743,7 +13761,7 @@ function positionProperty(ctx, prop, positioning) {
13743
13761
  }
13744
13762
  }
13745
13763
 
13746
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/utils.mjs
13764
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/utils.mjs
13747
13765
  import cluster from "cluster";
13748
13766
  var sendMessageToMaster = (msg) => {
13749
13767
  if (cluster.isMaster) {
@@ -13757,7 +13775,7 @@ var sendMessageToMaster = (msg) => {
13757
13775
  });
13758
13776
  };
13759
13777
 
13760
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/package_json_updater.mjs
13778
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/package_json_updater.mjs
13761
13779
  var ClusterWorkerPackageJsonUpdater = class {
13762
13780
  constructor() {
13763
13781
  if (cluster2.isMaster) {
@@ -13784,13 +13802,13 @@ var ClusterWorkerPackageJsonUpdater = class {
13784
13802
  }
13785
13803
  };
13786
13804
 
13787
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/worker.mjs
13805
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/worker.mjs
13788
13806
  import cluster3 from "cluster";
13789
13807
 
13790
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/utils.mjs
13808
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/utils.mjs
13791
13809
  var stringifyTask = (task) => `{entryPoint: ${task.entryPoint.name}, formatProperty: ${task.formatProperty}, processDts: ${DtsProcessing[task.processDts]}}`;
13792
13810
 
13793
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/worker.mjs
13811
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/worker.mjs
13794
13812
  async function startWorker(logger, createCompileFn) {
13795
13813
  if (cluster3.isMaster) {
13796
13814
  throw new Error("Tried to run cluster worker on the master process.");
@@ -13825,7 +13843,7 @@ async function startWorker(logger, createCompileFn) {
13825
13843
  return new Promise(() => void 0);
13826
13844
  }
13827
13845
 
13828
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/ngcc_cluster_worker.mjs
13846
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/ngcc_cluster_worker.mjs
13829
13847
  (async () => {
13830
13848
  process.title = "ngcc (worker)";
13831
13849
  try {