@angular/platform-browser 8.0.0-rc.4 → 8.0.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,5 +1,5 @@
1
1
  /**
2
- * @license Angular v8.0.0-rc.4
2
+ * @license Angular v8.0.2
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -61,14 +61,14 @@ function O(t,e){"undefined"!=typeof COMPILED&&COMPILED||((n.ɵglobal.ng=n.ɵglob
61
61
  *
62
62
  * Use of this source code is governed by an MIT-style license that can be
63
63
  * found in the LICENSE file at https://angular.io/license
64
- */var I={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},R="probe",D="coreTokens";function M(t){return n.getDebugNode(t)}function P(t){return O(R,M),O(D,i({},I,function e(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}(t||[]))),function(){return M}}var L=[{provide:n.APP_INITIALIZER,useFactory:P,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],k=L,j=new n.InjectionToken("EventManagerPlugins"),x=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,o=0;o<n.length;o++){var r=n[o];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event "+t)},a([n.Injectable(),u(0,n.Inject(j)),s("design:paramtypes",[Array,n.NgZone])],t)}(),H=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var o=l().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),B=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],t)}(),U=function(t){function o(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return r(o,t),o.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var o=n._doc.createElement("style");o.textContent=t,n._styleNodes.add(e.appendChild(o))})},o.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},o.prototype.removeHost=function(t){this._hostNodes.delete(t)},o.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},o.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return l().remove(t)})},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],o)}(B),z={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},V=/%COMP%/g,F="_nghost-%COMP%",Z="_ngcontent-%COMP%";function G(t){return Z.replace(V,t)}function K(t){return F.replace(V,t)}function q(t,e,n){for(var o=0;o<e.length;o++){var r=e[o];Array.isArray(r)?q(t,r,n):(r=r.replace(V,t),n.push(r))}return n}function W(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var J=function(){function t(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new X(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new tt(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new et(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=q(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},a([n.Injectable(),u(2,n.Inject(n.APP_ID)),s("design:paramtypes",[x,U,String])],t)}(),X=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(z[e]||e,t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,o){if(o){e=o+":"+e;var r=z[o];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var o=z[n];o?t.removeAttributeNS(o,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,o,r){r&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,o,r&n.RendererStyleFlags2.Important?"important":""):t.style[e]=o},t.prototype.removeStyle=function(t,e,o){o&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){Q(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return Q(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,W(n)):this.eventManager.addEventListener(t,e,W(n))},t}(),Y="@".charCodeAt(0);function Q(t,e){if(t.charCodeAt(0)===Y)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var $,tt=function(t){function e(e,n,o,r){var i=t.call(this,e)||this;i.component=o;var a=q(r+"-"+o.id,o.styles,[]);return n.addStyles(a),i.contentAttr=G(r+"-"+o.id),i.hostAttr=K(r+"-"+o.id),i}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var o=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,o,this.contentAttr,""),o},e}(X),et=function(t){function e(e,o,r,i){var a=t.call(this,e)||this;a.sharedStylesHost=o,a.hostEl=r,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var u=q(i.id,i.styles,[]),s=0;s<u.length;s++){var c=document.createElement("style");c.textContent=u[s],a.shadowRoot.appendChild(c)}return a}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,o){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,o)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(X),nt="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},ot=nt("addEventListener"),rt=nt("removeEventListener"),it={},at="__zone_symbol__propagationStopped",ut=function(){var t="undefined"!=typeof Zone&&Zone[nt("BLACK_LISTED_EVENTS")];if(t){var e={};return t.forEach(function(t){e[t]=t}),e}}(),st=function(t){return!!ut&&ut.hasOwnProperty(t)},ct=function(t){var e=it[t.type];if(e){var n=this[e];if(n){var o=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o);for(var r=n.slice(),i=0;i<r.length&&!0!==t[at];i++){var a;(a=r[i]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o)}}}},pt=function(t){function o(n,o,r){var i=t.call(this,n)||this;return i.ngZone=o,r&&e.isPlatformServer(r)||i.patchEvent(),i}return r(o,t),o.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[at]=!0),t&&t.apply(this,arguments)}}},o.prototype.supports=function(t){return!0},o.prototype.addEventListener=function(t,e,o){var r=this,i=o;if(!t[ot]||n.NgZone.isInAngularZone()&&!st(e))t.addEventListener(e,i,!1);else{var a=it[e];a||(a=it[e]=nt("ANGULAR"+e+"FALSE"));var u=t[a],s=u&&u.length>0;u||(u=t[a]=[]);var c=st(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:c,handler:i});else{for(var p=!1,l=0;l<u.length;l++)if(u[l].handler===i){p=!0;break}p||u.push({zone:c,handler:i})}s||t[ot](e,ct,!1)}return function(){return r.removeEventListener(t,e,i)}},o.prototype.removeEventListener=function(t,e,n){var o=t[rt];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);var r=it[e],i=r&&t[r];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,u=0;u<i.length;u++)if(i[u].handler===n){a=!0,i.splice(u,1);break}a?0===i.length&&o.apply(t,[e,ct,!1]):t.removeEventListener.apply(t,[e,n,!1])},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),u(2,n.Optional()),u(2,n.Inject(n.PLATFORM_ID)),s("design:paramtypes",[Object,n.NgZone,Object])],o)}(H),lt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},ft=new n.InjectionToken("HammerGestureConfig"),dt=new n.InjectionToken("HammerLoader"),yt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},a([n.Injectable()],t)}(),ht=function(t){function o(e,n,o,r){var i=t.call(this,e)||this;return i._config=n,i.console=o,i.loader=r,i}return r(o,t),o.prototype.supports=function(t){return!(!lt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},o.prototype.addEventListener=function(t,e,n){var o=this,r=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return o.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=o.addEventListener(t,e,n))}).catch(function(){o.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var i=o._config.buildHammer(t),a=function(t){r.runGuarded(function(){n(t)})};return i.on(e,a),function(){i.off(e,a),"function"==typeof i.destroy&&i.destroy()}})},o.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),u(1,n.Inject(ft)),u(3,n.Optional()),u(3,n.Inject(dt)),s("design:paramtypes",[Object,yt,n.ɵConsole,Object])],o)}(H),mt=["alt","control","meta","shift"],gt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},vt=function(t){function o(e){return t.call(this,e)||this}var i;return r(o,t),i=o,o.prototype.supports=function(t){return null!=i.parseEventName(t)},o.prototype.addEventListener=function(t,e,n){var o=i.parseEventName(e),r=i.eventCallback(o.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return l().onAndCancel(t,o.domEventName,r)})},o.parseEventName=function(t){var e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;var o=i._normalizeKey(e.pop()),r="";if(mt.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),r+=t+".")}),r+=o,0!=e.length||0===o.length)return null;var a={};return a.domEventName=n,a.fullKey=r,a},o.getEventFullKey=function(t){var e="",n=l().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mt.forEach(function(o){o!=n&&(0,gt[o])(t)&&(e+=o+".")}),e+=n},o.eventCallback=function(t,e,n){return function(o){i.getEventFullKey(o)===t&&n.runGuarded(function(){return e(o)})}},o._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},i=a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],o)}(H),wt=function(t){function o(e){var n=t.call(this)||this;return n._doc=e,n}return r(o,t),o.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof _t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),n.ɵ_sanitizeHtml(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Et?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),n.ɵ_sanitizeStyle(e));case n.SecurityContext.SCRIPT:if(e instanceof St)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Nt||e instanceof Tt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),n.ɵ_sanitizeUrl(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Nt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},o.prototype.checkNotSafeValue=function(t,e){if(t instanceof bt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},o.prototype.bypassSecurityTrustHtml=function(t){return new _t(t)},o.prototype.bypassSecurityTrustStyle=function(t){return new Et(t)},o.prototype.bypassSecurityTrustScript=function(t){return new St(t)},o.prototype.bypassSecurityTrustUrl=function(t){return new Tt(t)},o.prototype.bypassSecurityTrustResourceUrl=function(t){return new Nt(t)},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],o)}($=function $(){}),bt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(bt),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(bt),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(bt),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(bt),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(bt),Ct=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:It,multi:!0},{provide:e.PlatformLocation,useClass:S,deps:[e.DOCUMENT]},{provide:e.DOCUMENT,useFactory:Dt,deps:[]}],At=[{provide:n.Sanitizer,useExisting:$},{provide:$,useClass:wt,deps:[e.DOCUMENT]}],Ot=n.createPlatformFactory(n.platformCore,"browser",Ct);function It(){b.makeCurrent(),A.init()}function Rt(){return new n.ErrorHandler}function Dt(){return document}var Mt=[At,{provide:n.ɵAPP_ROOT,useValue:!0},{provide:n.ErrorHandler,useFactory:Rt,deps:[]},{provide:j,useClass:pt,multi:!0,deps:[e.DOCUMENT,n.NgZone,n.PLATFORM_ID]},{provide:j,useClass:vt,multi:!0,deps:[e.DOCUMENT]},{provide:j,useClass:ht,multi:!0,deps:[e.DOCUMENT,ft,n.ɵConsole,[new n.Optional,dt]]},{provide:ft,useClass:yt,deps:[]},{provide:J,useClass:J,deps:[x,U,n.APP_ID]},{provide:n.RendererFactory2,useExisting:J},{provide:B,useExisting:U},{provide:U,useClass:U,deps:[e.DOCUMENT]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone]},{provide:x,useClass:x,deps:[j,n.NgZone]},k],Pt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var o;return o=t,t.withServerTransition=function(t){return{ngModule:o,providers:[{provide:n.APP_ID,useValue:t.appId},{provide:T,useExisting:n.APP_ID},C]}},o=a([n.NgModule({providers:Mt,exports:[e.CommonModule,n.ApplicationModule]}),u(0,n.Optional()),u(0,n.SkipSelf()),u(0,n.Inject(o)),s("design:paramtypes",[Object])],t)}();function Lt(){return new kt(n.Δinject(e.DOCUMENT))}var kt=function(){function t(t){this._doc=t,this._dom=l()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,o){return o&&t.push(n._getOrCreateElement(o,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),o=this.getTag(n);if(o&&this._containsAttributes(t,o))return o}var r=this._dom.createElement("meta");this._setMetaElementAttributes(t,r);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,r),r},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(o){return n._dom.setAttribute(e,o,t[o])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(o){return n._dom.getAttribute(e,o)===t[o]})},t.ngInjectableDef=n.ΔdefineInjectable({factory:Lt,token:t,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:Lt,deps:[]}),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],t)}();function jt(){return new xt(n.Δinject(e.DOCUMENT))}var xt=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return l().getTitle(this._doc)},t.prototype.setTitle=function(t){l().setTitle(this._doc,t)},t.ngInjectableDef=n.ΔdefineInjectable({factory:jt,token:t,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:jt,deps:[]}),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],t)}(),Ht="undefined"!=typeof window&&window||{},Bt=function Bt(t,e){this.msPerTick=t,this.numTicks=e},Ut=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=Ht.console.profile;e&&n&&Ht.console.profile("Change Detection");for(var o=l().performanceNow(),r=0;r<5||l().performanceNow()-o<500;)this.appRef.tick(),r++;var i=l().performanceNow();e&&n&&Ht.console.profileEnd("Change Detection");var a=(i-o)/r;return Ht.console.log("ran "+r+" change detection cycles"),Ht.console.log(a.toFixed(2)+" ms per check"),new Bt(a,r)},t}(),zt=function(){function t(){this.store={},this.onSerializeCallbacks={}}var e;return e=t,t.init=function(t){var n=new e;return n.store=t,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},e=a([n.Injectable()],t)}();
64
+ */var I={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},R="probe",D="coreTokens";function M(t){return n.getDebugNode(t)}function P(t){return O(R,M),O(D,i({},I,function e(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}(t||[]))),function(){return M}}var L=[{provide:n.APP_INITIALIZER,useFactory:P,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],k=L,j=new n.InjectionToken("EventManagerPlugins"),x=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,o=0;o<n.length;o++){var r=n[o];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event "+t)},a([n.Injectable(),u(0,n.Inject(j)),s("design:paramtypes",[Array,n.NgZone])],t)}(),H=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var o=l().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),B=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],t)}(),U=function(t){function o(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return r(o,t),o.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var o=n._doc.createElement("style");o.textContent=t,n._styleNodes.add(e.appendChild(o))})},o.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},o.prototype.removeHost=function(t){this._hostNodes.delete(t)},o.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},o.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return l().remove(t)})},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],o)}(B),z={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},V=/%COMP%/g,F="_nghost-%COMP%",Z="_ngcontent-%COMP%";function G(t){return Z.replace(V,t)}function K(t){return F.replace(V,t)}function q(t,e,n){for(var o=0;o<e.length;o++){var r=e[o];Array.isArray(r)?q(t,r,n):(r=r.replace(V,t),n.push(r))}return n}function W(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var J=function(){function t(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new X(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new tt(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new et(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=q(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},a([n.Injectable(),u(2,n.Inject(n.APP_ID)),s("design:paramtypes",[x,U,String])],t)}(),X=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(z[e]||e,t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,o){if(o){e=o+":"+e;var r=z[o];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var o=z[n];o?t.removeAttributeNS(o,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,o,r){r&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,o,r&n.RendererStyleFlags2.Important?"important":""):t.style[e]=o},t.prototype.removeStyle=function(t,e,o){o&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){Q(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return Q(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,W(n)):this.eventManager.addEventListener(t,e,W(n))},t}(),Y="@".charCodeAt(0);function Q(t,e){if(t.charCodeAt(0)===Y)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var $,tt=function(t){function e(e,n,o,r){var i=t.call(this,e)||this;i.component=o;var a=q(r+"-"+o.id,o.styles,[]);return n.addStyles(a),i.contentAttr=G(r+"-"+o.id),i.hostAttr=K(r+"-"+o.id),i}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var o=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,o,this.contentAttr,""),o},e}(X),et=function(t){function e(e,o,r,i){var a=t.call(this,e)||this;a.sharedStylesHost=o,a.hostEl=r,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var u=q(i.id,i.styles,[]),s=0;s<u.length;s++){var c=document.createElement("style");c.textContent=u[s],a.shadowRoot.appendChild(c)}return a}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,o){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,o)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(X),nt="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},ot=nt("addEventListener"),rt=nt("removeEventListener"),it={},at="__zone_symbol__propagationStopped",ut=function(){var t="undefined"!=typeof Zone&&Zone[nt("BLACK_LISTED_EVENTS")];if(t){var e={};return t.forEach(function(t){e[t]=t}),e}}(),st=function(t){return!!ut&&ut.hasOwnProperty(t)},ct=function(t){var e=it[t.type];if(e){var n=this[e];if(n){var o=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o);for(var r=n.slice(),i=0;i<r.length&&!0!==t[at];i++){var a;(a=r[i]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o)}}}},pt=function(t){function o(n,o,r){var i=t.call(this,n)||this;return i.ngZone=o,r&&e.isPlatformServer(r)||i.patchEvent(),i}return r(o,t),o.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[at]=!0),t&&t.apply(this,arguments)}}},o.prototype.supports=function(t){return!0},o.prototype.addEventListener=function(t,e,o){var r=this,i=o;if(!t[ot]||n.NgZone.isInAngularZone()&&!st(e))t.addEventListener(e,i,!1);else{var a=it[e];a||(a=it[e]=nt("ANGULAR"+e+"FALSE"));var u=t[a],s=u&&u.length>0;u||(u=t[a]=[]);var c=st(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:c,handler:i});else{for(var p=!1,l=0;l<u.length;l++)if(u[l].handler===i){p=!0;break}p||u.push({zone:c,handler:i})}s||t[ot](e,ct,!1)}return function(){return r.removeEventListener(t,e,i)}},o.prototype.removeEventListener=function(t,e,n){var o=t[rt];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);var r=it[e],i=r&&t[r];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,u=0;u<i.length;u++)if(i[u].handler===n){a=!0,i.splice(u,1);break}a?0===i.length&&o.apply(t,[e,ct,!1]):t.removeEventListener.apply(t,[e,n,!1])},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),u(2,n.Optional()),u(2,n.Inject(n.PLATFORM_ID)),s("design:paramtypes",[Object,n.NgZone,Object])],o)}(H),lt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},ft=new n.InjectionToken("HammerGestureConfig"),dt=new n.InjectionToken("HammerLoader"),yt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},a([n.Injectable()],t)}(),ht=function(t){function o(e,n,o,r){var i=t.call(this,e)||this;return i._config=n,i.console=o,i.loader=r,i}return r(o,t),o.prototype.supports=function(t){return!(!lt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},o.prototype.addEventListener=function(t,e,n){var o=this,r=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return o.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=o.addEventListener(t,e,n))}).catch(function(){o.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var i=o._config.buildHammer(t),a=function(t){r.runGuarded(function(){n(t)})};return i.on(e,a),function(){i.off(e,a),"function"==typeof i.destroy&&i.destroy()}})},o.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),u(1,n.Inject(ft)),u(3,n.Optional()),u(3,n.Inject(dt)),s("design:paramtypes",[Object,yt,n.ɵConsole,Object])],o)}(H),mt=["alt","control","meta","shift"],gt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},vt=function(t){function o(e){return t.call(this,e)||this}var i;return r(o,t),i=o,o.prototype.supports=function(t){return null!=i.parseEventName(t)},o.prototype.addEventListener=function(t,e,n){var o=i.parseEventName(e),r=i.eventCallback(o.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return l().onAndCancel(t,o.domEventName,r)})},o.parseEventName=function(t){var e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;var o=i._normalizeKey(e.pop()),r="";if(mt.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),r+=t+".")}),r+=o,0!=e.length||0===o.length)return null;var a={};return a.domEventName=n,a.fullKey=r,a},o.getEventFullKey=function(t){var e="",n=l().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mt.forEach(function(o){o!=n&&(0,gt[o])(t)&&(e+=o+".")}),e+=n},o.eventCallback=function(t,e,n){return function(o){i.getEventFullKey(o)===t&&n.runGuarded(function(){return e(o)})}},o._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},i=a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],o)}(H),wt=function(t){function o(e){var n=t.call(this)||this;return n._doc=e,n}return r(o,t),o.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof _t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),n.ɵ_sanitizeHtml(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Et?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),n.ɵ_sanitizeStyle(e));case n.SecurityContext.SCRIPT:if(e instanceof St)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Nt||e instanceof Tt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),n.ɵ_sanitizeUrl(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Nt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},o.prototype.checkNotSafeValue=function(t,e){if(t instanceof bt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},o.prototype.bypassSecurityTrustHtml=function(t){return new _t(t)},o.prototype.bypassSecurityTrustStyle=function(t){return new Et(t)},o.prototype.bypassSecurityTrustScript=function(t){return new St(t)},o.prototype.bypassSecurityTrustUrl=function(t){return new Tt(t)},o.prototype.bypassSecurityTrustResourceUrl=function(t){return new Nt(t)},a([n.Injectable(),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],o)}($=function $(){}),bt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(bt),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(bt),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(bt),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(bt),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(bt),Ct=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:It,multi:!0},{provide:e.PlatformLocation,useClass:S,deps:[e.DOCUMENT]},{provide:e.DOCUMENT,useFactory:Dt,deps:[]}],At=[{provide:n.Sanitizer,useExisting:$},{provide:$,useClass:wt,deps:[e.DOCUMENT]}],Ot=n.createPlatformFactory(n.platformCore,"browser",Ct);function It(){b.makeCurrent(),A.init()}function Rt(){return new n.ErrorHandler}function Dt(){return document}var Mt=[At,{provide:n.ɵAPP_ROOT,useValue:!0},{provide:n.ErrorHandler,useFactory:Rt,deps:[]},{provide:j,useClass:pt,multi:!0,deps:[e.DOCUMENT,n.NgZone,n.PLATFORM_ID]},{provide:j,useClass:vt,multi:!0,deps:[e.DOCUMENT]},{provide:j,useClass:ht,multi:!0,deps:[e.DOCUMENT,ft,n.ɵConsole,[new n.Optional,dt]]},{provide:ft,useClass:yt,deps:[]},{provide:J,useClass:J,deps:[x,U,n.APP_ID]},{provide:n.RendererFactory2,useExisting:J},{provide:B,useExisting:U},{provide:U,useClass:U,deps:[e.DOCUMENT]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone]},{provide:x,useClass:x,deps:[j,n.NgZone]},k],Pt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var o;return o=t,t.withServerTransition=function(t){return{ngModule:o,providers:[{provide:n.APP_ID,useValue:t.appId},{provide:T,useExisting:n.APP_ID},C]}},o=a([n.NgModule({providers:Mt,exports:[e.CommonModule,n.ApplicationModule]}),u(0,n.Optional()),u(0,n.SkipSelf()),u(0,n.Inject(o)),s("design:paramtypes",[Object])],t)}();function Lt(){return new kt(n.ɵɵinject(e.DOCUMENT))}var kt=function(){function t(t){this._doc=t,this._dom=l()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,o){return o&&t.push(n._getOrCreateElement(o,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),o=this.getTag(n);if(o&&this._containsAttributes(t,o))return o}var r=this._dom.createElement("meta");this._setMetaElementAttributes(t,r);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,r),r},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(o){return n._dom.setAttribute(e,o,t[o])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(o){return n._dom.getAttribute(e,o)===t[o]})},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:Lt,token:t,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:Lt,deps:[]}),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],t)}();function jt(){return new xt(n.ɵɵinject(e.DOCUMENT))}var xt=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return l().getTitle(this._doc)},t.prototype.setTitle=function(t){l().setTitle(this._doc,t)},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:jt,token:t,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:jt,deps:[]}),u(0,n.Inject(e.DOCUMENT)),s("design:paramtypes",[Object])],t)}(),Ht="undefined"!=typeof window&&window||{},Bt=function Bt(t,e){this.msPerTick=t,this.numTicks=e},Ut=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=Ht.console.profile;e&&n&&Ht.console.profile("Change Detection");for(var o=l().performanceNow(),r=0;r<5||l().performanceNow()-o<500;)this.appRef.tick(),r++;var i=l().performanceNow();e&&n&&Ht.console.profileEnd("Change Detection");var a=(i-o)/r;return Ht.console.log("ran "+r+" change detection cycles"),Ht.console.log(a.toFixed(2)+" ms per check"),new Bt(a,r)},t}(),zt=function(){function t(){this.store={},this.onSerializeCallbacks={}}var e;return e=t,t.init=function(t){var n=new e;return n.store=t,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},e=a([n.Injectable()],t)}();
65
65
  /**
66
66
  * @license
67
67
  * Copyright Google Inc. All Rights Reserved.
68
68
  *
69
69
  * Use of this source code is governed by an MIT-style license that can be
70
70
  * found in the LICENSE file at https://angular.io/license
71
- */function Vt(t,e){var n=t.getElementById(e+"-state"),o={};if(n&&n.textContent)try{o=JSON.parse(function r(t){var e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return zt.init(o)}var Ft=function(){return a([n.NgModule({providers:[{provide:zt,useFactory:Vt,deps:[e.DOCUMENT,n.APP_ID]}]})],function t(){})}(),Zt=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&l().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),Gt=new n.Version("8.0.0-rc.4");
71
+ */function Vt(t,e){var n=t.getElementById(e+"-state"),o={};if(n&&n.textContent)try{o=JSON.parse(function r(t){var e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return zt.init(o)}var Ft=function(){return a([n.NgModule({providers:[{provide:zt,useFactory:Vt,deps:[e.DOCUMENT,n.APP_ID]}]})],function t(){})}(),Zt=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&l().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),Gt=new n.Version("8.0.2");
72
72
  /**
73
73
  * @license
74
74
  * Copyright Google Inc. All Rights Reserved.