-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-es5.3f40e0aefd9cd847bd91.js
1 lines (1 loc) · 164 KB
/
main-es5.3f40e0aefd9cd847bd91.js
1
var __extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);var o=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function s(e){setTimeout((function(){throw e}))}var a={closed:!0,next:function(e){},error:function(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;s(e)},complete:function(){}},u=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);var d,f=c,p=((d=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,o=this._parents,i=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,c=o?o.length:0;n;)n.remove(this),n=++a<c&&o[a]||null;if(r(i))try{i.call(this)}catch(p){t=!0,e=p instanceof f?h(p.errors):[p]}if(u(s))for(a=-1,c=s.length;++a<c;){var d=s[a];if(l(d))try{d.unsubscribe()}catch(p){t=!0,e=e||[],p instanceof f?e=e.concat(h(p.errors)):e.push(p)}}if(t)throw new f(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e}()).EMPTY=function(e){return e.closed=!0,e}(new d),d);function h(e){return e.reduce((function(e,t){return e.concat(t instanceof f?t.errors:t)}),[])}var v="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(e){function t(n,r,o){var i=this;switch((i=e.call(this)||this).syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=a;break;case 1:if(!n){i.destination=a;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return __extends(t,e),t.prototype[v]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(p),g=function(e){function t(t,n,o,i){var s,u=this;(u=e.call(this)||this)._parentSubscriber=t;var l=u;return r(n)?s=n:n&&(s=n.next,o=n.error,i=n.complete,n!==a&&(r((l=Object.create(n)).unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=s,u._error=o,u._complete=i,u}return __extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=i.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;s(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(s(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(y),m="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}var b,w=((b=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=function(e,t,n){if(e){if(e instanceof y)return e;if(e[v])return e[v]()}return e||t||n?new y(e,t,n):new y(a)}(e,t,n);if(o.add(r?r.call(o,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),i.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r)return!1;e=n&&n instanceof y?n:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=C(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(n){r(n),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[m]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this:((e=t)?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:_)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=C(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e}()).create=function(e){return new b(e)},b);function C(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}E.prototype=Object.create(Error.prototype);var x,k=E,T=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).subject=t,r.subscriber=n,r.closed=!1,r}return __extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(p),I=function(e){function t(t){var n=this;return(n=e.call(this,t)||this).destination=t,n}return __extends(t,e),t}(y),S=((x=function(e){function t(){var t=this;return(t=e.call(this)||this).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return __extends(t,e),t.prototype[v]=function(){return new I(this)},t.prototype.lift=function(e){var t=new N(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new k;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new k;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new k;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new k;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new k;return this.hasError?(e.error(this.thrownError),p.EMPTY):this.isStopped?(e.complete(),p.EMPTY):(this.observers.push(e),new T(this,e))},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t}(w)).create=function(e,t){return new N(e,t)},x),N=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).destination=t,r.source=n,r}return __extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):p.EMPTY},t}(S),A=function(e){function t(t,n,r){var o=this;return(o=e.call(this)||this).parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return __extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(y),O=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}};var D="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";var P=function(e){if(e instanceof w)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[m])return t=e,function(e){var n=t[m]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)};var t,n,r,o;if((n=e)&&"number"==typeof n.length&&"function"!=typeof n)return O(e);if(function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}(e))return r=e,function(e){return r.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,s),e};if(e&&"function"==typeof e[D])return o=e,function(e){for(var t=o[D]();;){var n=t.next();if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof t.return&&e.add((function(){t.return&&t.return()})),e};var i=l(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")},R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(y),M=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new j(e,this.project,this.thisArg))},e}(),j=function(e){function t(t,n,r){var o=this;return(o=e.call(this,t)||this).project=n,o.count=0,o.thisArg=r||o,o}return __extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(y);function V(e,t){return new w(t?function(n){var r=new p,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:O(e))}var F=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new H(e,this.project,this.concurrent))},e}(),H=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=this;return(o=e.call(this,t)||this).project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return __extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r,o,i,s,a,u=new A(this,void 0,void 0);this.destination.add(u),r=this,o=e,i=t,s=n,void 0===(a=u)&&(a=new A(r,i,s)),a.closed||P(o)(a)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(R);function L(e){return e}function B(){return function(e){return e.lift(new z(e))}}var z=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new U(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),U=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).connectable=n,r}return __extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(y),Z=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return __extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new p).add(this.source.subscribe(new q(this.getSubject(),this))),e.closed?(this._connection=null,e=p.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return B()(this)},t}(w).prototype,Q={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Z._subscribe},_isComplete:{value:Z._isComplete,writable:!0},getSubject:{value:Z.getSubject},connect:{value:Z.connect},refCount:{value:Z.refCount}},q=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).connectable=n,r}return __extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(I);function W(){return new S}var G="__parameters__";function K(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,t);for(var o in r)this[o]=r[o]}}}(t);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof o)return r.apply(this,e),this;var n=new(o.bind.apply(o,[void 0].concat(e)));return i.annotation=n,i;function i(e,t,r){for(var o=e.hasOwnProperty(G)?e[G]:Object.defineProperty(e,G,{value:[]})[G];o.length<=r;)o.push(null);return(o[r]=o[r]||[]).push(n),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}var J=K("Inject",(function(e){return{token:e}})),Y=K("Optional"),$=K("Self"),X=K("SkipSelf"),ee=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function te(e){for(var t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function ne(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function re(e){var t=e[oe];return t&&t.token===e?t:null}var oe=te({ngInjectableDef:te});function ie(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}var se=te({__forward_ref__:te});function ae(e){return e.__forward_ref__=ae,e.toString=function(){return ie(this())},e}function ue(e){var t=e;return"function"==typeof t&&t.hasOwnProperty(se)&&t.__forward_ref__===ae?t():e}var le="undefined"!=typeof globalThis&&globalThis,ce="undefined"!=typeof window&&window,de="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fe="undefined"!=typeof global&&global,pe=le||fe||ce||de,he=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=ne({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),ve=new he("INJECTOR",-1),ye=new Object,ge=/\n/gm,me="\u0275",_e="__source",be=te({provide:String,useValue:te}),we=void 0;function Ce(e){var t=we;return we=e,t}var Ee=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=ye),t===ye){var n=new Error("NullInjectorError: No provider for "+ie(e)+"!");throw n.name="NullInjectorError",n}return t},e}();function xe(e,t,n,r){void 0===r&&(r=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==me?e.substr(2):e;var o=ie(t);if(t instanceof Array)o=t.map(ie).join(" -> ");else if("object"==typeof t){var i=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+e.replace(ge,"\n ")}var ke=function(){},Te=function(){};function Ie(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Se(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Ne=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Ae=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pe),Oe="ngDebugContext",De="ngOriginalError",Pe="ngErrorLogger";function Re(e){return e[Oe]}function Me(e){return e[De]}function je(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,t)}var Ve=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Pe]||je}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Re(e)?Re(e):this._findContext(Me(e)):null},e.prototype._findOriginalError=function(e){for(var t=Me(e);t&&Me(t);)t=Me(t);return t},e}(),Fe=!0,He=!1;function Le(){return He=!0,Fe}var Be=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var o=e.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},e}(),ze=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ue=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ze(e){return(e=String(e)).match(ze)||e.match(Ue)?e:(Le()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function Qe(e){for(var t={},n=0,r=e.split(",");n<r.length;n++){t[r[n]]=!0}return t}function qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}var We,Ge=Qe("area,br,col,hr,img,wbr"),Ke=Qe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Je=Qe("rp,rt"),Ye=qe(Je,Ke),$e=qe(Ge,qe(Ke,Qe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),qe(Je,Qe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ye),Xe=Qe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),et=Qe("srcset"),tt=qe(Xe,et,Qe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Qe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),nt=Qe("script,style,template"),rt=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t=e.nodeName.toLowerCase();if(!$e.hasOwnProperty(t))return this.sanitizedSomething=!0,!nt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,r=e.attributes,o=0;o<r.length;o++){var i=r.item(o),s=i.name,a=s.toLowerCase();if(tt.hasOwnProperty(a)){var u=i.value;Xe[a]&&(u=Ze(u)),et[a]&&(n=u,u=(n=String(n)).split(",").map((function(e){return Ze(e.trim())})).join(", ")),this.buf.push(" ",s,'="',st(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();$e.hasOwnProperty(t)&&!Ge.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(st(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),ot=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,it=/([^\#-~ |!])/g;function st(e){return e.replace(/&/g,"&").replace(ot,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(it,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function at(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ut=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),lt=function(){},ct=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),dt=/^url\(([^)]+)\)$/,ft=/([A-Z])/g;function pt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var ht=function(){var e=function(){};return e.__NG_ELEMENT_ID__=function(){return vt()},e}(),vt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},yt=new he("The presence of this token marks an injector as being the root injector."),gt=function(e,t,n){return new Et(e,t,n)},mt=function(){var e=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?gt(e,t,""):gt(e.providers,e.parent,e.name||"")},e}();return e.THROW_IF_NOT_FOUND=ye,e.NULL=new Ee,e.ngInjectableDef=ne({token:e,providedIn:"any",factory:function(){return e=ve,void 0===t&&(t=ee.Default),function(e,t){if(void 0===t&&(t=ee.Default),void 0===we)throw new Error("inject() must be called from an injection context");return null===we?function(e,t,n){var r=re(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ee.Optional)return null;throw new Error("Injector: NOT_FOUND ["+ie(e)+"]")}(e,0,t):we.get(e,t&ee.Optional?null:void 0,t)}(e,t);var e,t}}),e.__NG_ELEMENT_ID__=-1,e}(),_t=function(e){return e},bt=[],wt=_t,Ct=function(){return Array.prototype.slice.call(arguments)},Et=function(){function e(e,t,n){void 0===t&&(t=mt.NULL),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(mt,{token:mt,fn:_t,deps:bt,value:this,useNew:!1}),r.set(ve,{token:ve,fn:_t,deps:bt,value:this,useNew:!1}),function e(t,n){if(n)if((n=ue(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw kt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw kt("Unexpected provider",n);var o=ue(n.provide),i=function(e){var t=function(e){var t=bt,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var o=6,i=ue(n[r]);if(i instanceof Array)for(var s=0,a=i;s<a.length;s++){var u=a[s];u instanceof Y||u==Y?o|=1:u instanceof X||u==X?o&=-3:u instanceof $||u==$?o&=-5:i=u instanceof J?u.token:ue(u)}t.push({token:i,options:o})}}else if(e.useExisting)t=[{token:ue(e.useExisting),options:6}];else if(!(n||be in e))throw kt("'deps' required",e);return t}(e),n=_t,r=bt,o=!1,i=ue(e.provide);if(be in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)o=!0,n=ue(e.useClass);else{if("function"!=typeof i)throw kt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);o=!0,n=i}return{deps:t,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var s=t.get(o);if(s){if(s.fn!==Ct)throw xt(o)}else t.set(o,s={token:n.provide,deps:[],useNew:!1,fn:Ct,value:bt});s.deps.push({token:o=n,options:6})}var a=t.get(o);if(a&&a.fn==Ct)throw xt(o);t.set(o,i)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=ee.Default);var r=this._records.get(e);try{return function e(t,n,r,o,i,s){try{return function(t,n,r,o,i,s){var a;if(!n||s&ee.SkipSelf)s&ee.Self||(a=o.get(t,i,ee.Default));else{if((a=n.value)==wt)throw Error("\u0275Circular dependency");if(a===bt){n.value=wt;var u=n.useNew,l=n.fn,c=n.deps,d=bt;if(c.length){d=[];for(var f=0;f<c.length;f++){var p=c[f],h=p.options,v=2&h?r.get(p.token):void 0;d.push(e(p.token,v,r,v||4&h?o:mt.NULL,1&h?null:mt.THROW_IF_NOT_FOUND,ee.Default))}}n.value=a=u?new(l.bind.apply(l,[void 0].concat(d))):l.apply(void 0,d)}}return a}(t,n,r,o,i,s)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==wt&&(n.value=bt),a}}(e,r,this._records,this.parent,t,n)}catch(o){return function(e,t,n,r){var o=e.ngTempTokenPath;throw t[_e]&&o.unshift(t[_e]),e.message=xe("\n"+e.message,o,"StaticInjectorError",r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(o,e,0,this.source)}},e.prototype.toString=function(){var e=[];return this._records.forEach((function(t,n){return e.push(ie(n))})),"StaticInjector["+e.join(", ")+"]"},e}();function xt(e){return kt("Cannot mix multi providers and regular providers",e)}function kt(e,t){return new Error(xe(e,t,"StaticInjectorError"))}var Tt=null;function It(){if(!Tt){var e=pe.Symbol;if(e&&e.iterator)Tt=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Tt=r)}}return Tt}function St(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Nt(e,t){var n=Ot(e),r=Ot(t);return n&&r?function(e,t,n){for(var r=e[It()](),o=t[It()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(e,t,Nt):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||St(e,t)}var At=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}();function Ot(e){return!!Dt(e)&&(Array.isArray(e)||!(e instanceof Map)&&It()in e)}function Dt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Pt(e){return!!e&&"function"==typeof e.then}var Rt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),Mt=function(){},jt=function(){};function Vt(e){var t=Error("No component factory found for "+ie(e)+". Did you add it to @NgModule.entryComponents?");return t[Ft]=e,t}var Ft="ngComponent",Ht=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw Vt(e)},e}(),Lt=function(){var e=function(){};return e.NULL=new Ht,e}(),Bt=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var o=e[r];this._factories.set(o.componentType,o)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Vt(e);return new zt(t,this._ngModule)},e}(),zt=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return __extends(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(jt);function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var Zt=function(){var e=function(e){this.nativeElement=e};return e.__NG_ELEMENT_ID__=function(){return Qt(e)},e}(),Qt=Ut,qt=function(){},Wt=function(){},Gt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Kt=function(){var e=function(){};return e.__NG_ELEMENT_ID__=function(){return Jt()},e}(),Jt=Ut,Yt=new function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}("8.2.13"),$t=function(){function e(){}return e.prototype.supports=function(e){return Ot(e)},e.prototype.create=function(e){return new en(e)},e}(),Xt=function(e,t){return t},en=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Xt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<on(n,r,o)?t:n,s=on(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,l=a-r;if(u!=l){for(var c=0;c<u;c++){var d=c<o.length?o[c]:o[c]=0,f=d+c;l<=f&&f<u&&(o[c]=d+1)}o[i.previousIndex]=l-u}}s!==a&&e(i,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!Ot(e))throw new Error("Error trying to diff '"+ie(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)o=this._trackByFn(a,r=e[a]),null!==i&&St(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,a)),St(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,a),s=!0),i=i._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,o=e[It()]();!(r=o.next()).done;)t(r.value)}(e,(function(e){o=t._trackByFn(n,e),null!==i&&St(i.trackById,o)?(s&&(i=t._verifyReinsertion(i,e,o,n)),St(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),s=!0),i=i._next,n++})),this.length=n;return this._truncate(i),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(St(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(St(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new tn(t,n),o,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new rn),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new rn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),tn=function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},nn=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&St(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),rn=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new nn,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function on(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var sn=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Dt(e)},e.prototype.create=function(){return new an},e}(),an=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Dt(e)))throw new Error("Error trying to diff '"+ie(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new un(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){St(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))},e}(),un=function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},ln=function(){var e=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new X,new Y]]}},e.prototype.find=function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e}();return e.ngInjectableDef=ne({token:e,providedIn:"root",factory:function(){return new e([new $t])}}),e}(),cn=function(){var e=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new X,new Y]]}},e.prototype.find=function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}();return e.ngInjectableDef=ne({token:e,providedIn:"root",factory:function(){return new e([new sn])}}),e}(),dn=[new sn],fn=new ln([new $t]),pn=new cn(dn),hn=function(){var e=function(){};return e.__NG_ELEMENT_ID__=function(){return vn(e,Zt)},e}(),vn=Ut,yn=function(){var e=function(){};return e.__NG_ELEMENT_ID__=function(){return gn(e,Zt)},e}(),gn=Ut;function mn(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return _n(n,t),n}(o,e)}function _n(e,t){e[Oe]=t,e[Pe]=t.logError.bind(t)}function bn(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function wn(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Cn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function En(e,t){return e.nodes[t]}function xn(e,t){return e.nodes[t]}function kn(e,t){return e.nodes[t]}function Tn(e,t){return e.nodes[t]}function In(e,t){return e.nodes[t]}var Sn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Nn=function(){},An=new Map;function On(e){var t=An.get(e);return t||(t=ie(e)+"_"+An.size,An.set(e,t)),t}var Dn="$$undefined",Pn="$$empty";function Rn(e){return{id:Dn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Mn=0;function jn(e,t,n,r){return!(!(2&e.state)&&St(e.oldValues[t.bindingIndex+n],r))}function Vn(e,t,n,r){return!!jn(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Fn(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!Nt(o,r)){var i=t.bindings[n].name;throw mn(Sn.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function Hn(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Ln(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Bn(e,t,n,r){try{return Hn(33554432&e.def.nodes[t].flags?xn(e,t).componentView:e),Sn.handleEvent(e,t,n,r)}catch(o){e.root.errorHandler.handleError(o)}}function zn(e){return e.parent?xn(e.parent,e.parentNodeDef.nodeIndex):null}function Un(e){return e.parent?e.parentNodeDef.parent:null}function Zn(e,t){switch(201347067&t.flags){case 1:return xn(e,t.nodeIndex).renderElement;case 2:return En(e,t.nodeIndex).renderText}}function Qn(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function qn(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Wn(e){var t={},n=0,r={};return e&&e.forEach((function(e){var o=e[0],i=e[1];"number"==typeof o?(t[o]=i,n|=function(e){return 1<<e%32}(o)):r[o]=i})),{matchedQueries:t,references:r,matchedQueryIds:n}}function Gn(e,t){return e.map((function(e){var n,r;return Array.isArray(e)?(r=e[0],n=e[1]):(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,_e,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:On(n)}}))}function Kn(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ne.Native?xn(e,n.renderParent.nodeIndex).renderElement:void 0:t}var Jn=new WeakMap;function Yn(e){var t=Jn.get(e);return t||((t=e((function(){return Nn}))).factory=e,Jn.set(e,t)),t}function $n(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(Zn(e,e.def.lastRenderRootNode))),Xn(e,t,0,e.def.nodes.length-1,n,r,o)}function Xn(e,t,n,r,o,i,s){for(var a=n;a<=r;a++){var u=e.def.nodes[a];11&u.flags&&tr(e,u,t,o,i,s),a+=u.childCount}}function er(e,t,n,r,o,i){for(var s=e;s&&!Qn(s);)s=s.parent;for(var a=s.parent,u=Un(s),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var d=a.def.nodes[c];d.ngContentIndex===t&&tr(a,d,n,r,o,i),c+=d.childCount}if(!a.parent){var f=e.root.projectableNodes[t];if(f)for(c=0;c<f.length;c++)nr(e,f[c],n,r,o,i)}}function tr(e,t,n,r,o,i){if(8&t.flags)er(e,t.ngContent.index,n,r,o,i);else{var s=Zn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&nr(e,s,n,r,o,i),32&t.bindingFlags&&nr(xn(e,t.nodeIndex).componentView,s,n,r,o,i)):nr(e,s,n,r,o,i),16777216&t.flags)for(var a=xn(e,t.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)$n(a[u],n,r,o,i);1&t.flags&&!t.element.name&&Xn(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function nr(e,t,n,r,o,i){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,o);break;case 3:s.removeChild(r,t);break;case 0:i.push(t)}}var rr=/^:([^:]+):(.+)$/;function or(e){if(":"===e[0]){var t=e.match(rr);return[t[1],t[2]]}return["",e]}function ir(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}var sr=new Object,ar=On(mt),ur=On(ve),lr=On(ke);function cr(e,t,n,r){return n=ue(n),{index:-1,deps:Gn(r,ie(t)),flags:e,token:t,value:n}}function dr(e,t,n){void 0===n&&(n=mt.THROW_IF_NOT_FOUND);var r,o,i=Ce(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var s=t.tokenKey;switch(s){case ar:case ur:case lr:return e}var a,u=e._def.providersByKey[s];if(u){var l=e._providers[u.index];return void 0===l&&(l=e._providers[u.index]=fr(e,u)),l===sr?void 0:l}if((a=re(t.token))&&(r=e,null!=(o=a).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(r,o.providedIn)||"root"===o.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:t.token},e._providers[c]=sr,e._providers[c]=fr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ce(i)}}function fr(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(dr(e,n[0]));case 2:return new t(dr(e,n[0]),dr(e,n[1]));case 3:return new t(dr(e,n[0]),dr(e,n[1]),dr(e,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=dr(e,n[i]);return new(t.bind.apply(t,[void 0].concat(o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(dr(e,n[0]));case 2:return t(dr(e,n[0]),dr(e,n[1]));case 3:return t(dr(e,n[0]),dr(e,n[1]),dr(e,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=dr(e,n[i]);return t.apply(void 0,o)}}(e,t.value,t.deps);break;case 2048:n=dr(e,t.deps[0]);break;case 256:n=t.value}return n===sr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?sr:n}function pr(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Se(n,t),Sn.dirtyParentQueries(r),vr(r),r}function hr(e,t,n){var r=t?Zn(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);$n(n,2,o,i,void 0)}function vr(e){$n(e,3,null,null,void 0)}var yr=new Object;var gr=function(e){function t(t,n,r,o,i,s){var a=this;return(a=e.call(this)||this).selector=t,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return __extends(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=Yn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Sn.createRootView(e,t||[],n,o,r,yr),a=kn(s,i).instance;return n&&s.renderer.setAttribute(xn(s,0).renderElement,"ng-version",Yt.full),new mr(s,new Cr(s),a)},t}(jt),mr=function(e){function t(t,n,r){var o=this;return(o=e.call(this)||this)._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return __extends(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Zt(xn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Tr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Mt);function _r(e,t,n){return new br(e,t,n)}var br=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Zt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Tr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Un(e),e=e.parent;return e?new Tr(e,t):new Tr(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=pr(this._data,e);Sn.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Cr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof zt||(o=i.get(ke));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s,a=e;return n=this._view,r=this._data,o=t,i=a._view,s=r.viewContainer._embeddedViews,null==o&&(o=s.length),i.viewContainerParent=n,Ie(s,o,i),function(e,t){var n=zn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,i),Sn.dirtyParentQueries(i),hr(r,o>0?s[o-1]:null,i),a.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(e._view);return n=this._data,r=a,o=t,i=n.viewContainer._embeddedViews,s=i[r],Se(i,r),null==o&&(o=i.length),Ie(i,o,s),Sn.dirtyParentQueries(s),vr(s),hr(n,o>0?i[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=pr(this._data,e);t&&Sn.destroyView(t)},e.prototype.detach=function(e){var t=pr(this._data,e);return t?new Cr(t):null},e}();function wr(e){return new Cr(e)}var Cr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return $n(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Hn(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Sn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Sn.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Sn.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,vr(this._view),Sn.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Er(e,t){return new xr(e,t)}var xr=function(e){function t(t,n){var r=this;return(r=e.call(this)||this)._parentView=t,r._def=n,r}return __extends(t,e),t.prototype.createEmbeddedView=function(e){return new Cr(Sn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Zt(xn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(hn);function kr(e,t){return new Tr(e,t)}var Tr=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=mt.THROW_IF_NOT_FOUND),Sn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:On(e)},t)},e}();function Ir(e){return new Sr(e.renderer)}var Sr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=or(t),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=or(t),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(e,i,n,o):this.delegate.removeAttribute(e,i,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function Nr(e,t,n,r){return new Ar(e,t,n,r)}var Ar=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||void 0===n[r]&&(n[r]=fr(e,o))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=mt.THROW_IF_NOT_FOUND),void 0===n&&(n=ee.Default);var r=0;return n&ee.SkipSelf?r|=1:n&ee.Self&&(r|=4),dr(this,{token:e,tokenKey:On(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Lt)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+ie(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){var i=e._providers[o];if(i&&i!==sr){var s=i.ngOnDestroy;"function"!=typeof s||r.has(i)||(s.apply(i),r.add(i))}}}(this),this._destroyListeners.forEach((function(e){return e()}))},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),Or=On(qt),Dr=On(Kt),Pr=On(Zt),Rr=On(yn),Mr=On(hn),jr=On(ht),Vr=On(mt),Fr=On(ve);function Hr(e,t,n,r,o,i,s,a){var u=[];if(s)for(var l in s){var c=s[l],d=c[0],f=c[1];u[d]={flags:8,name:l,nonMinifiedName:f,ns:null,securityContext:null,suffix:null}}var p=[];if(a)for(var h in a)p.push({type:1,propName:h,target:null,eventName:a[h]});return function(e,t,n,r,o,i,s,a,u){var l=Wn(n),c=l.matchedQueries,d=l.references,f=l.matchedQueryIds;u||(u=[]),a||(a=[]),i=ue(i);var p=Gn(s,ie(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:f,references:d,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:ir(a),outputs:u,element:null,provider:{token:o,value:i,deps:p},text:null,query:null,ngContent:null}}(e,t|=16384,n,r,o,o,i,u,p)}function Lr(e,t){return Zr(e,t)}function Br(e,t){for(var n=e;n.parent&&!Qn(n);)n=n.parent;return Qr(n.parent,Un(n),!0,t.provider.value,t.provider.deps)}function zr(e,t){var n,r=Qr(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o<t.outputs.length;o++){var i=t.outputs[o],s=r[i.propName];if(!(n=s)||"function"!=typeof n.subscribe)throw new Error("@Output "+i.propName+" not initialized in '"+r.constructor.name+"'.");var a=s.subscribe(Ur(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+o]=a.unsubscribe.bind(a)}return r}function Ur(e,t,n){return function(r){return Bn(e,t,n,r)}}function Zr(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Qr(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Wr(e,t,n,o[0]));case 2:return r(Wr(e,t,n,o[0]),Wr(e,t,n,o[1]));case 3:return r(Wr(e,t,n,o[0]),Wr(e,t,n,o[1]),Wr(e,t,n,o[2]));default:for(var s=Array(i),a=0;a<i;a++)s[a]=Wr(e,t,n,o[a]);return r.apply(void 0,s)}}(e,t.parent,n,r.value,r.deps);case 2048:return Wr(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Qr(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(Wr(e,t,n,o[0]));case 2:return new r(Wr(e,t,n,o[0]),Wr(e,t,n,o[1]));case 3:return new r(Wr(e,t,n,o[0]),Wr(e,t,n,o[1]),Wr(e,t,n,o[2]));default:for(var s=new Array(i),a=0;a<i;a++)s[a]=Wr(e,t,n,o[a]);return new(r.bind.apply(r,[void 0].concat(s)))}}var qr={};function Wr(e,t,n,r,o){if(void 0===o&&(o=mt.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var s=r.tokenKey;s===jr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var a=e;a;){if(t)switch(s){case Or:return Ir(Gr(a,t,n));case Dr:return Gr(a,t,n).renderer;case Pr:return new Zt(xn(a,t.nodeIndex).renderElement);case Rr:return xn(a,t.nodeIndex).viewContainer;case Mr:if(t.element.template)return xn(a,t.nodeIndex).template;break;case jr:return wr(Gr(a,t,n));case Vr:case Fr:return kr(a,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[s];if(u){var l=kn(a,u.nodeIndex);return l||(l={instance:Zr(a,u)},a.nodes[u.nodeIndex]=l),l.instance}}n=Qn(a),t=Un(a),a=a.parent,4&r.flags&&(a=null)}var c=i.root.injector.get(r.token,qr);return c!==qr||o===qr?c:i.root.ngModule.injector.get(r.token,o)}function Gr(e,t,n){var r;if(n)r=xn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Qn(r);)r=r.parent;return r}function Kr(e,t,n,r,o,i){if(32768&n.flags){var s=xn(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(t.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var a=At.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Rt(a,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function Jr(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],s=i.parent;for(!s&&i.flags&t&&$r(e,o,i.flags&t,r++),0==(i.childFlags&t)&&(o+=i.childCount);s&&1&s.flags&&o===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=Yr(e,s,t,r)),s=s.parent}}function Yr(e,t,n,r){for(var o=t.nodeIndex+1;o<=t.nodeIndex+t.childCount;o++){var i=e.def.nodes[o];i.flags&n&&$r(e,o,i.flags&n,r++),o+=i.childCount}return r}function $r(e,t,n,r){var o=kn(e,t);if(o){var i=o.instance;i&&(Sn.setCurrentNode(e,t),1048576&n&&Cn(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Cn(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}var Xr=new he("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ae}}),eo={},to=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),no=void 0,ro=["en",[["a","p"],["AM","PM"],no],[["AM","PM"],no,no],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],no,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],no,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",no,"{1} 'at' {0}",no],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],oo="en-US";function io(e){null==e&&function(e){throw new Error("ASSERTION ERROR: Expected localeId to be defined")}(),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var so=function(e){function t(t){void 0===t&&(t=!1);var n=this;return(n=e.call(this)||this).__isAsync=t,n}return __extends(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,i=function(e){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(i=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},n&&(i=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=e.prototype.subscribe.call(this,o,i,s);return t instanceof p&&t.add(a),a},t}(S);function ao(){return this._results[It()]()}var uo=function(){function e(){this.dirty=!0,this._results=[],this.changes=new so,this.length=0;var t=It(),n=e.prototype;n[t]||(n[t]=ao)}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?(n===t&&(n=t.slice(0,r)),e(o,n)):n!==t&&n.push(o)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),lo=new he("Application Initializer"),co=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();Pt(o)&&t.push(o)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}},e}(),fo=new he("AppId");function po(){return""+ho()+ho()+ho()}function ho(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var vo=new he("Platform Initializer"),yo=new he("Platform ID"),go=new he("appBootstrapListener"),mo=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e}(),_o=new he("LocaleId"),bo=!1;function wo(){throw new Error("Runtime compiler is not loaded")}var Co,Eo,xo=wo,ko=wo,To=wo,Io=wo,So=function(){function e(){this.compileModuleSync=xo,this.compileModuleAsync=ko,this.compileModuleAndAllComponentsSync=To,this.compileModuleAndAllComponentsAsync=Io}return e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e}(),No=function(){};var Ao,Oo=!(!(Ao=pe.wtf)||!(Co=Ao.trace)||(Eo=Co.events,0));function Do(e,t){return null}var Po=Oo?function(e,t){return void 0===t&&(t=null),Eo.createScope(e,t)}:function(e,t){return Do},Ro=Oo?function(e,t){return Co.leaveScope(e,t),t}:function(e,t){return t},Mo=Promise.resolve(0);function jo(e){"undefined"==typeof Zone?Mo.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Vo=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new so(!1),this.onMicrotaskEmpty=new so(!1),this.onStable=new so(!1),this.onError=new so(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return Bo(t),e.invokeTask(r,o,i,s)}finally{zo(t)}},onInvoke:function(e,n,r,o,i,s,a){try{return Bo(t),e.invoke(r,o,i,s,a)}finally{zo(t)}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?(t.hasPendingMicrotasks=o.microTask,Lo(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.runOutsideAngular((function(){return t.onError.emit(o)})),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,Ho,Fo,Fo);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Fo(){}var Ho={};function Lo(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function Bo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zo(e){e._nesting--,Lo(e)}var Uo,Zo=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new so,this.onMicrotaskEmpty=new so,this.onStable=new so,this.onError=new so}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),Qo=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run((function(){t.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){Vo.assertNotInAngularZone(),jo((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())jo((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]},e.prototype.addCallback=function(e,t,n){var r=this,o=-1;t&&t>0&&(o=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==o})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),qo=function(){function e(){this._applications=new Map,Wo.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Wo.findTestabilityInTree(this,e,t)},e}(),Wo=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Go=new he("AllowMultipleToken"),Ko=function(e,t){this.name=e,this.token=t};function Jo(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new he(r);return function(t){void 0===t&&(t=[]);var i=Yo();if(!i||i.injector.get(Go,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var s=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(Uo&&!Uo.destroyed&&!Uo.injector.get(Go,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Uo=e.get($o);var t=e.get(vo,null);t&&t.forEach((function(e){return e()}))}(mt.create({providers:s,name:r}))}return function(e){var t=Yo();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Yo(){return Uo&&!Uo.destroyed?Uo:null}var $o=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new Zo:("zone.js"===n?void 0:n)||new Vo({enableLongStackTrace:Le()}),i=[{provide:Vo,useValue:o}];return o.run((function(){var t=mt.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(Ve,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return bo&&io(n.injector.get(_o,oo)||oo),n.onDestroy((function(){return ni(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){s.handleError(e)}})})),function(e,t,o){try{var i=((s=n.injector.get(co)).runInitializers(),s.donePromise.then((function(){return r._moduleDoBootstrap(n),n})));return Pt(i)?i.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):i}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(s,o)}))},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Xo({},t);return function(e,t,n){return e.get(No).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then((function(e){return n.bootstrapModuleFactory(e,r)}))},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(ti);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ie(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Xo(e,t){return Array.isArray(t)?t.reduce(Xo,e):Object.assign({},e,t)}var ei,ti=((ei=function(){function e(e,t,n,r,o,i){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Le(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var a=new w((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),u=new w((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){Vo.assertNotInAngularZone(),jo((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){Vo.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r=Number.POSITIVE_INFINITY,o=null,i=e[e.length-1];return(n=i)&&"function"==typeof n.schedule?(o=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof i&&(r=e.pop()),null===o&&1===e.length&&e[0]instanceof w?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(e((function(e,r){return(o=t(e,r),o instanceof w?o:new w(P(o))).pipe(function(e,t){return function(t){return t.lift(new M(e,void 0))}}((function(t,o){return n(e,t,r,o)})));var o}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new F(t,r))})}(L,e)}(r)(V(e,o))}(a,u.pipe((function(e){return B()((t=W,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,Q);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof jt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof zt?null:this._injector.get(ke),i=n.create(mt.NULL,[],t||n.selector,o);i.onDestroy((function(){r._unloadComponent(i)}));var s=i.injector.get(Qo,null);return s&&i.injector.get(qo).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Le()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;for(var r=0,o=this._views;r<o.length;r++)o[r].detectChanges();if(this._enforceNoNewChanges)for(var i=0,s=this._views;i<s.length;i++)s[i].checkNoChanges()}catch(a){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1,Ro(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;ni(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(go,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),ni(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(e){return e.destroy()}))},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e}())._tickScope=Po("ApplicationRef#tick()"),ei);function ni(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ri=function(e,t){this.name=e,this.callback=t},oi=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof ii&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),ii=function(e){function t(t,n,r){var o=this;return(o=e.call(this,t,n,r)||this).properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return __extends(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var n=[];return function e(n,r,o){n.childNodes.forEach((function(n){n instanceof t&&(r(n)&&o.push(n),e(n,r,o))}))}(this,e,n),n},t.prototype.queryAllNodes=function(e){var n=[];return function e(n,r,o){n instanceof t&&n.childNodes.forEach((function(n){r(n)&&o.push(n),n instanceof t&&e(n,r,o)}))}(this,e,n),n},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter((function(e){return e instanceof t}))},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))},t}(oi),si=new Map,ai=function(e){return si.get(e)||null};function ui(e){si.set(e.nativeNode,e)}var li=Jo(null,"core",[{provide:yo,useValue:"unknown"},{provide:$o,deps:[mt]},{provide:qo,deps:[]},{provide:mo,deps:[]}]);function ci(){return fn}function di(){return pn}function fi(e){return e?(bo&&io(e),e):oo}function pi(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}var hi=function(e){};function vi(e,t,n,r,o,i){e|=1;var s=Wn(t),a=s.matchedQueries,u=s.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?Yn(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Nn},provider:null,text:null,query:null,ngContent:null}}function yi(e,t,n,r,o,i,s,a,u,l,c,d){var f;void 0===s&&(s=[]),l||(l=Nn);var p=Wn(n),h=p.matchedQueries,v=p.references,y=p.matchedQueryIds,g=null,m=null;i&&(g=(f=or(i))[0],m=f[1]),a=a||[];for(var _=new Array(a.length),b=0;b<a.length;b++){var w=a[b],C=w[0],E=w[1],x=w[2],k=or(E),T=k[0],I=k[1],S=void 0,N=void 0;switch(15&C){case 4:N=x;break;case 1:case 8:S=x}_[b]={flags:C,ns:T,name:I,nonMinifiedName:I,securityContext:S,suffix:N}}u=u||[];var A=new Array(u.length);for(b=0;b<u.length;b++){var O=u[b],D=O[0],P=O[1];A[b]={type:0,target:D,eventName:P,propName:null}}var R=(s=s||[]).map((function(e){var t=e[0],n=e[1],r=or(t);return[r[0],r[1],n]}));return d=function(e){if(e&&e.id===Dn){var t=null!=e.encapsulation&&e.encapsulation!==Ne.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Mn++:Pn}return e&&e.id===Pn&&(e=null),e||null}(d),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:y,references:v,ngContentIndex:r,childCount:o,bindings:_,bindingFlags:ir(_),outputs:A,element:{ns:g,name:m,attrs:R,template:null,componentProvider:null,componentView:c||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:l||Nn},provider:null,text:null,query:null,ngContent:null}}function gi(e,t,n){var r,o=n.element,i=e.root.selectorOrNode,s=e.renderer;if(e.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=Kn(e,t,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i,!!o.componentRendererType&&o.componentRendererType.encapsulation===Ne.ShadowDom);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var l=o.attrs[u],c=l[0],d=l[1],f=l[2];s.setAttribute(r,d,f,c)}return r}function mi(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=_i(e,n.nodeIndex,(d=i.eventName,(c=i.target)?c+":"+d:d)),a=i.target,u=e;"component"===i.target&&(a=null,u=t);var l=u.renderer.listen(a||r,i.eventName,s);e.disposables[n.outputIndex+o]=l}var c,d}function _i(e,t,n){return function(r){return Bn(e,t,n,r)}}function bi(e,t,n,r){if(!Vn(e,t,n,r))return!1;var o=t.bindings[n],i=xn(e,t.nodeIndex),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,i){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=e.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}(e,o,s,o.ns,a,r);break;case 2:!function(e,t,n,r){var o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,o){var i=e.root.sanitizer.sanitize(ut.STYLE,o);if(null!=i){i=i.toString();var s=t.suffix;null!=s&&(i+=s)}else i=null;var a=e.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}(e,o,s,a,r);break;case 8:!function(e,t,n,r,o){var i=t.securityContext,s=i?e.root.sanitizer.sanitize(i,o):o;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&o.flags?i.componentView:e,o,s,a,r)}return!0}function wi(e){for(var t=e.def.nodeMatchedQueries;e.parent&&qn(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++){67108864&(i=e.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&In(e,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}}if(134217728&e.def.nodeFlags)for(o=0;o<e.def.nodes.length;o++){var i;134217728&(i=e.def.nodes[o]).flags&&536870912&i.flags&&In(e,o).setDirty(),o+=i.childCount}}function Ci(e,t){var n=In(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=Ei(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=kn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=Ei(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var s=t.query.bindings,a=!1,u=0;u<s.length;u++){var l=s[u],c=void 0;switch(l.bindingType){case 0:c=n.first;break;case 1:c=n,a=!0}r[l.propName]=c}a&&n.notifyOnChanges()}}function Ei(e,t,n,r,o){for(var i=t;i<=n;i++){var s=e.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(xi(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=xn(e,i);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Ei(e,i+1,i+s.childCount,r,o),i+=s.childCount),16777216&s.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var d=l[c],f=zn(d);f&&f===u&&Ei(d,0,d.def.nodes.length-1,r,o)}var p=u.template._projectedViews;if(p)for(c=0;c<p.length;c++){var h=p[c];Ei(h,0,h.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function xi(e,t,n){if(null!=n)switch(n){case 1:return xn(e,t.nodeIndex).renderElement;case 0:return new Zt(xn(e,t.nodeIndex).renderElement);case 2:return xn(e,t.nodeIndex).template;case 3:return xn(e,t.nodeIndex).viewContainer;case 4:return kn(e,t.nodeIndex).instance}}function ki(e,t,n){var r=Kn(e,t,n);r&&er(e,n.ngContent.index,1,r,null,void 0)}function Ti(e,t,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Ii(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=Kn(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function Si(e,t){return(null!=e?e.toString():"")+t.suffix}function Ni(e,t,n,r){for(var o=0,i=0,s=0,a=0,u=0,l=null,c=null,d=!1,f=!1,p=null,h=0;h<t.length;h++){var v=t[h];if(v.nodeIndex=h,v.parent=l,v.bindingIndex=o,v.outputIndex=i,v.renderParent=c,s|=v.flags,u|=v.matchedQueryIds,v.element){var y=v.element;y.publicProviders=l?l.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,d=!1,f=!1,v.element.template&&(u|=v.element.template.nodeMatchedQueries)}if(Oi(l,v,t.length),o+=v.bindings.length,i+=v.outputs.length,!c&&3&v.flags&&(p=v),20224&v.flags){d||(d=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var g=0!=(32768&v.flags);0==(8192&v.flags)||g?l.element.publicProviders[On(v.provider.token)]=v:(f||(f=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[On(v.provider.token)]=v),g&&(l.element.componentProvider=v)}if(l?(l.childFlags|=v.flags,l.directChildFlags|=v.flags,l.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(l.childMatchedQueries|=v.element.template.nodeMatchedQueries)):a|=v.flags,v.childCount>0)l=v,Ai(v)||(c=v);else for(;l&&h===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&Ai(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Nn,updateRenderer:r||Nn,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function Ai(e){return 0!=(1&e.flags)&&null===e.element.name}function Oi(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Di(e,t,n,r){var o=Mi(e.root,e.renderer,e,t,n);return ji(o,e.component,r),Vi(o),o}function Pi(e,t,n){var r=Mi(e,e.renderer,null,null,t);return ji(r,n,n),Vi(r),r}function Ri(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Mi(e.root,o,e,t.element.componentProvider,n)}function Mi(e,t,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function ji(e,t,n){e.component=t,e.context=n}function Vi(e){var t;Qn(e)&&(t=xn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o],s=void 0;switch(Sn.setCurrentNode(e,o),201347067&i.flags){case 1:var a=gi(e,t,i),u=void 0;if(33554432&i.flags){var l=Yn(i.element.componentView);u=Sn.createComponentView(e,i,l,a)}mi(e,u,i,a),s={renderElement:a,componentView:u,viewContainer:null,template:i.element.template?Er(e,i):void 0},16777216&i.flags&&(s.viewContainer=_r(e,i,s));break;case 2:s=Ii(e,t,i);break;case 512:case 1024:case 2048:case 256:(s=r[o])||4096&i.flags||(s={instance:Lr(e,i)});break;case 16:s={instance:Br(e,i)};break;case 16384:(s=r[o])||(s={instance:zr(e,i)}),32768&i.flags&&ji(xn(e,i.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new uo;break;case 8:ki(e,t,i),s=void 0}r[o]=s}qi(e,Qi.CreateViewNodes),Ji(e,201326592,268435456,0)}function Fi(e){Bi(e),Sn.updateDirectives(e,1),Wi(e,Qi.CheckNoChanges),Sn.updateRenderer(e,1),qi(e,Qi.CheckNoChanges),e.state&=-97}function Hi(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,wn(e,0,256),Bi(e),Sn.updateDirectives(e,0),Wi(e,Qi.CheckAndUpdate),Ji(e,67108864,536870912,0);var t=wn(e,256,512);Jr(e,2097152|(t?1048576:0)),Sn.updateRenderer(e,0),qi(e,Qi.CheckAndUpdate),Ji(e,134217728,536870912,0),Jr(e,8388608|((t=wn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,wn(e,768,1024)}function Li(e,t,n,r,o,i,s,a,u,l,c,d,f){return 0===n?function(e,t,n,r,o,i,s,a,u,l,c,d){switch(201347067&t.flags){case 1:return function(e,t,n,r,o,i,s,a,u,l,c,d){var f=t.bindings.length,p=!1;return f>0&&bi(e,t,0,n)&&(p=!0),f>1&&bi(e,t,1,r)&&(p=!0),f>2&&bi(e,t,2,o)&&(p=!0),f>3&&bi(e,t,3,i)&&(p=!0),f>4&&bi(e,t,4,s)&&(p=!0),f>5&&bi(e,t,5,a)&&(p=!0),f>6&&bi(e,t,6,u)&&(p=!0),f>7&&bi(e,t,7,l)&&(p=!0),f>8&&bi(e,t,8,c)&&(p=!0),f>9&&bi(e,t,9,d)&&(p=!0),p}(e,t,n,r,o,i,s,a,u,l,c,d);case 2:return function(e,t,n,r,o,i,s,a,u,l,c,d){var f=!1,p=t.bindings,h=p.length;if(h>0&&Vn(e,t,0,n)&&(f=!0),h>1&&Vn(e,t,1,r)&&(f=!0),h>2&&Vn(e,t,2,o)&&(f=!0),h>3&&Vn(e,t,3,i)&&(f=!0),h>4&&Vn(e,t,4,s)&&(f=!0),h>5&&Vn(e,t,5,a)&&(f=!0),h>6&&Vn(e,t,6,u)&&(f=!0),h>7&&Vn(e,t,7,l)&&(f=!0),h>8&&Vn(e,t,8,c)&&(f=!0),h>9&&Vn(e,t,9,d)&&(f=!0),f){var v=t.text.prefix;h>0&&(v+=Si(n,p[0])),h>1&&(v+=Si(r,p[1])),h>2&&(v+=Si(o,p[2])),h>3&&(v+=Si(i,p[3])),h>4&&(v+=Si(s,p[4])),h>5&&(v+=Si(a,p[5])),h>6&&(v+=Si(u,p[6])),h>7&&(v+=Si(l,p[7])),h>8&&(v+=Si(c,p[8])),h>9&&(v+=Si(d,p[9]));var y=En(e,t.nodeIndex).renderText;e.renderer.setValue(y,v)}return f}(e,t,n,r,o,i,s,a,u,l,c,d);case 16384:return function(e,t,n,r,o,i,s,a,u,l,c,d){var f=kn(e,t.nodeIndex),p=f.instance,h=!1,v=void 0,y=t.bindings.length;return y>0&&jn(e,t,0,n)&&(h=!0,v=Kr(e,f,t,0,n,v)),y>1&&jn(e,t,1,r)&&(h=!0,v=Kr(e,f,t,1,r,v)),y>2&&jn(e,t,2,o)&&(h=!0,v=Kr(e,f,t,2,o,v)),y>3&&jn(e,t,3,i)&&(h=!0,v=Kr(e,f,t,3,i,v)),y>4&&jn(e,t,4,s)&&(h=!0,v=Kr(e,f,t,4,s,v)),y>5&&jn(e,t,5,a)&&(h=!0,v=Kr(e,f,t,5,a,v)),y>6&&jn(e,t,6,u)&&(h=!0,v=Kr(e,f,t,6,u,v)),y>7&&jn(e,t,7,l)&&(h=!0,v=Kr(e,f,t,7,l,v)),y>8&&jn(e,t,8,c)&&(h=!0,v=Kr(e,f,t,8,c,v)),y>9&&jn(e,t,9,d)&&(h=!0,v=Kr(e,f,t,9,d,v)),v&&p.ngOnChanges(v),65536&t.flags&&Cn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,s,a,u,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,s,a,u,l,c,d){var f=t.bindings,p=!1,h=f.length;if(h>0&&Vn(e,t,0,n)&&(p=!0),h>1&&Vn(e,t,1,r)&&(p=!0),h>2&&Vn(e,t,2,o)&&(p=!0),h>3&&Vn(e,t,3,i)&&(p=!0),h>4&&Vn(e,t,4,s)&&(p=!0),h>5&&Vn(e,t,5,a)&&(p=!0),h>6&&Vn(e,t,6,u)&&(p=!0),h>7&&Vn(e,t,7,l)&&(p=!0),h>8&&Vn(e,t,8,c)&&(p=!0),h>9&&Vn(e,t,9,d)&&(p=!0),p){var v=Tn(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(f.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=s),h>5&&(y[5]=a),h>6&&(y[6]=u),h>7&&(y[7]=l),h>8&&(y[8]=c),h>9&&(y[9]=d);break;case 64:y={},h>0&&(y[f[0].name]=n),h>1&&(y[f[1].name]=r),h>2&&(y[f[2].name]=o),h>3&&(y[f[3].name]=i),h>4&&(y[f[4].name]=s),h>5&&(y[f[5].name]=a),h>6&&(y[f[6].name]=u),h>7&&(y[f[7].name]=l),h>8&&(y[f[8].name]=c),h>9&&(y[f[9].name]=d);break;case 128:var g=n;switch(h){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,s);break;case 6:y=g.transform(r,o,i,s,a);break;case 7:y=g.transform(r,o,i,s,a,u);break;case 8:y=g.transform(r,o,i,s,a,u,l);break;case 9:y=g.transform(r,o,i,s,a,u,l,c);break;case 10:y=g.transform(r,o,i,s,a,u,l,c,d)}}v.value=y}return p}(e,t,n,r,o,i,s,a,u,l,c,d);default:throw"unreachable"}}(e,t,r,o,i,s,a,u,l,c,d,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o<n.length;o++)bi(e,t,o,n[o])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)Vn(e,t,i,n[i])&&(o=!0);if(o){var s="";for(i=0;i<n.length;i++)s+=Si(n[i],r[i]);s=t.text.prefix+s;var a=En(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return o}(e,t,n);case 16384:return function(e,t,n){for(var r=kn(e,t.nodeIndex),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)jn(e,t,a,n[a])&&(i=!0,s=Kr(e,r,t,a,n[a],s));return s&&o.ngOnChanges(s),65536&t.flags&&Cn(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)Vn(e,t,i,n[i])&&(o=!0);if(o){var s=Tn(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:a={};for(i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 128:var u=n[0],l=n.slice(1);a=u.transform.apply(u,l)}s.value=a}return o}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Bi(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=xn(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,Ln(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function zi(e,t,n,r,o,i,s,a,u,l,c,d,f){return 0===n?function(e,t,n,r,o,i,s,a,u,l,c,d){var f=t.bindings.length;f>0&&Fn(e,t,0,n),f>1&&Fn(e,t,1,r),f>2&&Fn(e,t,2,o),f>3&&Fn(e,t,3,i),f>4&&Fn(e,t,4,s),f>5&&Fn(e,t,5,a),f>6&&Fn(e,t,6,u),f>7&&Fn(e,t,7,l),f>8&&Fn(e,t,8,c),f>9&&Fn(e,t,9,d)}(e,t,r,o,i,s,a,u,l,c,d,f):function(e,t,n){for(var r=0;r<n.length;r++)Fn(e,t,r,n[r])}(e,t,r),!1}function Ui(e,t){if(In(e,t.nodeIndex).dirty)throw mn(Sn.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function Zi(e){if(!(128&e.state)){if(Wi(e,Qi.Destroy),qi(e,Qi.Destroy),Jr(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=zn(e);if(t){var n=t.template._projectedViews;n&&(Se(n,n.indexOf(e)),Sn.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(xn(e,n).renderElement):2&r.flags?e.renderer.destroyNode(En(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&In(e,n).destroy()}}(e),Qn(e)&&e.renderer.destroy(),e.state|=128}}var Qi=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function qi(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?Gi(xn(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function Wi(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=xn(e,r).viewContainer._embeddedViews,s=0;s<i.length;s++)Gi(i[s],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function Gi(e,t){var n=e.state;switch(t){case Qi.CheckNoChanges:0==(128&n)&&(12==(12&n)?Fi(e):64&n&&Ki(e,Qi.CheckNoChangesProjectedViews));break;case Qi.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Fi(e):64&n&&Ki(e,t));break;case Qi.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Hi(e):64&n&&Ki(e,Qi.CheckAndUpdateProjectedViews));break;case Qi.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Hi(e):64&n&&Ki(e,t));break;case Qi.Destroy:Zi(e);break;case Qi.CreateViewNodes:Vi(e)}}function Ki(e,t){Wi(e,t),qi(e,t)}function Ji(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Sn.setCurrentNode(e,s.nodeIndex),r){case 0:Ci(e,s);break;case 1:Ui(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}var Yi=!1;function $i(e,t,n,r,o,i){var s=o.injector.get(Wt);return Pi(es(e,o,s,t,n),r,i)}function Xi(e,t,n,r,o,i){var s=o.injector.get(Wt),a=es(e,o,new Ds(s),t,n),u=cs(r);return As(_s.create,Pi,null,[a,u,i])}function es(e,t,n,r,o){var i=t.injector.get(lt),s=t.injector.get(Ve),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:s}}function ts(e,t,n,r){var o=cs(n);return As(_s.create,Di,null,[e,t,o,r])}function ns(e,t,n,r){return n=ss.get(t.element.componentProvider.provider.token)||cs(n),As(_s.create,Ri,null,[e,t,n,r])}function rs(e,t,n,r){return Nr(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===os.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach((function(e){var r=os.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)})),e.modules.forEach((function(e){is.forEach((function(r,o){re(o).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)}))})),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasOverrides,r=t.hasDeprecatedOverrides;return n?(function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];r&&(n.flags|=4096);var o=os.get(n.token);o&&(n.flags=-3841&n.flags|o.flags,n.deps=Gn(o.deps),n.value=o.value)}if(is.size>0){var i=new Set(e.modules);is.forEach((function(t,n){if(i.has(re(n).providedIn)){var o={token:n,flags:t.flags|(r?4096:0),deps:Gn(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[On(n)]=o}}))}}(e=e.factory((function(){return Nn}))),e):e}(r))}var os=new Map,is=new Map,ss=new Map;function as(e){var t;os.set(e.token,e),"function"==typeof e.token&&(t=re(e.token))&&"function"==typeof t.providedIn&&is.set(e.token,e)}function us(e,t){var n=Yn(t.viewDefFactory),r=Yn(n.nodes[0].element.componentView);ss.set(e,r)}function ls(){os.clear(),is.clear(),ss.clear()}function cs(e){if(0===os.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&os.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory((function(){return Nn}));for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=os.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=Gn(i.deps),o.value=i.value)}}}}function ds(e,t,n,r,o,i,s,a,u,l,c,d,f){var p=e.def.nodes[t];return Li(e,p,n,r,o,i,s,a,u,l,c,d,f),224&p.flags?Tn(e,t).value:void 0}function fs(e,t,n,r,o,i,s,a,u,l,c,d,f){var p=e.def.nodes[t];return zi(e,p,n,r,o,i,s,a,u,l,c,d,f),224&p.flags?Tn(e,t).value:void 0}function ps(e){return As(_s.detectChanges,Hi,null,[e])}function hs(e){return As(_s.checkNoChanges,Fi,null,[e])}function vs(e){return As(_s.destroy,Zi,null,[e])}var ys,gs,ms,_s=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();function bs(e,t){gs=e,ms=t}function ws(e,t,n,r){return bs(e,t),As(_s.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Cs(e,t){if(128&e.state)throw bn(_s[ys]);return bs(e,Ts(e,0)),e.def.updateDirectives((function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?xs(e,s,r,o):ks(e,s,r,o),16384&s.flags&&bs(e,Ts(e,n)),224&s.flags?Tn(e,s.nodeIndex).value:void 0}),e)}function Es(e,t){if(128&e.state)throw bn(_s[ys]);return bs(e,Is(e,0)),e.def.updateRenderer((function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?xs(e,s,r,o):ks(e,s,r,o),3&s.flags&&bs(e,Is(e,n)),224&s.flags?Tn(e,s.nodeIndex).value:void 0}),e)}function xs(e,t,n,r){if(Li.apply(void 0,[e,t,n].concat(r))){var o=1===n?r[0]:r;if(16384&t.flags){for(var i={},s=0;s<t.bindings.length;s++){var a=t.bindings[s],u=o[s];8&a.flags&&(i[(f=a.nonMinifiedName,p=void 0,p=f.replace(/[$@]/g,"_"),"ng-reflect-"+(f=p.replace(ft,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()}))))]=pt(u))}var l=t.parent,c=xn(e,l.nodeIndex).renderElement;if(l.element.name)for(var d in i){null!=(u=i[d])?e.renderer.setAttribute(c,d,u):e.renderer.removeAttribute(c,d)}else e.renderer.setValue(c,"bindings="+JSON.stringify(i,null,2))}}var f,p}function ks(e,t,n,r){zi.apply(void 0,[e,t,n].concat(r))}function Ts(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Is(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Ss=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Un(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return xn(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return kr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){Ns(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&Ns(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!Qn(e);)e=e.parent;return e.parent?xn(e.parent,Un(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Zn(this.view,this.nodeDef):Zn(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var i=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(t,n),s=-1;t.factory((function(){var t;return++s===i?(t=e.error).bind.apply(t,[e].concat(r)):Nn})),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,r))},e}();function Ns(e,t,n){for(var r in t.references)n[r]=xi(e,t,t.references[r])}function As(e,t,n,r){var o,i,s=ys,a=gs,u=ms;try{ys=e;var l=t.apply(n,r);return gs=a,ms=u,ys=s,l}catch(c){if(Re(c)||!gs)throw c;throw o=c,i=Os(),o instanceof Error||(o=new Error(o.toString())),_n(o,i),o}}function Os(){return gs?new Ss(gs,ms):null}var Ds=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Ps(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Ps=function(){function e(e){this.delegate=e,this.debugContextFactory=Os,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){var t=ai(e);!function(e){si.delete(e.nativeNode)}(t),t instanceof oi&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var o=new ii(n,null,r);o.name=e,ui(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&ui(new oi(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&ui(new oi(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=ai(e),r=ai(t);n&&r&&n instanceof ii&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=ai(e),o=ai(t),i=ai(n);r&&o&&r instanceof ii&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=ai(e),r=ai(t);n&&r&&n instanceof ii&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=Os();return r&&ui(new ii(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var o=ai(e);o&&o instanceof ii&&(o.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=ai(e);r&&r instanceof ii&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=ai(e);n&&n instanceof ii&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=ai(e);n&&n instanceof ii&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=ai(e);o&&o instanceof ii&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=ai(e);r&&r instanceof ii&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=ai(e);r&&r instanceof ii&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=ai(e);r&&r.listeners.push(new ri(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();var Rs=function(e){function t(t,n,r){var o=this;return(o=e.call(this)||this).moduleType=t,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return __extends(t,e),t.prototype.create=function(e){!function(){if(!Yi){Yi=!0;var e=Le()?{setCurrentNode:bs,createRootView:Xi,createEmbeddedView:ts,createComponentView:ns,createNgModuleRef:rs,overrideProvider:as,overrideComponentView:us,clearOverrides:ls,checkAndUpdateView:ps,checkNoChangesView:hs,destroyView:vs,createDebugContext:function(e,t){return new Ss(e,t)},handleEvent:ws,updateDirectives:Cs,updateRenderer:Es}:{setCurrentNode:function(){},createRootView:$i,createEmbeddedView:Di,createComponentView:Ri,createNgModuleRef:Nr,overrideProvider:Nn,overrideComponentView:Nn,clearOverrides:Nn,checkAndUpdateView:Hi,checkNoChangesView:Fi,destroyView:Zi,createDebugContext:function(e,t){return new Ss(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?ds:fs,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?ds:fs,e)}};Sn.setCurrentNode=e.setCurrentNode,Sn.createRootView=e.createRootView,Sn.createEmbeddedView=e.createEmbeddedView,Sn.createComponentView=e.createComponentView,Sn.createNgModuleRef=e.createNgModuleRef,Sn.overrideProvider=e.overrideProvider,Sn.overrideComponentView=e.overrideComponentView,Sn.clearOverrides=e.clearOverrides,Sn.checkAndUpdateView=e.checkAndUpdateView,Sn.checkNoChangesView=e.checkNoChangesView,Sn.destroyView=e.destroyView,Sn.resolveDep=Wr,Sn.createDebugContext=e.createDebugContext,Sn.handleEvent=e.handleEvent,Sn.updateDirectives=e.updateDirectives,Sn.updateRenderer=e.updateRenderer,Sn.dirtyParentQueries=wi}}();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var o in e.providersByKey)r[o]=e.providersByKey[o];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(Yn(this._ngModuleDefFactory));return Sn.createNgModuleRef(this.moduleType,e||mt.NULL,this._bootstrapComponents,t)},t}(Te),Ms=function(){},js=function(){this.title="chess-field"},Vs=function(){function e(e){this.chessService=e}return e.prototype.ngOnInit=function(){var e=this;this.item.subscribe((function(t){e.cell=t}))},e.prototype.toggle=function(){this.chessService.toggle(this.cell.row,this.cell.col)},e.prototype.log=function(){console.log("render")},e}(),Fs=function(e){function t(t){var n=this;return(n=e.call(this)||this)._value=t,n}return __extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new k;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(S),Hs=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).scheduler=t,r.work=n,r.pending=!1,r}return __extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return __extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(p)),Ls=function(){var e=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e}();return e.now=function(){return Date.now()},e}(),Bs=new(function(e){function t(n,r){void 0===r&&(r=Ls.now);var o=this;return(o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this).actions=[],o.active=!1,o.scheduled=void 0,o}return __extends(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(Ls))(Hs);function zs(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}function Us(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Us.prototype=Object.create(Error.prototype);var Zs,Qs=Us,qs=function(){function e(e){if(this.total=e,this.total<0)throw new Qs}return e.prototype.call=function(e,t){return t.subscribe(new Ws(e,this.total))},e}(),Ws=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).total=n,r.count=0,r}return __extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(y),Gs=((Zs=function(){function e(){this.field=new Array(7).fill([],0,7).map((function(e,t){return new Array(7).fill(!1,0,7).map((function(e,n){return new Fs({row:t,col:n,checked:!1,blink:!1})}))})),console.log(this.field)}return e.prototype.getCell=function(e,t){return this.field[e][t]},e.prototype.toggle=function(e,t){var n=this.field[e][t],r=!n.value.checked;if(n.next(Object.assign({},n.value,{checked:r})),r){for(var o=this.field.length-1,i=0;i<=o;i++)this.checkCell(this.field[e][i],n),this.checkCell(this.field[i][t],n);var s=Math.abs(e-t);for(i=0;i<=o-s;i++)this.checkCell(e<t?this.field[i][i+s]:this.field[i+s][i],n);var a=e+t,u=a%o;for(i=0;i<=(a<o?u:o-u);i++)this.checkCell(a<o?this.field[u-i][i]:this.field[o-i][u+i],n)}},e.prototype.blink=function(e){var t,n,r;(t=200,void 0===t&&(t=0),void 0===n&&(n=Bs),(u(r=t)||!(r-parseFloat(r)+1>=0)||t<0)&&(t=0),n&&"function"==typeof n.schedule||(n=Bs),new w((function(e){return e.add(n.schedule(zs,t,{subscriber:e,counter:0,period:t})),e}))).pipe((function(e){return e.lift(new qs(4))})).subscribe((function(){return e.next(Object.assign({},e.value,{blink:!e.value.blink}))}))},e.prototype.checkCell=function(e,t){e!==t&&e.value.checked&&this.blink(e)},e}()).ngInjectableDef=ne({factory:function(){return new Zs},token:Zs,providedIn:"root"}),Zs),Ks=Rn({encapsulation:0,styles:[[".cell[_ngcontent-%COMP%]{width:50px;height:50px;display:flex;justify-content:center;align-items:center;background-color:#f0fff0;border:.5px solid #ccc;transition:background-color .1s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cell[_ngcontent-%COMP%]:hover{background-color:bisque}.cell.checked[_ngcontent-%COMP%]{background-color:#90ee90}.cell.blink[_ngcontent-%COMP%]{background-color:#e9967a}"]],data:{}});function Js(e){return Ni(0,[(e()(),yi(0,0,null,null,0,"div",[],[[2,"cell",null],[2,"checked",null],[2,"blink",null]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggle()&&r),r}),null,null))],null,(function(e,t){var n=t.component;e(t,0,0,!0,n.cell.checked,n.cell.blink)}))}var Ys=function(){},$s=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Xs=new he("UseV4Plurals"),ea=function(){},ta=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).locale=t,r.deprecatedPluralFn=n,r}return __extends(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=eo[t];if(n)return n;var r=t.split("-")[0];if(n=eo[r])return n;if("en"===r)return ro;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[to.PluralCase]}(t||this.locale)(e)){case $s.Zero:return"zero";case $s.One:return"one";case $s.Two:return"two";case $s.Few:return"few";case $s.Many:return"many";default:return"other"}},t}(ea),na=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),ra=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Le()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation((function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new na(null,t._ngForOf,-1,-1),null===o?void 0:o),s=new oa(e,i);n.push(s)}else if(null==o)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){i=t._viewContainer.get(r);t._viewContainer.move(i,o);s=new oa(e,i);n.push(s)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o,i.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},e}(),oa=function(e,t){this.record=e,this.view=t},ia=function(){},sa=new he("DocumentToken"),aa="server",ua=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),la=Rn({encapsulation:0,styles:[[".row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]],data:{}});function ca(e){return Ni(0,[(e()(),yi(0,0,null,null,2,null,null,null,null,null,null,null)),(e()(),yi(1,0,null,null,1,"app-cell",[],null,null,null,Js,Ks)),Hr(2,114688,null,0,Vs,[Gs],{item:[0,"item"]},null)],(function(e,t){e(t,2,0,t.context.$implicit)}),null)}function da(e){return Ni(0,[(e()(),yi(0,0,null,null,2,"div",[],[[2,"row",null]],null,null,null,null)),(e()(),vi(16777216,null,null,1,null,ca)),Hr(2,278528,null,0,ra,[yn,hn,ln],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.cells)}),(function(e,t){e(t,0,0,!0)}))}var fa=function(){function e(e){this.chess=e,this.headCols=new Array(7)}return e.prototype.ngOnInit=function(){},e}(),pa=Rn({encapsulation:0,styles:[[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.subwrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column}.top[_ngcontent-%COMP%]{display:flex;flex-direction:row}.headItem[_ngcontent-%COMP%]{width:50px;height:50px;display:flex;justify-content:center;align-items:center}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;border:1px solid #ccc;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"]],data:{}});function ha(e){return Ni(0,[(e()(),yi(0,0,null,null,1,"div",[],[[2,"headItem",null]],null,null,null,null)),(e()(),Ti(1,null,[" "," "]))],null,(function(e,t){e(t,0,0,!0),e(t,1,0,1+t.context.index)}))}function va(e){return Ni(0,[(e()(),yi(0,0,null,null,1,"div",[],[[2,"headItem",null]],null,null,null,null)),(e()(),Ti(1,null,[" "," "]))],null,(function(e,t){e(t,0,0,!0),e(t,1,0,1+t.context.index)}))}function ya(e){return Ni(0,[(e()(),yi(0,0,null,null,2,null,null,null,null,null,null,null)),(e()(),yi(1,0,null,null,1,"app-row",[],null,null,null,da,la)),Hr(2,114688,null,0,ua,[],{cells:[0,"cells"],row:[1,"row"]},null)],(function(e,t){e(t,2,0,t.context.$implicit,t.context.index)}),null)}function ga(e){return Ni(0,[(e()(),yi(0,0,null,null,12,"div",[],[[2,"wrapper",null]],null,null,null,null)),(e()(),yi(1,0,null,null,4,"div",[],[[2,"top",null]],null,null,null,null)),(e()(),yi(2,0,null,null,1,"div",[],[[2,"headItem",null]],null,null,null,null)),(e()(),Ti(-1,null,[" \xa0 "])),(e()(),vi(16777216,null,null,1,null,ha)),Hr(5,278528,null,0,ra,[yn,hn,ln],{ngForOf:[0,"ngForOf"]},null),(e()(),yi(6,0,null,null,6,"div",[],[[2,"subwrapper",null]],null,null,null,null)),(e()(),yi(7,0,null,null,2,"div",[],[[2,"left",null]],null,null,null,null)),(e()(),vi(16777216,null,null,1,null,va)),Hr(9,278528,null,0,ra,[yn,hn,ln],{ngForOf:[0,"ngForOf"]},null),(e()(),yi(10,0,null,null,2,"div",[],[[2,"field",null]],null,null,null,null)),(e()(),vi(16777216,null,null,1,null,ya)),Hr(12,278528,null,0,ra,[yn,hn,ln],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,5,0,n.headCols),e(t,9,0,n.headCols),e(t,12,0,n.chess.field)}),(function(e,t){e(t,0,0,!0),e(t,1,0,!0),e(t,2,0,!0),e(t,6,0,!0),e(t,7,0,!0),e(t,10,0,!0)}))}var ma=Rn({encapsulation:0,styles:[[""]],data:{}});function _a(e){return Ni(0,[(e()(),yi(0,0,null,null,7,"html",[["lang","en"]],null,null,null,null,null)),(e()(),yi(1,0,null,null,3,"head",[],null,null,null,null,null)),(e()(),yi(2,0,null,null,0,"meta",[["charset","UTF-8"]],null,null,null,null,null)),(e()(),yi(3,0,null,null,1,"title",[],null,null,null,null,null)),(e()(),Ti(-1,null,["Title"])),(e()(),yi(5,0,null,null,2,"body",[],null,null,null,null,null)),(e()(),yi(6,0,null,null,1,"app-field",[],null,null,null,ga,pa)),Hr(7,114688,null,0,fa,[Gs],null,null)],(function(e,t){e(t,7,0)}),null)}var ba=new gr("app-root",js,(function(e){return Ni(0,[(e()(),yi(0,0,null,null,1,"app-root",[],null,null,null,_a,ma)),Hr(1,49152,null,0,js,[],null,null)],null,null)}),{},{},[]),wa=null;function Ca(){return wa}var Ea,xa=function(e){function t(){var t=this;(t=e.call(this)||this)._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=t.getStyle(n,r[o]+"AnimationName")){t._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach((function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=i[e])}))}catch(s){t._animationPrefix=null,t._transitionEnd=null}return t}return __extends(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),ka={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ta={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ia={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Sa=function(){if(pe.Node)return pe.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,wa||(wa=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){e[t].apply(e,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return ka},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return Sa.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach((function(n){return e.insertBefore(n,t)}))},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var o=n.item(r);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ia.hasOwnProperty(t)&&(t=Ia[t]))}return Ta[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=Aa||(Aa=document.querySelector("base"))?Aa.getAttribute("href"):null;return null==n?null:(t=n,Ea||(Ea=document.createElement("a")),Ea.setAttribute("href",t),"/"===Ea.pathname.charAt(0)?Ea.pathname:"/"+Ea.pathname)},t.prototype.resetBaseElement=function(){Aa=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return function(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[1];if(s[0].trim()===t)return decodeURIComponent(a)}return null}(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(xa),Aa=null;function Oa(){return!!window.history.pushState}var Da=new he("TRANSITION_ID"),Pa=[{provide:lo,useFactory:function(e,t,n){return function(){n.get(co).donePromise.then((function(){var n=Ca();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter((function(t){return n.getAttribute(t,"ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[Da,sa,mt],multi:!0}],Ra=function(){function e(){}return e.init=function(){var t;t=new e,Wo=t},e.prototype.addToWindow=function(e){pe.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},pe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},pe.getAllAngularRootElements=function(){return e.getAllRootElements()},pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push((function(e){var t=pe.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(o)}))}))},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Ca().isShadowRoot(t)?this.findTestabilityInTree(e,Ca().getHost(t),!0):this.findTestabilityInTree(e,Ca().parentElement(t),!0):null},e}();function Ma(e,t){"undefined"!=typeof COMPILED&&COMPILED||((pe.ng=pe.ng||{})[e]=t)}var ja={ApplicationRef:ti,NgZone:Vo};function Va(e){return ai(e)}var Fa=new he("EventManagerPlugins"),Ha=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e}(),La=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=Ca().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),Ba=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),za=function(e){function t(t){var n=this;return(n=e.call(this)||this)._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return __extends(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return Ca().remove(e)}))},t}(Ba),Ua={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/"},Za=/%COMP%/g,Qa="_nghost-%COMP%",qa="_ngcontent-%COMP%";function Wa(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?Wa(e,o,n):(o=o.replace(Za,e),n.push(o))}return n}function Ga(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Ka=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ja(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ne.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Xa(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Ne.Native:case Ne.ShadowDom:return new eu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=Wa(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),Ja=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(Ua[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=Ua[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=Ua[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&Gt.DashCase?e.style.setProperty(t,n,r&Gt.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&Gt.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){$a(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return $a(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ga(n)):this.eventManager.addEventListener(e,t,Ga(n))},e}(),Ya="@".charCodeAt(0);function $a(e,t){if(e.charCodeAt(0)===Ya)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Xa=function(e){function t(t,n,r,o){var i=this;(i=e.call(this,t)||this).component=r;var s=Wa(o+"-"+r.id,r.styles,[]);return n.addStyles(s),i.contentAttr=qa.replace(Za,o+"-"+r.id),i.hostAttr=Qa.replace(Za,o+"-"+r.id),i}return __extends(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(Ja),eu=function(e){function t(t,n,r,o){var i=this;(i=e.call(this,t)||this).sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=o.encapsulation===Ne.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=Wa(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return __extends(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(Ja),tu="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},nu=tu("addEventListener"),ru=tu("removeEventListener"),ou={},iu="__zone_symbol__propagationStopped",su=function(){var e="undefined"!=typeof Zone&&Zone[tu("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach((function(e){t[e]=e})),t}}(),au=function(e){return!!su&&su.hasOwnProperty(e)},uu=function(e){var t=ou[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==e[iu];i++){var s;(s=o[i]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},lu=function(e){function t(t,n,r){var o=this;return(o=e.call(this,t)||this).ngZone=n,r&&function(e){return e===aa}(r)||o.patchEvent(),o}return __extends(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[iu]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=n;if(!e[nu]||Vo.isInAngularZone()&&!au(t))e.addEventListener(t,o,!1);else{var i=ou[t];i||(i=ou[t]=tu("ANGULAR"+t+"FALSE"));var s=e[i],a=s&&s.length>0;s||(s=e[i]=[]);var u=au(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var l=!1,c=0;c<s.length;c++)if(s[c].handler===o){l=!0;break}l||s.push({zone:u,handler:o})}a||e[nu](t,uu,!1)}return function(){return r.removeEventListener(e,t,o)}},t.prototype.removeEventListener=function(e,t,n){var r=e[ru];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var o=ou[t],i=o&&e[o];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,a=0;a<i.length;a++)if(i[a].handler===n){s=!0,i.splice(a,1);break}s?0===i.length&&r.apply(e,[t,uu,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(La),cu={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},du=new he("HammerGestureConfig"),fu=new he("HammerLoader"),pu=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),hu=function(e){function t(t,n,r,o){var i=this;return(i=e.call(this,t)||this)._config=n,i.console=r,i.loader=o,i}return __extends(t,e),t.prototype.supports=function(e){return!(!cu.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},t.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,s=function(){i=!0};return this.loader().then((function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});i||(s=r.addEventListener(e,t,n))})).catch((function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}})),function(){s()}}return o.runOutsideAngular((function(){var i=r._config.buildHammer(e),s=function(e){o.runGuarded((function(){n(e)}))};return i.on(t,s),function(){i.off(t,s),"function"==typeof i.destroy&&i.destroy()}}))},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(La),vu=["alt","control","meta","shift"],yu={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},gu=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return Ca().onAndCancel(e,o.domEventName,i)}))},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(vu.forEach((function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")})),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=Ca().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),vu.forEach((function(r){r!=n&&(0,yu[r])(e)&&(t+=r+".")})),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded((function(){return n(o)}))}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(La),mu=function(){},_u=function(e){function t(t){var n=this;return(n=e.call(this)||this)._doc=t,n}return __extends(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case ut.NONE:return t;case ut.HTML:return t instanceof wu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{We=We||new Be(e);var r=t?String(t):"";n=We.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=We.getInertBodyElement(r)}while(r!==i);var s=new rt,a=s.sanitizeChildren(at(n)||n);return Le()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=at(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case ut.STYLE:return t instanceof Cu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(dt);return t&&Ze(t[1])===t[1]||e.match(ct)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var o=e.charAt(r);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}(e)?e:(Le()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case ut.SCRIPT:if(t instanceof Eu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case ut.URL:return t instanceof ku||t instanceof xu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Ze(String(t)));case ut.RESOURCE_URL:if(t instanceof ku)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof bu)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new wu(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new Cu(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Eu(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new xu(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new ku(e)},t}(mu),bu=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(bu),Cu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getTypeName=function(){return"Style"},t}(bu),Eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getTypeName=function(){return"Script"},t}(bu),xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getTypeName=function(){return"URL"},t}(bu),ku=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(bu),Tu=Jo(li,"browser",[{provide:yo,useValue:"browser"},{provide:vo,useValue:function(){Na.makeCurrent(),Ra.init()},multi:!0},{provide:Ys,useClass:function(e){function t(t){var n=this;return(n=e.call(this)||this)._doc=t,n._init(),n}return __extends(t,e),t.prototype._init=function(){this.location=Ca().getLocation(),this._history=Ca().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return Ca().getBaseHref(this._doc)},t.prototype.onPopState=function(e){Ca().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){Ca().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){Oa()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){Oa()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.prototype.getState=function(){return this._history.state},t}(Ys),deps:[sa]},{provide:sa,useFactory:function(){return document},deps:[]}]);function Iu(){return new Ve}var Su=function(){function e(e){if(e)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.")}return e.withServerTransition=function(t){return{ngModule:e,providers:[{provide:fo,useValue:t.appId},{provide:Da,useExisting:fo},Pa]}},e}();"undefined"!=typeof window&&window;var Nu=new Rs(Ms,[js],(function(e){return function(e){for(var t={},n=[],r=!1,o=0;o<e.length;o++){var i=e[o];i.token===yt&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=o,t[On(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([cr(512,Lt,Bt,[[8,[ba]],[3,Lt],ke]),cr(5120,_o,fi,[[3,_o]]),cr(4608,ea,ta,[_o,[2,Xs]]),cr(5120,Xr,pi,[Vo]),cr(4608,So,So,[]),cr(5120,fo,po,[]),cr(5120,ln,ci,[]),cr(5120,cn,di,[]),cr(4608,mu,_u,[sa]),cr(6144,lt,null,[mu]),cr(4608,du,pu,[]),cr(5120,Fa,(function(e,t,n,r,o,i,s,a){return[new lu(e,t,n),new gu(r),new hu(o,i,s,a)]}),[sa,Vo,yo,sa,sa,du,mo,[2,fu]]),cr(4608,Ha,Ha,[Fa,Vo]),cr(135680,za,za,[sa]),cr(4608,Ka,Ka,[Ha,za,fo]),cr(6144,Wt,null,[Ka]),cr(6144,Ba,null,[za]),cr(4608,Qo,Qo,[Vo]),cr(1073742336,ia,ia,[]),cr(1024,Ve,Iu,[]),cr(1024,lo,(function(e){return[(t=e,Ma("probe",Va),Ma("coreTokens",Object.assign({},ja,(t||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return Va})];var t}),[[2,Ko]]),cr(512,co,co,[[2,lo]]),cr(131584,ti,ti,[Vo,mo,mt,Ve,Lt,co]),cr(1073742336,hi,hi,[ti]),cr(1073742336,Su,Su,[[3,Su]]),cr(1073742336,Ms,Ms,[]),cr(256,yt,!0,[])])}));(function(){if(He)throw new Error("Cannot enable prod mode after platform setup.");Fe=!1})(),Tu().bootstrapModuleFactory(Nu).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);