@angular/platform-browser 16.0.0-next.2 → 16.0.0-next.4

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 (34) hide show
  1. package/animations/index.d.ts +1 -1
  2. package/esm2020/animations/src/animation_builder.mjs +3 -3
  3. package/esm2020/animations/src/animation_renderer.mjs +3 -3
  4. package/esm2020/animations/src/module.mjs +8 -8
  5. package/esm2020/animations/src/providers.mjs +3 -3
  6. package/esm2020/src/browser/meta.mjs +3 -3
  7. package/esm2020/src/browser/title.mjs +3 -3
  8. package/esm2020/src/browser/transfer_state_module.mjs +4 -4
  9. package/esm2020/src/browser/xhr.mjs +3 -3
  10. package/esm2020/src/browser.mjs +12 -25
  11. package/esm2020/src/dom/dom_renderer.mjs +20 -10
  12. package/esm2020/src/dom/events/dom_events.mjs +3 -3
  13. package/esm2020/src/dom/events/event_manager.mjs +3 -3
  14. package/esm2020/src/dom/events/hammer_gestures.mjs +10 -10
  15. package/esm2020/src/dom/events/key_events.mjs +3 -3
  16. package/esm2020/src/dom/shared_styles_host.mjs +99 -59
  17. package/esm2020/src/private_export.mjs +2 -3
  18. package/esm2020/src/security/dom_sanitization_service.mjs +6 -6
  19. package/esm2020/src/version.mjs +1 -1
  20. package/esm2020/testing/src/browser.mjs +8 -8
  21. package/fesm2015/animations.mjs +18 -18
  22. package/fesm2015/platform-browser.mjs +168 -154
  23. package/fesm2015/platform-browser.mjs.map +1 -1
  24. package/fesm2015/testing.mjs +8 -8
  25. package/fesm2015/testing.mjs.map +1 -1
  26. package/fesm2020/animations.mjs +18 -18
  27. package/fesm2020/platform-browser.mjs +165 -153
  28. package/fesm2020/platform-browser.mjs.map +1 -1
  29. package/fesm2020/testing.mjs +8 -8
  30. package/fesm2020/testing.mjs.map +1 -1
  31. package/index.d.ts +26 -31
  32. package/package.json +4 -4
  33. package/testing/index.d.ts +1 -1
  34. package/esm2020/src/browser/server-transition.mjs +0 -36
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.2
2
+ * @license Angular v16.0.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
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';
8
+ import { ɵglobal, 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, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Injector, Version } from '@angular/core';
9
9
  export { ɵTransferState as TransferState, ɵmakeStateKey as makeStateKey } from '@angular/core';
10
- import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
10
+ import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
11
11
  export { ɵgetDOM } from '@angular/common';
12
12
 
13
13
  /**
@@ -107,33 +107,6 @@ function relativePath(url) {
107
107
  return pathName.charAt(0) === '/' ? pathName : `/${pathName}`;
108
108
  }
109
109
 
110
- /**
111
- * An id that identifies a particular application being bootstrapped, that should
112
- * match across the client/server boundary.
113
- */
114
- const TRANSITION_ID = new InjectionToken('TRANSITION_ID');
115
- function appInitializerFactory(transitionId, document, injector) {
116
- return () => {
117
- // Wait for all application initializers to be completed before removing the styles set by
118
- // the server.
119
- injector.get(ApplicationInitStatus).donePromise.then(() => {
120
- const dom = ɵgetDOM();
121
- const styles = document.querySelectorAll(`style[ng-transition="${transitionId}"]`);
122
- for (let i = 0; i < styles.length; i++) {
123
- dom.remove(styles[i]);
124
- }
125
- });
126
- };
127
- }
128
- const SERVER_TRANSITION_PROVIDERS = [
129
- {
130
- provide: APP_INITIALIZER,
131
- useFactory: appInitializerFactory,
132
- deps: [TRANSITION_ID, DOCUMENT, Injector],
133
- multi: true
134
- },
135
- ];
136
-
137
110
  class BrowserGetTestability {
138
111
  addToWindow(registry) {
139
112
  ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {
@@ -191,9 +164,9 @@ class BrowserXhr {
191
164
  return new XMLHttpRequest();
192
165
  }
193
166
  }
194
- BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
195
- BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserXhr });
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserXhr, decorators: [{
167
+ BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
168
+ BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserXhr });
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserXhr, decorators: [{
197
170
  type: Injectable
198
171
  }] });
199
172
 
@@ -271,9 +244,9 @@ class EventManager {
271
244
  throw new Error(`No event manager plugin found for event ${eventName}`);
272
245
  }
273
246
  }
274
- EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
275
- EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: EventManager });
276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: EventManager, decorators: [{
247
+ EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
248
+ EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: EventManager });
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: EventManager, decorators: [{
277
250
  type: Injectable
278
251
  }], ctorParameters: function () {
279
252
  return [{ type: undefined, decorators: [{
@@ -294,9 +267,20 @@ class EventManagerPlugin {
294
267
  }
295
268
  }
296
269
 
270
+ /** The style elements attribute name used to set value of `APP_ID` token. */
271
+ const APP_ID_ATTRIBUTE_NAME = 'ng-app-id';
297
272
  class SharedStylesHost {
298
- constructor() {
299
- this.usageCount = new Map();
273
+ constructor(doc, appId, nonce, platformId = {}) {
274
+ this.doc = doc;
275
+ this.appId = appId;
276
+ this.nonce = nonce;
277
+ this.platformId = platformId;
278
+ // Maps all registered host nodes to a list of style nodes that have been added to the host node.
279
+ this.styleRef = new Map();
280
+ this.hostNodes = new Set();
281
+ this.styleNodesInDOM = this.collectServerRenderedStyles();
282
+ this.platformIsServer = isPlatformServer(platformId);
283
+ this.resetHostNodes();
300
284
  }
301
285
  addStyles(styles) {
302
286
  for (const style of styles) {
@@ -309,49 +293,33 @@ class SharedStylesHost {
309
293
  removeStyles(styles) {
310
294
  for (const style of styles) {
311
295
  const usageCount = this.changeUsageCount(style, -1);
312
- if (usageCount === 0) {
296
+ if (usageCount <= 0) {
313
297
  this.onStyleRemoved(style);
314
298
  }
315
299
  }
316
300
  }
317
- onStyleRemoved(style) { }
318
- onStyleAdded(style) { }
319
- getAllStyles() {
320
- return this.usageCount.keys();
321
- }
322
- changeUsageCount(style, delta) {
323
- var _a;
324
- const map = this.usageCount;
325
- let usage = (_a = map.get(style)) !== null && _a !== void 0 ? _a : 0;
326
- usage += delta;
327
- if (usage > 0) {
328
- map.set(style, usage);
301
+ ngOnDestroy() {
302
+ const styleNodesInDOM = this.styleNodesInDOM;
303
+ if (styleNodesInDOM) {
304
+ styleNodesInDOM.forEach((node) => node.remove());
305
+ styleNodesInDOM.clear();
329
306
  }
330
- else {
331
- map.delete(style);
307
+ for (const style of this.getAllStyles()) {
308
+ this.onStyleRemoved(style);
332
309
  }
333
- return usage;
310
+ this.resetHostNodes();
334
311
  }
335
- ngOnDestroy() {
312
+ addHost(hostNode) {
313
+ this.hostNodes.add(hostNode);
336
314
  for (const style of this.getAllStyles()) {
337
- this.onStyleRemoved(style);
315
+ this.addStyleToHost(hostNode, style);
338
316
  }
339
- this.usageCount.clear();
340
317
  }
341
- }
342
- SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
343
- SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost });
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost, decorators: [{
345
- type: Injectable
346
- }] });
347
- class DomSharedStylesHost extends SharedStylesHost {
348
- constructor(doc) {
349
- super();
350
- this.doc = doc;
351
- // Maps all registered host nodes to a list of style nodes that have been added to the host node.
352
- this.styleRef = new Map();
353
- this.hostNodes = new Set();
354
- this.resetHostNodes();
318
+ removeHost(hostNode) {
319
+ this.hostNodes.delete(hostNode);
320
+ }
321
+ getAllStyles() {
322
+ return this.styleRef.keys();
355
323
  }
356
324
  onStyleAdded(style) {
357
325
  for (const host of this.hostNodes) {
@@ -359,35 +327,72 @@ class DomSharedStylesHost extends SharedStylesHost {
359
327
  }
360
328
  }
361
329
  onStyleRemoved(style) {
330
+ var _a, _b;
362
331
  const styleRef = this.styleRef;
363
- const styleElements = styleRef.get(style);
364
- styleElements === null || styleElements === void 0 ? void 0 : styleElements.forEach(e => e.remove());
332
+ (_b = (_a = styleRef.get(style)) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.forEach((node) => node.remove());
365
333
  styleRef.delete(style);
366
334
  }
367
- ngOnDestroy() {
368
- super.ngOnDestroy();
369
- this.styleRef.clear();
370
- this.resetHostNodes();
371
- }
372
- addHost(hostNode) {
373
- this.hostNodes.add(hostNode);
374
- for (const style of this.getAllStyles()) {
375
- this.addStyleToHost(hostNode, style);
335
+ collectServerRenderedStyles() {
336
+ var _a;
337
+ const styles = (_a = this.doc.head) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}="${this.appId}"]`);
338
+ if (styles === null || styles === void 0 ? void 0 : styles.length) {
339
+ const styleMap = new Map();
340
+ styles.forEach((style) => {
341
+ if (style.textContent != null) {
342
+ styleMap.set(style.textContent, style);
343
+ }
344
+ });
345
+ return styleMap;
376
346
  }
347
+ return null;
377
348
  }
378
- removeHost(hostNode) {
379
- this.hostNodes.delete(hostNode);
349
+ changeUsageCount(style, delta) {
350
+ const map = this.styleRef;
351
+ if (map.has(style)) {
352
+ const styleRefValue = map.get(style);
353
+ styleRefValue.usage += delta;
354
+ return styleRefValue.usage;
355
+ }
356
+ map.set(style, { usage: delta, elements: [] });
357
+ return delta;
358
+ }
359
+ getStyleElement(host, style) {
360
+ const styleNodesInDOM = this.styleNodesInDOM;
361
+ const styleEl = styleNodesInDOM === null || styleNodesInDOM === void 0 ? void 0 : styleNodesInDOM.get(style);
362
+ if ((styleEl === null || styleEl === void 0 ? void 0 : styleEl.parentNode) === host) {
363
+ // `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.
364
+ styleNodesInDOM.delete(style);
365
+ styleEl.removeAttribute(APP_ID_ATTRIBUTE_NAME);
366
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
367
+ // This attribute is solely used for debugging purposes.
368
+ styleEl.setAttribute('ng-style-reused', '');
369
+ }
370
+ return styleEl;
371
+ }
372
+ else {
373
+ const styleEl = this.doc.createElement('style');
374
+ if (this.nonce) {
375
+ // Uses a keyed write to avoid issues with property minification.
376
+ styleEl['nonce'] = this.nonce;
377
+ }
378
+ styleEl.textContent = style;
379
+ if (this.platformIsServer) {
380
+ styleEl.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);
381
+ }
382
+ return styleEl;
383
+ }
380
384
  }
381
385
  addStyleToHost(host, style) {
382
- const styleEl = this.doc.createElement('style');
383
- styleEl.textContent = style;
386
+ var _a;
387
+ const styleEl = this.getStyleElement(host, style);
384
388
  host.appendChild(styleEl);
385
- const styleElRef = this.styleRef.get(style);
389
+ const styleRef = this.styleRef;
390
+ const styleElRef = (_a = styleRef.get(style)) === null || _a === void 0 ? void 0 : _a.elements;
386
391
  if (styleElRef) {
387
392
  styleElRef.push(styleEl);
388
393
  }
389
394
  else {
390
- this.styleRef.set(style, [styleEl]);
395
+ styleRef.set(style, { elements: [styleEl], usage: 1 });
391
396
  }
392
397
  }
393
398
  resetHostNodes() {
@@ -397,14 +402,25 @@ class DomSharedStylesHost extends SharedStylesHost {
397
402
  hostNodes.add(this.doc.head);
398
403
  }
399
404
  }
400
- DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
401
- DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost });
402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost, decorators: [{
405
+ SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.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 });
406
+ SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: SharedStylesHost });
407
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: SharedStylesHost, decorators: [{
403
408
  type: Injectable
404
409
  }], ctorParameters: function () {
405
- return [{ type: undefined, decorators: [{
410
+ return [{ type: Document, decorators: [{
406
411
  type: Inject,
407
412
  args: [DOCUMENT]
413
+ }] }, { type: undefined, decorators: [{
414
+ type: Inject,
415
+ args: [APP_ID]
416
+ }] }, { type: undefined, decorators: [{
417
+ type: Inject,
418
+ args: [CSP_NONCE]
419
+ }, {
420
+ type: Optional
421
+ }] }, { type: undefined, decorators: [{
422
+ type: Inject,
423
+ args: [PLATFORM_ID]
408
424
  }] }];
409
425
  } });
410
426
 
@@ -468,11 +484,12 @@ function decoratePreventDefault(eventHandler) {
468
484
  };
469
485
  }
470
486
  class DomRendererFactory2 {
471
- constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestory) {
487
+ constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestory, nonce) {
472
488
  this.eventManager = eventManager;
473
489
  this.sharedStylesHost = sharedStylesHost;
474
490
  this.appId = appId;
475
491
  this.removeStylesOnCompDestory = removeStylesOnCompDestory;
492
+ this.nonce = nonce;
476
493
  this.rendererByCompId = new Map();
477
494
  this.defaultRenderer = new DefaultDomRenderer2(eventManager);
478
495
  }
@@ -503,7 +520,7 @@ class DomRendererFactory2 {
503
520
  renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestory);
504
521
  break;
505
522
  case ViewEncapsulation.ShadowDom:
506
- return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type);
523
+ return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, this.nonce);
507
524
  default:
508
525
  renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestory);
509
526
  break;
@@ -519,17 +536,22 @@ class DomRendererFactory2 {
519
536
  begin() { }
520
537
  end() { }
521
538
  }
522
- DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }], target: i0.ɵɵFactoryTarget.Injectable });
523
- DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2 });
524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
539
+ DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: CSP_NONCE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
540
+ DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomRendererFactory2 });
541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomRendererFactory2, decorators: [{
525
542
  type: Injectable
526
543
  }], ctorParameters: function () {
527
- return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
544
+ return [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
528
545
  type: Inject,
529
546
  args: [APP_ID]
530
547
  }] }, { type: undefined, decorators: [{
531
548
  type: Inject,
532
549
  args: [REMOVE_STYLES_ON_COMPONENT_DESTROY]
550
+ }] }, { type: undefined, decorators: [{
551
+ type: Inject,
552
+ args: [CSP_NONCE]
553
+ }, {
554
+ type: Optional
533
555
  }] }];
534
556
  } });
535
557
  class DefaultDomRenderer2 {
@@ -672,7 +694,7 @@ function isTemplateNode(node) {
672
694
  return node.tagName === 'TEMPLATE' && node.content !== undefined;
673
695
  }
674
696
  class ShadowDomRenderer extends DefaultDomRenderer2 {
675
- constructor(eventManager, sharedStylesHost, hostEl, component) {
697
+ constructor(eventManager, sharedStylesHost, hostEl, component, nonce) {
676
698
  super(eventManager);
677
699
  this.sharedStylesHost = sharedStylesHost;
678
700
  this.hostEl = hostEl;
@@ -681,6 +703,10 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
681
703
  const styles = shimStylesContent(component.id, component.styles);
682
704
  for (const style of styles) {
683
705
  const styleEl = document.createElement('style');
706
+ if (nonce) {
707
+ // Uses a keyed write to avoid issues with property minification.
708
+ styleEl['nonce'] = nonce;
709
+ }
684
710
  styleEl.textContent = style;
685
711
  this.shadowRoot.appendChild(styleEl);
686
712
  }
@@ -763,9 +789,9 @@ class DomEventsPlugin extends EventManagerPlugin {
763
789
  return target.removeEventListener(eventName, callback);
764
790
  }
765
791
  }
766
- DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
767
- DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin });
768
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
792
+ DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
793
+ DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomEventsPlugin });
794
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomEventsPlugin, decorators: [{
769
795
  type: Injectable
770
796
  }], ctorParameters: function () {
771
797
  return [{ type: undefined, decorators: [{
@@ -944,9 +970,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
944
970
  }
945
971
  }
946
972
  }
947
- KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
948
- KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin });
949
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
973
+ KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
974
+ KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: KeyEventsPlugin });
975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: KeyEventsPlugin, decorators: [{
950
976
  type: Injectable
951
977
  }], ctorParameters: function () {
952
978
  return [{ type: undefined, decorators: [{
@@ -1115,15 +1141,9 @@ const BROWSER_MODULE_PROVIDERS = [
1115
1141
  multi: true,
1116
1142
  deps: [DOCUMENT, NgZone, PLATFORM_ID]
1117
1143
  },
1118
- { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] }, {
1119
- provide: DomRendererFactory2,
1120
- useClass: DomRendererFactory2,
1121
- deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
1122
- },
1144
+ { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
1145
+ DomRendererFactory2, SharedStylesHost, EventManager,
1123
1146
  { provide: RendererFactory2, useExisting: DomRendererFactory2 },
1124
- { provide: SharedStylesHost, useExisting: DomSharedStylesHost },
1125
- { provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
1126
- { provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
1127
1147
  { provide: XhrFactory, useClass: BrowserXhr, deps: [] },
1128
1148
  NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
1129
1149
  ];
@@ -1150,31 +1170,25 @@ class BrowserModule {
1150
1170
  * @param params An object containing an identifier for the app to transition.
1151
1171
  * The ID must match between the client and server versions of the app.
1152
1172
  * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
1173
+ *
1174
+ * @deprecated Use {@link APP_ID} instead to set the application ID.
1153
1175
  */
1154
1176
  static withServerTransition(params) {
1155
1177
  return {
1156
1178
  ngModule: BrowserModule,
1157
1179
  providers: [
1158
1180
  { provide: APP_ID, useValue: params.appId },
1159
- { provide: TRANSITION_ID, useExisting: APP_ID },
1160
- SERVER_TRANSITION_PROVIDERS,
1161
1181
  ],
1162
1182
  };
1163
1183
  }
1164
1184
  }
1165
- BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
1166
- BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1167
- BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, providers: [
1168
- ...BROWSER_MODULE_PROVIDERS,
1169
- ...TESTABILITY_PROVIDERS
1170
- ], imports: [CommonModule, ApplicationModule] });
1171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, decorators: [{
1185
+ BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
1186
+ BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1187
+ BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
1188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, decorators: [{
1172
1189
  type: NgModule,
1173
1190
  args: [{
1174
- providers: [
1175
- ...BROWSER_MODULE_PROVIDERS,
1176
- ...TESTABILITY_PROVIDERS
1177
- ],
1191
+ providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
1178
1192
  exports: [CommonModule, ApplicationModule],
1179
1193
  }]
1180
1194
  }], ctorParameters: function () {
@@ -1344,9 +1358,9 @@ class Meta {
1344
1358
  return META_KEYS_MAP[prop] || prop;
1345
1359
  }
1346
1360
  }
1347
- Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1348
- Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, decorators: [{
1361
+ Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1362
+ Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Meta, decorators: [{
1350
1364
  type: Injectable,
1351
1365
  args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
1352
1366
  }], ctorParameters: function () {
@@ -1396,9 +1410,9 @@ class Title {
1396
1410
  this._doc.title = newTitle || '';
1397
1411
  }
1398
1412
  }
1399
- Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1400
- Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1401
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, decorators: [{
1413
+ Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1414
+ Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Title, decorators: [{
1402
1416
  type: Injectable,
1403
1417
  args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
1404
1418
  }], ctorParameters: function () {
@@ -1525,10 +1539,10 @@ function disableDebugTools() {
1525
1539
  */
1526
1540
  class BrowserTransferStateModule {
1527
1541
  }
1528
- BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1529
- BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule });
1530
- BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule });
1531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1542
+ BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1543
+ BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule });
1544
+ BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule });
1545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1532
1546
  type: NgModule,
1533
1547
  args: [{}]
1534
1548
  }] });
@@ -1688,9 +1702,9 @@ class HammerGestureConfig {
1688
1702
  return mc;
1689
1703
  }
1690
1704
  }
1691
- HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1692
- HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig });
1693
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
1705
+ HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1706
+ HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGestureConfig });
1707
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGestureConfig, decorators: [{
1694
1708
  type: Injectable
1695
1709
  }] });
1696
1710
  /**
@@ -1786,9 +1800,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1786
1800
  return this._config.events.indexOf(eventName) > -1;
1787
1801
  }
1788
1802
  }
1789
- HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1790
- HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin });
1791
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1803
+ HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.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 });
1804
+ HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin });
1805
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1792
1806
  type: Injectable
1793
1807
  }], ctorParameters: function () {
1794
1808
  return [{ type: undefined, decorators: [{
@@ -1817,9 +1831,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
1817
1831
  */
1818
1832
  class HammerModule {
1819
1833
  }
1820
- HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1821
- HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule });
1822
- HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, providers: [
1834
+ HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1835
+ HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule });
1836
+ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule, providers: [
1823
1837
  {
1824
1838
  provide: EVENT_MANAGER_PLUGINS,
1825
1839
  useClass: HammerGesturesPlugin,
@@ -1828,7 +1842,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
1828
1842
  },
1829
1843
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1830
1844
  ] });
1831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, decorators: [{
1845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule, decorators: [{
1832
1846
  type: NgModule,
1833
1847
  args: [{
1834
1848
  providers: [
@@ -1876,9 +1890,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
1876
1890
  */
1877
1891
  class DomSanitizer {
1878
1892
  }
1879
- DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1880
- DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
1881
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, decorators: [{
1893
+ DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1894
+ DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
1895
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizer, decorators: [{
1882
1896
  type: Injectable,
1883
1897
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
1884
1898
  }] });
@@ -1941,9 +1955,9 @@ class DomSanitizerImpl extends DomSanitizer {
1941
1955
  return ɵbypassSanitizationTrustResourceUrl(value);
1942
1956
  }
1943
1957
  }
1944
- DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1945
- DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
1946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1958
+ DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1959
+ DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
1960
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1947
1961
  type: Injectable,
1948
1962
  args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
1949
1963
  }], ctorParameters: function () {
@@ -1961,7 +1975,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
1961
1975
  /**
1962
1976
  * @publicApi
1963
1977
  */
1964
- const VERSION = new Version('16.0.0-next.2');
1978
+ const VERSION = new Version('16.0.0-next.4');
1965
1979
 
1966
1980
  // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
1967
1981
 
@@ -1978,5 +1992,5 @@ const VERSION = new Version('16.0.0-next.2');
1978
1992
  * Generated bundle index. Do not edit.
1979
1993
  */
1980
1994
 
1981
- 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 };
1995
+ 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, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, shimStylesContent as ɵshimStyles };
1982
1996
  //# sourceMappingURL=platform-browser.mjs.map