@angular/platform-browser 18.0.0-next.4 → 18.0.0-next.6

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 (44) hide show
  1. package/animations/async/index.d.ts +1 -1
  2. package/animations/index.d.ts +1 -1
  3. package/esm2022/animations/async/src/async_animation_renderer.mjs +7 -7
  4. package/esm2022/animations/async/src/providers.mjs +2 -2
  5. package/esm2022/animations/src/animations.mjs +2 -2
  6. package/esm2022/animations/src/module.mjs +13 -12
  7. package/esm2022/animations/src/providers.mjs +14 -11
  8. package/esm2022/src/browser/browser_adapter.mjs +2 -2
  9. package/esm2022/src/browser/generic_browser_adapter.mjs +1 -1
  10. package/esm2022/src/browser/meta.mjs +6 -6
  11. package/esm2022/src/browser/testability.mjs +2 -2
  12. package/esm2022/src/browser/title.mjs +3 -3
  13. package/esm2022/src/browser/tools/common_tools.mjs +2 -2
  14. package/esm2022/src/browser/tools/tools.mjs +1 -1
  15. package/esm2022/src/browser/xhr.mjs +3 -3
  16. package/esm2022/src/browser.mjs +23 -25
  17. package/esm2022/src/dom/debug/by.mjs +7 -7
  18. package/esm2022/src/dom/dom_renderer.mjs +15 -15
  19. package/esm2022/src/dom/events/dom_events.mjs +3 -3
  20. package/esm2022/src/dom/events/event_manager.mjs +5 -5
  21. package/esm2022/src/dom/events/hammer_gestures.mjs +18 -20
  22. package/esm2022/src/dom/events/key_events.mjs +9 -9
  23. package/esm2022/src/dom/shared_styles_host.mjs +5 -5
  24. package/esm2022/src/dom/util.mjs +2 -2
  25. package/esm2022/src/errors.mjs +1 -1
  26. package/esm2022/src/hydration.mjs +24 -10
  27. package/esm2022/src/platform-browser.mjs +5 -26
  28. package/esm2022/src/private_export.mjs +2 -2
  29. package/esm2022/src/security/dom_sanitization_service.mjs +8 -8
  30. package/esm2022/src/version.mjs +1 -1
  31. package/esm2022/testing/src/browser.mjs +10 -8
  32. package/esm2022/testing/src/browser_util.mjs +7 -2
  33. package/esm2022/testing/src/matchers.mjs +19 -17
  34. package/fesm2022/animations/async.mjs +6 -6
  35. package/fesm2022/animations/async.mjs.map +1 -1
  36. package/fesm2022/animations.mjs +23 -19
  37. package/fesm2022/animations.mjs.map +1 -1
  38. package/fesm2022/platform-browser.mjs +118 -129
  39. package/fesm2022/platform-browser.mjs.map +1 -1
  40. package/fesm2022/testing.mjs +9 -7
  41. package/fesm2022/testing.mjs.map +1 -1
  42. package/index.d.ts +8 -61
  43. package/package.json +4 -4
  44. package/testing/index.d.ts +1 -1
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.4
2
+ * @license Angular v18.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import * as i0 from '@angular/core';
8
- import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ENVIRONMENT_INITIALIZER, inject, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version, makeStateKey as makeStateKey$1, TransferState as TransferState$1 } from '@angular/core';
9
7
  import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
10
8
  export { ɵgetDOM } from '@angular/common';
9
+ import * as i0 from '@angular/core';
10
+ import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ɵwithEventReplay, ENVIRONMENT_INITIALIZER, inject, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version } from '@angular/core';
11
11
  import { ɵwithHttpTransferCache } from '@angular/common/http';
12
12
 
13
13
  /**
@@ -157,10 +157,10 @@ class BrowserXhr {
157
157
  build() {
158
158
  return new XMLHttpRequest();
159
159
  }
160
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
161
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserXhr }); }
160
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
161
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserXhr }); }
162
162
  }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserXhr, decorators: [{
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserXhr, decorators: [{
164
164
  type: Injectable
165
165
  }] });
166
166
 
@@ -222,10 +222,10 @@ class EventManager {
222
222
  this._eventNameToPlugin.set(eventName, plugin);
223
223
  return plugin;
224
224
  }
225
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
226
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: EventManager }); }
225
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
226
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: EventManager }); }
227
227
  }
228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: EventManager, decorators: [{
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: EventManager, decorators: [{
229
229
  type: Injectable
230
230
  }], ctorParameters: () => [{ type: undefined, decorators: [{
231
231
  type: Inject,
@@ -376,10 +376,10 @@ class SharedStylesHost {
376
376
  // Re-add the head element back since this is the default host.
377
377
  hostNodes.add(this.doc.head);
378
378
  }
379
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
380
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: SharedStylesHost }); }
379
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
380
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: SharedStylesHost }); }
381
381
  }
382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: SharedStylesHost, decorators: [{
382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: SharedStylesHost, decorators: [{
383
383
  type: Injectable
384
384
  }], ctorParameters: () => [{ type: Document, decorators: [{
385
385
  type: Inject,
@@ -431,7 +431,7 @@ function shimHostAttribute(componentShortId) {
431
431
  return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
432
432
  }
433
433
  function shimStylesContent(compId, styles) {
434
- return styles.map(s => s.replace(COMPONENT_REGEX, compId));
434
+ return styles.map((s) => s.replace(COMPONENT_REGEX, compId));
435
435
  }
436
436
  class DomRendererFactory2 {
437
437
  constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, platformId, ngZone, nonce = null) {
@@ -445,8 +445,7 @@ class DomRendererFactory2 {
445
445
  this.nonce = nonce;
446
446
  this.rendererByCompId = new Map();
447
447
  this.platformIsServer = isPlatformServer(platformId);
448
- this.defaultRenderer =
449
- new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer);
448
+ this.defaultRenderer = new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer);
450
449
  }
451
450
  createRenderer(element, type) {
452
451
  if (!element || !type) {
@@ -494,10 +493,10 @@ class DomRendererFactory2 {
494
493
  ngOnDestroy() {
495
494
  this.rendererByCompId.clear();
496
495
  }
497
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }
498
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomRendererFactory2 }); }
496
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }
497
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomRendererFactory2 }); }
499
498
  }
500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomRendererFactory2, decorators: [{
499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomRendererFactory2, decorators: [{
501
500
  type: Injectable
502
501
  }], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
503
502
  type: Inject,
@@ -567,8 +566,7 @@ class DefaultDomRenderer2 {
567
566
  }
568
567
  }
569
568
  selectRootElement(selectorOrNode, preserveContent) {
570
- let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) :
571
- selectorOrNode;
569
+ let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) : selectorOrNode;
572
570
  if (!el) {
573
571
  throw new ɵRuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
574
572
  `The selector "${selectorOrNode}" did not match any elements`);
@@ -640,7 +638,8 @@ class DefaultDomRenderer2 {
640
638
  if (el == null) {
641
639
  return;
642
640
  }
643
- (typeof ngDevMode === 'undefined' || ngDevMode) && this.throwOnSyntheticProps &&
641
+ (typeof ngDevMode === 'undefined' || ngDevMode) &&
642
+ this.throwOnSyntheticProps &&
644
643
  checkNoSyntheticProp(name, 'property');
645
644
  el[name] = value;
646
645
  }
@@ -648,7 +647,8 @@ class DefaultDomRenderer2 {
648
647
  node.nodeValue = value;
649
648
  }
650
649
  listen(target, event, callback) {
651
- (typeof ngDevMode === 'undefined' || ngDevMode) && this.throwOnSyntheticProps &&
650
+ (typeof ngDevMode === 'undefined' || ngDevMode) &&
651
+ this.throwOnSyntheticProps &&
652
652
  checkNoSyntheticProp(event, 'listener');
653
653
  if (typeof target === 'string') {
654
654
  target = ɵgetDOM().getGlobalEventTarget(this.doc, target);
@@ -674,9 +674,9 @@ class DefaultDomRenderer2 {
674
674
  }
675
675
  // Run the event handler inside the ngZone because event handlers are not patched
676
676
  // by Zone on the server. This is required only for tests.
677
- const allowDefaultBehavior = this.platformIsServer ?
678
- this.ngZone.runGuarded(() => eventHandler(event)) :
679
- eventHandler(event);
677
+ const allowDefaultBehavior = this.platformIsServer
678
+ ? this.ngZone.runGuarded(() => eventHandler(event))
679
+ : eventHandler(event);
680
680
  if (allowDefaultBehavior === false) {
681
681
  event.preventDefault();
682
682
  }
@@ -782,10 +782,10 @@ class DomEventsPlugin extends EventManagerPlugin {
782
782
  removeEventListener(target, eventName, callback) {
783
783
  return target.removeEventListener(eventName, callback);
784
784
  }
785
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
786
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomEventsPlugin }); }
785
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
786
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomEventsPlugin }); }
787
787
  }
788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomEventsPlugin, decorators: [{
788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomEventsPlugin, decorators: [{
789
789
  type: Injectable
790
790
  }], ctorParameters: () => [{ type: undefined, decorators: [{
791
791
  type: Inject,
@@ -811,7 +811,7 @@ const _keyMap = {
811
811
  'Down': 'ArrowDown',
812
812
  'Menu': 'ContextMenu',
813
813
  'Scroll': 'ScrollLock',
814
- 'Win': 'OS'
814
+ 'Win': 'OS',
815
815
  };
816
816
  /**
817
817
  * Retrieves modifiers from key-event objects.
@@ -820,7 +820,7 @@ const MODIFIER_KEY_GETTERS = {
820
820
  'alt': (event) => event.altKey,
821
821
  'control': (event) => event.ctrlKey,
822
822
  'meta': (event) => event.metaKey,
823
- 'shift': (event) => event.shiftKey
823
+ 'shift': (event) => event.shiftKey,
824
824
  };
825
825
  /**
826
826
  * A browser plug-in that provides support for handling of key events in Angular.
@@ -868,7 +868,7 @@ class KeyEventsPlugin extends EventManagerPlugin {
868
868
  static parseEventName(eventName) {
869
869
  const parts = eventName.toLowerCase().split('.');
870
870
  const domEventName = parts.shift();
871
- if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {
871
+ if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {
872
872
  return null;
873
873
  }
874
874
  const key = KeyEventsPlugin._normalizeKey(parts.pop());
@@ -878,7 +878,7 @@ class KeyEventsPlugin extends EventManagerPlugin {
878
878
  parts.splice(codeIX, 1);
879
879
  fullKey = 'code.';
880
880
  }
881
- MODIFIER_KEYS.forEach(modifierName => {
881
+ MODIFIER_KEYS.forEach((modifierName) => {
882
882
  const index = parts.indexOf(modifierName);
883
883
  if (index > -1) {
884
884
  parts.splice(index, 1);
@@ -925,7 +925,7 @@ class KeyEventsPlugin extends EventManagerPlugin {
925
925
  else if (keycode === '.') {
926
926
  keycode = 'dot'; // because '.' is used as a separator in event names
927
927
  }
928
- MODIFIER_KEYS.forEach(modifierName => {
928
+ MODIFIER_KEYS.forEach((modifierName) => {
929
929
  if (modifierName !== keycode) {
930
930
  const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];
931
931
  if (modifierGetter(event)) {
@@ -954,10 +954,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
954
954
  static _normalizeKey(keyName) {
955
955
  return keyName === 'esc' ? 'escape' : keyName;
956
956
  }
957
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
958
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: KeyEventsPlugin }); }
957
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
958
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: KeyEventsPlugin }); }
959
959
  }
960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: KeyEventsPlugin, decorators: [{
960
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: KeyEventsPlugin, decorators: [{
961
961
  type: Injectable
962
962
  }], ctorParameters: () => [{ type: undefined, decorators: [{
963
963
  type: Inject,
@@ -1043,11 +1043,8 @@ function createApplication(options) {
1043
1043
  }
1044
1044
  function createProvidersConfig(options) {
1045
1045
  return {
1046
- appProviders: [
1047
- ...BROWSER_MODULE_PROVIDERS,
1048
- ...(options?.providers ?? []),
1049
- ],
1050
- platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS
1046
+ appProviders: [...BROWSER_MODULE_PROVIDERS, ...(options?.providers ?? [])],
1047
+ platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS,
1051
1048
  };
1052
1049
  }
1053
1050
  /**
@@ -1096,7 +1093,7 @@ const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_
1096
1093
  * `BrowserModule` presence itself, since the standalone-based bootstrap just imports
1097
1094
  * `BrowserModule` providers without referencing the module itself.
1098
1095
  */
1099
- const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'BrowserModule Providers Marker' : '');
1096
+ const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '');
1100
1097
  const TESTABILITY_PROVIDERS = [
1101
1098
  {
1102
1099
  provide: ɵTESTABILITY_GETTER,
@@ -1106,29 +1103,32 @@ const TESTABILITY_PROVIDERS = [
1106
1103
  {
1107
1104
  provide: ɵTESTABILITY,
1108
1105
  useClass: Testability,
1109
- deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]
1106
+ deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER],
1110
1107
  },
1111
1108
  {
1112
1109
  provide: Testability, // Also provide as `Testability` for backwards-compatibility.
1113
1110
  useClass: Testability,
1114
- deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]
1115
- }
1111
+ deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER],
1112
+ },
1116
1113
  ];
1117
1114
  const BROWSER_MODULE_PROVIDERS = [
1118
1115
  { provide: ɵINJECTOR_SCOPE, useValue: 'root' },
1119
- { provide: ErrorHandler, useFactory: errorHandler, deps: [] }, {
1116
+ { provide: ErrorHandler, useFactory: errorHandler, deps: [] },
1117
+ {
1120
1118
  provide: EVENT_MANAGER_PLUGINS,
1121
1119
  useClass: DomEventsPlugin,
1122
1120
  multi: true,
1123
- deps: [DOCUMENT, NgZone, PLATFORM_ID]
1121
+ deps: [DOCUMENT, NgZone, PLATFORM_ID],
1124
1122
  },
1125
1123
  { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
1126
- DomRendererFactory2, SharedStylesHost, EventManager,
1124
+ DomRendererFactory2,
1125
+ SharedStylesHost,
1126
+ EventManager,
1127
1127
  { provide: RendererFactory2, useExisting: DomRendererFactory2 },
1128
1128
  { provide: XhrFactory, useClass: BrowserXhr, deps: [] },
1129
- (typeof ngDevMode === 'undefined' || ngDevMode) ?
1130
- { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } :
1131
- []
1129
+ typeof ngDevMode === 'undefined' || ngDevMode
1130
+ ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true }
1131
+ : [],
1132
1132
  ];
1133
1133
  /**
1134
1134
  * Exports required infrastructure for all Angular apps.
@@ -1159,16 +1159,14 @@ class BrowserModule {
1159
1159
  static withServerTransition(params) {
1160
1160
  return {
1161
1161
  ngModule: BrowserModule,
1162
- providers: [
1163
- { provide: APP_ID, useValue: params.appId },
1164
- ],
1162
+ providers: [{ provide: APP_ID, useValue: params.appId }],
1165
1163
  };
1166
1164
  }
1167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
1168
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
1169
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
1165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
1166
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
1167
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
1170
1168
  }
1171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserModule, decorators: [{
1169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserModule, decorators: [{
1172
1170
  type: NgModule,
1173
1171
  args: [{
1174
1172
  providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
@@ -1308,7 +1306,7 @@ class Meta {
1308
1306
  // It's allowed to have multiple elements with the same name so it's not enough to
1309
1307
  // just check that element with the same name already present on the page. We also need to
1310
1308
  // check if element has tag attributes
1311
- const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];
1309
+ const elem = this.getTags(selector).filter((elem) => this._containsAttributes(meta, elem))[0];
1312
1310
  if (elem !== undefined)
1313
1311
  return elem;
1314
1312
  }
@@ -1332,10 +1330,10 @@ class Meta {
1332
1330
  _getMetaKeyMap(prop) {
1333
1331
  return META_KEYS_MAP[prop] || prop;
1334
1332
  }
1335
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1336
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: Meta, providedIn: 'root' }); }
1333
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1334
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: Meta, providedIn: 'root' }); }
1337
1335
  }
1338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: Meta, decorators: [{
1336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: Meta, decorators: [{
1339
1337
  type: Injectable,
1340
1338
  args: [{ providedIn: 'root' }]
1341
1339
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1346,7 +1344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
1346
1344
  * Mapping for MetaDefinition properties with their correct meta attribute names
1347
1345
  */
1348
1346
  const META_KEYS_MAP = {
1349
- httpEquiv: 'http-equiv'
1347
+ httpEquiv: 'http-equiv',
1350
1348
  };
1351
1349
 
1352
1350
  /**
@@ -1376,10 +1374,10 @@ class Title {
1376
1374
  setTitle(newTitle) {
1377
1375
  this._doc.title = newTitle || '';
1378
1376
  }
1379
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1380
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: Title, providedIn: 'root' }); }
1377
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1378
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: Title, providedIn: 'root' }); }
1381
1379
  }
1382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: Title, decorators: [{
1380
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: Title, decorators: [{
1383
1381
  type: Injectable,
1384
1382
  args: [{ providedIn: 'root' }]
1385
1383
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1400,7 +1398,7 @@ function exportNgVar(name, value) {
1400
1398
  // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
1401
1399
  // - we can't declare a closure extern as the namespace `ng` is already used within Google
1402
1400
  // for typings for angularJS (via `goog.provide('ng....')`).
1403
- const ng = ɵglobal['ng'] = ɵglobal['ng'] || {};
1401
+ const ng = (ɵglobal['ng'] = ɵglobal['ng'] || {});
1404
1402
  ng[name] = value;
1405
1403
  }
1406
1404
  }
@@ -1445,7 +1443,7 @@ class AngularProfiler {
1445
1443
  }
1446
1444
  const start = performance.now();
1447
1445
  let numTicks = 0;
1448
- while (numTicks < 5 || (performance.now() - start) < 500) {
1446
+ while (numTicks < 5 || performance.now() - start < 500) {
1449
1447
  this.appRef.tick();
1450
1448
  numTicks++;
1451
1449
  }
@@ -1514,9 +1512,9 @@ class By {
1514
1512
  */
1515
1513
  static css(selector) {
1516
1514
  return (debugElement) => {
1517
- return debugElement.nativeElement != null ?
1518
- elementMatches(debugElement.nativeElement, selector) :
1519
- false;
1515
+ return debugElement.nativeElement != null
1516
+ ? elementMatches(debugElement.nativeElement, selector)
1517
+ : false;
1520
1518
  };
1521
1519
  }
1522
1520
  /**
@@ -1533,9 +1531,9 @@ class By {
1533
1531
  }
1534
1532
  function elementMatches(n, selector) {
1535
1533
  if (ɵgetDOM().isElementNode(n)) {
1536
- return n.matches && n.matches(selector) ||
1537
- n.msMatchesSelector && n.msMatchesSelector(selector) ||
1538
- n.webkitMatchesSelector && n.webkitMatchesSelector(selector);
1534
+ return ((n.matches && n.matches(selector)) ||
1535
+ (n.msMatchesSelector && n.msMatchesSelector(selector)) ||
1536
+ (n.webkitMatchesSelector && n.webkitMatchesSelector(selector)));
1539
1537
  }
1540
1538
  return false;
1541
1539
  }
@@ -1579,7 +1577,7 @@ const EVENT_NAMES = {
1579
1577
  'swipedown': true,
1580
1578
  // tap
1581
1579
  'tap': true,
1582
- 'doubletap': true
1580
+ 'doubletap': true,
1583
1581
  };
1584
1582
  /**
1585
1583
  * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.
@@ -1641,10 +1639,10 @@ class HammerGestureConfig {
1641
1639
  }
1642
1640
  return mc;
1643
1641
  }
1644
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1645
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerGestureConfig }); }
1642
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1643
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerGestureConfig }); }
1646
1644
  }
1647
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerGestureConfig, decorators: [{
1645
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerGestureConfig, decorators: [{
1648
1646
  type: Injectable
1649
1647
  }] });
1650
1648
  /**
@@ -1687,8 +1685,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1687
1685
  let deregister = () => {
1688
1686
  cancelRegistration = true;
1689
1687
  };
1690
- zone.runOutsideAngular(() => this._loaderPromise
1691
- .then(() => {
1688
+ zone.runOutsideAngular(() => this._loaderPromise.then(() => {
1692
1689
  // If Hammer isn't actually loaded when the custom loader resolves, give up.
1693
1690
  if (!window.Hammer) {
1694
1691
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
@@ -1703,8 +1700,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1703
1700
  // removal.
1704
1701
  deregister = this.addEventListener(element, eventName, handler);
1705
1702
  }
1706
- })
1707
- .catch(() => {
1703
+ }).catch(() => {
1708
1704
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
1709
1705
  this.console.warn(`The "${eventName}" event cannot be bound because the custom ` +
1710
1706
  `Hammer.JS loader failed.`);
@@ -1739,10 +1735,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1739
1735
  isCustomEvent(eventName) {
1740
1736
  return this._config.events.indexOf(eventName) > -1;
1741
1737
  }
1742
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1743
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin }); }
1738
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1739
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerGesturesPlugin }); }
1744
1740
  }
1745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1746
1742
  type: Injectable
1747
1743
  }], ctorParameters: () => [{ type: undefined, decorators: [{
1748
1744
  type: Inject,
@@ -1768,19 +1764,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
1768
1764
  * @publicApi
1769
1765
  */
1770
1766
  class HammerModule {
1771
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1772
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerModule }); }
1773
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerModule, providers: [
1767
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1768
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerModule }); }
1769
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerModule, providers: [
1774
1770
  {
1775
1771
  provide: EVENT_MANAGER_PLUGINS,
1776
1772
  useClass: HammerGesturesPlugin,
1777
1773
  multi: true,
1778
- deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]
1774
+ deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]],
1779
1775
  },
1780
1776
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1781
1777
  ] }); }
1782
1778
  }
1783
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: HammerModule, decorators: [{
1779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: HammerModule, decorators: [{
1784
1780
  type: NgModule,
1785
1781
  args: [{
1786
1782
  providers: [
@@ -1788,10 +1784,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
1788
1784
  provide: EVENT_MANAGER_PLUGINS,
1789
1785
  useClass: HammerGesturesPlugin,
1790
1786
  multi: true,
1791
- deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]
1787
+ deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]],
1792
1788
  },
1793
1789
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1794
- ]
1790
+ ],
1795
1791
  }]
1796
1792
  }] });
1797
1793
 
@@ -1827,10 +1823,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
1827
1823
  * @publicApi
1828
1824
  */
1829
1825
  class DomSanitizer {
1830
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1831
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) }); }
1826
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1827
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) }); }
1832
1828
  }
1833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomSanitizer, decorators: [{
1829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomSanitizer, decorators: [{
1834
1830
  type: Injectable,
1835
1831
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
1836
1832
  }] });
@@ -1892,10 +1888,10 @@ class DomSanitizerImpl extends DomSanitizer {
1892
1888
  bypassSecurityTrustResourceUrl(value) {
1893
1889
  return ɵbypassSanitizationTrustResourceUrl(value);
1894
1890
  }
1895
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1896
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' }); }
1891
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1892
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' }); }
1897
1893
  }
1898
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1894
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1899
1895
  type: Injectable,
1900
1896
  args: [{ providedIn: 'root' }]
1901
1897
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1914,6 +1910,7 @@ var HydrationFeatureKind;
1914
1910
  HydrationFeatureKind[HydrationFeatureKind["NoHttpTransferCache"] = 0] = "NoHttpTransferCache";
1915
1911
  HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
1916
1912
  HydrationFeatureKind[HydrationFeatureKind["I18nSupport"] = 2] = "I18nSupport";
1913
+ HydrationFeatureKind[HydrationFeatureKind["EventReplay"] = 3] = "EventReplay";
1917
1914
  })(HydrationFeatureKind || (HydrationFeatureKind = {}));
1918
1915
  /**
1919
1916
  * Helper function to create an object that represents a Hydration feature.
@@ -1953,13 +1950,23 @@ function withHttpTransferCacheOptions(options) {
1953
1950
  function withI18nSupport() {
1954
1951
  return hydrationFeature(HydrationFeatureKind.I18nSupport, ɵwithI18nSupport());
1955
1952
  }
1953
+ /**
1954
+ * Enables support for event replay
1955
+ *
1956
+ * @developerPreview
1957
+ * @publicApi
1958
+ */
1959
+ function withEventReplay() {
1960
+ return hydrationFeature(HydrationFeatureKind.EventReplay, ɵwithEventReplay());
1961
+ }
1956
1962
  /**
1957
1963
  * Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
1958
1964
  * that verifies whether compatible ZoneJS was used in an application
1959
1965
  * and logs a warning in a console if it's not the case.
1960
1966
  */
1961
1967
  function provideZoneJsCompatibilityDetector() {
1962
- return [{
1968
+ return [
1969
+ {
1963
1970
  provide: ENVIRONMENT_INITIALIZER,
1964
1971
  useValue: () => {
1965
1972
  const ngZone = inject(NgZone);
@@ -1975,7 +1982,8 @@ function provideZoneJsCompatibilityDetector() {
1975
1982
  }
1976
1983
  },
1977
1984
  multi: true,
1978
- }];
1985
+ },
1986
+ ];
1979
1987
  }
1980
1988
  /**
1981
1989
  * Sets up providers necessary to enable hydration functionality for the application.
@@ -2031,17 +2039,19 @@ function provideClientHydration(...features) {
2031
2039
  providers.push(ɵproviders);
2032
2040
  }
2033
2041
  }
2034
- if (typeof ngDevMode !== 'undefined' && ngDevMode &&
2035
- featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {
2042
+ if (typeof ngDevMode !== 'undefined' &&
2043
+ ngDevMode &&
2044
+ featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) &&
2045
+ hasHttpTransferCacheOptions) {
2036
2046
  // TODO: Make this a runtime error
2037
2047
  throw new Error('Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');
2038
2048
  }
2039
2049
  return makeEnvironmentProviders([
2040
- (typeof ngDevMode !== 'undefined' && ngDevMode) ? provideZoneJsCompatibilityDetector() : [],
2050
+ typeof ngDevMode !== 'undefined' && ngDevMode ? provideZoneJsCompatibilityDetector() : [],
2041
2051
  ɵwithDomHydration(),
2042
- ((featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions) ?
2043
- [] :
2044
- ɵwithHttpTransferCache({})),
2052
+ featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions
2053
+ ? []
2054
+ : ɵwithHttpTransferCache({}),
2045
2055
  providers,
2046
2056
  ]);
2047
2057
  }
@@ -2054,28 +2064,7 @@ function provideClientHydration(...features) {
2054
2064
  /**
2055
2065
  * @publicApi
2056
2066
  */
2057
- const VERSION = new Version('18.0.0-next.4');
2058
-
2059
- // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
2060
- /**
2061
- * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
2062
- *
2063
- * Example:
2064
- *
2065
- * ```
2066
- * const COUNTER_KEY = makeStateKey<number>('counter');
2067
- * let value = 10;
2068
- *
2069
- * transferState.set(COUNTER_KEY, value);
2070
- * ```
2071
- *
2072
- * @publicApi
2073
- * @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead.
2074
- */
2075
- // The below is a workaround to add a deprecated message.
2076
- const makeStateKey = makeStateKey$1;
2077
- // The below type is needed for G3 due to JSC_CONFORMANCE_VIOLATION.
2078
- const TransferState = TransferState$1;
2067
+ const VERSION = new Version('18.0.0-next.6');
2079
2068
 
2080
2069
  /**
2081
2070
  * @module
@@ -2090,5 +2079,5 @@ const TransferState = TransferState$1;
2090
2079
  * Generated bundle index. Do not edit.
2091
2080
  */
2092
2081
 
2093
- export { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withHttpTransferCacheOptions, withI18nSupport, withNoHttpTransferCache, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };
2082
+ export { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withEventReplay, withHttpTransferCacheOptions, withI18nSupport, withNoHttpTransferCache, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };
2094
2083
  //# sourceMappingURL=platform-browser.mjs.map