@angular/platform-browser 15.2.1 → 16.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/animations/index.d.ts +1 -1
  2. package/esm2020/animations/src/animation_builder.mjs +6 -5
  3. package/esm2020/animations/src/animation_renderer.mjs +6 -5
  4. package/esm2020/animations/src/module.mjs +13 -11
  5. package/esm2020/animations/src/providers.mjs +6 -5
  6. package/esm2020/src/browser/meta.mjs +6 -5
  7. package/esm2020/src/browser/title.mjs +6 -5
  8. package/esm2020/src/browser/transfer_state_module.mjs +28 -0
  9. package/esm2020/src/browser/xhr.mjs +6 -5
  10. package/esm2020/src/browser.mjs +7 -6
  11. package/esm2020/src/dom/dom_renderer.mjs +10 -11
  12. package/esm2020/src/dom/events/dom_events.mjs +6 -5
  13. package/esm2020/src/dom/events/event_manager.mjs +6 -5
  14. package/esm2020/src/dom/events/hammer_gestures.mjs +17 -14
  15. package/esm2020/src/dom/events/key_events.mjs +6 -5
  16. package/esm2020/src/dom/shared_styles_host.mjs +11 -9
  17. package/esm2020/src/platform-browser.mjs +4 -2
  18. package/esm2020/src/private_export.mjs +2 -3
  19. package/esm2020/src/security/dom_sanitization_service.mjs +11 -9
  20. package/esm2020/src/version.mjs +1 -1
  21. package/esm2020/testing/src/browser.mjs +9 -11
  22. package/fesm2015/animations.mjs +18 -18
  23. package/fesm2015/animations.mjs.map +1 -1
  24. package/fesm2015/platform-browser.mjs +63 -196
  25. package/fesm2015/platform-browser.mjs.map +1 -1
  26. package/fesm2015/testing.mjs +7 -19
  27. package/fesm2015/testing.mjs.map +1 -1
  28. package/fesm2020/animations.mjs +18 -18
  29. package/fesm2020/animations.mjs.map +1 -1
  30. package/fesm2020/platform-browser.mjs +63 -196
  31. package/fesm2020/platform-browser.mjs.map +1 -1
  32. package/fesm2020/testing.mjs +7 -19
  33. package/fesm2020/testing.mjs.map +1 -1
  34. package/index.d.ts +9 -88
  35. package/package.json +5 -5
  36. package/testing/index.d.ts +1 -1
  37. package/esm2020/src/browser/transfer_state.mjs +0 -162
  38. package/esm2020/testing/src/mock_platform_location_flag.mjs +0 -17
@@ -1,13 +1,14 @@
1
1
  /**
2
- * @license Angular v15.2.1
2
+ * @license Angular v16.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
+ import * as i0 from '@angular/core';
8
+ import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';
9
+ export { ɵTransferState as TransferState, ɵmakeStateKey as makeStateKey } from '@angular/core';
7
10
  import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
8
11
  export { ɵgetDOM } from '@angular/common';
9
- import * as i0 from '@angular/core';
10
- import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, inject, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';
11
12
 
12
13
  /**
13
14
  * Provides DOM operations in any browser environment.
@@ -190,9 +191,9 @@ class BrowserXhr {
190
191
  return new XMLHttpRequest();
191
192
  }
192
193
  }
193
- BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
194
- BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserXhr });
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserXhr, decorators: [{
194
+ BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
195
+ BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserXhr });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserXhr, decorators: [{
196
197
  type: Injectable
197
198
  }] });
198
199
 
@@ -268,9 +269,9 @@ class EventManager {
268
269
  throw new Error(`No event manager plugin found for event ${eventName}`);
269
270
  }
270
271
  }
271
- EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
272
- EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: EventManager });
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: EventManager, decorators: [{
272
+ EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
273
+ EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: EventManager });
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: EventManager, decorators: [{
274
275
  type: Injectable
275
276
  }], ctorParameters: function () {
276
277
  return [{ type: undefined, decorators: [{
@@ -336,9 +337,9 @@ class SharedStylesHost {
336
337
  this.usageCount.clear();
337
338
  }
338
339
  }
339
- SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
340
- SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SharedStylesHost });
341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SharedStylesHost, decorators: [{
340
+ SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
341
+ SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: SharedStylesHost });
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: SharedStylesHost, decorators: [{
342
343
  type: Injectable
343
344
  }] });
344
345
  class DomSharedStylesHost extends SharedStylesHost {
@@ -394,9 +395,9 @@ class DomSharedStylesHost extends SharedStylesHost {
394
395
  hostNodes.add(this.doc.head);
395
396
  }
396
397
  }
397
- DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
398
- DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSharedStylesHost });
399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSharedStylesHost, decorators: [{
398
+ DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
399
+ DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSharedStylesHost });
400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSharedStylesHost, decorators: [{
400
401
  type: Injectable
401
402
  }], ctorParameters: function () {
402
403
  return [{ type: undefined, decorators: [{
@@ -439,10 +440,8 @@ function shimContentAttribute(componentShortId) {
439
440
  function shimHostAttribute(componentShortId) {
440
441
  return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
441
442
  }
442
- function flattenStyles(compId, styles) {
443
- // Cannot use `Infinity` as depth as `infinity` is not a number literal in TypeScript.
444
- // See: https://github.com/microsoft/TypeScript/issues/32277
445
- return styles.flat(100).map(s => s.replace(COMPONENT_REGEX, compId));
443
+ function shimStylesContent(compId, styles) {
444
+ return styles.map(s => s.replace(COMPONENT_REGEX, compId));
446
445
  }
447
446
  function decoratePreventDefault(eventHandler) {
448
447
  // `DebugNode.triggerEventHandler` needs to know if the listener was created with
@@ -518,9 +517,9 @@ class DomRendererFactory2 {
518
517
  begin() { }
519
518
  end() { }
520
519
  }
521
- DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }], target: i0.ɵɵFactoryTarget.Injectable });
522
- DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomRendererFactory2 });
523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomRendererFactory2, decorators: [{
520
+ DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }], target: i0.ɵɵFactoryTarget.Injectable });
521
+ DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomRendererFactory2 });
522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomRendererFactory2, decorators: [{
524
523
  type: Injectable
525
524
  }], ctorParameters: function () {
526
525
  return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
@@ -677,7 +676,7 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
677
676
  this.hostEl = hostEl;
678
677
  this.shadowRoot = hostEl.attachShadow({ mode: 'open' });
679
678
  this.sharedStylesHost.addHost(this.shadowRoot);
680
- const styles = flattenStyles(component.id, component.styles);
679
+ const styles = shimStylesContent(component.id, component.styles);
681
680
  for (const style of styles) {
682
681
  const styleEl = document.createElement('style');
683
682
  styleEl.textContent = style;
@@ -709,7 +708,7 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
709
708
  this.sharedStylesHost = sharedStylesHost;
710
709
  this.removeStylesOnCompDestory = removeStylesOnCompDestory;
711
710
  this.rendererUsageCount = 0;
712
- this.styles = flattenStyles(compId, component.styles);
711
+ this.styles = shimStylesContent(compId, component.styles);
713
712
  }
714
713
  applyStyles() {
715
714
  this.sharedStylesHost.addStyles(this.styles);
@@ -762,9 +761,9 @@ class DomEventsPlugin extends EventManagerPlugin {
762
761
  return target.removeEventListener(eventName, callback);
763
762
  }
764
763
  }
765
- DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
766
- DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomEventsPlugin });
767
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomEventsPlugin, decorators: [{
764
+ DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
765
+ DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomEventsPlugin });
766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomEventsPlugin, decorators: [{
768
767
  type: Injectable
769
768
  }], ctorParameters: function () {
770
769
  return [{ type: undefined, decorators: [{
@@ -943,9 +942,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
943
942
  }
944
943
  }
945
944
  }
946
- KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
947
- KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: KeyEventsPlugin });
948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: KeyEventsPlugin, decorators: [{
945
+ KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
946
+ KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: KeyEventsPlugin });
947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: KeyEventsPlugin, decorators: [{
949
948
  type: Injectable
950
949
  }], ctorParameters: function () {
951
950
  return [{ type: undefined, decorators: [{
@@ -1160,13 +1159,13 @@ class BrowserModule {
1160
1159
  };
1161
1160
  }
1162
1161
  }
1163
- BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
1164
- BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1165
- BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserModule, providers: [
1162
+ BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
1163
+ BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1164
+ BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserModule, providers: [
1166
1165
  ...BROWSER_MODULE_PROVIDERS,
1167
1166
  ...TESTABILITY_PROVIDERS
1168
1167
  ], imports: [CommonModule, ApplicationModule] });
1169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserModule, decorators: [{
1168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserModule, decorators: [{
1170
1169
  type: NgModule,
1171
1170
  args: [{
1172
1171
  providers: [
@@ -1342,9 +1341,9 @@ class Meta {
1342
1341
  return META_KEYS_MAP[prop] || prop;
1343
1342
  }
1344
1343
  }
1345
- Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1346
- Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Meta, decorators: [{
1344
+ Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1345
+ Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: Meta, decorators: [{
1348
1347
  type: Injectable,
1349
1348
  args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
1350
1349
  }], ctorParameters: function () {
@@ -1394,9 +1393,9 @@ class Title {
1394
1393
  this._doc.title = newTitle || '';
1395
1394
  }
1396
1395
  }
1397
- Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1398
- Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Title, decorators: [{
1396
+ Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1397
+ Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: Title, decorators: [{
1400
1399
  type: Injectable,
1401
1400
  args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
1402
1401
  }], ctorParameters: function () {
@@ -1521,140 +1520,6 @@ function disableDebugTools() {
1521
1520
  exportNgVar(PROFILER_GLOBAL_NAME, null);
1522
1521
  }
1523
1522
 
1524
- function escapeHtml(text) {
1525
- const escapedText = {
1526
- '&': '&a;',
1527
- '"': '&q;',
1528
- '\'': '&s;',
1529
- '<': '&l;',
1530
- '>': '&g;',
1531
- };
1532
- return text.replace(/[&"'<>]/g, s => escapedText[s]);
1533
- }
1534
- function unescapeHtml(text) {
1535
- const unescapedText = {
1536
- '&a;': '&',
1537
- '&q;': '"',
1538
- '&s;': '\'',
1539
- '&l;': '<',
1540
- '&g;': '>',
1541
- };
1542
- return text.replace(/&[^;]+;/g, s => unescapedText[s]);
1543
- }
1544
- /**
1545
- * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
1546
- *
1547
- * Example:
1548
- *
1549
- * ```
1550
- * const COUNTER_KEY = makeStateKey<number>('counter');
1551
- * let value = 10;
1552
- *
1553
- * transferState.set(COUNTER_KEY, value);
1554
- * ```
1555
- *
1556
- * @publicApi
1557
- */
1558
- function makeStateKey(key) {
1559
- return key;
1560
- }
1561
- /**
1562
- * A key value store that is transferred from the application on the server side to the application
1563
- * on the client side.
1564
- *
1565
- * The `TransferState` is available as an injectable token.
1566
- * On the client, just inject this token using DI and use it, it will be lazily initialized.
1567
- * On the server it's already included if `renderApplication` function is used. Otherwise, import
1568
- * the `ServerTransferStateModule` module to make the `TransferState` available.
1569
- *
1570
- * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
1571
- * boolean, number, string, null and non-class objects will be serialized and deserialized in a
1572
- * non-lossy manner.
1573
- *
1574
- * @publicApi
1575
- */
1576
- class TransferState {
1577
- constructor() {
1578
- this.store = {};
1579
- this.onSerializeCallbacks = {};
1580
- this.store = retrieveTransferredState(inject(DOCUMENT), inject(APP_ID));
1581
- }
1582
- /**
1583
- * Get the value corresponding to a key. Return `defaultValue` if key is not found.
1584
- */
1585
- get(key, defaultValue) {
1586
- return this.store[key] !== undefined ? this.store[key] : defaultValue;
1587
- }
1588
- /**
1589
- * Set the value corresponding to a key.
1590
- */
1591
- set(key, value) {
1592
- this.store[key] = value;
1593
- }
1594
- /**
1595
- * Remove a key from the store.
1596
- */
1597
- remove(key) {
1598
- delete this.store[key];
1599
- }
1600
- /**
1601
- * Test whether a key exists in the store.
1602
- */
1603
- hasKey(key) {
1604
- return this.store.hasOwnProperty(key);
1605
- }
1606
- /**
1607
- * Indicates whether the state is empty.
1608
- */
1609
- get isEmpty() {
1610
- return Object.keys(this.store).length === 0;
1611
- }
1612
- /**
1613
- * Register a callback to provide the value for a key when `toJson` is called.
1614
- */
1615
- onSerialize(key, callback) {
1616
- this.onSerializeCallbacks[key] = callback;
1617
- }
1618
- /**
1619
- * Serialize the current state of the store to JSON.
1620
- */
1621
- toJson() {
1622
- // Call the onSerialize callbacks and put those values into the store.
1623
- for (const key in this.onSerializeCallbacks) {
1624
- if (this.onSerializeCallbacks.hasOwnProperty(key)) {
1625
- try {
1626
- this.store[key] = this.onSerializeCallbacks[key]();
1627
- }
1628
- catch (e) {
1629
- console.warn('Exception in onSerialize callback: ', e);
1630
- }
1631
- }
1632
- }
1633
- return JSON.stringify(this.store);
1634
- }
1635
- }
1636
- TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1637
- TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TransferState, providedIn: 'root' });
1638
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TransferState, decorators: [{
1639
- type: Injectable,
1640
- args: [{ providedIn: 'root' }]
1641
- }], ctorParameters: function () { return []; } });
1642
- function retrieveTransferredState(doc, appId) {
1643
- // Locate the script tag with the JSON data transferred from the server.
1644
- // The id of the script tag is set to the Angular appId + 'state'.
1645
- const script = doc.getElementById(appId + '-state');
1646
- let initialState = {};
1647
- if (script && script.textContent) {
1648
- try {
1649
- // Avoid using any here as it triggers lint errors in google3 (any is not allowed).
1650
- initialState = JSON.parse(unescapeHtml(script.textContent));
1651
- }
1652
- catch (e) {
1653
- console.warn('Exception while restoring TransferState for app ' + appId, e);
1654
- }
1655
- }
1656
- return initialState;
1657
- }
1658
1523
  /**
1659
1524
  * NgModule to install on the client side while using the `TransferState` to transfer state from
1660
1525
  * server to client.
@@ -1665,10 +1530,10 @@ function retrieveTransferredState(doc, appId) {
1665
1530
  */
1666
1531
  class BrowserTransferStateModule {
1667
1532
  }
1668
- BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1669
- BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: BrowserTransferStateModule });
1670
- BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserTransferStateModule });
1671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1533
+ BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1534
+ BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserTransferStateModule });
1535
+ BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserTransferStateModule });
1536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1672
1537
  type: NgModule,
1673
1538
  args: [{}]
1674
1539
  }] });
@@ -1828,9 +1693,9 @@ class HammerGestureConfig {
1828
1693
  return mc;
1829
1694
  }
1830
1695
  }
1831
- HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1832
- HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerGestureConfig });
1833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerGestureConfig, decorators: [{
1696
+ HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1697
+ HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerGestureConfig });
1698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerGestureConfig, decorators: [{
1834
1699
  type: Injectable
1835
1700
  }] });
1836
1701
  /**
@@ -1926,9 +1791,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1926
1791
  return this._config.events.indexOf(eventName) > -1;
1927
1792
  }
1928
1793
  }
1929
- HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1930
- HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerGesturesPlugin });
1931
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1794
+ HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1795
+ HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerGesturesPlugin });
1796
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1932
1797
  type: Injectable
1933
1798
  }], ctorParameters: function () {
1934
1799
  return [{ type: undefined, decorators: [{
@@ -1957,9 +1822,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
1957
1822
  */
1958
1823
  class HammerModule {
1959
1824
  }
1960
- HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1961
- HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: HammerModule });
1962
- HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerModule, providers: [
1825
+ HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1826
+ HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerModule });
1827
+ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerModule, providers: [
1963
1828
  {
1964
1829
  provide: EVENT_MANAGER_PLUGINS,
1965
1830
  useClass: HammerGesturesPlugin,
@@ -1968,7 +1833,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
1968
1833
  },
1969
1834
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1970
1835
  ] });
1971
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: HammerModule, decorators: [{
1836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: HammerModule, decorators: [{
1972
1837
  type: NgModule,
1973
1838
  args: [{
1974
1839
  providers: [
@@ -2016,9 +1881,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
2016
1881
  */
2017
1882
  class DomSanitizer {
2018
1883
  }
2019
- DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2020
- DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
2021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSanitizer, decorators: [{
1884
+ DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1885
+ DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
1886
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSanitizer, decorators: [{
2022
1887
  type: Injectable,
2023
1888
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
2024
1889
  }] });
@@ -2081,9 +1946,9 @@ class DomSanitizerImpl extends DomSanitizer {
2081
1946
  return ɵbypassSanitizationTrustResourceUrl(value);
2082
1947
  }
2083
1948
  }
2084
- DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2085
- DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
2086
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1949
+ DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1950
+ DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
1951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: DomSanitizerImpl, decorators: [{
2087
1952
  type: Injectable,
2088
1953
  args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
2089
1954
  }], ctorParameters: function () {
@@ -2101,7 +1966,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
2101
1966
  /**
2102
1967
  * @publicApi
2103
1968
  */
2104
- const VERSION = new Version('15.2.1');
1969
+ const VERSION = new Version('16.0.0-next.1');
1970
+
1971
+ // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
2105
1972
 
2106
1973
  /**
2107
1974
  * @module
@@ -2116,5 +1983,5 @@ const VERSION = new Version('15.2.1');
2116
1983
  * Generated bundle index. Do not edit.
2117
1984
  */
2118
1985
 
2119
- export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideProtractorTestingSupport, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };
1986
+ export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideProtractorTestingSupport, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, shimStylesContent as ɵshimStyles };
2120
1987
  //# sourceMappingURL=platform-browser.mjs.map