@angular/platform-browser 20.0.0-next.1 → 20.0.0-next.2

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.
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.1
2
+ * @license Angular v20.0.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
7
+ import { ɵDomAdapter as _DomAdapter, ɵsetRootDomAdapter as _setRootDomAdapter, ɵparseCookieValue as _parseCookieValue, ɵgetDOM as _getDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID as _PLATFORM_BROWSER_ID, CommonModule, XhrFactory } from '@angular/common';
8
8
  export { ɵgetDOM } from '@angular/common';
9
9
  import * as i0 from '@angular/core';
10
- import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵTracingService, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, inject, ApplicationModule, NgModule, ApplicationRef, ɵConsole, Injector, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ɵwithEventReplay, ɵwithIncrementalHydration, ENVIRONMENT_INITIALIZER, ɵZONELESS_ENABLED, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version } from '@angular/core';
11
- import { ɵwithHttpTransferCache } from '@angular/common/http';
10
+ import { ɵglobal as _global, ɵRuntimeError as _RuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵTracingService as _TracingService, RendererStyleFlags2, createPlatformFactory, PLATFORM_INITIALIZER, ɵinternalCreateApplication as _internalCreateApplication, inject, ApplicationModule, ɵINJECTOR_SCOPE as _INJECTOR_SCOPE, ErrorHandler, RendererFactory2, ɵTESTABILITY_GETTER as _TESTABILITY_GETTER, NgZone, TestabilityRegistry, Testability, ɵTESTABILITY as _TESTABILITY, platformCore, ɵsetDocument as _setDocument, NgModule, ApplicationRef, Injector, ɵConsole as _Console, ɵXSS_SECURITY_URL as _XSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow as _allowSanitizationBypassAndThrow, ɵunwrapSafeValue as _unwrapSafeValue, ɵ_sanitizeUrl as __sanitizeUrl, ɵ_sanitizeHtml as __sanitizeHtml, ɵbypassSanitizationTrustHtml as _bypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle as _bypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript as _bypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl as _bypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl as _bypassSanitizationTrustResourceUrl, forwardRef, makeEnvironmentProviders, ɵwithDomHydration as _withDomHydration, ɵwithEventReplay as _withEventReplay, ɵwithI18nSupport as _withI18nSupport, ɵwithIncrementalHydration as _withIncrementalHydration, ENVIRONMENT_INITIALIZER, ɵZONELESS_ENABLED as _ZONELESS_ENABLED, ɵformatRuntimeError as _formatRuntimeError, Version } from '@angular/core';
11
+ import { ɵwithHttpTransferCache as _withHttpTransferCache } from '@angular/common/http';
12
12
 
13
13
  /**
14
14
  * Provides DOM operations in any browser environment.
@@ -16,7 +16,7 @@ import { ɵwithHttpTransferCache } from '@angular/common/http';
16
16
  * @security Tread carefully! Interacting with the DOM directly is dangerous and
17
17
  * can introduce XSS risks.
18
18
  */
19
- class GenericBrowserDomAdapter extends ɵDomAdapter {
19
+ class GenericBrowserDomAdapter extends _DomAdapter {
20
20
  supportsDOMEvents = true;
21
21
  }
22
22
 
@@ -28,7 +28,7 @@ class GenericBrowserDomAdapter extends ɵDomAdapter {
28
28
  */
29
29
  class BrowserDomAdapter extends GenericBrowserDomAdapter {
30
30
  static makeCurrent() {
31
- ɵsetRootDomAdapter(new BrowserDomAdapter());
31
+ _setRootDomAdapter(new BrowserDomAdapter());
32
32
  }
33
33
  onAndCancel(el, evt, listener, options) {
34
34
  el.addEventListener(evt, listener, options);
@@ -82,7 +82,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
82
82
  return window.navigator.userAgent;
83
83
  }
84
84
  getCookie(name) {
85
- return ɵparseCookieValue(document.cookie, name);
85
+ return _parseCookieValue(document.cookie, name);
86
86
  }
87
87
  }
88
88
  let baseElement = null;
@@ -98,18 +98,18 @@ function relativePath(url) {
98
98
 
99
99
  class BrowserGetTestability {
100
100
  addToWindow(registry) {
101
- ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {
101
+ _global['getAngularTestability'] = (elem, findInAncestors = true) => {
102
102
  const testability = registry.findTestabilityInTree(elem, findInAncestors);
103
103
  if (testability == null) {
104
- throw new ɵRuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
104
+ throw new _RuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
105
105
  'Could not find testability for element.');
106
106
  }
107
107
  return testability;
108
108
  };
109
- ɵglobal['getAllAngularTestabilities'] = () => registry.getAllTestabilities();
110
- ɵglobal['getAllAngularRootElements'] = () => registry.getAllRootElements();
109
+ _global['getAllAngularTestabilities'] = () => registry.getAllTestabilities();
110
+ _global['getAllAngularRootElements'] = () => registry.getAllRootElements();
111
111
  const whenAllStable = (callback) => {
112
- const testabilities = ɵglobal['getAllAngularTestabilities']();
112
+ const testabilities = _global['getAllAngularTestabilities']();
113
113
  let count = testabilities.length;
114
114
  const decrement = function () {
115
115
  count--;
@@ -121,10 +121,10 @@ class BrowserGetTestability {
121
121
  testability.whenStable(decrement);
122
122
  });
123
123
  };
124
- if (!ɵglobal['frameworkStabilizers']) {
125
- ɵglobal['frameworkStabilizers'] = [];
124
+ if (!_global['frameworkStabilizers']) {
125
+ _global['frameworkStabilizers'] = [];
126
126
  }
127
- ɵglobal['frameworkStabilizers'].push(whenAllStable);
127
+ _global['frameworkStabilizers'].push(whenAllStable);
128
128
  }
129
129
  findTestabilityInTree(registry, elem, findInAncestors) {
130
130
  if (elem == null) {
@@ -137,7 +137,7 @@ class BrowserGetTestability {
137
137
  else if (!findInAncestors) {
138
138
  return null;
139
139
  }
140
- if (ɵgetDOM().isShadowRoot(elem)) {
140
+ if (_getDOM().isShadowRoot(elem)) {
141
141
  return this.findTestabilityInTree(registry, elem.host, true);
142
142
  }
143
143
  return this.findTestabilityInTree(registry, elem.parentElement, true);
@@ -151,10 +151,10 @@ class BrowserXhr {
151
151
  build() {
152
152
  return new XMLHttpRequest();
153
153
  }
154
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
155
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserXhr });
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
155
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserXhr });
156
156
  }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserXhr, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserXhr, decorators: [{
158
158
  type: Injectable
159
159
  }] });
160
160
 
@@ -213,16 +213,16 @@ class EventManager {
213
213
  const plugins = this._plugins;
214
214
  plugin = plugins.find((plugin) => plugin.supports(eventName));
215
215
  if (!plugin) {
216
- throw new ɵRuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
216
+ throw new _RuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
217
217
  `No event manager plugin found for event ${eventName}`);
218
218
  }
219
219
  this._eventNameToPlugin.set(eventName, plugin);
220
220
  return plugin;
221
221
  }
222
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
223
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: EventManager });
222
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
223
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: EventManager });
224
224
  }
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: EventManager, decorators: [{
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: EventManager, decorators: [{
226
226
  type: Injectable
227
227
  }], ctorParameters: () => [{ type: undefined, decorators: [{
228
228
  type: Inject,
@@ -427,10 +427,10 @@ class SharedStylesHost {
427
427
  // Insert the element into the DOM with the host node as parent
428
428
  return host.appendChild(element);
429
429
  }
430
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
431
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: SharedStylesHost });
430
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
431
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SharedStylesHost });
432
432
  }
433
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: SharedStylesHost, decorators: [{
433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SharedStylesHost, decorators: [{
434
434
  type: Injectable
435
435
  }], ctorParameters: () => [{ type: Document, decorators: [{
436
436
  type: Inject,
@@ -604,10 +604,10 @@ class DomRendererFactory2 {
604
604
  componentReplaced(componentId) {
605
605
  this.rendererByCompId.delete(componentId);
606
606
  }
607
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", 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 }, { token: ɵTracingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
608
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomRendererFactory2 });
607
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", 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 }, { token: _TracingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
608
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomRendererFactory2 });
609
609
  }
610
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomRendererFactory2, decorators: [{
610
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
611
611
  type: Injectable
612
612
  }], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
613
613
  type: Inject,
@@ -626,7 +626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
626
626
  args: [CSP_NONCE]
627
627
  }] }, { type: i0.ɵTracingService, decorators: [{
628
628
  type: Inject,
629
- args: [ɵTracingService]
629
+ args: [_TracingService]
630
630
  }, {
631
631
  type: Optional
632
632
  }] }] });
@@ -688,7 +688,7 @@ class DefaultDomRenderer2 {
688
688
  selectRootElement(selectorOrNode, preserveContent) {
689
689
  let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) : selectorOrNode;
690
690
  if (!el) {
691
- throw new ɵRuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
691
+ throw new _RuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
692
692
  `The selector "${selectorOrNode}" did not match any elements`);
693
693
  }
694
694
  if (!preserveContent) {
@@ -771,13 +771,14 @@ class DefaultDomRenderer2 {
771
771
  this.throwOnSyntheticProps &&
772
772
  checkNoSyntheticProp(event, 'listener');
773
773
  if (typeof target === 'string') {
774
- target = ɵgetDOM().getGlobalEventTarget(this.doc, target);
774
+ target = _getDOM().getGlobalEventTarget(this.doc, target);
775
775
  if (!target) {
776
- throw new Error(`Unsupported event target ${target} for event ${event}`);
776
+ throw new _RuntimeError(5102 /* RuntimeErrorCode.UNSUPPORTED_EVENT_TARGET */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
777
+ `Unsupported event target ${target} for event ${event}`);
777
778
  }
778
779
  }
779
780
  let wrappedCallback = this.decoratePreventDefault(callback);
780
- if (this.tracingService !== null && this.tracingService.wrapEventListener) {
781
+ if (this.tracingService?.wrapEventListener) {
781
782
  wrappedCallback = this.tracingService.wrapEventListener(target, event, wrappedCallback);
782
783
  }
783
784
  return this.eventManager.addEventListener(target, event, wrappedCallback, options);
@@ -811,7 +812,7 @@ class DefaultDomRenderer2 {
811
812
  const AT_CHARCODE = (() => '@'.charCodeAt(0))();
812
813
  function checkNoSyntheticProp(name, nameKind) {
813
814
  if (name.charCodeAt(0) === AT_CHARCODE) {
814
- throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
815
+ throw new _RuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
815
816
  - Make sure \`provideAnimationsAsync()\`, \`provideAnimations()\` or \`provideNoopAnimations()\` call was added to a list of providers used to bootstrap an application.
816
817
  - There is a corresponding animation configuration named \`${name}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.dev/api/core/Component#animations).`);
817
818
  }
@@ -832,7 +833,7 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
832
833
  let styles = component.styles;
833
834
  if (ngDevMode) {
834
835
  // We only do this in development, as for production users should not add CSS sourcemaps to components.
835
- const baseHref = ɵgetDOM().getBaseHref(doc) ?? '';
836
+ const baseHref = _getDOM().getBaseHref(doc) ?? '';
836
837
  styles = addBaseHrefToCssSourceMap(baseHref, styles);
837
838
  }
838
839
  styles = shimStylesContent(component.id, styles);
@@ -892,7 +893,7 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
892
893
  let styles = component.styles;
893
894
  if (ngDevMode) {
894
895
  // We only do this in development, as for production users should not add CSS sourcemaps to components.
895
- const baseHref = ɵgetDOM().getBaseHref(doc) ?? '';
896
+ const baseHref = _getDOM().getBaseHref(doc) ?? '';
896
897
  styles = addBaseHrefToCssSourceMap(baseHref, styles);
897
898
  }
898
899
  this.styles = compId ? shimStylesContent(compId, styles) : styles;
@@ -944,10 +945,10 @@ class DomEventsPlugin extends EventManagerPlugin {
944
945
  removeEventListener(target, eventName, callback, options) {
945
946
  return target.removeEventListener(eventName, callback, options);
946
947
  }
947
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
948
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomEventsPlugin });
948
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
949
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomEventsPlugin });
949
950
  }
950
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomEventsPlugin, decorators: [{
951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
951
952
  type: Injectable
952
953
  }], ctorParameters: () => [{ type: undefined, decorators: [{
953
954
  type: Inject,
@@ -1015,7 +1016,7 @@ class KeyEventsPlugin extends EventManagerPlugin {
1015
1016
  const parsedEvent = KeyEventsPlugin.parseEventName(eventName);
1016
1017
  const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
1017
1018
  return this.manager.getZone().runOutsideAngular(() => {
1018
- return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler, options);
1019
+ return _getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler, options);
1019
1020
  });
1020
1021
  }
1021
1022
  /**
@@ -1116,10 +1117,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
1116
1117
  static _normalizeKey(keyName) {
1117
1118
  return keyName === 'esc' ? 'escape' : keyName;
1118
1119
  }
1119
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1120
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: KeyEventsPlugin });
1120
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1121
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: KeyEventsPlugin });
1121
1122
  }
1122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: KeyEventsPlugin, decorators: [{
1123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
1123
1124
  type: Injectable
1124
1125
  }], ctorParameters: () => [{ type: undefined, decorators: [{
1125
1126
  type: Inject,
@@ -1186,7 +1187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
1186
1187
  * @publicApi
1187
1188
  */
1188
1189
  function bootstrapApplication(rootComponent, options) {
1189
- return ɵinternalCreateApplication({ rootComponent, ...createProvidersConfig(options) });
1190
+ return _internalCreateApplication({ rootComponent, ...createProvidersConfig(options) });
1190
1191
  }
1191
1192
  /**
1192
1193
  * Create an instance of an Angular application without bootstrapping any components. This is useful
@@ -1201,7 +1202,7 @@ function bootstrapApplication(rootComponent, options) {
1201
1202
  * @publicApi
1202
1203
  */
1203
1204
  function createApplication(options) {
1204
- return ɵinternalCreateApplication(createProvidersConfig(options));
1205
+ return _internalCreateApplication(createProvidersConfig(options));
1205
1206
  }
1206
1207
  function createProvidersConfig(options) {
1207
1208
  return {
@@ -1234,11 +1235,11 @@ function errorHandler() {
1234
1235
  }
1235
1236
  function _document() {
1236
1237
  // Tell ivy about the global document
1237
- ɵsetDocument(document);
1238
+ _setDocument(document);
1238
1239
  return document;
1239
1240
  }
1240
1241
  const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
1241
- { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },
1242
+ { provide: PLATFORM_ID, useValue: _PLATFORM_BROWSER_ID },
1242
1243
  { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },
1243
1244
  { provide: DOCUMENT, useFactory: _document, deps: [] },
1244
1245
  ];
@@ -1258,23 +1259,23 @@ const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_
1258
1259
  const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '');
1259
1260
  const TESTABILITY_PROVIDERS = [
1260
1261
  {
1261
- provide: ɵTESTABILITY_GETTER,
1262
+ provide: _TESTABILITY_GETTER,
1262
1263
  useClass: BrowserGetTestability,
1263
1264
  deps: [],
1264
1265
  },
1265
1266
  {
1266
- provide: ɵTESTABILITY,
1267
+ provide: _TESTABILITY,
1267
1268
  useClass: Testability,
1268
- deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER],
1269
+ deps: [NgZone, TestabilityRegistry, _TESTABILITY_GETTER],
1269
1270
  },
1270
1271
  {
1271
1272
  provide: Testability, // Also provide as `Testability` for backwards-compatibility.
1272
1273
  useClass: Testability,
1273
- deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER],
1274
+ deps: [NgZone, TestabilityRegistry, _TESTABILITY_GETTER],
1274
1275
  },
1275
1276
  ];
1276
1277
  const BROWSER_MODULE_PROVIDERS = [
1277
- { provide: ɵINJECTOR_SCOPE, useValue: 'root' },
1278
+ { provide: _INJECTOR_SCOPE, useValue: 'root' },
1278
1279
  { provide: ErrorHandler, useFactory: errorHandler, deps: [] },
1279
1280
  {
1280
1281
  provide: EVENT_MANAGER_PLUGINS,
@@ -1309,16 +1310,16 @@ class BrowserModule {
1309
1310
  skipSelf: true,
1310
1311
  });
1311
1312
  if (providersAlreadyPresent) {
1312
- throw new ɵRuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
1313
+ throw new _RuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
1313
1314
  `to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
1314
1315
  }
1315
1316
  }
1316
1317
  }
1317
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1318
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1319
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
1318
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1319
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1320
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
1320
1321
  }
1321
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserModule, decorators: [{
1322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserModule, decorators: [{
1322
1323
  type: NgModule,
1323
1324
  args: [{
1324
1325
  providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
@@ -1353,7 +1354,7 @@ class Meta {
1353
1354
  _dom;
1354
1355
  constructor(_doc) {
1355
1356
  this._doc = _doc;
1356
- this._dom = ɵgetDOM();
1357
+ this._dom = _getDOM();
1357
1358
  }
1358
1359
  /**
1359
1360
  * Retrieves or creates a specific `<meta>` tag element in the current HTML document.
@@ -1477,10 +1478,10 @@ class Meta {
1477
1478
  _getMetaKeyMap(prop) {
1478
1479
  return META_KEYS_MAP[prop] || prop;
1479
1480
  }
1480
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1481
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Meta, providedIn: 'root' });
1481
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1482
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: Meta, providedIn: 'root' });
1482
1483
  }
1483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Meta, decorators: [{
1484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: Meta, decorators: [{
1484
1485
  type: Injectable,
1485
1486
  args: [{ providedIn: 'root' }]
1486
1487
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1522,10 +1523,10 @@ class Title {
1522
1523
  setTitle(newTitle) {
1523
1524
  this._doc.title = newTitle || '';
1524
1525
  }
1525
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1526
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Title, providedIn: 'root' });
1526
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1527
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: Title, providedIn: 'root' });
1527
1528
  }
1528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Title, decorators: [{
1529
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: Title, decorators: [{
1529
1530
  type: Injectable,
1530
1531
  args: [{ providedIn: 'root' }]
1531
1532
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1546,7 +1547,7 @@ function exportNgVar(name, value) {
1546
1547
  // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
1547
1548
  // - we can't declare a closure extern as the namespace `ng` is already used within Google
1548
1549
  // for typings for angularJS (via `goog.provide('ng....')`).
1549
- const ng = (ɵglobal['ng'] = ɵglobal['ng'] || {});
1550
+ const ng = (_global['ng'] = _global['ng'] || {});
1550
1551
  ng[name] = value;
1551
1552
  }
1552
1553
  }
@@ -1681,7 +1682,7 @@ class By {
1681
1682
  }
1682
1683
  }
1683
1684
  function elementMatches(n, selector) {
1684
- if (ɵgetDOM().isElementNode(n)) {
1685
+ if (_getDOM().isElementNode(n)) {
1685
1686
  return ((n.matches && n.matches(selector)) ||
1686
1687
  (n.msMatchesSelector && n.msMatchesSelector(selector)) ||
1687
1688
  (n.webkitMatchesSelector && n.webkitMatchesSelector(selector)));
@@ -1736,6 +1737,8 @@ const EVENT_NAMES = {
1736
1737
  *
1737
1738
  * @ngModule HammerModule
1738
1739
  * @publicApi
1740
+ *
1741
+ * @deprecated The HammerJS integration is deprecated. Replace it by your own implementation.
1739
1742
  */
1740
1743
  const HAMMER_GESTURE_CONFIG = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerGestureConfig' : '');
1741
1744
  /**
@@ -1744,12 +1747,16 @@ const HAMMER_GESTURE_CONFIG = new InjectionToken(typeof ngDevMode === 'undefined
1744
1747
  * @see {@link HammerLoader}
1745
1748
  *
1746
1749
  * @publicApi
1750
+ *
1751
+ * @deprecated The HammerJS integration is deprecated. Replace it by your own implementation.
1747
1752
  */
1748
1753
  const HAMMER_LOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerLoader' : '');
1749
1754
  /**
1750
1755
  * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
1751
1756
  * for gesture recognition. Configures specific event recognition.
1752
1757
  * @publicApi
1758
+ *
1759
+ * @deprecated The HammerJS integration is deprecated. Replace it by your own implementation.
1753
1760
  */
1754
1761
  class HammerGestureConfig {
1755
1762
  /**
@@ -1798,10 +1805,10 @@ class HammerGestureConfig {
1798
1805
  }
1799
1806
  return mc;
1800
1807
  }
1801
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1802
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerGestureConfig });
1808
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1809
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerGestureConfig });
1803
1810
  }
1804
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerGestureConfig, decorators: [{
1811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
1805
1812
  type: Injectable
1806
1813
  }] });
1807
1814
  /**
@@ -1828,7 +1835,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1828
1835
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
1829
1836
  // Get a `Console` through an injector to tree-shake the
1830
1837
  // class when it is unused in production.
1831
- const _console = this._injector.get(ɵConsole);
1838
+ const _console = this._injector.get(_Console);
1832
1839
  _console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` +
1833
1840
  `loaded and no custom loader has been specified.`);
1834
1841
  }
@@ -1854,7 +1861,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1854
1861
  // If Hammer isn't actually loaded when the custom loader resolves, give up.
1855
1862
  if (!window.Hammer) {
1856
1863
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
1857
- const _console = this._injector.get(ɵConsole);
1864
+ const _console = this._injector.get(_Console);
1858
1865
  _console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
1859
1866
  }
1860
1867
  deregister = () => { };
@@ -1868,7 +1875,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1868
1875
  }
1869
1876
  }).catch(() => {
1870
1877
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
1871
- const _console = this._injector.get(ɵConsole);
1878
+ const _console = this._injector.get(_Console);
1872
1879
  _console.warn(`The "${eventName}" event cannot be bound because the custom ` +
1873
1880
  `Hammer.JS loader failed.`);
1874
1881
  }
@@ -1902,10 +1909,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1902
1909
  isCustomEvent(eventName) {
1903
1910
  return this._config.events.indexOf(eventName) > -1;
1904
1911
  }
1905
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.Injector }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1906
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerGesturesPlugin });
1912
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.Injector }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1913
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin });
1907
1914
  }
1908
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1909
1916
  type: Injectable
1910
1917
  }], ctorParameters: () => [{ type: undefined, decorators: [{
1911
1918
  type: Inject,
@@ -1929,11 +1936,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
1929
1936
  * simply sets up the coordination layer between HammerJS and Angular's `EventManager`.
1930
1937
  *
1931
1938
  * @publicApi
1939
+ *
1940
+ * @deprecated The hammer integration is deprecated. Replace it by your own implementation.
1932
1941
  */
1933
1942
  class HammerModule {
1934
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1935
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerModule });
1936
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerModule, providers: [
1943
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1944
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerModule });
1945
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerModule, providers: [
1937
1946
  {
1938
1947
  provide: EVENT_MANAGER_PLUGINS,
1939
1948
  useClass: HammerGesturesPlugin,
@@ -1943,7 +1952,7 @@ class HammerModule {
1943
1952
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1944
1953
  ] });
1945
1954
  }
1946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HammerModule, decorators: [{
1955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: HammerModule, decorators: [{
1947
1956
  type: NgModule,
1948
1957
  args: [{
1949
1958
  providers: [
@@ -1990,10 +1999,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
1990
1999
  * @publicApi
1991
2000
  */
1992
2001
  class DomSanitizer {
1993
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1994
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
2002
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2003
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
1995
2004
  }
1996
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomSanitizer, decorators: [{
2005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomSanitizer, decorators: [{
1997
2006
  type: Injectable,
1998
2007
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
1999
2008
  }] });
@@ -2010,56 +2019,56 @@ class DomSanitizerImpl extends DomSanitizer {
2010
2019
  case SecurityContext.NONE:
2011
2020
  return value;
2012
2021
  case SecurityContext.HTML:
2013
- if (ɵallowSanitizationBypassAndThrow(value, "HTML" /* BypassType.Html */)) {
2014
- return ɵunwrapSafeValue(value);
2022
+ if (_allowSanitizationBypassAndThrow(value, "HTML" /* BypassType.Html */)) {
2023
+ return _unwrapSafeValue(value);
2015
2024
  }
2016
- return ɵ_sanitizeHtml(this._doc, String(value)).toString();
2025
+ return __sanitizeHtml(this._doc, String(value)).toString();
2017
2026
  case SecurityContext.STYLE:
2018
- if (ɵallowSanitizationBypassAndThrow(value, "Style" /* BypassType.Style */)) {
2019
- return ɵunwrapSafeValue(value);
2027
+ if (_allowSanitizationBypassAndThrow(value, "Style" /* BypassType.Style */)) {
2028
+ return _unwrapSafeValue(value);
2020
2029
  }
2021
2030
  return value;
2022
2031
  case SecurityContext.SCRIPT:
2023
- if (ɵallowSanitizationBypassAndThrow(value, "Script" /* BypassType.Script */)) {
2024
- return ɵunwrapSafeValue(value);
2032
+ if (_allowSanitizationBypassAndThrow(value, "Script" /* BypassType.Script */)) {
2033
+ return _unwrapSafeValue(value);
2025
2034
  }
2026
- throw new ɵRuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2035
+ throw new _RuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2027
2036
  'unsafe value used in a script context');
2028
2037
  case SecurityContext.URL:
2029
- if (ɵallowSanitizationBypassAndThrow(value, "URL" /* BypassType.Url */)) {
2030
- return ɵunwrapSafeValue(value);
2038
+ if (_allowSanitizationBypassAndThrow(value, "URL" /* BypassType.Url */)) {
2039
+ return _unwrapSafeValue(value);
2031
2040
  }
2032
- return ɵ_sanitizeUrl(String(value));
2041
+ return __sanitizeUrl(String(value));
2033
2042
  case SecurityContext.RESOURCE_URL:
2034
- if (ɵallowSanitizationBypassAndThrow(value, "ResourceURL" /* BypassType.ResourceUrl */)) {
2035
- return ɵunwrapSafeValue(value);
2043
+ if (_allowSanitizationBypassAndThrow(value, "ResourceURL" /* BypassType.ResourceUrl */)) {
2044
+ return _unwrapSafeValue(value);
2036
2045
  }
2037
- throw new ɵRuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2038
- `unsafe value used in a resource URL context (see ${ɵXSS_SECURITY_URL})`);
2046
+ throw new _RuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2047
+ `unsafe value used in a resource URL context (see ${_XSS_SECURITY_URL})`);
2039
2048
  default:
2040
- throw new ɵRuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2041
- `Unexpected SecurityContext ${ctx} (see ${ɵXSS_SECURITY_URL})`);
2049
+ throw new _RuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2050
+ `Unexpected SecurityContext ${ctx} (see ${_XSS_SECURITY_URL})`);
2042
2051
  }
2043
2052
  }
2044
2053
  bypassSecurityTrustHtml(value) {
2045
- return ɵbypassSanitizationTrustHtml(value);
2054
+ return _bypassSanitizationTrustHtml(value);
2046
2055
  }
2047
2056
  bypassSecurityTrustStyle(value) {
2048
- return ɵbypassSanitizationTrustStyle(value);
2057
+ return _bypassSanitizationTrustStyle(value);
2049
2058
  }
2050
2059
  bypassSecurityTrustScript(value) {
2051
- return ɵbypassSanitizationTrustScript(value);
2060
+ return _bypassSanitizationTrustScript(value);
2052
2061
  }
2053
2062
  bypassSecurityTrustUrl(value) {
2054
- return ɵbypassSanitizationTrustUrl(value);
2063
+ return _bypassSanitizationTrustUrl(value);
2055
2064
  }
2056
2065
  bypassSecurityTrustResourceUrl(value) {
2057
- return ɵbypassSanitizationTrustResourceUrl(value);
2066
+ return _bypassSanitizationTrustResourceUrl(value);
2058
2067
  }
2059
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2060
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
2068
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2069
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
2061
2070
  }
2062
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DomSanitizerImpl, decorators: [{
2071
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
2063
2072
  type: Injectable,
2064
2073
  args: [{ providedIn: 'root' }]
2065
2074
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -2108,7 +2117,7 @@ function withNoHttpTransferCache() {
2108
2117
  */
2109
2118
  function withHttpTransferCacheOptions(options) {
2110
2119
  // This feature has no providers and acts as a flag to pass options to the HTTP transfer cache.
2111
- return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, ɵwithHttpTransferCache(options));
2120
+ return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, _withHttpTransferCache(options));
2112
2121
  }
2113
2122
  /**
2114
2123
  * Enables support for hydrating i18n blocks.
@@ -2117,7 +2126,7 @@ function withHttpTransferCacheOptions(options) {
2117
2126
  * @publicApi
2118
2127
  */
2119
2128
  function withI18nSupport() {
2120
- return hydrationFeature(HydrationFeatureKind.I18nSupport, ɵwithI18nSupport());
2129
+ return hydrationFeature(HydrationFeatureKind.I18nSupport, _withI18nSupport());
2121
2130
  }
2122
2131
  /**
2123
2132
  * Enables support for replaying user events (e.g. `click`s) that happened on a page
@@ -2137,7 +2146,7 @@ function withI18nSupport() {
2137
2146
  * @see {@link provideClientHydration}
2138
2147
  */
2139
2148
  function withEventReplay() {
2140
- return hydrationFeature(HydrationFeatureKind.EventReplay, ɵwithEventReplay());
2149
+ return hydrationFeature(HydrationFeatureKind.EventReplay, _withEventReplay());
2141
2150
  }
2142
2151
  /**
2143
2152
  * Enables support for incremental hydration using the `hydrate` trigger syntax.
@@ -2156,7 +2165,7 @@ function withEventReplay() {
2156
2165
  * @see {@link provideClientHydration}
2157
2166
  */
2158
2167
  function withIncrementalHydration() {
2159
- return hydrationFeature(HydrationFeatureKind.IncrementalHydration, ɵwithIncrementalHydration());
2168
+ return hydrationFeature(HydrationFeatureKind.IncrementalHydration, _withIncrementalHydration());
2160
2169
  }
2161
2170
  /**
2162
2171
  * Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
@@ -2169,12 +2178,12 @@ function provideZoneJsCompatibilityDetector() {
2169
2178
  provide: ENVIRONMENT_INITIALIZER,
2170
2179
  useValue: () => {
2171
2180
  const ngZone = inject(NgZone);
2172
- const isZoneless = inject(ɵZONELESS_ENABLED);
2181
+ const isZoneless = inject(_ZONELESS_ENABLED);
2173
2182
  // Checking `ngZone instanceof NgZone` would be insufficient here,
2174
2183
  // because custom implementations might use NgZone as a base class.
2175
2184
  if (!isZoneless && ngZone.constructor !== NgZone) {
2176
- const console = inject(ɵConsole);
2177
- const message = ɵformatRuntimeError(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +
2185
+ const console = inject(_Console);
2186
+ const message = _formatRuntimeError(-5e3 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +
2178
2187
  'that uses a custom or a noop Zone.js implementation. ' +
2179
2188
  'This is not yet a fully supported configuration.');
2180
2189
  console.warn(message);
@@ -2252,10 +2261,10 @@ function provideClientHydration(...features) {
2252
2261
  }
2253
2262
  return makeEnvironmentProviders([
2254
2263
  typeof ngDevMode !== 'undefined' && ngDevMode ? provideZoneJsCompatibilityDetector() : [],
2255
- ɵwithDomHydration(),
2264
+ _withDomHydration(),
2256
2265
  featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions
2257
2266
  ? []
2258
- : ɵwithHttpTransferCache({}),
2267
+ : _withHttpTransferCache({}),
2259
2268
  providers,
2260
2269
  ]);
2261
2270
  }
@@ -2268,20 +2277,7 @@ function provideClientHydration(...features) {
2268
2277
  /**
2269
2278
  * @publicApi
2270
2279
  */
2271
- const VERSION = new Version('20.0.0-next.1');
2272
-
2273
- /**
2274
- * @module
2275
- * @description
2276
- * Entry point for all public APIs of this package.
2277
- */
2278
- // This file only reexports content of the `src` folder. Keep it that way.
2279
-
2280
- // This file is not used to build this module. It is only used during editing
2281
-
2282
- /**
2283
- * Generated bundle index. Do not edit.
2284
- */
2280
+ const VERSION = new Version('20.0.0-next.2');
2285
2281
 
2286
2282
  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, withIncrementalHydration, 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 };
2287
2283
  //# sourceMappingURL=platform-browser.mjs.map