@angular/core 15.2.1 → 16.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/esm2020/src/application_init.mjs +3 -2
  2. package/esm2020/src/application_module.mjs +3 -2
  3. package/esm2020/src/application_ref.mjs +5 -3
  4. package/esm2020/src/change_detection/change_detector_ref.mjs +3 -2
  5. package/esm2020/src/change_detection/differs/iterable_differs.mjs +3 -2
  6. package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +3 -2
  7. package/esm2020/src/console.mjs +3 -2
  8. package/esm2020/src/core.mjs +2 -1
  9. package/esm2020/src/core_private_export.mjs +2 -1
  10. package/esm2020/src/core_reactivity_export.mjs +11 -0
  11. package/esm2020/src/core_reactivity_export_internal.mjs +9 -0
  12. package/esm2020/src/di/injector.mjs +3 -2
  13. package/esm2020/src/di/r3_injector.mjs +5 -1
  14. package/esm2020/src/di/reflective_injector.mjs +3 -2
  15. package/esm2020/src/linker/compiler.mjs +3 -2
  16. package/esm2020/src/linker/component_factory_resolver.mjs +3 -2
  17. package/esm2020/src/linker/destroy_ref.mjs +41 -0
  18. package/esm2020/src/linker/element_ref.mjs +3 -2
  19. package/esm2020/src/linker/template_ref.mjs +3 -2
  20. package/esm2020/src/linker/view_container_ref.mjs +3 -2
  21. package/esm2020/src/linker.mjs +2 -1
  22. package/esm2020/src/render/api.mjs +3 -2
  23. package/esm2020/src/render/api_flags.mjs +1 -1
  24. package/esm2020/src/render3/features/standalone_feature.mjs +1 -1
  25. package/esm2020/src/render3/fields.mjs +10 -1
  26. package/esm2020/src/render3/hooks.mjs +3 -2
  27. package/esm2020/src/render3/instructions/shared.mjs +14 -14
  28. package/esm2020/src/render3/interfaces/definition.mjs +1 -1
  29. package/esm2020/src/render3/interfaces/view.mjs +3 -2
  30. package/esm2020/src/render3/node_manipulation.mjs +14 -14
  31. package/esm2020/src/render3/util/view_utils.mjs +11 -2
  32. package/esm2020/src/render3/view_ref.mjs +4 -3
  33. package/esm2020/src/sanitization/sanitizer.mjs +3 -2
  34. package/esm2020/src/signals/index.mjs +15 -0
  35. package/esm2020/src/signals/src/api.mjs +46 -0
  36. package/esm2020/src/signals/src/computed.mjs +142 -0
  37. package/esm2020/src/signals/src/effect.mjs +69 -0
  38. package/esm2020/src/signals/src/graph.mjs +114 -0
  39. package/esm2020/src/signals/src/signal.mjs +78 -0
  40. package/esm2020/src/signals/src/untracked.mjs +26 -0
  41. package/esm2020/src/signals/src/watch.mjs +54 -0
  42. package/esm2020/src/signals/src/weak_ref.mjs +11 -0
  43. package/esm2020/src/testability/testability.mjs +5 -3
  44. package/esm2020/src/transfer_state.mjs +148 -0
  45. package/esm2020/src/version.mjs +1 -1
  46. package/esm2020/testing/src/logger.mjs +6 -5
  47. package/esm2020/testing/src/ng_zone_mock.mjs +6 -5
  48. package/esm2020/testing/src/test_bed.mjs +3 -2
  49. package/fesm2015/core.mjs +699 -31
  50. package/fesm2015/core.mjs.map +1 -1
  51. package/fesm2015/testing.mjs +53 -30
  52. package/fesm2015/testing.mjs.map +1 -1
  53. package/fesm2020/core.mjs +695 -31
  54. package/fesm2020/core.mjs.map +1 -1
  55. package/fesm2020/testing.mjs +53 -30
  56. package/fesm2020/testing.mjs.map +1 -1
  57. package/index.d.ts +398 -2
  58. package/package.json +2 -2
  59. package/schematics/migrations/router-link-with-href/bundle.js.map +2 -2
  60. package/schematics/ng-generate/standalone-migration/bundle.js +777 -1053
  61. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  62. package/testing/index.d.ts +1 -1
package/fesm2020/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.2.1
2
+ * @license Angular v16.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -974,6 +974,15 @@ const NG_FACTORY_DEF = getClosureSafeProperty({ ɵfac: getClosureSafeProperty })
974
974
  */
975
975
  // TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.
976
976
  const NG_ELEMENT_ID = getClosureSafeProperty({ __NG_ELEMENT_ID__: getClosureSafeProperty });
977
+ /**
978
+ * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:
979
+ * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution
980
+ * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.
981
+ *
982
+ * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and
983
+ * improve tree-shaking.
984
+ */
985
+ const NG_ENV_ID = getClosureSafeProperty({ __NG_ENV_ID__: getClosureSafeProperty });
977
986
 
978
987
  /** Counter used to generate unique IDs for component definitions. */
979
988
  let componentDefCount = 0;
@@ -1290,6 +1299,7 @@ const PREORDER_HOOK_FLAGS = 18;
1290
1299
  const QUERIES = 19;
1291
1300
  const ID = 20;
1292
1301
  const EMBEDDED_VIEW_INJECTOR = 21;
1302
+ const ON_DESTROY_HOOKS = 22;
1293
1303
  /**
1294
1304
  * Size of LView's header. Necessary to adjust for it when setting slots.
1295
1305
  *
@@ -1297,7 +1307,7 @@ const EMBEDDED_VIEW_INJECTOR = 21;
1297
1307
  * instruction index into `LView` index. All other indexes should be in the `LView` index space and
1298
1308
  * there should be no need to refer to `HEADER_OFFSET` anywhere else.
1299
1309
  */
1300
- const HEADER_OFFSET = 22;
1310
+ const HEADER_OFFSET = 23;
1301
1311
  // Note: This hack is necessary so we don't erroneously get a circular dependency
1302
1312
  // failure based on types.
1303
1313
  const unusedValueExportToPlacateAjd$4 = 1;
@@ -1773,6 +1783,15 @@ function updateTransplantedViewCount(lContainer, amount) {
1773
1783
  parent = parent[PARENT];
1774
1784
  }
1775
1785
  }
1786
+ /**
1787
+ * Stores a LView-specific destroy callback.
1788
+ */
1789
+ function storeLViewOnDestroy(lView, onDestroyCallback) {
1790
+ if (lView[ON_DESTROY_HOOKS] === null) {
1791
+ lView[ON_DESTROY_HOOKS] = [];
1792
+ }
1793
+ lView[ON_DESTROY_HOOKS].push(onDestroyCallback);
1794
+ }
1776
1795
 
1777
1796
  const instructionState = {
1778
1797
  lFrame: createLFrame(null),
@@ -2450,8 +2469,9 @@ function callHooks(currentView, arr, initPhase, currentNodeIndex) {
2450
2469
  }
2451
2470
  else {
2452
2471
  const isInitHook = arr[i] < 0;
2453
- if (isInitHook)
2472
+ if (isInitHook) {
2454
2473
  currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;
2474
+ }
2455
2475
  if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {
2456
2476
  callHook(currentView, initPhase, arr, i);
2457
2477
  currentView[PREORDER_HOOK_FLAGS] =
@@ -5965,10 +5985,6 @@ function cleanUpView(tView, lView) {
5965
5985
  function processCleanups(tView, lView) {
5966
5986
  const tCleanup = tView.cleanup;
5967
5987
  const lCleanup = lView[CLEANUP];
5968
- // `LCleanup` contains both share information with `TCleanup` as well as instance specific
5969
- // information appended at the end. We need to know where the end of the `TCleanup` information
5970
- // is, and we track this with `lastLCleanupIndex`.
5971
- let lastLCleanupIndex = -1;
5972
5988
  if (tCleanup !== null) {
5973
5989
  for (let i = 0; i < tCleanup.length - 1; i += 2) {
5974
5990
  if (typeof tCleanup[i] === 'string') {
@@ -5978,29 +5994,33 @@ function processCleanups(tView, lView) {
5978
5994
  ngDevMode && assertNumber(targetIdx, 'cleanup target must be a number');
5979
5995
  if (targetIdx >= 0) {
5980
5996
  // unregister
5981
- lCleanup[lastLCleanupIndex = targetIdx]();
5997
+ lCleanup[targetIdx]();
5982
5998
  }
5983
5999
  else {
5984
6000
  // Subscription
5985
- lCleanup[lastLCleanupIndex = -targetIdx].unsubscribe();
6001
+ lCleanup[-targetIdx].unsubscribe();
5986
6002
  }
5987
6003
  i += 2;
5988
6004
  }
5989
6005
  else {
5990
6006
  // This is a cleanup function that is grouped with the index of its context
5991
- const context = lCleanup[lastLCleanupIndex = tCleanup[i + 1]];
6007
+ const context = lCleanup[tCleanup[i + 1]];
5992
6008
  tCleanup[i].call(context);
5993
6009
  }
5994
6010
  }
5995
6011
  }
5996
6012
  if (lCleanup !== null) {
5997
- for (let i = lastLCleanupIndex + 1; i < lCleanup.length; i++) {
5998
- const instanceCleanupFn = lCleanup[i];
5999
- ngDevMode && assertFunction(instanceCleanupFn, 'Expecting instance cleanup function.');
6000
- instanceCleanupFn();
6001
- }
6002
6013
  lView[CLEANUP] = null;
6003
6014
  }
6015
+ const destroyHooks = lView[ON_DESTROY_HOOKS];
6016
+ if (destroyHooks !== null) {
6017
+ for (let i = 0; i < destroyHooks.length; i++) {
6018
+ const destroyHooksFn = destroyHooks[i];
6019
+ ngDevMode && assertFunction(destroyHooksFn, 'Expecting destroy hook to be a function.');
6020
+ destroyHooksFn();
6021
+ }
6022
+ lView[ON_DESTROY_HOOKS] = null;
6023
+ }
6004
6024
  }
6005
6025
  /** Calls onDestroy hooks for this view */
6006
6026
  function executeOnDestroys(tView, lView) {
@@ -7928,6 +7948,9 @@ class R3Injector extends EnvironmentInjector {
7928
7948
  }
7929
7949
  get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {
7930
7950
  this.assertNotDestroyed();
7951
+ if (token.hasOwnProperty(NG_ENV_ID)) {
7952
+ return token[NG_ENV_ID](this);
7953
+ }
7931
7954
  flags = convertToBitFlags(flags);
7932
7955
  // Set the injection context.
7933
7956
  const previousInjector = setCurrentInjector(this);
@@ -8384,7 +8407,7 @@ class Version {
8384
8407
  /**
8385
8408
  * @publicApi
8386
8409
  */
8387
- const VERSION = new Version('15.2.1');
8410
+ const VERSION = new Version('16.0.0-next.1');
8388
8411
 
8389
8412
  // This default value is when checking the hierarchy for a token.
8390
8413
  //
@@ -10636,24 +10659,24 @@ function locateHostElement(renderer, elementOrSelector, encapsulation) {
10636
10659
  * On the first template pass, saves in TView:
10637
10660
  * - Cleanup function
10638
10661
  * - Index of context we just saved in LView.cleanupInstances
10639
- *
10640
- * This function can also be used to store instance specific cleanup fns. In that case the `context`
10641
- * is `null` and the function is store in `LView` (rather than it `TView`).
10642
10662
  */
10643
10663
  function storeCleanupWithContext(tView, lView, context, cleanupFn) {
10644
10664
  const lCleanup = getOrCreateLViewCleanup(lView);
10645
- if (context === null) {
10646
- // If context is null that this is instance specific callback. These callbacks can only be
10647
- // inserted after template shared instances. For this reason in ngDevMode we freeze the TView.
10648
- if (ngDevMode) {
10649
- Object.freeze(getOrCreateTViewCleanup(tView));
10650
- }
10651
- lCleanup.push(cleanupFn);
10665
+ // Historically the `storeCleanupWithContext` was used to register both framework-level and
10666
+ // user-defined cleanup callbacks, but over time those two types of cleanups were separated. This
10667
+ // dev mode checks assures that user-level cleanup callbacks are _not_ stored in data structures
10668
+ // reserved for framework-specific hooks.
10669
+ ngDevMode &&
10670
+ assertDefined(context, 'Cleanup context is mandatory when registering framework-level destroy hooks');
10671
+ lCleanup.push(context);
10672
+ if (tView.firstCreatePass) {
10673
+ getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);
10652
10674
  }
10653
10675
  else {
10654
- lCleanup.push(context);
10655
- if (tView.firstCreatePass) {
10656
- getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);
10676
+ // Make sure that no new framework-level cleanup functions are registered after the first
10677
+ // template pass is done (and TView data structures are meant to fully constructed).
10678
+ if (ngDevMode) {
10679
+ Object.freeze(getOrCreateTViewCleanup(tView));
10657
10680
  }
10658
10681
  }
10659
10682
  }
@@ -11845,7 +11868,7 @@ class ViewRef$1 {
11845
11868
  destroyLView(this._lView[TVIEW], this._lView);
11846
11869
  }
11847
11870
  onDestroy(callback) {
11848
- storeCleanupWithContext(this._lView[TVIEW], this._lView, null, callback);
11871
+ storeLViewOnDestroy(this._lView, callback);
11849
11872
  }
11850
11873
  /**
11851
11874
  * Marks a view and all of its ancestors dirty.
@@ -25501,6 +25524,37 @@ function enableProdMode() {
25501
25524
 
25502
25525
  // Public API for render
25503
25526
 
25527
+ /**
25528
+ * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.
25529
+ * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`
25530
+ * is injected in a component or directive, the callbacks run when that component or
25531
+ * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.
25532
+ */
25533
+ class DestroyRef {
25534
+ }
25535
+ /**
25536
+ * @internal
25537
+ * @nocollapse
25538
+ */
25539
+ DestroyRef.__NG_ELEMENT_ID__ = injectDestroyRef;
25540
+ /**
25541
+ * @internal
25542
+ * @nocollapse
25543
+ */
25544
+ DestroyRef.__NG_ENV_ID__ = (injector) => injector;
25545
+ class NodeInjectorDestroyRef extends DestroyRef {
25546
+ constructor(_lView) {
25547
+ super();
25548
+ this._lView = _lView;
25549
+ }
25550
+ onDestroy(callback) {
25551
+ storeLViewOnDestroy(this._lView, callback);
25552
+ }
25553
+ }
25554
+ function injectDestroyRef() {
25555
+ return new NodeInjectorDestroyRef(getLView());
25556
+ }
25557
+
25504
25558
  /**
25505
25559
  * Returns the NgModuleFactory with the given id (specified using [@NgModule.id
25506
25560
  * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do
@@ -27328,6 +27382,141 @@ ApplicationModule.ɵinj = /*@__PURE__*/ ɵɵdefineInjector({});
27328
27382
  type: NgModule
27329
27383
  }], function () { return [{ type: ApplicationRef }]; }, null); })();
27330
27384
 
27385
+ function escapeTransferStateContent(text) {
27386
+ const escapedText = {
27387
+ '&': '&a;',
27388
+ '"': '&q;',
27389
+ '\'': '&s;',
27390
+ '<': '&l;',
27391
+ '>': '&g;',
27392
+ };
27393
+ return text.replace(/[&"'<>]/g, s => escapedText[s]);
27394
+ }
27395
+ function unescapeTransferStateContent(text) {
27396
+ const unescapedText = {
27397
+ '&a;': '&',
27398
+ '&q;': '"',
27399
+ '&s;': '\'',
27400
+ '&l;': '<',
27401
+ '&g;': '>',
27402
+ };
27403
+ return text.replace(/&[^;]+;/g, s => unescapedText[s]);
27404
+ }
27405
+ /**
27406
+ * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
27407
+ *
27408
+ * Example:
27409
+ *
27410
+ * ```
27411
+ * const COUNTER_KEY = makeStateKey<number>('counter');
27412
+ * let value = 10;
27413
+ *
27414
+ * transferState.set(COUNTER_KEY, value);
27415
+ * ```
27416
+ *
27417
+ * @publicApi
27418
+ */
27419
+ function makeStateKey(key) {
27420
+ return key;
27421
+ }
27422
+ /**
27423
+ * A key value store that is transferred from the application on the server side to the application
27424
+ * on the client side.
27425
+ *
27426
+ * The `TransferState` is available as an injectable token.
27427
+ * On the client, just inject this token using DI and use it, it will be lazily initialized.
27428
+ * On the server it's already included if `renderApplication` function is used. Otherwise, import
27429
+ * the `ServerTransferStateModule` module to make the `TransferState` available.
27430
+ *
27431
+ * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
27432
+ * boolean, number, string, null and non-class objects will be serialized and deserialized in a
27433
+ * non-lossy manner.
27434
+ *
27435
+ * @publicApi
27436
+ */
27437
+ class TransferState {
27438
+ constructor() {
27439
+ this.store = {};
27440
+ this.onSerializeCallbacks = {};
27441
+ this.store = retrieveTransferredState(getDocument(), inject(APP_ID));
27442
+ }
27443
+ /**
27444
+ * Get the value corresponding to a key. Return `defaultValue` if key is not found.
27445
+ */
27446
+ get(key, defaultValue) {
27447
+ return this.store[key] !== undefined ? this.store[key] : defaultValue;
27448
+ }
27449
+ /**
27450
+ * Set the value corresponding to a key.
27451
+ */
27452
+ set(key, value) {
27453
+ this.store[key] = value;
27454
+ }
27455
+ /**
27456
+ * Remove a key from the store.
27457
+ */
27458
+ remove(key) {
27459
+ delete this.store[key];
27460
+ }
27461
+ /**
27462
+ * Test whether a key exists in the store.
27463
+ */
27464
+ hasKey(key) {
27465
+ return this.store.hasOwnProperty(key);
27466
+ }
27467
+ /**
27468
+ * Indicates whether the state is empty.
27469
+ */
27470
+ get isEmpty() {
27471
+ return Object.keys(this.store).length === 0;
27472
+ }
27473
+ /**
27474
+ * Register a callback to provide the value for a key when `toJson` is called.
27475
+ */
27476
+ onSerialize(key, callback) {
27477
+ this.onSerializeCallbacks[key] = callback;
27478
+ }
27479
+ /**
27480
+ * Serialize the current state of the store to JSON.
27481
+ */
27482
+ toJson() {
27483
+ // Call the onSerialize callbacks and put those values into the store.
27484
+ for (const key in this.onSerializeCallbacks) {
27485
+ if (this.onSerializeCallbacks.hasOwnProperty(key)) {
27486
+ try {
27487
+ this.store[key] = this.onSerializeCallbacks[key]();
27488
+ }
27489
+ catch (e) {
27490
+ console.warn('Exception in onSerialize callback: ', e);
27491
+ }
27492
+ }
27493
+ }
27494
+ return JSON.stringify(this.store);
27495
+ }
27496
+ }
27497
+ TransferState.ɵfac = function TransferState_Factory(t) { return new (t || TransferState)(); };
27498
+ TransferState.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TransferState, factory: TransferState.ɵfac, providedIn: 'root' });
27499
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TransferState, [{
27500
+ type: Injectable,
27501
+ args: [{ providedIn: 'root' }]
27502
+ }], function () { return []; }, null); })();
27503
+ function retrieveTransferredState(doc, appId) {
27504
+ // Locate the script tag with the JSON data transferred from the server.
27505
+ // The id of the script tag is set to the Angular appId + 'state'.
27506
+ const script = doc.getElementById(appId + '-state');
27507
+ let initialState = {};
27508
+ if (script && script.textContent) {
27509
+ try {
27510
+ // Avoid using any here as it triggers lint errors in google3 (any is not allowed).
27511
+ initialState = JSON.parse(unescapeTransferStateContent(script.textContent));
27512
+ }
27513
+ catch (e) {
27514
+ console.warn('Exception while restoring TransferState for app ' + appId, e);
27515
+ }
27516
+ }
27517
+ return initialState;
27518
+ }
27519
+
27331
27520
  /** Coerces a value (typically a string) to a boolean. */
27332
27521
  function coerceToBoolean(value) {
27333
27522
  return typeof value === 'boolean' ? value : (value != null && value !== 'false');
@@ -27429,6 +27618,481 @@ function ɵɵngDeclarePipe(decl) {
27429
27618
  // clang-format off
27430
27619
  // clang-format on
27431
27620
 
27621
+ /**
27622
+ * Symbol used to tell `Signal`s apart from other functions.
27623
+ *
27624
+ * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.
27625
+ */
27626
+ const SIGNAL = Symbol('SIGNAL');
27627
+ /**
27628
+ * Checks if the given `value` function is a reactive `Signal`.
27629
+ */
27630
+ function isSignal(value) {
27631
+ return value[SIGNAL] ?? false;
27632
+ }
27633
+ /**
27634
+ * Converts `fn` into a marked signal function (where `isSignal(fn)` will be `true`), and
27635
+ * potentially add some set of extra properties (passed as an object record `extraApi`).
27636
+ */
27637
+ function createSignalFromFunction(fn, extraApi = {}) {
27638
+ fn[SIGNAL] = true;
27639
+ // Copy properties from `extraApi` to `fn` to complete the desired API of the `Signal`.
27640
+ return Object.assign(fn, extraApi);
27641
+ }
27642
+ /**
27643
+ * The default equality function used for `signal` and `computed`, which treats objects and arrays
27644
+ * as never equal, and all other primitive values using identity semantics.
27645
+ *
27646
+ * This allows signals to hold non-primitive values (arrays, objects, other collections) and still
27647
+ * propagate change notification upon explicit mutation without identity change.
27648
+ *
27649
+ * @developerPreview
27650
+ */
27651
+ function defaultEquals(a, b) {
27652
+ // `Object.is` compares two values using identity semantics which is desired behavior for
27653
+ // primitive values. If `Object.is` determines two values to be equal we need to make sure that
27654
+ // those don't represent objects (we want to make sure that 2 objects are always considered
27655
+ // "unequal"). The null check is needed for the special case of JavaScript reporting null values
27656
+ // as objects (`typeof null === 'object'`).
27657
+ return (a === null || typeof a !== 'object') && Object.is(a, b);
27658
+ }
27659
+
27660
+ /**
27661
+ * Tracks the currently active reactive context (or `null` if there is no active
27662
+ * context).
27663
+ */
27664
+ let activeConsumer = null;
27665
+ /**
27666
+ * Counter tracking the next `ProducerId` or `ConsumerId`.
27667
+ */
27668
+ let _nextReactiveId = 0;
27669
+ /**
27670
+ * Get a new `ProducerId` or `ConsumerId`, allocated from the global sequence.
27671
+ *
27672
+ * The value returned is a type intersection of both branded types, and thus can be assigned to
27673
+ * either.
27674
+ */
27675
+ function nextReactiveId() {
27676
+ return _nextReactiveId++;
27677
+ }
27678
+ /**
27679
+ * Set `consumer` as the active reactive context, and return the previous `Consumer`
27680
+ * (if any) for later restoration.
27681
+ */
27682
+ function setActiveConsumer(consumer) {
27683
+ const prevConsumer = activeConsumer;
27684
+ activeConsumer = consumer;
27685
+ return prevConsumer;
27686
+ }
27687
+ /**
27688
+ * Notify all `Consumer`s of the given `Producer` that its value may have changed.
27689
+ */
27690
+ function producerNotifyConsumers(producer) {
27691
+ for (const [consumerId, edge] of producer.consumers) {
27692
+ const consumer = edge.consumerRef.deref();
27693
+ if (consumer === undefined || consumer.trackingVersion !== edge.atTrackingVersion) {
27694
+ producer.consumers.delete(consumerId);
27695
+ consumer?.producers.delete(producer.id);
27696
+ continue;
27697
+ }
27698
+ consumer.notify();
27699
+ }
27700
+ }
27701
+ /**
27702
+ * Record a dependency on the given `Producer` by the current reactive `Consumer` if
27703
+ * one is present.
27704
+ */
27705
+ function producerAccessed(producer) {
27706
+ if (activeConsumer === null) {
27707
+ return;
27708
+ }
27709
+ // Either create or update the dependency `Edge` in both directions.
27710
+ let edge = activeConsumer.producers.get(producer.id);
27711
+ if (edge === undefined) {
27712
+ edge = {
27713
+ consumerRef: activeConsumer.ref,
27714
+ producerRef: producer.ref,
27715
+ seenValueVersion: producer.valueVersion,
27716
+ atTrackingVersion: activeConsumer.trackingVersion,
27717
+ };
27718
+ activeConsumer.producers.set(producer.id, edge);
27719
+ producer.consumers.set(activeConsumer.id, edge);
27720
+ }
27721
+ else {
27722
+ edge.seenValueVersion = producer.valueVersion;
27723
+ edge.atTrackingVersion = activeConsumer.trackingVersion;
27724
+ }
27725
+ }
27726
+ /**
27727
+ * Checks if a `Producer` has a current value which is different than the value
27728
+ * last seen at a specific version by a `Consumer` which recorded a dependency on
27729
+ * this `Producer`.
27730
+ */
27731
+ function producerPollStatus(producer, lastSeenValueVersion) {
27732
+ // `producer.valueVersion` may be stale, but a mismatch still means that the value
27733
+ // last seen by the `Consumer` is also stale.
27734
+ if (producer.valueVersion !== lastSeenValueVersion) {
27735
+ return true;
27736
+ }
27737
+ // Trigger the `Producer` to update its `valueVersion` if necessary.
27738
+ producer.checkForChangedValue();
27739
+ // At this point, we can trust `producer.valueVersion`.
27740
+ return producer.valueVersion !== lastSeenValueVersion;
27741
+ }
27742
+ /**
27743
+ * Function called to check the stale status of dependencies (producers) for a given consumer. This
27744
+ * is a verification step before refreshing a given consumer: if none of the the dependencies
27745
+ * reports a semantically new value, then the `Consumer` has not observed a real dependency change
27746
+ * (even though it may have been notified of one).
27747
+ */
27748
+ function consumerPollValueStatus(consumer) {
27749
+ for (const [producerId, edge] of consumer.producers) {
27750
+ const producer = edge.producerRef.deref();
27751
+ if (producer === undefined || edge.atTrackingVersion !== consumer.trackingVersion) {
27752
+ // This dependency edge is stale, so remove it.
27753
+ consumer.producers.delete(producerId);
27754
+ producer?.consumers.delete(consumer.id);
27755
+ continue;
27756
+ }
27757
+ if (producerPollStatus(producer, edge.seenValueVersion)) {
27758
+ // One of the dependencies reports a real value change.
27759
+ return true;
27760
+ }
27761
+ }
27762
+ // No dependency reported a real value change, so the `Consumer` has also not been
27763
+ // impacted.
27764
+ return false;
27765
+ }
27766
+
27767
+ // tslint:disable-next-line: no-toplevel-property-access
27768
+ const WeakRef = _global['WeakRef'];
27769
+
27770
+ /**
27771
+ * Create a computed `Signal` which derives a reactive value from an expression.
27772
+ *
27773
+ * @developerPreview
27774
+ */
27775
+ function computed(computation, equal = defaultEquals) {
27776
+ const node = new ComputedImpl(computation, equal);
27777
+ return createSignalFromFunction(node.signal.bind(node));
27778
+ }
27779
+ /**
27780
+ * A dedicated symbol used before a computed value has been calculated for the first time.
27781
+ * Explicitly typed as `any` so we can use it as signal's value.
27782
+ */
27783
+ const UNSET = Symbol('UNSET');
27784
+ /**
27785
+ * A dedicated symbol used in place of a computed signal value to indicate that a given computation
27786
+ * is in progress. Used to detect cycles in computation chains.
27787
+ * Explicitly typed as `any` so we can use it as signal's value.
27788
+ */
27789
+ const COMPUTING = Symbol('COMPUTING');
27790
+ /**
27791
+ * A dedicated symbol used in place of a computed signal value to indicate that a given computation
27792
+ * failed. The thrown error is cached until the computation gets dirty again.
27793
+ * Explicitly typed as `any` so we can use it as signal's value.
27794
+ */
27795
+ const ERRORED = Symbol('ERRORED');
27796
+ /**
27797
+ * A computation, which derives a value from a declarative reactive expression.
27798
+ *
27799
+ * `Computed`s are both `Producer`s and `Consumer`s of reactivity.
27800
+ */
27801
+ class ComputedImpl {
27802
+ constructor(computation, equal) {
27803
+ this.computation = computation;
27804
+ this.equal = equal;
27805
+ /**
27806
+ * Current value of the computation.
27807
+ *
27808
+ * This can also be one of the special values `UNSET`, `COMPUTING`, or `ERRORED`.
27809
+ */
27810
+ this.value = UNSET;
27811
+ /**
27812
+ * If `value` is `ERRORED`, the error caught from the last computation attempt which will
27813
+ * be re-thrown.
27814
+ */
27815
+ this.error = null;
27816
+ /**
27817
+ * Flag indicating that the computation is currently stale, meaning that one of the
27818
+ * dependencies has notified of a potential change.
27819
+ *
27820
+ * It's possible that no dependency has _actually_ changed, in which case the `stale`
27821
+ * state can be resolved without recomputing the value.
27822
+ */
27823
+ this.stale = true;
27824
+ this.id = nextReactiveId();
27825
+ this.ref = new WeakRef(this);
27826
+ this.producers = new Map();
27827
+ this.consumers = new Map();
27828
+ this.trackingVersion = 0;
27829
+ this.valueVersion = 0;
27830
+ }
27831
+ checkForChangedValue() {
27832
+ if (!this.stale) {
27833
+ // The current value and its version are already up to date.
27834
+ return;
27835
+ }
27836
+ // The current value is stale. Check whether we need to produce a new one.
27837
+ if (this.value !== UNSET && this.value !== COMPUTING && !consumerPollValueStatus(this)) {
27838
+ // Even though we were previously notified of a potential dependency update, all of
27839
+ // our dependencies report that they have not actually changed in value, so we can
27840
+ // resolve the stale state without needing to recompute the current value.
27841
+ this.stale = false;
27842
+ return;
27843
+ }
27844
+ // The current value is stale, and needs to be recomputed. It still may not change -
27845
+ // that depends on whether the newly computed value is equal to the old.
27846
+ this.recomputeValue();
27847
+ }
27848
+ recomputeValue() {
27849
+ if (this.value === COMPUTING) {
27850
+ // Our computation somehow led to a cyclic read of itself.
27851
+ throw new Error('Detected cycle in computations.');
27852
+ }
27853
+ const oldValue = this.value;
27854
+ this.value = COMPUTING;
27855
+ // As we're re-running the computation, update our dependent tracking version number.
27856
+ this.trackingVersion++;
27857
+ const prevConsumer = setActiveConsumer(this);
27858
+ let newValue;
27859
+ try {
27860
+ newValue = this.computation();
27861
+ }
27862
+ catch (err) {
27863
+ newValue = ERRORED;
27864
+ this.error = err;
27865
+ }
27866
+ finally {
27867
+ setActiveConsumer(prevConsumer);
27868
+ }
27869
+ this.stale = false;
27870
+ if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED &&
27871
+ this.equal(oldValue, newValue)) {
27872
+ // No change to `valueVersion` - old and new values are
27873
+ // semantically equivalent.
27874
+ this.value = oldValue;
27875
+ return;
27876
+ }
27877
+ this.value = newValue;
27878
+ this.valueVersion++;
27879
+ }
27880
+ notify() {
27881
+ if (this.stale) {
27882
+ // We've already notified consumers that this value has potentially changed.
27883
+ return;
27884
+ }
27885
+ // Record that the currently cached value may be stale.
27886
+ this.stale = true;
27887
+ // Notify any consumers about the potential change.
27888
+ producerNotifyConsumers(this);
27889
+ }
27890
+ signal() {
27891
+ // Check if the value needs updating before returning it.
27892
+ this.checkForChangedValue();
27893
+ // Record that someone looked at this signal.
27894
+ producerAccessed(this);
27895
+ if (this.value === ERRORED) {
27896
+ throw this.error;
27897
+ }
27898
+ return this.value;
27899
+ }
27900
+ }
27901
+
27902
+ /**
27903
+ * Watches a reactive expression and allows it to be scheduled to re-run
27904
+ * when any dependencies notify of a change.
27905
+ *
27906
+ * `Watch` doesn't run reactive expressions itself, but relies on a consumer-
27907
+ * provided scheduling operation to coordinate calling `Watch.run()`.
27908
+ */
27909
+ class Watch {
27910
+ constructor(watch, schedule) {
27911
+ this.watch = watch;
27912
+ this.schedule = schedule;
27913
+ this.id = nextReactiveId();
27914
+ this.ref = new WeakRef(this);
27915
+ this.producers = new Map();
27916
+ this.trackingVersion = 0;
27917
+ this.dirty = false;
27918
+ }
27919
+ notify() {
27920
+ if (!this.dirty) {
27921
+ this.schedule(this);
27922
+ }
27923
+ this.dirty = true;
27924
+ }
27925
+ /**
27926
+ * Execute the reactive expression in the context of this `Watch` consumer.
27927
+ *
27928
+ * Should be called by the user scheduling algorithm when the provided
27929
+ * `schedule` hook is called by `Watch`.
27930
+ */
27931
+ run() {
27932
+ this.dirty = false;
27933
+ if (this.trackingVersion !== 0 && !consumerPollValueStatus(this)) {
27934
+ return;
27935
+ }
27936
+ const prevConsumer = setActiveConsumer(this);
27937
+ this.trackingVersion++;
27938
+ try {
27939
+ this.watch();
27940
+ }
27941
+ finally {
27942
+ setActiveConsumer(prevConsumer);
27943
+ }
27944
+ }
27945
+ }
27946
+
27947
+ /**
27948
+ * Create a global `Effect` for the given reactive function.
27949
+ *
27950
+ * @developerPreview
27951
+ */
27952
+ function effect(effectFn) {
27953
+ const watch = new Watch(effectFn, queueWatch);
27954
+ globalWatches.add(watch);
27955
+ // Effects start dirty.
27956
+ watch.notify();
27957
+ return {
27958
+ consumer: watch,
27959
+ schedule: watch.notify.bind(watch),
27960
+ destroy: () => {
27961
+ queuedWatches.delete(watch);
27962
+ globalWatches.delete(watch);
27963
+ },
27964
+ };
27965
+ }
27966
+ /**
27967
+ * Get a `Promise` that resolves when any scheduled effects have resolved.
27968
+ */
27969
+ function effectsDone() {
27970
+ return watchQueuePromise?.promise ?? Promise.resolve();
27971
+ }
27972
+ /**
27973
+ * Shut down all active effects.
27974
+ */
27975
+ function resetEffects() {
27976
+ queuedWatches.clear();
27977
+ globalWatches.clear();
27978
+ }
27979
+ const globalWatches = new Set();
27980
+ const queuedWatches = new Set();
27981
+ let watchQueuePromise = null;
27982
+ function queueWatch(watch) {
27983
+ if (queuedWatches.has(watch) || !globalWatches.has(watch)) {
27984
+ return;
27985
+ }
27986
+ queuedWatches.add(watch);
27987
+ if (watchQueuePromise === null) {
27988
+ Promise.resolve().then(runWatchQueue);
27989
+ let resolveFn;
27990
+ const promise = new Promise((resolve) => {
27991
+ resolveFn = resolve;
27992
+ });
27993
+ watchQueuePromise = {
27994
+ promise,
27995
+ resolveFn,
27996
+ };
27997
+ }
27998
+ }
27999
+ function runWatchQueue() {
28000
+ for (const watch of queuedWatches) {
28001
+ queuedWatches.delete(watch);
28002
+ watch.run();
28003
+ }
28004
+ watchQueuePromise.resolveFn();
28005
+ watchQueuePromise = null;
28006
+ }
28007
+
28008
+ /**
28009
+ * Backing type for a `SettableSignal`, a mutable reactive value.
28010
+ */
28011
+ class SettableSignalImpl {
28012
+ constructor(value, equal) {
28013
+ this.value = value;
28014
+ this.equal = equal;
28015
+ this.id = nextReactiveId();
28016
+ this.ref = new WeakRef(this);
28017
+ this.consumers = new Map();
28018
+ this.valueVersion = 0;
28019
+ }
28020
+ checkForChangedValue() {
28021
+ // Settable signals can only change when set, so there's nothing to check here.
28022
+ }
28023
+ /**
28024
+ * Directly update the value of the signal to a new value, which may or may not be
28025
+ * equal to the previous.
28026
+ *
28027
+ * In the event that `newValue` is semantically equal to the current value, `set` is
28028
+ * a no-op.
28029
+ */
28030
+ set(newValue) {
28031
+ if (!this.equal(this.value, newValue)) {
28032
+ this.value = newValue;
28033
+ this.valueVersion++;
28034
+ producerNotifyConsumers(this);
28035
+ }
28036
+ }
28037
+ /**
28038
+ * Derive a new value for the signal from its current value using the `updater` function.
28039
+ *
28040
+ * This is equivalent to calling `set` on the result of running `updater` on the current
28041
+ * value.
28042
+ */
28043
+ update(updater) {
28044
+ this.set(updater(this.value));
28045
+ }
28046
+ /**
28047
+ * Calls `mutator` on the current value and assumes that it has been mutated.
28048
+ */
28049
+ mutate(mutator) {
28050
+ // Mutate bypasses equality checks as it's by definition changing the value.
28051
+ mutator(this.value);
28052
+ this.valueVersion++;
28053
+ producerNotifyConsumers(this);
28054
+ }
28055
+ signal() {
28056
+ producerAccessed(this);
28057
+ return this.value;
28058
+ }
28059
+ }
28060
+ /**
28061
+ * Create a `Signal` that can be set or updated directly.
28062
+ *
28063
+ * @developerPreview
28064
+ */
28065
+ function signal(initialValue, equal = defaultEquals) {
28066
+ const signalNode = new SettableSignalImpl(initialValue, equal);
28067
+ // Casting here is required for g3.
28068
+ const signalFn = createSignalFromFunction(signalNode.signal.bind(signalNode), {
28069
+ set: signalNode.set.bind(signalNode),
28070
+ update: signalNode.update.bind(signalNode),
28071
+ mutate: signalNode.mutate.bind(signalNode),
28072
+ });
28073
+ return signalFn;
28074
+ }
28075
+
28076
+ /**
28077
+ * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function
28078
+ * can, optionally, return a value.
28079
+ *
28080
+ * @developerPreview
28081
+ */
28082
+ function untracked(nonReactiveReadsFn) {
28083
+ const prevConsumer = setActiveConsumer(null);
28084
+ // We are not trying to catch any particular errors here, just making sure that the consumers
28085
+ // stack is restored in case of errors.
28086
+ try {
28087
+ return nonReactiveReadsFn();
28088
+ }
28089
+ finally {
28090
+ setActiveConsumer(prevConsumer);
28091
+ }
28092
+ }
28093
+
28094
+ // This file exists to allow the set of reactivity exports to be modified in g3, as these APIs are
28095
+
27432
28096
  /**
27433
28097
  * Creates a `ComponentRef` instance based on provided component type and a set of options.
27434
28098
  *
@@ -27596,5 +28260,5 @@ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
27596
28260
  * Generated bundle index. Do not edit.
27597
28261
  */
27598
28262
 
27599
- export { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, isDevMode, isStandalone, makeEnvironmentProviders, platformCore, reflectComponentType, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, ViewRef$1 as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalCreateApplication as ɵinternalCreateApplication, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, isListLikeIterable as ɵisListLikeIterable, isNgModule as ɵisNgModule, isObservable as ɵisObservable, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setClassMetadata as ɵsetClassMetadata, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵStandaloneFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵvalidateIframeAttribute, ɵɵviewQuery };
28263
+ export { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, DestroyRef, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, computed, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, effect, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, isDevMode, isSignal, isStandalone, makeEnvironmentProviders, platformCore, reflectComponentType, resolveForwardRef, setTestabilityGetter, signal, untracked, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, TransferState as ɵTransferState, ViewRef$1 as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, escapeTransferStateContent as ɵescapeTransferStateContent, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalCreateApplication as ɵinternalCreateApplication, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, isListLikeIterable as ɵisListLikeIterable, isNgModule as ɵisNgModule, isObservable as ɵisObservable, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, makeStateKey as ɵmakeStateKey, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setClassMetadata as ɵsetClassMetadata, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, unescapeTransferStateContent as ɵunescapeTransferStateContent, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵStandaloneFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵvalidateIframeAttribute, ɵɵviewQuery };
27600
28264
  //# sourceMappingURL=core.mjs.map