@angular/compiler-cli 14.0.0-next.14 → 14.0.0-next.15

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 (59) hide show
  1. package/bundles/{chunk-5K2JLFXT.js → chunk-2IMT6JFI.js} +6 -6
  2. package/bundles/{chunk-5K2JLFXT.js.map → chunk-2IMT6JFI.js.map} +0 -0
  3. package/bundles/{chunk-U3GWKPTG.js → chunk-2ZVQLOCC.js} +293 -182
  4. package/bundles/chunk-2ZVQLOCC.js.map +6 -0
  5. package/bundles/{chunk-3DX2DBWU.js → chunk-7464WID2.js} +70 -70
  6. package/bundles/{chunk-3DX2DBWU.js.map → chunk-7464WID2.js.map} +0 -0
  7. package/bundles/{chunk-O6PNL22F.js → chunk-CPLZ6CTJ.js} +31 -31
  8. package/bundles/{chunk-O6PNL22F.js.map → chunk-CPLZ6CTJ.js.map} +0 -0
  9. package/bundles/{chunk-ZCDB56AX.js → chunk-LX5Q27EF.js} +3 -3
  10. package/bundles/{chunk-ZCDB56AX.js.map → chunk-LX5Q27EF.js.map} +0 -0
  11. package/bundles/{chunk-BRHP6XKM.js → chunk-OLGEBPBY.js} +4 -4
  12. package/bundles/{chunk-BRHP6XKM.js.map → chunk-OLGEBPBY.js.map} +0 -0
  13. package/bundles/{chunk-6VKVKDGL.js → chunk-PR5JCXGL.js} +5 -5
  14. package/bundles/{chunk-6VKVKDGL.js.map → chunk-PR5JCXGL.js.map} +0 -0
  15. package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
  16. package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
  17. package/bundles/{chunk-LC26KH5A.js → chunk-R4NY3TJC.js} +5 -5
  18. package/bundles/{chunk-LC26KH5A.js.map → chunk-R4NY3TJC.js.map} +0 -0
  19. package/bundles/{chunk-HDIW2RJZ.js → chunk-RJMU2IDU.js} +85 -84
  20. package/bundles/chunk-RJMU2IDU.js.map +6 -0
  21. package/bundles/{chunk-TD64C4QJ.js → chunk-T7MYRXIE.js} +7 -7
  22. package/bundles/{chunk-TD64C4QJ.js.map → chunk-T7MYRXIE.js.map} +0 -0
  23. package/bundles/{chunk-6356XFP6.js → chunk-UMDDHI5B.js} +26 -26
  24. package/bundles/{chunk-6356XFP6.js.map → chunk-UMDDHI5B.js.map} +0 -0
  25. package/bundles/{chunk-TV7VZNWL.js → chunk-W6KM7BUM.js} +6 -6
  26. package/bundles/{chunk-TV7VZNWL.js.map → chunk-W6KM7BUM.js.map} +0 -0
  27. package/bundles/{chunk-WH4QSABR.js → chunk-WGBFSDVQ.js} +7 -7
  28. package/bundles/{chunk-WH4QSABR.js.map → chunk-WGBFSDVQ.js.map} +0 -0
  29. package/bundles/{chunk-MKGTDQEO.js → chunk-ZNTB6B4W.js} +40 -40
  30. package/bundles/{chunk-MKGTDQEO.js.map → chunk-ZNTB6B4W.js.map} +0 -0
  31. package/bundles/index.js +12 -12
  32. package/bundles/linker/babel/index.js +12 -12
  33. package/bundles/linker/index.js +4 -4
  34. package/bundles/ngcc/index.js +12 -12
  35. package/bundles/ngcc/main-ngcc.js +13 -13
  36. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
  37. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
  38. package/bundles/private/bazel.js +1 -1
  39. package/bundles/private/localize.js +3 -3
  40. package/bundles/private/migrations.js +5 -5
  41. package/bundles/private/tooling.js +2 -2
  42. package/bundles/src/bin/ng_xi18n.js +10 -10
  43. package/bundles/src/bin/ngc.js +8 -8
  44. package/bundles_metadata.json +1 -1
  45. package/ngcc/src/packages/build_marker.d.ts +1 -1
  46. package/package.json +2 -2
  47. package/src/ngtsc/annotations/common/index.d.ts +1 -0
  48. package/src/ngtsc/annotations/common/src/schema.d.ts +12 -0
  49. package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
  50. package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -1
  51. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +8 -7
  52. package/src/ngtsc/metadata/src/api.d.ts +4 -0
  53. package/src/ngtsc/partial_evaluator/index.d.ts +1 -0
  54. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +9 -1
  55. package/src/ngtsc/partial_evaluator/src/interface.d.ts +2 -1
  56. package/src/ngtsc/partial_evaluator/src/result.d.ts +2 -1
  57. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +19 -0
  58. package/bundles/chunk-HDIW2RJZ.js.map +0 -6
  59. package/bundles/chunk-U3GWKPTG.js.map +0 -6
@@ -13,7 +13,7 @@ import {
13
13
  reflectObjectLiteral,
14
14
  reflectTypeEntityToDeclaration,
15
15
  typeNodeToValueExpr
16
- } from "./chunk-5K2JLFXT.js";
16
+ } from "./chunk-2IMT6JFI.js";
17
17
  import {
18
18
  ErrorCode,
19
19
  FatalDiagnosticError,
@@ -35,23 +35,23 @@ import {
35
35
  translateExpression,
36
36
  translateStatement,
37
37
  translateType
38
- } from "./chunk-6356XFP6.js";
38
+ } from "./chunk-UMDDHI5B.js";
39
39
  import {
40
40
  absoluteFrom,
41
41
  absoluteFromSourceFile,
42
42
  basename,
43
43
  relative
44
- } from "./chunk-TD64C4QJ.js";
44
+ } from "./chunk-T7MYRXIE.js";
45
45
  import {
46
46
  PerfEvent,
47
47
  PerfPhase
48
- } from "./chunk-LC26KH5A.js";
48
+ } from "./chunk-R4NY3TJC.js";
49
49
  import {
50
50
  __spreadProps,
51
51
  __spreadValues
52
52
  } from "./chunk-GMSUYBZP.js";
53
53
 
54
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
54
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
55
55
  import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
56
56
  import ts from "typescript";
57
57
  function valueReferenceToExpression(valueRef) {
@@ -144,21 +144,26 @@ function tryUnwrapForwardRef(node, reflector) {
144
144
  }
145
145
  return expr;
146
146
  }
147
- function forwardRefResolver(ref, args) {
148
- if (!isAngularCoreReference(ref, "forwardRef") || args.length !== 1) {
149
- return null;
147
+ var forwardRefResolver = (fn, callExpr, resolve, unresolvable) => {
148
+ if (!isAngularCoreReference(fn, "forwardRef") || callExpr.arguments.length !== 1) {
149
+ return unresolvable;
150
150
  }
151
- return expandForwardRef(args[0]);
152
- }
151
+ const expanded = expandForwardRef(callExpr.arguments[0]);
152
+ if (expanded !== null) {
153
+ return resolve(expanded);
154
+ } else {
155
+ return unresolvable;
156
+ }
157
+ };
153
158
  function combineResolvers(resolvers) {
154
- return (ref, args) => {
159
+ return (fn, callExpr, resolve, unresolvable) => {
155
160
  for (const resolver of resolvers) {
156
- const resolved = resolver(ref, args);
157
- if (resolved !== null) {
161
+ const resolved = resolver(fn, callExpr, resolve, unresolvable);
162
+ if (resolved !== unresolvable) {
158
163
  return resolved;
159
164
  }
160
165
  }
161
- return null;
166
+ return unresolvable;
162
167
  };
163
168
  }
164
169
  function isExpressionForwardReference(expr, context, contextSource) {
@@ -273,7 +278,7 @@ function resolveImportedFile(moduleResolver, importedFile, expr, origin) {
273
278
  return moduleResolver.resolveModule(expr.value.moduleName, origin.fileName);
274
279
  }
275
280
 
276
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
281
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
277
282
  var DynamicValue = class {
278
283
  constructor(node, reason, code) {
279
284
  this.node = node;
@@ -304,8 +309,11 @@ var DynamicValue = class {
304
309
  static fromDynamicType(node) {
305
310
  return new DynamicValue(node, void 0, 7);
306
311
  }
312
+ static fromSyntheticInput(node, value) {
313
+ return new DynamicValue(node, value, 8);
314
+ }
307
315
  static fromUnknown(node) {
308
- return new DynamicValue(node, void 0, 8);
316
+ return new DynamicValue(node, void 0, 9);
309
317
  }
310
318
  isFromDynamicInput() {
311
319
  return this.code === 0;
@@ -332,7 +340,7 @@ var DynamicValue = class {
332
340
  return this.code === 7;
333
341
  }
334
342
  isFromUnknown() {
335
- return this.code === 8;
343
+ return this.code === 9;
336
344
  }
337
345
  accept(visitor) {
338
346
  switch (this.code) {
@@ -353,15 +361,17 @@ var DynamicValue = class {
353
361
  case 7:
354
362
  return visitor.visitDynamicType(this);
355
363
  case 8:
364
+ return visitor.visitSyntheticInput(this);
365
+ case 9:
356
366
  return visitor.visitUnknown(this);
357
367
  }
358
368
  }
359
369
  };
360
370
 
361
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
371
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
362
372
  import ts2 from "typescript";
363
373
 
364
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
374
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
365
375
  var ResolvedModule = class {
366
376
  constructor(exports, evaluate) {
367
377
  this.exports = exports;
@@ -391,7 +401,7 @@ var EnumValue = class {
391
401
  var KnownFn = class {
392
402
  };
393
403
 
394
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
404
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
395
405
  var ArraySliceBuiltinFn = class extends KnownFn {
396
406
  constructor(lhs) {
397
407
  super();
@@ -462,7 +472,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
462
472
  }
463
473
  };
464
474
 
465
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
475
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
466
476
  var AssignHelperFn = class extends ObjectAssignBuiltinFn {
467
477
  };
468
478
  var SpreadHelperFn = class extends KnownFn {
@@ -515,7 +525,7 @@ var ReadHelperFn = class extends KnownFn {
515
525
  }
516
526
  };
517
527
 
518
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
528
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
519
529
  var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
520
530
  var assignTsHelperFn = new AssignHelperFn();
521
531
  var spreadTsHelperFn = new SpreadHelperFn();
@@ -539,7 +549,14 @@ function resolveKnownDeclaration(decl) {
539
549
  }
540
550
  }
541
551
 
542
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
552
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
553
+ var SyntheticValue = class {
554
+ constructor(value) {
555
+ this.value = value;
556
+ }
557
+ };
558
+
559
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
543
560
  function literalBinaryOp(op) {
544
561
  return { op, literal: true };
545
562
  }
@@ -854,6 +871,8 @@ var StaticInterpreter = class {
854
871
  }
855
872
  } else if (lhs instanceof DynamicValue) {
856
873
  return DynamicValue.fromDynamicInput(node, lhs);
874
+ } else if (lhs instanceof SyntheticValue) {
875
+ return DynamicValue.fromSyntheticInput(node, lhs);
857
876
  }
858
877
  return DynamicValue.fromUnknown(node);
859
878
  }
@@ -875,31 +894,24 @@ var StaticInterpreter = class {
875
894
  if (!isFunctionOrMethodReference(lhs)) {
876
895
  return DynamicValue.fromInvalidExpressionType(node.expression, lhs);
877
896
  }
878
- if (fn.body === null) {
879
- let expr = null;
880
- if (context.foreignFunctionResolver) {
881
- expr = context.foreignFunctionResolver(lhs, node.arguments);
882
- }
883
- if (expr === null) {
884
- return DynamicValue.fromDynamicInput(node, DynamicValue.fromExternalReference(node.expression, lhs));
885
- }
886
- if (expr.getSourceFile() !== node.expression.getSourceFile() && lhs.bestGuessOwningModule !== null) {
887
- context = __spreadProps(__spreadValues({}, context), {
897
+ const resolveFfrExpr = (expr) => {
898
+ let contextExtension = {};
899
+ if (fn.body === null && expr.getSourceFile() !== node.expression.getSourceFile() && lhs.bestGuessOwningModule !== null) {
900
+ contextExtension = {
888
901
  absoluteModuleName: lhs.bestGuessOwningModule.specifier,
889
902
  resolutionContext: lhs.bestGuessOwningModule.resolutionContext
890
- });
903
+ };
891
904
  }
892
- return this.visitFfrExpression(expr, context);
905
+ return this.visitFfrExpression(expr, __spreadValues(__spreadValues({}, context), contextExtension));
906
+ };
907
+ if (fn.body === null && context.foreignFunctionResolver !== void 0) {
908
+ const unresolvable = DynamicValue.fromDynamicInput(node, DynamicValue.fromExternalReference(node.expression, lhs));
909
+ return context.foreignFunctionResolver(lhs, node, resolveFfrExpr, unresolvable);
893
910
  }
894
- let res = this.visitFunctionBody(node, fn, context);
911
+ const res = this.visitFunctionBody(node, fn, context);
895
912
  if (res instanceof DynamicValue && context.foreignFunctionResolver !== void 0) {
896
- const ffrExpr = context.foreignFunctionResolver(lhs, node.arguments);
897
- if (ffrExpr !== null) {
898
- const ffrRes = this.visitFfrExpression(ffrExpr, context);
899
- if (!(ffrRes instanceof DynamicValue)) {
900
- res = ffrRes;
901
- }
902
- }
913
+ const unresolvable = DynamicValue.fromComplexFunctionCall(node, fn);
914
+ return context.foreignFunctionResolver(lhs, node, resolveFfrExpr, unresolvable);
903
915
  }
904
916
  return res;
905
917
  }
@@ -1126,7 +1138,7 @@ function owningModule(context, override = null) {
1126
1138
  }
1127
1139
  }
1128
1140
 
1129
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1141
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1130
1142
  var PartialEvaluator = class {
1131
1143
  constructor(host, checker, dependencyTracker) {
1132
1144
  this.host = host;
@@ -1146,7 +1158,7 @@ var PartialEvaluator = class {
1146
1158
  }
1147
1159
  };
1148
1160
 
1149
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1161
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1150
1162
  import ts3 from "typescript";
1151
1163
  function describeResolvedType(value, maxDepth = 1) {
1152
1164
  var _a, _b;
@@ -1206,6 +1218,9 @@ var TraceDynamicValueVisitor = class {
1206
1218
  }
1207
1219
  return trace;
1208
1220
  }
1221
+ visitSyntheticInput(value) {
1222
+ return [makeRelatedInformation(value.node, "Unable to evaluate this expression further.")];
1223
+ }
1209
1224
  visitDynamicString(value) {
1210
1225
  return [makeRelatedInformation(value.node, "A string value could not be determined statically.")];
1211
1226
  }
@@ -1273,7 +1288,7 @@ function getContainerNode(node) {
1273
1288
  return node.getSourceFile();
1274
1289
  }
1275
1290
 
1276
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1291
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1277
1292
  import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1278
1293
  import ts4 from "typescript";
1279
1294
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -1417,7 +1432,7 @@ function createUnsuitableInjectionTokenError(clazz, error) {
1417
1432
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
1418
1433
  }
1419
1434
 
1420
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1435
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1421
1436
  import ts5 from "typescript";
1422
1437
  function makeDuplicateDeclarationError(node, data, kind) {
1423
1438
  const context = [];
@@ -1525,7 +1540,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
1525
1540
  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}.`);
1526
1541
  }
1527
1542
 
1528
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
1543
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
1529
1544
  import ts6 from "typescript";
1530
1545
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
1531
1546
  let resolved = null;
@@ -1558,7 +1573,7 @@ function resolveLiteral(decorator, literalCache) {
1558
1573
  return meta;
1559
1574
  }
1560
1575
 
1561
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
1576
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
1562
1577
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
1563
1578
  function compileNgFactoryDefField(metadata) {
1564
1579
  const res = compileFactoryFunction(metadata);
@@ -1569,7 +1584,7 @@ function compileDeclareFactory(metadata) {
1569
1584
  return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
1570
1585
  }
1571
1586
 
1572
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
1587
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
1573
1588
  import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
1574
1589
  import ts7 from "typescript";
1575
1590
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -1657,17 +1672,47 @@ function removeIdentifierReferences(node, name) {
1657
1672
  return result.transformed[0];
1658
1673
  }
1659
1674
 
1660
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
1675
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
1661
1676
  var NoopReferencesRegistry = class {
1662
1677
  add(source, ...references) {
1663
1678
  }
1664
1679
  };
1665
1680
 
1666
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
1681
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
1682
+ import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
1683
+ function extractSchemas(rawExpr, evaluator, context) {
1684
+ const schemas = [];
1685
+ const result = evaluator.evaluate(rawExpr);
1686
+ if (!Array.isArray(result)) {
1687
+ throw createValueHasWrongTypeError(rawExpr, result, `${context}.schemas must be an array`);
1688
+ }
1689
+ for (const schemaRef of result) {
1690
+ if (!(schemaRef instanceof Reference)) {
1691
+ throw createValueHasWrongTypeError(rawExpr, result, `${context}.schemas must be an array of schemas`);
1692
+ }
1693
+ const id = schemaRef.getIdentityIn(schemaRef.node.getSourceFile());
1694
+ if (id === null || schemaRef.ownedByModuleGuess !== "@angular/core") {
1695
+ throw createValueHasWrongTypeError(rawExpr, result, `${context}.schemas must be an array of schemas`);
1696
+ }
1697
+ switch (id.text) {
1698
+ case "CUSTOM_ELEMENTS_SCHEMA":
1699
+ schemas.push(CUSTOM_ELEMENTS_SCHEMA);
1700
+ break;
1701
+ case "NO_ERRORS_SCHEMA":
1702
+ schemas.push(NO_ERRORS_SCHEMA);
1703
+ break;
1704
+ default:
1705
+ throw createValueHasWrongTypeError(rawExpr, schemaRef, `'${schemaRef.debugName}' is not a valid ${context} schema`);
1706
+ }
1707
+ }
1708
+ return schemas;
1709
+ }
1710
+
1711
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
1667
1712
  import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
1668
- import ts27 from "typescript";
1713
+ import ts26 from "typescript";
1669
1714
 
1670
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
1715
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
1671
1716
  import ts8 from "typescript";
1672
1717
  var SemanticSymbol = class {
1673
1718
  constructor(decl) {
@@ -1683,7 +1728,7 @@ function getSymbolIdentifier(decl) {
1683
1728
  return decl.name.text;
1684
1729
  }
1685
1730
 
1686
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
1731
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
1687
1732
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
1688
1733
  var OpaqueSymbol = class extends SemanticSymbol {
1689
1734
  isPublicApiAffected() {
@@ -1826,10 +1871,10 @@ function getImportPath(expr) {
1826
1871
  }
1827
1872
  }
1828
1873
 
1829
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1874
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1830
1875
  import ts9 from "typescript";
1831
1876
 
1832
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
1877
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
1833
1878
  function isSymbolEqual(a, b) {
1834
1879
  if (a.decl === b.decl) {
1835
1880
  return true;
@@ -1879,7 +1924,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
1879
1924
  return true;
1880
1925
  }
1881
1926
 
1882
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1927
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
1883
1928
  function extractSemanticTypeParameters(node) {
1884
1929
  if (!ts9.isClassDeclaration(node) || node.typeParameters === void 0) {
1885
1930
  return null;
@@ -1899,7 +1944,7 @@ function isTypeParameterEqual(a, b) {
1899
1944
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
1900
1945
  }
1901
1946
 
1902
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1947
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1903
1948
  var MetaKind;
1904
1949
  (function(MetaKind2) {
1905
1950
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -1907,10 +1952,10 @@ var MetaKind;
1907
1952
  MetaKind2[MetaKind2["NgModule"] = 2] = "NgModule";
1908
1953
  })(MetaKind || (MetaKind = {}));
1909
1954
 
1910
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1955
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1911
1956
  import ts11 from "typescript";
1912
1957
 
1913
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1958
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1914
1959
  var ClassPropertyMapping = class {
1915
1960
  constructor(forwardMap) {
1916
1961
  this.forwardMap = forwardMap;
@@ -1986,7 +2031,7 @@ function reverseMapFromForwardMap(forwardMap) {
1986
2031
  return reverseMap;
1987
2032
  }
1988
2033
 
1989
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
2034
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1990
2035
  import ts10 from "typescript";
1991
2036
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1992
2037
  if (!ts10.isTupleTypeNode(def)) {
@@ -2166,7 +2211,7 @@ function hasInjectableFields(clazz, host) {
2166
2211
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
2167
2212
  }
2168
2213
 
2169
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2214
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2170
2215
  var DtsMetadataReader = class {
2171
2216
  constructor(checker, reflector) {
2172
2217
  this.checker = checker;
@@ -2226,7 +2271,8 @@ var DtsMetadataReader = class {
2226
2271
  isStructural,
2227
2272
  animationTriggerNames: null,
2228
2273
  isStandalone,
2229
- imports: null
2274
+ imports: null,
2275
+ schemas: null
2230
2276
  });
2231
2277
  }
2232
2278
  getPipeMetadata(ref) {
@@ -2277,7 +2323,7 @@ function readBaseClass2(clazz, checker, reflector) {
2277
2323
  return null;
2278
2324
  }
2279
2325
 
2280
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
2326
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
2281
2327
  function flattenInheritedDirectiveMetadata(reader, dir) {
2282
2328
  const topMeta = reader.getDirectiveMetadata(dir);
2283
2329
  if (topMeta === null) {
@@ -2334,7 +2380,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
2334
2380
  });
2335
2381
  }
2336
2382
 
2337
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2383
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2338
2384
  var LocalMetadataRegistry = class {
2339
2385
  constructor() {
2340
2386
  this.directives = /* @__PURE__ */ new Map();
@@ -2393,7 +2439,7 @@ var InjectableClassRegistry = class {
2393
2439
  }
2394
2440
  };
2395
2441
 
2396
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2442
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2397
2443
  var ResourceRegistry = class {
2398
2444
  constructor() {
2399
2445
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -2458,14 +2504,14 @@ var ResourceRegistry = class {
2458
2504
  }
2459
2505
  };
2460
2506
 
2461
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2507
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2462
2508
  var ComponentScopeKind;
2463
2509
  (function(ComponentScopeKind2) {
2464
2510
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
2465
2511
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
2466
2512
  })(ComponentScopeKind || (ComponentScopeKind = {}));
2467
2513
 
2468
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2514
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2469
2515
  var CompoundComponentScopeReader = class {
2470
2516
  constructor(readers) {
2471
2517
  this.readers = readers;
@@ -2490,7 +2536,7 @@ var CompoundComponentScopeReader = class {
2490
2536
  }
2491
2537
  };
2492
2538
 
2493
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2539
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2494
2540
  var MetadataDtsModuleScopeResolver = class {
2495
2541
  constructor(dtsMetaReader, aliasingHost) {
2496
2542
  this.dtsMetaReader = dtsMetaReader;
@@ -2565,11 +2611,11 @@ var MetadataDtsModuleScopeResolver = class {
2565
2611
  }
2566
2612
  };
2567
2613
 
2568
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2614
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2569
2615
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
2570
2616
  import ts12 from "typescript";
2571
2617
 
2572
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2618
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2573
2619
  function getDiagnosticNode(ref, rawExpr) {
2574
2620
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
2575
2621
  }
@@ -2595,7 +2641,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
2595
2641
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
2596
2642
  }
2597
2643
 
2598
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2644
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2599
2645
  var LocalModuleScopeRegistry = class {
2600
2646
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
2601
2647
  this.localReader = localReader;
@@ -2934,7 +2980,7 @@ function reexportCollision(module, refA, refB) {
2934
2980
  ]);
2935
2981
  }
2936
2982
 
2937
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
2983
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
2938
2984
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
2939
2985
  import ts13 from "typescript";
2940
2986
  var TypeCheckScopeRegistry = class {
@@ -2996,7 +3042,7 @@ var TypeCheckScopeRegistry = class {
2996
3042
  }
2997
3043
  };
2998
3044
 
2999
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3045
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3000
3046
  var CompilationMode;
3001
3047
  (function(CompilationMode2) {
3002
3048
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -3014,7 +3060,7 @@ var HandlerFlags;
3014
3060
  HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
3015
3061
  })(HandlerFlags || (HandlerFlags = {}));
3016
3062
 
3017
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3063
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3018
3064
  import ts14 from "typescript";
3019
3065
  function aliasTransformFactory(exportStatements) {
3020
3066
  return (context) => {
@@ -3032,13 +3078,13 @@ function aliasTransformFactory(exportStatements) {
3032
3078
  };
3033
3079
  }
3034
3080
 
3035
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3081
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3036
3082
  import ts18 from "typescript";
3037
3083
 
3038
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
3084
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
3039
3085
  import ts15 from "typescript";
3040
3086
 
3041
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
3087
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
3042
3088
  var NgExtension = Symbol("NgExtension");
3043
3089
  function isExtended(sf) {
3044
3090
  return sf[NgExtension] !== void 0;
@@ -3098,7 +3144,7 @@ function retagTsFile(sf) {
3098
3144
  }
3099
3145
  }
3100
3146
 
3101
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
3147
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
3102
3148
  var TS_EXTENSIONS = /\.tsx?$/i;
3103
3149
  function makeShimFileName(fileName, suffix) {
3104
3150
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
@@ -3113,7 +3159,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
3113
3159
  return moduleName;
3114
3160
  }
3115
3161
 
3116
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
3162
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
3117
3163
  var ShimAdapter = class {
3118
3164
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
3119
3165
  this.delegate = delegate;
@@ -3210,7 +3256,7 @@ var ShimAdapter = class {
3210
3256
  }
3211
3257
  };
3212
3258
 
3213
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
3259
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
3214
3260
  import ts16 from "typescript";
3215
3261
  var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
3216
3262
  var STRIP_NG_FACTORY = /(.*)NgFactory$/;
@@ -3357,7 +3403,7 @@ function updateInitializers(stmt, update) {
3357
3403
  return ts16.factory.updateVariableStatement(stmt, stmt.modifiers, ts16.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts16.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
3358
3404
  }
3359
3405
 
3360
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
3406
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
3361
3407
  var ShimReferenceTagger = class {
3362
3408
  constructor(shimExtensions) {
3363
3409
  this.tagged = /* @__PURE__ */ new Set();
@@ -3391,7 +3437,7 @@ var ShimReferenceTagger = class {
3391
3437
  }
3392
3438
  };
3393
3439
 
3394
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
3440
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
3395
3441
  import ts17 from "typescript";
3396
3442
  var SummaryGenerator = class {
3397
3443
  constructor() {
@@ -3431,7 +3477,7 @@ function isExported2(decl) {
3431
3477
  return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts17.SyntaxKind.ExportKeyword);
3432
3478
  }
3433
3479
 
3434
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3480
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3435
3481
  var TraitState;
3436
3482
  (function(TraitState2) {
3437
3483
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -3486,7 +3532,7 @@ var TraitImpl = class {
3486
3532
  }
3487
3533
  };
3488
3534
 
3489
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3535
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3490
3536
  var TraitCompiler = class {
3491
3537
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater) {
3492
3538
  this.handlers = handlers;
@@ -3929,10 +3975,10 @@ function containsErrors(diagnostics) {
3929
3975
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts18.DiagnosticCategory.Error);
3930
3976
  }
3931
3977
 
3932
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3978
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3933
3979
  import ts20 from "typescript";
3934
3980
 
3935
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3981
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3936
3982
  import ts19 from "typescript";
3937
3983
  function addImports(importManager, sf, extraStatements = []) {
3938
3984
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -3960,7 +4006,7 @@ function isImportStatement(stmt) {
3960
4006
  return ts19.isImportDeclaration(stmt) || ts19.isImportEqualsDeclaration(stmt) || ts19.isNamespaceImport(stmt);
3961
4007
  }
3962
4008
 
3963
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
4009
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3964
4010
  var DtsTransformRegistry = class {
3965
4011
  constructor() {
3966
4012
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -4085,11 +4131,11 @@ function markForEmitAsSingleLine(node) {
4085
4131
  ts20.forEachChild(node, markForEmitAsSingleLine);
4086
4132
  }
4087
4133
 
4088
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4134
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4089
4135
  import { ConstantPool } from "@angular/compiler";
4090
4136
  import ts22 from "typescript";
4091
4137
 
4092
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
4138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
4093
4139
  import ts21 from "typescript";
4094
4140
  function visit(node, visitor, context) {
4095
4141
  return visitor._visit(node, context);
@@ -4151,7 +4197,7 @@ function hasStatements(node) {
4151
4197
  return block.statements !== void 0 && Array.isArray(block.statements);
4152
4198
  }
4153
4199
 
4154
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4200
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4155
4201
  var NO_DECORATORS = /* @__PURE__ */ new Set();
4156
4202
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
4157
4203
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -4332,10 +4378,10 @@ function createRecorderFn(defaultImportTracker) {
4332
4378
  };
4333
4379
  }
4334
4380
 
4335
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4381
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4336
4382
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4337
4383
 
4338
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4384
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4339
4385
  import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
4340
4386
  import ts23 from "typescript";
4341
4387
  var EMPTY_OBJECT = {};
@@ -4699,7 +4745,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
4699
4745
  return bindings;
4700
4746
  }
4701
4747
 
4702
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4748
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4703
4749
  var DirectiveSymbol = class extends SemanticSymbol {
4704
4750
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
4705
4751
  super(decl);
@@ -4776,7 +4822,7 @@ function isBaseClassEqual(current, previous) {
4776
4822
  return isSymbolEqual(current, previous);
4777
4823
  }
4778
4824
 
4779
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4825
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4780
4826
  var FIELD_DECORATORS = [
4781
4827
  "Input",
4782
4828
  "Output",
@@ -4875,7 +4921,8 @@ var DirectiveDecoratorHandler = class {
4875
4921
  isStructural: analysis.isStructural,
4876
4922
  animationTriggerNames: null,
4877
4923
  isStandalone: analysis.meta.isStandalone,
4878
- imports: null
4924
+ imports: null,
4925
+ schemas: null
4879
4926
  }));
4880
4927
  this.injectableRegistry.registerInjectable(node);
4881
4928
  }
@@ -4919,8 +4966,8 @@ var DirectiveDecoratorHandler = class {
4919
4966
  }
4920
4967
  };
4921
4968
 
4922
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4923
- import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, CUSTOM_ELEMENTS_SCHEMA, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, NO_ERRORS_SCHEMA, R3Identifiers, R3SelectorScopeMode, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4969
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4970
+ import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3SelectorScopeMode, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4924
4971
  import ts24 from "typescript";
4925
4972
  var NgModuleSymbol = class extends SemanticSymbol {
4926
4973
  constructor() {
@@ -5013,7 +5060,7 @@ var NgModuleDecoratorHandler = class {
5013
5060
  return {};
5014
5061
  }
5015
5062
  const moduleResolvers = combineResolvers([
5016
- (ref) => this._extractModuleFromModuleWithProvidersFn(ref.node),
5063
+ (fn, call, resolve, unresolvable) => this._extractModuleFromModuleWithProvidersFn(fn, call, resolve, unresolvable),
5017
5064
  forwardRefResolver
5018
5065
  ]);
5019
5066
  const diagnostics = [];
@@ -5022,7 +5069,7 @@ var NgModuleDecoratorHandler = class {
5022
5069
  if (ngModule.has("declarations")) {
5023
5070
  rawDeclarations = ngModule.get("declarations");
5024
5071
  const declarationMeta = this.evaluator.evaluate(rawDeclarations, forwardRefResolver);
5025
- declarationRefs = this.resolveTypeList(rawDeclarations, declarationMeta, name, "declarations");
5072
+ declarationRefs = this.resolveTypeList(rawDeclarations, declarationMeta, name, "declarations", 0).references;
5026
5073
  for (const ref of declarationRefs) {
5027
5074
  if (ref.node.getSourceFile().isDeclarationFile) {
5028
5075
  const errorNode = ref.getOriginForDiagnostics(rawDeclarations);
@@ -5038,49 +5085,23 @@ var NgModuleDecoratorHandler = class {
5038
5085
  if (ngModule.has("imports")) {
5039
5086
  rawImports = ngModule.get("imports");
5040
5087
  const importsMeta = this.evaluator.evaluate(rawImports, moduleResolvers);
5041
- importRefs = this.resolveTypeList(rawImports, importsMeta, name, "imports");
5088
+ importRefs = this.resolveTypeList(rawImports, importsMeta, name, "imports", 0).references;
5042
5089
  }
5043
5090
  let exportRefs = [];
5044
5091
  let rawExports = null;
5045
5092
  if (ngModule.has("exports")) {
5046
5093
  rawExports = ngModule.get("exports");
5047
5094
  const exportsMeta = this.evaluator.evaluate(rawExports, moduleResolvers);
5048
- exportRefs = this.resolveTypeList(rawExports, exportsMeta, name, "exports");
5095
+ exportRefs = this.resolveTypeList(rawExports, exportsMeta, name, "exports", 0).references;
5049
5096
  this.referencesRegistry.add(node, ...exportRefs);
5050
5097
  }
5051
5098
  let bootstrapRefs = [];
5052
5099
  if (ngModule.has("bootstrap")) {
5053
5100
  const expr = ngModule.get("bootstrap");
5054
5101
  const bootstrapMeta = this.evaluator.evaluate(expr, forwardRefResolver);
5055
- bootstrapRefs = this.resolveTypeList(expr, bootstrapMeta, name, "bootstrap");
5056
- }
5057
- const schemas = [];
5058
- if (ngModule.has("schemas")) {
5059
- const rawExpr = ngModule.get("schemas");
5060
- const result = this.evaluator.evaluate(rawExpr);
5061
- if (!Array.isArray(result)) {
5062
- throw createValueHasWrongTypeError(rawExpr, result, `NgModule.schemas must be an array`);
5063
- }
5064
- for (const schemaRef of result) {
5065
- if (!(schemaRef instanceof Reference)) {
5066
- throw createValueHasWrongTypeError(rawExpr, result, "NgModule.schemas must be an array of schemas");
5067
- }
5068
- const id2 = schemaRef.getIdentityIn(schemaRef.node.getSourceFile());
5069
- if (id2 === null || schemaRef.ownedByModuleGuess !== "@angular/core") {
5070
- throw createValueHasWrongTypeError(rawExpr, result, "NgModule.schemas must be an array of schemas");
5071
- }
5072
- switch (id2.text) {
5073
- case "CUSTOM_ELEMENTS_SCHEMA":
5074
- schemas.push(CUSTOM_ELEMENTS_SCHEMA);
5075
- break;
5076
- case "NO_ERRORS_SCHEMA":
5077
- schemas.push(NO_ERRORS_SCHEMA);
5078
- break;
5079
- default:
5080
- throw createValueHasWrongTypeError(rawExpr, schemaRef, `'${schemaRef.debugName}' is not a valid NgModule schema`);
5081
- }
5082
- }
5102
+ bootstrapRefs = this.resolveTypeList(expr, bootstrapMeta, name, "bootstrap", 0).references;
5083
5103
  }
5104
+ const schemas = ngModule.has("schemas") ? extractSchemas(ngModule.get("schemas"), this.evaluator, "NgModule") : [];
5084
5105
  let id = null;
5085
5106
  if (ngModule.has("id")) {
5086
5107
  const idExpr = ngModule.get("id");
@@ -5122,16 +5143,38 @@ var NgModuleDecoratorHandler = class {
5122
5143
  };
5123
5144
  const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
5124
5145
  const wrapperProviders = rawProviders !== null ? new WrappedNodeExpr6(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders) : null;
5125
- const injectorImports = [];
5146
+ const topLevelImports = [];
5126
5147
  if (ngModule.has("imports")) {
5127
- injectorImports.push(new WrappedNodeExpr6(ngModule.get("imports")));
5148
+ const rawImports2 = unwrapExpression(ngModule.get("imports"));
5149
+ let topLevelExpressions = [];
5150
+ if (ts24.isArrayLiteralExpression(rawImports2)) {
5151
+ for (const element of rawImports2.elements) {
5152
+ if (ts24.isSpreadElement(element)) {
5153
+ topLevelExpressions.push(element.expression);
5154
+ continue;
5155
+ }
5156
+ topLevelExpressions.push(element);
5157
+ }
5158
+ } else {
5159
+ topLevelExpressions.push(rawImports2);
5160
+ }
5161
+ let absoluteIndex = 0;
5162
+ for (const importExpr of topLevelExpressions) {
5163
+ const resolved = this.evaluator.evaluate(importExpr, moduleResolvers);
5164
+ const { references, hasModuleWithProviders } = this.resolveTypeList(importExpr, [resolved], node.name.text, "imports", absoluteIndex);
5165
+ absoluteIndex += references.length;
5166
+ topLevelImports.push({
5167
+ expression: importExpr,
5168
+ resolvedReferences: references,
5169
+ hasModuleWithProviders
5170
+ });
5171
+ }
5128
5172
  }
5129
5173
  const injectorMetadata = {
5130
5174
  name,
5131
5175
  type,
5132
5176
  internalType,
5133
- providers: wrapperProviders,
5134
- imports: injectorImports
5177
+ providers: wrapperProviders
5135
5178
  };
5136
5179
  const factoryMetadata = {
5137
5180
  name,
@@ -5151,8 +5194,9 @@ var NgModuleDecoratorHandler = class {
5151
5194
  fac: factoryMetadata,
5152
5195
  declarations: declarationRefs,
5153
5196
  rawDeclarations,
5154
- imports: importRefs,
5197
+ imports: topLevelImports,
5155
5198
  rawImports,
5199
+ importRefs,
5156
5200
  exports: exportRefs,
5157
5201
  rawExports,
5158
5202
  providers: rawProviders,
@@ -5171,7 +5215,7 @@ var NgModuleDecoratorHandler = class {
5171
5215
  ref: new Reference(node),
5172
5216
  schemas: analysis.schemas,
5173
5217
  declarations: analysis.declarations,
5174
- imports: analysis.imports,
5218
+ imports: analysis.importRefs,
5175
5219
  exports: analysis.exports,
5176
5220
  rawDeclarations: analysis.rawDeclarations,
5177
5221
  rawImports: analysis.rawImports,
@@ -5198,6 +5242,34 @@ var NgModuleDecoratorHandler = class {
5198
5242
  const data = {
5199
5243
  injectorImports: []
5200
5244
  };
5245
+ for (const topLevelImport of analysis.imports) {
5246
+ if (topLevelImport.hasModuleWithProviders) {
5247
+ data.injectorImports.push(new WrappedNodeExpr6(topLevelImport.expression));
5248
+ continue;
5249
+ }
5250
+ const refsToEmit = [];
5251
+ for (const ref of topLevelImport.resolvedReferences) {
5252
+ const dirMeta = this.metaReader.getDirectiveMetadata(ref);
5253
+ if (dirMeta !== null && !dirMeta.isComponent) {
5254
+ continue;
5255
+ }
5256
+ const pipeMeta = dirMeta === null ? this.metaReader.getPipeMetadata(ref) : null;
5257
+ if (pipeMeta !== null) {
5258
+ continue;
5259
+ }
5260
+ refsToEmit.push(ref);
5261
+ }
5262
+ if (refsToEmit.length === topLevelImport.resolvedReferences.length) {
5263
+ data.injectorImports.push(new WrappedNodeExpr6(topLevelImport.expression));
5264
+ } else {
5265
+ const context = node.getSourceFile();
5266
+ for (const ref of refsToEmit) {
5267
+ const emittedRef = this.refEmitter.emit(ref, context);
5268
+ assertSuccessfulReferenceEmit(emittedRef, topLevelImport.expression, "class");
5269
+ data.injectorImports.push(emittedRef.expression);
5270
+ }
5271
+ }
5272
+ }
5201
5273
  if (scope !== null && !scope.compilation.isPoisoned) {
5202
5274
  const context = getSourceFile(node);
5203
5275
  for (const exportRef of analysis.exports) {
@@ -5232,7 +5304,9 @@ var NgModuleDecoratorHandler = class {
5232
5304
  }
5233
5305
  compileFull(node, { inj, mod, fac, classMetadata, declarations }, { injectorImports }) {
5234
5306
  const factoryFn = compileNgFactoryDefField(fac);
5235
- const ngInjectorDef = compileInjector(this.mergeInjectorImports(inj, injectorImports));
5307
+ const ngInjectorDef = compileInjector(__spreadProps(__spreadValues({}, inj), {
5308
+ imports: injectorImports
5309
+ }));
5236
5310
  const ngModuleDef = compileNgModule(mod);
5237
5311
  const statements = ngModuleDef.statements;
5238
5312
  const metadata = classMetadata !== null ? compileClassMetadata2(classMetadata) : null;
@@ -5242,15 +5316,14 @@ var NgModuleDecoratorHandler = class {
5242
5316
  }
5243
5317
  compilePartial(node, { inj, fac, mod, classMetadata }, { injectorImports }) {
5244
5318
  const factoryFn = compileDeclareFactory(fac);
5245
- const injectorDef = compileDeclareInjectorFromMetadata(this.mergeInjectorImports(inj, injectorImports));
5319
+ const injectorDef = compileDeclareInjectorFromMetadata(__spreadProps(__spreadValues({}, inj), {
5320
+ imports: injectorImports
5321
+ }));
5246
5322
  const ngModuleDef = compileDeclareNgModuleFromMetadata(mod);
5247
5323
  const metadata = classMetadata !== null ? compileDeclareClassMetadata2(classMetadata) : null;
5248
5324
  this.insertMetadataStatement(ngModuleDef.statements, metadata);
5249
5325
  return this.compileNgModule(factoryFn, injectorDef, ngModuleDef);
5250
5326
  }
5251
- mergeInjectorImports(inj, injectorImports) {
5252
- return __spreadProps(__spreadValues({}, inj), { imports: [...inj.imports, ...injectorImports] });
5253
- }
5254
5327
  insertMetadataStatement(ngModuleStatements, metadata) {
5255
5328
  if (metadata !== null) {
5256
5329
  ngModuleStatements.unshift(metadata.toStmt());
@@ -5312,9 +5385,20 @@ var NgModuleDecoratorHandler = class {
5312
5385
  return toR3Reference(origin, valueRef, typeRef, valueContext, typeContext, this.refEmitter);
5313
5386
  }
5314
5387
  }
5315
- _extractModuleFromModuleWithProvidersFn(node) {
5316
- const type = node.type || null;
5317
- return type && (this._reflectModuleFromTypeParam(type, node) || this._reflectModuleFromLiteralType(type));
5388
+ _extractModuleFromModuleWithProvidersFn(fn, node, resolve, unresolvable) {
5389
+ const rawType = fn.node.type || null;
5390
+ const type = rawType && (this._reflectModuleFromTypeParam(rawType, fn.node) || this._reflectModuleFromLiteralType(rawType));
5391
+ if (type === null) {
5392
+ return unresolvable;
5393
+ }
5394
+ const ngModule = resolve(type);
5395
+ if (!(ngModule instanceof Reference) || !isNamedClassDeclaration(ngModule.node)) {
5396
+ return unresolvable;
5397
+ }
5398
+ return new SyntheticValue({
5399
+ ngModule,
5400
+ mwpCall: node
5401
+ });
5318
5402
  }
5319
5403
  _reflectModuleFromTypeParam(type, node) {
5320
5404
  if (!ts24.isTypeReferenceNode(type)) {
@@ -5359,27 +5443,40 @@ var NgModuleDecoratorHandler = class {
5359
5443
  isClassDeclarationReference(ref) {
5360
5444
  return this.reflector.isClass(ref.node);
5361
5445
  }
5362
- resolveTypeList(expr, resolvedList, className, arrayName) {
5446
+ resolveTypeList(expr, resolvedList, className, arrayName, absoluteIndex) {
5447
+ let hasModuleWithProviders = false;
5363
5448
  const refList = [];
5364
5449
  if (!Array.isArray(resolvedList)) {
5365
5450
  throw createValueHasWrongTypeError(expr, resolvedList, `Expected array when reading the NgModule.${arrayName} of ${className}`);
5366
5451
  }
5367
- resolvedList.forEach((entry, idx) => {
5368
- if (entry instanceof Map && entry.has("ngModule")) {
5452
+ for (let idx = 0; idx < resolvedList.length; idx++) {
5453
+ let entry = resolvedList[idx];
5454
+ if (entry instanceof SyntheticValue && isResolvedModuleWithProviders(entry)) {
5455
+ entry = entry.value.ngModule;
5456
+ hasModuleWithProviders = true;
5457
+ } else if (entry instanceof Map && entry.has("ngModule")) {
5369
5458
  entry = entry.get("ngModule");
5459
+ hasModuleWithProviders = true;
5370
5460
  }
5371
5461
  if (Array.isArray(entry)) {
5372
- refList.push(...this.resolveTypeList(expr, entry, className, arrayName));
5462
+ const recursiveResult = this.resolveTypeList(expr, entry, className, arrayName, absoluteIndex);
5463
+ refList.push(...recursiveResult.references);
5464
+ absoluteIndex += recursiveResult.references.length;
5465
+ hasModuleWithProviders = hasModuleWithProviders || recursiveResult.hasModuleWithProviders;
5373
5466
  } else if (entry instanceof Reference) {
5374
5467
  if (!this.isClassDeclarationReference(entry)) {
5375
- throw createValueHasWrongTypeError(entry.node, entry, `Value at position ${idx} in the NgModule.${arrayName} of ${className} is not a class`);
5468
+ throw createValueHasWrongTypeError(entry.node, entry, `Value at position ${absoluteIndex} in the NgModule.${arrayName} of ${className} is not a class`);
5376
5469
  }
5377
5470
  refList.push(entry);
5471
+ absoluteIndex += 1;
5378
5472
  } else {
5379
- throw createValueHasWrongTypeError(expr, entry, `Value at position ${idx} in the NgModule.${arrayName} of ${className} is not a reference`);
5473
+ throw createValueHasWrongTypeError(expr, entry, `Value at position ${absoluteIndex} in the NgModule.${arrayName} of ${className} is not a reference`);
5380
5474
  }
5381
- });
5382
- return refList;
5475
+ }
5476
+ return {
5477
+ references: refList,
5478
+ hasModuleWithProviders
5479
+ };
5383
5480
  }
5384
5481
  };
5385
5482
  function isNgModule(node, compilation) {
@@ -5388,8 +5485,11 @@ function isNgModule(node, compilation) {
5388
5485
  function isModuleIdExpression(expr) {
5389
5486
  return ts24.isPropertyAccessExpression(expr) && ts24.isIdentifier(expr.expression) && expr.expression.text === "module" && expr.name.text === "id";
5390
5487
  }
5488
+ function isResolvedModuleWithProviders(sv) {
5489
+ return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5490
+ }
5391
5491
 
5392
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5492
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5393
5493
  function makeCyclicImportInfo(ref, type, cycle) {
5394
5494
  const name = ref.debugName || "(unknown)";
5395
5495
  const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -5412,7 +5512,7 @@ function checkCustomElementSelectorForErrors(selector) {
5412
5512
  return null;
5413
5513
  }
5414
5514
 
5415
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5515
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5416
5516
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
5417
5517
  import ts25 from "typescript";
5418
5518
  function getTemplateDeclarationNodeForError(declaration) {
@@ -5704,7 +5804,7 @@ function _extractTemplateStyleUrls(template) {
5704
5804
  return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
5705
5805
  }
5706
5806
 
5707
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5807
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5708
5808
  var ComponentSymbol = class extends DirectiveSymbol {
5709
5809
  constructor() {
5710
5810
  super(...arguments);
@@ -5739,8 +5839,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
5739
5839
  }
5740
5840
  };
5741
5841
 
5742
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5743
- import ts26 from "typescript";
5842
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5744
5843
  function collectAnimationNames(value, animationTriggerNames) {
5745
5844
  if (value instanceof Map) {
5746
5845
  const name = value.get("name");
@@ -5760,19 +5859,18 @@ function collectAnimationNames(value, animationTriggerNames) {
5760
5859
  function isAngularAnimationsReference(reference, symbolName) {
5761
5860
  return reference.ownedByModuleGuess === "@angular/animations" && reference.debugName === symbolName;
5762
5861
  }
5763
- var animationTriggerResolver = (ref, args) => {
5862
+ var animationTriggerResolver = (fn, node, resolve, unresolvable) => {
5764
5863
  const animationTriggerMethodName = "trigger";
5765
- if (!isAngularAnimationsReference(ref, animationTriggerMethodName)) {
5766
- return null;
5864
+ if (!isAngularAnimationsReference(fn, animationTriggerMethodName)) {
5865
+ return unresolvable;
5767
5866
  }
5768
- const triggerNameExpression = args[0];
5867
+ const triggerNameExpression = node.arguments[0];
5769
5868
  if (!triggerNameExpression) {
5770
- return null;
5869
+ return unresolvable;
5771
5870
  }
5772
- const factory = ts26.factory;
5773
- return factory.createObjectLiteralExpression([
5774
- factory.createPropertyAssignment(factory.createIdentifier("name"), triggerNameExpression)
5775
- ], true);
5871
+ const res = /* @__PURE__ */ new Map();
5872
+ res.set("name", resolve(triggerNameExpression));
5873
+ return res;
5776
5874
  };
5777
5875
  function validateAndFlattenComponentImports(imports, expr) {
5778
5876
  const flattened = [];
@@ -5802,7 +5900,7 @@ function validateAndFlattenComponentImports(imports, expr) {
5802
5900
  return { imports: flattened, diagnostics };
5803
5901
  }
5804
5902
 
5805
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
5903
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
5806
5904
  var EMPTY_ARRAY = [];
5807
5905
  var ComponentDecoratorHandler = class {
5808
5906
  constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf) {
@@ -5971,6 +6069,17 @@ var ComponentDecoratorHandler = class {
5971
6069
  diagnostics.push(...validationDiagnostics);
5972
6070
  }
5973
6071
  }
6072
+ let schemas = null;
6073
+ if (component.has("schemas") && !metadata.isStandalone) {
6074
+ if (diagnostics === void 0) {
6075
+ diagnostics = [];
6076
+ }
6077
+ diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get("schemas"), `'schemas' is only valid on a component that is standalone.`));
6078
+ } else if (component.has("schemas")) {
6079
+ schemas = extractSchemas(component.get("schemas"), this.evaluator, "Component");
6080
+ } else if (metadata.isStandalone) {
6081
+ schemas = [];
6082
+ }
5974
6083
  let template;
5975
6084
  if (this.preanalyzeTemplateCache.has(node)) {
5976
6085
  const preanalyzed = this.preanalyzeTemplateCache.get(node);
@@ -6073,7 +6182,8 @@ var ComponentDecoratorHandler = class {
6073
6182
  isPoisoned,
6074
6183
  animationTriggerNames,
6075
6184
  rawImports,
6076
- resolvedImports
6185
+ resolvedImports,
6186
+ schemas
6077
6187
  },
6078
6188
  diagnostics
6079
6189
  };
@@ -6104,7 +6214,8 @@ var ComponentDecoratorHandler = class {
6104
6214
  isStructural: false,
6105
6215
  isStandalone: analysis.meta.isStandalone,
6106
6216
  imports: analysis.resolvedImports,
6107
- animationTriggerNames: analysis.animationTriggerNames
6217
+ animationTriggerNames: analysis.animationTriggerNames,
6218
+ schemas: analysis.schemas
6108
6219
  }));
6109
6220
  this.resourceRegistry.registerResources(analysis.resources, node);
6110
6221
  this.injectableRegistry.registerInjectable(node);
@@ -6140,7 +6251,7 @@ var ComponentDecoratorHandler = class {
6140
6251
  });
6141
6252
  }
6142
6253
  typeCheck(ctx, node, meta) {
6143
- if (this.typeCheckScopeRegistry === null || !ts27.isClassDeclaration(node)) {
6254
+ if (this.typeCheckScopeRegistry === null || !ts26.isClassDeclaration(node)) {
6144
6255
  return;
6145
6256
  }
6146
6257
  if (meta.isPoisoned && !this.usePoisonedData) {
@@ -6413,9 +6524,9 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
6413
6524
  return diagnostics;
6414
6525
  }
6415
6526
 
6416
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6527
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6417
6528
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
6418
- import ts28 from "typescript";
6529
+ import ts27 from "typescript";
6419
6530
  var InjectableDecoratorHandler = class {
6420
6531
  constructor(reflector, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
6421
6532
  this.reflector = reflector;
@@ -6506,7 +6617,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
6506
6617
  };
6507
6618
  } else if (decorator.args.length === 1) {
6508
6619
  const metaNode = decorator.args[0];
6509
- if (!ts28.isObjectLiteralExpression(metaNode)) {
6620
+ if (!ts27.isObjectLiteralExpression(metaNode)) {
6510
6621
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
6511
6622
  }
6512
6623
  const meta = reflectObjectLiteral(metaNode);
@@ -6514,7 +6625,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
6514
6625
  let deps = void 0;
6515
6626
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
6516
6627
  const depsExpr = meta.get("deps");
6517
- if (!ts28.isArrayLiteralExpression(depsExpr)) {
6628
+ if (!ts27.isArrayLiteralExpression(depsExpr)) {
6518
6629
  throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
6519
6630
  }
6520
6631
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
@@ -6596,12 +6707,12 @@ function getDep(dep, reflector) {
6596
6707
  }
6597
6708
  return true;
6598
6709
  }
6599
- if (ts28.isArrayLiteralExpression(dep)) {
6710
+ if (ts27.isArrayLiteralExpression(dep)) {
6600
6711
  dep.elements.forEach((el) => {
6601
6712
  let isDecorator = false;
6602
- if (ts28.isIdentifier(el)) {
6713
+ if (ts27.isIdentifier(el)) {
6603
6714
  isDecorator = maybeUpdateDecorator(el, reflector);
6604
- } else if (ts28.isNewExpression(el) && ts28.isIdentifier(el.expression)) {
6715
+ } else if (ts27.isNewExpression(el) && ts27.isIdentifier(el.expression)) {
6605
6716
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
6606
6717
  isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
6607
6718
  }
@@ -6613,9 +6724,9 @@ function getDep(dep, reflector) {
6613
6724
  return meta;
6614
6725
  }
6615
6726
 
6616
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6727
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6617
6728
  import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
6618
- import ts29 from "typescript";
6729
+ import ts28 from "typescript";
6619
6730
  var PipeSymbol = class extends SemanticSymbol {
6620
6731
  constructor(decl, name) {
6621
6732
  super(decl);
@@ -6670,7 +6781,7 @@ var PipeDecoratorHandler = class {
6670
6781
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), "@Pipe must have exactly one argument");
6671
6782
  }
6672
6783
  const meta = unwrapExpression(decorator.args[0]);
6673
- if (!ts29.isObjectLiteralExpression(meta)) {
6784
+ if (!ts28.isObjectLiteralExpression(meta)) {
6674
6785
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
6675
6786
  }
6676
6787
  const pipe = reflectObjectLiteral(meta);
@@ -6805,4 +6916,4 @@ export {
6805
6916
  * found in the LICENSE file at https://angular.io/license
6806
6917
  */
6807
6918
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
6808
- //# sourceMappingURL=chunk-U3GWKPTG.js.map
6919
+ //# sourceMappingURL=chunk-2ZVQLOCC.js.map