Skip to content

Instantly share code, notes, and snippets.

@kryshac
Created March 12, 2019 12:45
Show Gist options
  • Select an option

  • Save kryshac/f0c5b9ce018e6c1cd26e23fdc86de904 to your computer and use it in GitHub Desktop.

Select an option

Save kryshac/f0c5b9ce018e6c1cd26e23fdc86de904 to your computer and use it in GitHub Desktop.
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}var h=Array.isArray||function(t){return t&&"number"==typeof t.length};function f(t){return null!=t&&"object"==typeof t}function p(t){return"function"==typeof t}var d,y={e:{}};function v(){try{return d.apply(this,arguments)}catch(t){return y.e=t,y}}function m(t){return d=t,v}function g(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}g.prototype=Object.create(Error.prototype);var _=g,b=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,s=r?r.length:0;n;)n.remove(this),n=++a<s&&r[a]||null;if(p(i)&&m(i).call(this)===y&&(e=!0,t=t||(y.e instanceof _?w(y.e.errors):[y.e])),h(o))for(a=-1,s=o.length;++a<s;){var l=o[a];if(f(l)&&m(l.unsubscribe).call(l)===y){e=!0,t=t||[];var u=y.e;u instanceof _?t=t.concat(w(u.errors)):t.push(u)}}if(e)throw new _(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function w(t){return t.reduce(function(t,e){return t.concat(e instanceof _?e.errors:e)},[])}var x=!1,E={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){x=t},get useDeprecatedSynchronousErrorHandling(){return x}};function C(t){setTimeout(function(){throw t})}var T={closed:!0,next:function(t){},error:function(t){if(E.useDeprecatedSynchronousErrorHandling)throw t;C(t)},complete:function(){}},S="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),k=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=T;break;case 1:if(!n){o.destination=T;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new A(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new A(o,n,r,i)}return o}return i(e,t),e.prototype[S]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this._parentSubscription=null,this},e}(b),A=function(t){function e(e,n,r,i){var o,a=t.call(this)||this;a._parentSubscriber=e;var s=a;return p(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==T&&(p((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;E.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=E.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):C(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;C(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};E.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),E.useDeprecatedSynchronousErrorHandling)throw n;C(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!E.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return E.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(C(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(k),M="function"==typeof Symbol&&Symbol.observable||"@@observable";var N=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof k)return t;if(t[S])return t[S]()}return t||e||n?new k(t,e,n):new k(T)}(t,e,n);if(r?r.call(i,this.source):i.add(this.source||E.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),E.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){E.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof k?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=D(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[M]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:((n=t)?1===n.length?n[0]:function(t){return n.reduce(function(t,e){return e(t)},t)}:function(){})(this);var n},t.prototype.toPromise=function(t){var e=this;return new(t=D(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function D(t){if(t||(t=E.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function I(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}I.prototype=Object.create(Error.prototype);var O=I,P=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(b),F=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(k),R=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[S]=function(){return new F(this)},e.prototype.lift=function(t){var e=new L(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new O;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new O;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new O;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new O;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new O;return this.hasError?(t.error(this.thrownError),b.EMPTY):this.isStopped?(t.complete(),b.EMPTY):(this.observers.push(t),new P(this,t))},e.prototype.asObservable=function(){var t=new N;return t.source=this,t},e.create=function(t,e){return new L(t,e)},e}(N),L=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):b.EMPTY},e}(R),j=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(k),V=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},H=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,C),e}};function z(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var B=z(),U=function(t){return function(e){for(var n=t[B]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},q=function(t){return 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)}},Q=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Z(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var W=function(t){if(t instanceof N)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[M])return q(t);if(Q(t))return V(t);if(Z(t))return H(t);if(t&&"function"==typeof t[B])return U(t);var e=f(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")},K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(k);function G(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Y(t,e))}}var Y=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.project,this.thisArg))},t}(),$=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(k);function X(t,e){return new N(e?function(n){var r=new b,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:V(t))}var J=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new tt(t,this.project,this.concurrent))},t}(),tt=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r,i,o=new j(this,void 0,void 0);this.destination.add(o),r=t,void 0===(i=o)&&(i=new j(this,e,n)),i.closed||W(r)(i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(K);function et(t){return t}function nt(){return function(t){return t.lift(new rt(t))}}var rt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new it(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),it=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(k),ot=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new b).add(this.source.subscribe(new st(this.getSubject(),this))),t.closed?(this._connection=null,t=b.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return nt()(this)},e}(N).prototype,at={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ot._subscribe},_isComplete:{value:ot._isComplete,writable:!0},getSubject:{value:ot.getSubject},connect:{value:ot.connect},refCount:{value:ot.refCount}},st=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(F);function lt(){return new R}function ut(t){for(var e in t)if(t[e]===ut)return e;throw Error("Could not find renamed property on target object.")}var ct=ut({ngComponentDef:ut}),ht=ut({ngInjectableDef:ut}),ft=ut({ngInjectorDef:ut}),pt=ut({ngModuleDef:ut});function dt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function yt(t){return t.hasOwnProperty(ht)?t[ht]:null}function vt(t){return t.hasOwnProperty(ft)?t[ft]:null}var mt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?dt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),gt="__parameters__",_t="__prop__metadata__";function bt(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,c(e));for(var i in r)this[i]=r[i]}}}function wt(t,e,n){var r=bt(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,c([void 0],e)));return a.annotation=o,a;function a(t,e,n){for(var r=t.hasOwnProperty(gt)?t[gt]:Object.defineProperty(t,gt,{value:[]})[gt];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}function xt(t,e,n,r){var i=bt(e);function o(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof o)return i.apply(this,e),this;var a=new((t=o).bind.apply(t,c([void 0],e)));return function(t,n){var i=t.constructor,o=i.hasOwnProperty(_t)?i[_t]:Object.defineProperty(i,_t,{value:{}})[_t];o[n]=o.hasOwnProperty(n)&&o[n]||[],o[n].unshift(a),r&&r.apply(void 0,c([t,n],e))}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}var Et="undefined"!=typeof window&&window,Ct="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global||Et||Ct,St=Promise.resolve(0),kt=null;function At(){if(!kt){var t=Tt.Symbol;if(t&&t.iterator)kt=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(kt=r)}}return kt}function Mt(t){"undefined"==typeof Zone?St.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Nt(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Dt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(Dt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function It(t){return t.__forward_ref__=It,t.toString=function(){return Dt(this())},t}function Ot(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===It?t():t}var Pt=wt("Inject",function(t){return{token:t}}),Ft=wt("Optional"),Rt=wt("Self"),Lt=wt("SkipSelf"),jt="__source",Vt=new Object,Ht=Vt,zt=new mt("INJECTOR"),Bt=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Vt),e===Vt)throw new Error("NullInjectorError: No provider for "+Dt(t)+"!");return e},t}(),Ut=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Xt(t,e):new Xt(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=Vt,t.NULL=new Bt,t.ngInjectableDef=dt({providedIn:"any",factory:function(){return ie(zt)}}),t}(),qt=function(t){return t},Qt=[],Zt=qt,Wt=function(){return Array.prototype.slice.call(arguments)},Kt=ut({provide:String,useValue:ut}),Gt=Ut.NULL,Yt=/\n/gm,$t="\u0275",Xt=function(){function t(t,e,n){void 0===e&&(e=Gt),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Ut,{token:Ut,fn:qt,deps:Qt,value:this,useNew:!1}),r.set(zt,{token:zt,fn:qt,deps:Qt,value:this,useNew:!1}),function t(e,n){if(n)if((n=Ot(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw ee("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw ee("Unexpected provider",n);var i=Ot(n.provide),o=function(t){var e=function(t){var e=Qt,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((l=Ot(n[r]))instanceof Array)for(var o=0,a=l;o<a.length;o++){var s=a[o];s instanceof Ft||s==Ft?i|=1:s instanceof Lt||s==Lt?i&=-3:s instanceof Rt||s==Rt?i&=-5:l=s instanceof Pt?s.token:Ot(s)}e.push({token:l,options:i})}}else if(t.useExisting){var l;e=[{token:l=Ot(t.useExisting),options:6}]}else if(!(n||Kt in t))throw ee("'deps' required",t);return e}(t),n=qt,r=Qt,i=!1,o=Ot(t.provide);if(Kt in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=Ot(t.useClass);else{if("function"!=typeof o)throw ee("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==Wt)throw Jt(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:Wt,value:Qt});a.deps.push({token:i=n,options:6})}var s=e.get(i);if(s&&s.fn==Wt)throw Jt(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,i,o,a){try{return function(e,n,r,i,o,a){var s,l;if(!n||4&a)2&a||(l=i.get(e,o,0));else{if((l=n.value)==Zt)throw Error($t+"Circular dependency");if(l===Qt){n.value=Zt;var u=n.useNew,h=n.fn,f=n.deps,p=Qt;if(f.length){p=[];for(var d=0;d<f.length;d++){var y=f[d],v=y.options,m=2&v?r.get(y.token):void 0;p.push(t(y.token,m,r,m||4&v?i:Gt,1&v?null:Ut.THROW_IF_NOT_FOUND,0))}}n.value=l=u?new((s=h).bind.apply(s,c([void 0],p))):h.apply(void 0,p)}}return l}(e,n,r,i,o,a)}catch(s){throw s instanceof Error||(s=new Error(s)),(s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(e),n&&n.value==Zt&&(n.value=Qt),s}}(t,r,this._records,this.parent,e,n)}catch(o){var i=o.ngTempTokenPath;throw t[jt]&&i.unshift(t[jt]),o.message=te("\n"+o.message,i,this.source),o.ngTokenPath=i,o.ngTempTokenPath=null,o}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(Dt(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Jt(t){return ee("Cannot mix multi providers and regular providers",t)}function te(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==$t?t.substr(2):t;var r=Dt(e);if(e instanceof Array)r=e.map(Dt).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):Dt(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Yt,"\n ")}function ee(t,e){return new Error(te(t,e))}var ne=void 0;function re(t){var e=ne;return ne=t,e}function ie(t,e){if(void 0===e&&(e=0),void 0===ne)throw new Error("inject() must be called from an injection context");if(null===ne){var n=yt(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Dt(t)+"]")}return ne.get(t,8&e?null:void 0,e)}function oe(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,a=0;a<r.length;a++){var s=r[a];s instanceof Ft||"Optional"===s.ngMetadataName?o|=8:s instanceof Lt||"SkipSelf"===s.ngMetadataName?o|=4:s instanceof Rt||"Self"===s.ngMetadataName?o|=2:i=s instanceof Pt?s.token:s}e.push(ie(i,o))}else e.push(ie(r))}return e}Function;var ae=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),se="__ngContext__",le=17,ue=0,ce=1,he=2,fe=3,pe=4,de=5,ye=6,ve=7,me=8,ge=9,_e=10,be=11,we=12,xe=14,Ee=16;function Ce(t,e){var n=ke(t),r=ke(e);return n&&r?function(t,e,n){for(var r=t[At()](),i=e[At()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,Ce):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Nt(t,e)}var Te=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Se=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function ke(t){return!!Ae(t)&&(Array.isArray(t)||!(t instanceof Map)&&At()in t)}function Ae(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Me=0,Ne=1,De=6;function Ie(t){for(;Array.isArray(t);)t=t[de];return t}function Oe(t,e){return Ie(e[t.index])}function Pe(t,e){var n=e[t];return n.length>=le?n:n[de]}function Fe(t){return t[se]}function Re(t){var e=Fe(t);return e?Array.isArray(e)?e:e.lViewData:null}function Le(t,e){t[se]=e}function je(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function Ve(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function He(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function ze(t,e,n){16&t[ce]&&(Be(t,e.initHooks,e.checkHooks,n),t[ce]&=-17)}function Be(t,e,n,r){var i=r?e:n;i&&Ue(t,i)}function Ue(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}var qe=9,Qe="ngProjectAs";function Ze(t){return!!t.listen}var We={createRenderer:function(t,e){return document}},Ke=[];function Ge(t){for(var e=t[ye];e&&2===e.type;)e=(t=t[he])[ye];return t}function Ye(t,e,n,r,i){0===t?Ze(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?Ze(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function $e(t){var e=t[ue].childIndex;return-1===e?null:t[e]}function Xe(t,e){var n;return t.length>=le&&(n=t[ye])&&2===n.type?function(e,n){if(-1===e.index){var r=t[xe];return r>-1?t[he][r]:null}return t[he][e.parent.index]}(n):t[he]===e?null:t[he]}function Je(t){if(t.length>=le){var e=t;!function(t){var e=t[ue].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(Ie(t[e[n+1]]).removeEventListener(e[n],t[me][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[me][e[n]])():e[n].call(t[me][e[n+1]]);t[me]=null}}(e),function(t){var e,n=t[ue];null!=n&&null!=(e=n.destroyHooks)&&Ue(t,e)}(e),(r=(n=e)[ue]&&n[ue].pipeDestroyHooks)&&Ue(n,r),-1===e[ue].id&&Ze(e[be])&&e[be].destroy()}var n,r}var tn,en,nn,rn,on,an,sn,ln,un=Promise.resolve(null);function cn(){return en}var hn=!1,fn=!0,pn=-1;function dn(t,e){var n=ln;return on=t&&t[ue],sn=t&&1==(1&t[ce]),fn=t&&on.firstTemplatePass,pn=t&&on.bindingStartIndex,tn=t&&t[be],nn=e,rn=!0,ln=t,n&&(n[pe]=an),an=t&&t[pe],n}function yn(t,e){e||(hn||Be(ln,on.viewHooks,on.viewCheckHooks,sn),ln[ce]&=-6),ln[ce]|=16,ln[ve]=on.bindingStartIndex,dn(t,null)}function vn(){mn();var t=fn;on.firstTemplatePass=fn=!1,hn||ze(ln,on,sn),function(t){for(var e=$e(ln);null!==e;e=e[fe])if(e.length<le&&-1===e[Me])for(var n=e,r=0;r<n[Ne].length;r++){var i=n[Ne][r];bn(i,i[ue],i[ge],2)}}(),function(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.data[n].contentQueriesRefresh(n-le,t.contentQueries[e+1])}}(on),hn||Be(ln,on.contentHooks,on.contentCheckHooks,sn),function(t,e){if(null!=t)for(var n=0;n<t.length;n++)An(t[n],e)}(on.components,t)}function mn(){if(on.expandoInstructions){pn=ln[ve]=on.expandoStartIndex;for(var t=-1,e=-1,n=0;n<on.expandoInstructions.length;n++){var r=on.expandoInstructions[n];"number"==typeof r?r<=0?(e=-r,"number"==typeof ln[pn]&&(pn+=qe),t=pn):pn+=r:(ln[ve]=pn,r(t-le,e),t++)}}}function gn(t,e,n,r,i){var o=e.blueprint.slice();return o[ce]=25|r,o[he]=o[Ee]=ln,o[ge]=n,o[_e]=ln?ln[_e]:null,o[be]=t,o[we]=i||null,o}function _n(t,e,n,r,i){var o=t+le;ln[o]=n;var a=on.data[o];return null==a&&(a=on.data[o]=kn(e,o,r,i,null),nn&&(!rn||null!=nn.child||null===a.parent&&2!==nn.type?rn||(nn.next=a):nn.child=a)),null==on.firstChild&&3===e&&(on.firstChild=a),nn=a,rn=!0,a}function bn(t,e,n,r){var i,o=rn,a=nn;if(64&t[ce])Nn(t[ge]);else try{rn=!0,nn=null,i=dn(t,t[ye]),Cn(),e.template(r,n),2&r?vn():t[ue].firstTemplatePass=fn=!1}finally{yn(i,1==(1&r)),rn=o,nn=a}}function wn(t,e,n){var r=dn(t,t[ye]);try{en.begin&&en.begin(),n?(Cn(),n(xn(t),e),vn()):(hn||(ze(ln,on,sn),Be(ln,on.contentHooks,on.contentCheckHooks,sn)),mn(),An(le,!1))}finally{en.end&&en.end(),yn(r)}}function xn(t){return 1&t[ce]?3:2}var En=null;function Cn(){En=null}function Tn(t,e,n,r,i,o,a){var s=le+n,l=s+r,u=function(t,e){var n=new Array(e).fill(null,0,t).fill(Pn,t);return n[xe]=-1,n[ve]=t,n}(s,l);return u[ue]={id:t,blueprint:u,template:e,viewQuery:a,node:null,data:u.slice(),childIndex:-1,bindingStartIndex:s,expandoStartIndex:l,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,currentMatches:null,firstChild:null}}function Sn(t,e){en=t;var n=t.createRenderer(null,null);return"string"==typeof e?Ze(n)?n.selectRootElement(e):n.querySelector(e):e}function kn(t,e,n,r,i){var o=rn?nn:nn&&nn.parent,a=o&&ln&&o!==ln[ye]?o:null;return{type:t,index:e,injectorIndex:a?a.injectorIndex:-1,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:a,detached:null,stylingTemplate:null,projection:null}}function An(t,e){var n=Pe(t,ln);Mn(n)&&6&n[ce]&&(e&&function(t){for(var e=t[ue],n=t.length;n<e.blueprint.length;n++)t[n]=e.blueprint[n]}(n),On(n,n[ge]))}function Mn(t){return 8==(8&t[ce])}function Nn(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];wn(Re(n),n)}}function Dn(t){On(function(t){var e,n=Fe(t);if(Array.isArray(n)){var r=function(t,e){var n=t[ue].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(Pe(i,t)[ge]===e)return i}else if(Pe(le,t)[ge]===e)return le;return-1}(n,t);(i=function(t,e,n){return{lViewData:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(e=Pe(r,n))[de])).component=t,Le(t,i),Le(i.native,i)}else{var i;e=Pe((i=n).nodeIndex,i.lViewData)}return e}(t),t)}function In(t){Nn(t[ge])}function On(t,e){var n=t[ue],r=dn(t,t[ye]),i=n.template,o=n.viewQuery;try{Cn(),function(e,n,r){e&&1&t[ce]&&e(1,r)}(o,0,e),i(xn(t),e),vn(),function(t,e){t&&t(2,e)}(o,e)}finally{yn(r)}}var Pn={},Fn=un,Rn=[0,1];function Ln(t,e,n,r,i,o){var a=function(t,e,n,r){if(Le(e,ln),r&&Le(r,ln),ln[t]=e,fn){var i=nn.flags;0===i?nn.flags=t<<15|4096&i|1:nn.flags++,on.data.push(n),on.blueprint.push(null),n.hostBindings&&on.expandoInstructions.push((a=n).hostBindings,a.hostVars)}else{var o=n.diPublic;o&&o(n)}var a;return null!=n.attributes&&3==nn.type&&function(t,e){for(var n=Ze(tn),r=0;r<e.length;){var i=e[r];if(1===i)break;if(i===Qe)r+=2;else if(0===i){var o=e[r+1],a=e[r+2],s=e[r+3];n?tn.setAttribute(t,a,s,o):t.setAttributeNS(o,a,s),r+=4}else s=e[r+1],n?tn.setAttribute(t,i,s):t.setAttribute(i,s),r+=2}}(r,n.attributes),e}(r.length,n.factory(),n,t);return i.components.push(a),e[ge]=a,o&&o.forEach(function(t){return t(a,n)}),r[ue].firstTemplatePass&&function(t){for(var e=0;e<t;e++)ln.push(Pn),on.blueprint.push(Pn),on.data.push(null)}(n.hostVars),mn(),a}function jn(t,e){return{components:[],scheduler:t,clean:Fn,playerHandler:e||null,flags:0}}function Vn(t,e){var n,r,i,o,a=Re(t)[ue],s=a.data.length-1;n=s,i=e.doCheck,o=a,(r=e.onInit)&&(o.initHooks||(o.initHooks=[])).push(n,r),i&&((o.initHooks||(o.initHooks=[])).push(n,i),(o.checkHooks||(o.checkHooks=[])).push(n,i)),function(t,e){if(e.firstTemplatePass)for(var n=t>>15,r=n+(4095&t),i=n;i<r;i++){var o=e.data[i];je(o,e,i),Ve(o,e,i),He(o,e,i)}}(s<<15|1,a)}var Hn=function(){return function(){}}(),zn=function(){return function(){}}();function Bn(t){var e=Error("No component factory found for "+Dt(t)+". Did you add it to @NgModule.entryComponents?");return e[qn]=t,e}var Un,qn="ngComponent",Qn=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Bn(t)},t}(),Zn=function(){function t(){}return t.NULL=new Qn,t}(),Wn=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Bn(t);return new Kn(e,this._ngModule)},t}(),Kn=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return i(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(zn),Gn=function(){return function(){}}(),Yn=function(){return function(){}}(),$n=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return i(e,t),e.prototype.detectChanges=function(){In(this._view)},e.prototype.checkNoChanges=function(){!function(t){hn=!0;try{In(t)}finally{hn=!1}}(this._view)},e}(function(){function t(t,e,n){this._context=e,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=t}return Object.defineProperty(t.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[ce])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&Mn(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),Ze(e=(t=this._view)[be])&&e.destroyNode&&function(e,n,r,i,o){for(var a=t[ue].node,s=-1,l=t,u=a.child;u;){var c=null;if(3===u.type){Ye(2,r,null,Oe(u,l),o);var h=l[u.index];y=h,Array.isArray(y)&&"number"==typeof y[Me]&&Ye(2,r,null,h[De],o)}else if(0===u.type){var f=l[u.index];Ye(2,r,null,f[De],o),f[Ne].length&&(c=(l=f[Ne][0])[ue].node,o=f[De])}else if(1===u.type){var p=Ge(l),d=p[ye].projection[u.projection];Ke[++s]=u,Ke[++s]=l,d&&(c=(l=p[he])[ue].data[d.index])}else c=u.child;if(null===c)for(null===u.next&&8192&u.flags&&(l=Ke[s--],u=Ke[s--]),c=u.next;!c;){if(null===(u=u.parent||l[ue].node)||u===a)return null;0===u.type&&(o=(l=l[he])[u.index][De]),c=2===u.type&&l[fe]?(l=l[fe])[ue].node:u.next}u=c}var y}(0,0,e),function(t){if(-1===t[ue].childIndex)return Je(t);for(var e=$e(t);e;){var n=null;if(e.length>=le?e[ue].childIndex>-1&&(n=$e(e)):e[Ne].length&&(n=e[Ne][0]),null==n){for(;e&&!e[fe]&&e!==t;)Je(e),e=Xe(e,t);Je(e||t),n=e&&e[fe]}e=n}}(t),t[ce]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[me]||(t[me]=[])}(e=this._view).push(n),e[ue].firstTemplatePass&&function(t){return t[ue].cleanup||(t[ue].cleanup=[])}(e).push(e[me].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;e&&!(64&e[ce]);)e[ce]|=4,e=e[he];var n,r,i;e[ce]|=4,i=0===(n=e[ge]).flags,n.flags|=1,i&&n.clean==un&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){if(1&n.flags&&(n.flags&=-2,Nn(n)),2&n.flags){n.flags&=-3;var t=n.playerHandler;t&&t.flushPlayers()}n.clean=un,r(null)}))}(this._view)},t.prototype.detach=function(){this._view[ce]&=-9},t.prototype.reattach=function(){this._view[ce]|=8},t.prototype.detectChanges=function(){var t=cn();t.begin&&t.begin(),Dn(this.context),t.end&&t.end()},t.prototype.checkNoChanges=function(){!function(t){hn=!0;try{Dn(t)}finally{hn=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t.prototype._lookUpContext=function(){return this._context=this._view[he][this._componentIndex]},t}());function Xn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var Jn=Xn,tr=Xn,er=Xn,nr=Xn,rr=Xn,ir=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return Jn(t)},t}(),or=function(){return function(){}}(),ar=function(){return function(){}}(),sr=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),lr=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return rr()},t}(),ur=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.resolveComponentFactory=function(t){return new dr(t[ct]||null)},e}(Zn);function cr(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var hr=new mt("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return jn(ie(fr))}}),fr=new mt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return"undefined"!=typeof requestAnimationFrame&&"undefined"!=typeof window?requestAnimationFrame.bind(window):setTimeout}}),pr=new mt("WRAP_RENDERER_FACTORY2"),dr=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return i(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return cr(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return cr(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var o,a=void 0===n;o=r?r.injector.get(pr,function(t){return t})(r.injector.get(ar)):We;var s,l,u=a?(s=this.selector,Ze(l=o.createRenderer(null,this.componentDef)||tn)?l.createElement(s,En):null===En?l.createElement(s):l.createElementNS(En,s)):Sn(o,n),c=this.componentDef.onPush?68:66,h=r&&!a?r.injector.get(hr):jn(requestAnimationFrame.bind(window)),f=o.createRenderer(u,this.componentDef),p=gn(f,Tn(-1,null,1,0,null,null,null),h,c);p[_e]=r&&r.injector||null;var d,y,v,m,g=dn(p,null);try{o.begin&&o.begin();var _=function(t,e,n,r,i){rn=!1,nn=null;var o,a=n[ue],s=gn(r,(o=e.template).ngPrivateData||(o.ngPrivateData=Tn(-1,o,e.consts,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery)),null,e.onPush?4:2,i),l=_n(0,3,t,null,null);return a.firstTemplatePass&&(a.expandoInstructions=Rn.slice(),e.diPublic&&e.diPublic(e),l.flags=n.length<<15|4096),s[de]=n[le],s[ye]=l,n[le]=s}(u,this.componentDef,p,f);if(y=p[ue].data[0+le],e)for(var b=0,w=y.projection=[],x=0;x<e.length;x++){for(var E=e[x],C=null,T=null,S=0;S<E.length;S++){m=void 0,(m=(v=p)[ue]).firstTemplatePass&&(m.expandoStartIndex++,m.blueprint.push(null),v.push(null));var k=_n(++b,3,E[S],null,null);T?T.next=k:C=k,T=k}w.push(C)}d=Ln(u,_,this.componentDef,p,h,[Vn]),bn(_,_[ue],d,1),_[ce]&=-2}finally{dn(g,null),o.end&&o.end()}var A=new yr(this.componentType,d,p,t,function(t,e,n){return Un||(Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(ir)),new Un(Oe(e,n))}(0,y,p));return a&&(A.hostView._tViewNode.child=y),A},e}(zn),yr=function(t){function e(e,n,r,i,o){var a,s=t.call(this)||this;return s.location=o,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new $n(r),s.hostView._tViewNode=(-1,null==(a=r)[ue].node&&(a[ue].node=kn(2,-1,null,null,null)),rn=!0,nn=a[ye]=a[ue].node),s.injector=i,s.componentType=e,s}return i(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Hn),vr=new mt("The presence of this token marks an injector as being the root injector."),mr={},gr={},_r=[],br=void 0;function wr(){return void 0===br&&(br=new Bt),br}var xr=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,Tr([t],function(t){return r.processInjectorType(t,new Set)}),e&&Tr(e,function(t){return r.processProvider(t)}),this.records.set(zt,Cr(void 0,this)),this.isRootInjector=this.records.has(vr),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=Ht),void 0===n&&(n=0),this.assertNotDestroyed();var r,i=re(this);try{if(!(4&n)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof mt)&&yt(t);a&&this.injectableDefInScope(a)&&(o=Er(t),this.records.set(t,o))}if(void 0!==o)return this.hydrate(t,o)}return 2&n&&wr(),this.parent.get(t,e)}finally{re(i)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e){var n=this,r=vt(t=Ot(t)),i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,a=void 0!==i&&t.providers||_r;if(void 0!==i&&(r=vt(i)),null!=r){if(e.has(o))throw new Error("Circular dependency: type "+Dt(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,Cr(r.factory)),null!=r.imports){e.add(o);try{Tr(r.imports,function(t){return n.processInjectorType(t,e)})}finally{e.delete(o)}}null!=r.providers&&Tr(r.providers,function(t){return n.processProvider(t)}),Tr(a,function(t){return n.processProvider(t)})}},t.prototype.processProvider=function(t){var e=Sr(t=Ot(t))?t:Ot(t.provide),n=function(t){var e=Ot(t),n=mr,r=void 0;if(Sr(t))return Er(t);if(e=Ot(t.provide),Kt in t)n=t.useValue;else if(t.useExisting)r=function(){return ie(t.useExisting)};else if(t.useFactory)r=function(){return t.useFactory.apply(t,c(oe(t.deps||[])))};else{var i=t.useClass||e;if(!t.deps)return Er(i);r=function(){return new(i.bind.apply(i,c([void 0],oe(t.deps))))}}return Cr(r,n)}(t);if(Sr(t)||!0!==t.multi){var r=this.records.get(e);if(r&&void 0!==r.multi)throw new Error("Mixed multi-provider for "+Dt(e))}else{var i=this.records.get(e);if(i){if(void 0===i.multi)throw new Error("Mixed multi-provider for "+e+".")}else(i=Cr(void 0,mr,!0)).factory=function(){return oe(i.multi)},this.records.set(e,i);e=t,i.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===gr)throw new Error("Circular dep for "+Dt(t));var n;return e.value===mr&&(e.value=gr,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Er(t){var e=yt(t);if(null===e){if(t instanceof mt)throw new Error("Token "+Dt(t)+" is missing an ngInjectableDef definition.");return Cr(function(){return new t})}return Cr(e.factory)}function Cr(t,e,n){return void 0===e&&(e=mr),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Tr(t,e){t.forEach(function(t){return Array.isArray(t)?Tr(t,e):e(t)})}function Sr(t){return"function"==typeof t}var kr={provide:Zn,useFactory:function(){return new ur},deps:[]},Ar=function(t){function e(e,n){var r=t.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=(e[pt]||null).bootstrap,r.injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||wr(),new xr(t,n,e)}(e,n,[kr,{provide:Gn,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new ur,r}return i(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Gn);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}i(e,t),e.prototype.create=function(t){return new Ar(this.moduleType,t)}}(Yn);var Mr=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return i(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var s=t.prototype.subscribe.call(this,i,o,a);return e instanceof b&&e.add(s),s},e}(R),Nr=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return tr(t,ir)},t}(),Dr=!0,Ir=!1;function Or(){return Ir=!0,Dr}var Pr=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.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(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},t}(),Fr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Rr=/^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 Lr(t){return(t=String(t)).match(Fr)||t.match(Rr)?t:(Or()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function jr(t){var e,n,r={};try{for(var i=l(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Vr(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=l(n),a=o.next();!a.done;a=o.next()){var s=a.value;for(var u in s)s.hasOwnProperty(u)&&(i[u]=!0)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}var Hr,zr=jr("area,br,col,hr,img,wbr"),Br=jr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ur=jr("rp,rt"),qr=Vr(Ur,Br),Qr=Vr(zr,Vr(Br,jr("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")),Vr(Ur,jr("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")),qr),Zr=jr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wr=jr("srcset"),Kr=Vr(Zr,Wr,jr("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")),Gr=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(e.nodeType===Node.ELEMENT_NODE?this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var n=this.checkClobberedElement(e,e.nextSibling);if(n){e=n;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e=t.nodeName.toLowerCase();if(Qr.hasOwnProperty(e)){this.buf.push("<"),this.buf.push(e);for(var n,r=t.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(Kr.hasOwnProperty(s)){var l=o.value;Zr[s]&&(l=Lr(l)),Wr[s]&&(n=l,l=(n=String(n)).split(",").map(function(t){return Lr(t.trim())}).join(", ")),this.buf.push(" ",a,'="',Xr(l),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Qr.hasOwnProperty(e)&&!zr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Xr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$r=/([^\#-~ |!])/g;function Xr(t){return t.replace(/&/g,"&amp;").replace(Yr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($r,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Jr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ti=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),ei=function(){return function(){}}(),ni=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ri=/^url\(([^)]+)\)$/;String,String;var ii=xt("HostListener",function(t,e){return{eventName:t,args:e}}),oi=new(function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}())("7.0.4"),ai="ngDebugContext",si="ngOriginalError",li="ngErrorLogger";function ui(t){return t[ai]}function ci(t){return t[si]}function hi(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,c(e))}var fi=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[li]||hi}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?ui(t)?ui(t):this._findContext(ci(t)):null},t.prototype._findOriginalError=function(t){for(var e=ci(t);e&&ci(e);)e=ci(e);return e},t}();function pi(t){return!!t&&"function"==typeof t.then}var di=new mt("Application Initializer"),yi=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();pi(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),vi=new mt("AppId");function mi(){return""+gi()+gi()+gi()}function gi(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var _i=new mt("Platform Initializer"),bi=new mt("Platform ID"),wi=new mt("appBootstrapListener"),xi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function Ei(){throw new Error("Runtime compiler is not loaded")}var Ci,Ti,Si=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw Ei()},t.prototype.compileModuleAsync=function(t){throw Ei()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw Ei()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw Ei()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t}(),ki=function(){return function(){}}();function Ai(){var t=Tt.wtf;return!(!t||!(Ci=t.trace)||(Ti=Ci.events,0))}var Mi=Ai();function Ni(t,e){return null}var Di=Mi?function(t,e){return void 0===e&&(e=null),Ti.createScope(t,e)}:function(t,e){return Ni},Ii=Mi?function(t,e){return Ci.leaveScope(t,e),e}:function(t,e){return e},Oi=function(){function t(t){var e,n=t.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr(!1),this.onMicrotaskEmpty=new Mr(!1),this.onStable=new Mr(!1),this.onError=new Mr(!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)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,i,o,a){try{return Li(e),t.invokeTask(r,i,o,a)}finally{ji(e)}},onInvoke:function(t,n,r,i,o,a,s){try{return Li(e),t.invoke(r,i,o,a,s)}finally{ji(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e.hasPendingMicrotasks=i.microTask,Ri(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular(function(){return e.onError.emit(i)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Fi,Pi,Pi);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Pi(){}var Fi={};function Ri(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Li(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ji(t){t._nesting--,Ri(t)}var Vi,Hi=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr,this.onMicrotaskEmpty=new Mr,this.onStable=new Mr,this.onError=new Mr}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),zi=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Oi.assertNotInAngularZone(),Mt(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Mt(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,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(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Bi=function(){function t(){this._applications=new Map,Ui.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Ui.findTestabilityInTree(this,t,e)},a([s("design:paramtypes",[])],t)}(),Ui=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),qi=new mt("AllowMultipleToken"),Qi=function(){return function(t,e){this.name=t,this.token=e}}();function Zi(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new mt(r);return function(e){void 0===e&&(e=[]);var o=Wi();if(!o||o.injector.get(qi,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(Vi&&!Vi.destroyed&&!Vi.injector.get(qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vi=t.get(Ki);var e=t.get(_i,null);e&&e.forEach(function(t){return t()})}(Ut.create({providers:a,name:r}))}return function(t){var e=Wi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Wi(){return Vi&&!Vi.destroyed?Vi:null}var Ki=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new Hi:("zone.js"===n?void 0:n)||new Oi({enableLongStackTrace:Or()}),o=[{provide:Oi,useValue:i}];return i.run(function(){var e=Ut.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(fi,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return $i(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,i){try{var o=((a=n.injector.get(yi)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return pi(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Gi({},e);return function(t,e,n){return t.get(ki).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Yi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Dt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Gi(t,e){return Array.isArray(e)?e.reduce(Gi,t):o({},t,e)}var Yi=function(){function t(t,e,n,r,i,o){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Or(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new N(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),l=new N(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){Oi.assertNotInAngularZone(),Mt(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Oi.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=Number.POSITIVE_INFINITY,i=null,o=t[t.length-1];return(n=o)&&"function"==typeof n.schedule?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof N?t[0]:function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(t(function(t,r){return(i=e(t,r),i instanceof N?i:new N(W(i))).pipe(G(function(e,i){return n(t,e,r,i)}));var i},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new J(e,r))})}(et,t)}(r)(X(t,i))}(s,l.pipe(function(t){return nt()((e=lt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,at);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){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=t instanceof zn?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Kn?null:this._injector.get(Gn),o=n.create(Ut.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(zi,null);return a&&o.injector.get(Bi).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Or()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.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,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Ii(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;$i(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(wi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),$i(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Di("ApplicationRef#tick()"),t}();function $i(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Xi,Ji=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Mr,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[At()]=function(){return this._results[At()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),to=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return nr(t,ir)},t}(),eo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return er()},t}(),no=(i(function(){return null!==Xi&&Xi.apply(this,arguments)||this},Xi=eo),function(){return function(t,e){this.name=t,this.callback=e}}()),ro=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof io&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),io=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return i(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,c([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof io&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof io&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof io&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(ro),oo=new Map;function ao(t){return oo.get(t)||null}function so(t){oo.set(t.nativeNode,t)}var lo=function(){function t(){}return t.prototype.supports=function(t){return ke(t)},t.prototype.create=function(t){return new co(t)},t}(),uo=function(t,e){return e},co=function(){function t(t){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=t||uo}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<yo(n,r,i)?e:n,a=yo(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var l=a-r,u=s-r;if(l!=u){for(var c=0;c<l;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;u<=f&&f<l&&(i[c]=h+1)}i[o.previousIndex]=u-l}}a!==s&&t(o,a,s)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!ke(t))throw new Error("Error trying to diff '"+Dt(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)i=this._trackByFn(s,r=t[s]),null!==o&&Nt(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Nt(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[At()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&Nt(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),Nt(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Nt(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Nt(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ho(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}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)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new po),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new po),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),ho=function(){return function(t,e){this.item=t,this.trackById=e,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}}(),fo=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Nt(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),po=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new fo,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function yo(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var vo=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Ae(t)},t.prototype.create=function(){return new mo},t}(),mo=function(){function t(){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(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Ae(t)))throw new Error("Error trying to diff '"+Dt(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),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},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new go(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){Nt(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),go=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),_o=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Lt,new Ft]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.ngInjectableDef=dt({providedIn:"root",factory:function(){return new t([new lo])}}),t}(),bo=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Lt,new Ft]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),wo=[new vo],xo=new _o([new lo]),Eo=new bo(wo),Co=Zi(null,"core",[{provide:bi,useValue:"unknown"},{provide:Ki,deps:[Ut]},{provide:Bi,deps:[]},{provide:xi,deps:[]}]),To=new mt("LocaleId");function So(){return xo}function ko(){return Eo}function Ao(t){return t||"en-US"}var Mo=function(){return function(t){}}();function No(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Do(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Io(t,e){return t.nodes[e]}function Oo(t,e){return t.nodes[e]}function Po(t,e){return t.nodes[e]}function Fo(t,e){return t.nodes[e]}function Ro(t,e){return t.nodes[e]}var Lo={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};function jo(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" 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(t,e){var n=new Error(t);return Vo(n,e),n}(i,t)}function Vo(t,e){t[ai]=e,t[li]=e.logError.bind(e)}function Ho(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var zo=function(){},Bo=new Map;function Uo(t){var e=Bo.get(t);return e||(e=Dt(t)+"_"+Bo.size,Bo.set(t,e)),e}var qo="$$undefined",Qo="$$empty";function Zo(t){return{id:qo,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Wo=0;function Ko(t,e,n,r){return!(!(2&t.state)&&Nt(t.oldValues[e.bindingIndex+n],r))}function Go(t,e,n,r){return!!Ko(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Yo(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Ce(i,r)){var o=e.bindings[n].name;throw jo(Lo.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function $o(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Xo(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Jo(t,e,n,r){try{return $o(33554432&t.def.nodes[e].flags?Oo(t,e).componentView:t),Lo.handleEvent(t,e,n,r)}catch(i){t.root.errorHandler.handleError(i)}}function ta(t){return t.parent?Oo(t.parent,t.parentNodeDef.nodeIndex):null}function ea(t){return t.parent?t.parentNodeDef.parent:null}function na(t,e){switch(201347067&e.flags){case 1:return Oo(t,e.nodeIndex).renderElement;case 2:return Io(t,e.nodeIndex).renderText}}function ra(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ia(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function oa(t){return 1<<t%32}function aa(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=u(t,2),o=i[0],a=i[1];"number"==typeof o?(e[o]=a,n|=oa(o)):r[o]=a}),{matchedQueries:e,references:r,matchedQueryIds:n}}function sa(t,e){return t.map(function(t){var n,r,i;return Array.isArray(t)?(i=(n=u(t,2))[0],r=n[1]):(i=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,jt,{value:e,configurable:!0}),{flags:i,token:r,tokenKey:Uo(r)}})}function la(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===ae.Native?Oo(t,n.renderParent.nodeIndex).renderElement:void 0:e}var ua=new WeakMap;function ca(t){var e=ua.get(t);return e||((e=t(function(){return zo})).factory=t,ua.set(t,e)),e}function ha(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(na(t,t.def.lastRenderRootNode))),fa(t,e,0,t.def.nodes.length-1,n,r,i)}function fa(t,e,n,r,i,o,a){for(var s=n;s<=r;s++){var l=t.def.nodes[s];11&l.flags&&da(t,l,e,i,o,a),s+=l.childCount}}function pa(t,e,n,r,i,o){for(var a=t;a&&!ra(a);)a=a.parent;for(var s=a.parent,l=ea(a),u=l.nodeIndex+l.childCount,c=l.nodeIndex+1;c<=u;c++){var h=s.def.nodes[c];h.ngContentIndex===e&&da(s,h,n,r,i,o),c+=h.childCount}if(!s.parent){var f=t.root.projectableNodes[e];if(f)for(c=0;c<f.length;c++)ya(t,f[c],n,r,i,o)}}function da(t,e,n,r,i,o){if(8&e.flags)pa(t,e.ngContent.index,n,r,i,o);else{var a=na(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&ya(t,a,n,r,i,o),32&e.bindingFlags&&ya(Oo(t,e.nodeIndex).componentView,a,n,r,i,o)):ya(t,a,n,r,i,o),16777216&e.flags)for(var s=Oo(t,e.nodeIndex).viewContainer._embeddedViews,l=0;l<s.length;l++)ha(s[l],n,r,i,o);1&e.flags&&!e.element.name&&fa(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function ya(t,e,n,r,i,o){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,i);break;case 3:a.removeChild(r,e);break;case 0:o.push(e)}}var va=/^:([^:]+):(.+)$/;function ma(t){if(":"===t[0]){var e=t.match(va);return[e[1],e[2]]}return["",t]}function ga(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function _a(t,e,n,r,i,o){t|=1;var a=aa(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?ca(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||zo},provider:null,text:null,query:null,ngContent:null}}function ba(t,e,n,r,i,o,a,s,l,c,h,f){var p;void 0===a&&(a=[]),c||(c=zo);var d=aa(n),y=d.matchedQueries,v=d.references,m=d.matchedQueryIds,g=null,_=null;o&&(g=(p=u(ma(o),2))[0],_=p[1]),s=s||[];for(var b=new Array(s.length),w=0;w<s.length;w++){var x=u(s[w],3),E=x[0],C=x[2],T=u(ma(x[1]),2),S=T[0],k=T[1],A=void 0,M=void 0;switch(15&E){case 4:M=C;break;case 1:case 8:A=C}b[w]={flags:E,ns:S,name:k,nonMinifiedName:k,securityContext:A,suffix:M}}l=l||[];var N=new Array(l.length);for(w=0;w<l.length;w++){var D=u(l[w],2);N[w]={type:0,target:D[0],eventName:D[1],propName:null}}var I=(a=a||[]).map(function(t){var e=u(t,2),n=e[1],r=u(ma(e[0]),2);return[r[0],r[1],n]});return f=function(t){if(t&&t.id===qo){var e=null!=t.encapsulation&&t.encapsulation!==ae.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Wo++:Qo}return t&&t.id===Qo&&(t=null),t||null}(f),h&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:y,matchedQueryIds:m,references:v,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:ga(b),outputs:N,element:{ns:g,name:_,attrs:I,template:null,componentProvider:null,componentView:h||null,componentRendererType:f,publicProviders:null,allProviders:null,handleEvent:c||zo},provider:null,text:null,query:null,ngContent:null}}function wa(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,a=t.renderer;if(t.parent||!o){r=i.name?a.createElement(i.name,i.ns):a.createComment("");var s=la(t,e,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===ae.ShadowDom);if(i.attrs)for(var l=0;l<i.attrs.length;l++){var c=u(i.attrs[l],3);a.setAttribute(r,c[1],c[2],c[0])}return r}function xa(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=Ea(t,n.nodeIndex,(h=o.eventName,(c=o.target)?c+":"+h:h)),s=o.target,l=t;"component"===o.target&&(s=null,l=e);var u=l.renderer.listen(s||r,o.eventName,a);t.disposables[n.outputIndex+i]=u}var c,h}function Ea(t,e,n){return function(r){return Jo(t,e,n,r)}}function Ca(t,e,n,r){if(!Go(t,e,n,r))return!1;var i=e.bindings[n],o=Oo(t,e.nodeIndex),a=o.renderElement,s=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var l=t.renderer;null!=o?l.setAttribute(n,i,s,r):l.removeAttribute(n,i,r)}(t,i,a,i.ns,s,r);break;case 2:!function(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,a,s,r);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(ti.STYLE,i);if(null!=o){o=o.toString();var a=e.suffix;null!=a&&(o+=a)}else o=null;var s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,i,a,s,r);break;case 8:!function(t,e,n,r,i){var o=e.securityContext,a=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,a)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,a,s,r)}return!0}var Ta=new Object,Sa=Uo(Ut),ka=Uo(zt),Aa=Uo(Gn);function Ma(t,e,n,r){return n=Ot(n),{index:-1,deps:sa(r,Dt(e)),flags:t,token:e,value:n}}function Na(t,e,n){void 0===n&&(n=Ut.THROW_IF_NOT_FOUND);var r,i,o=re(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var a=e.tokenKey;switch(a){case Sa:case ka:case Aa:return t}var s,l=t._def.providersByKey[a];if(l){var u=t._providers[l.index];return void 0===u&&(u=t._providers[l.index]=Da(t,l)),u===Ta?void 0:u}if((s=yt(e.token))&&(r=t,null!=(i=s).providedIn&&(function(t,e){return t._def.modules.indexOf(i.providedIn)>-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:e.token},t._providers[c]=Ta,t._providers[c]=Da(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{re(o)}}function Da(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Na(t,n[0]));case 2:return new e(Na(t,n[0]),Na(t,n[1]));case 3:return new e(Na(t,n[0]),Na(t,n[1]),Na(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Na(t,n[o]);return new(e.bind.apply(e,c([void 0],i)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(Na(t,n[0]));case 2:return e(Na(t,n[0]),Na(t,n[1]));case 3:return e(Na(t,n[0]),Na(t,n[1]),Na(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Na(t,n[o]);return e.apply(void 0,c(i))}}(t,e.value,e.deps);break;case 2048:n=Na(t,e.deps[0]);break;case 256:n=e.value}return n===Ta||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?Ta:n}function Ia(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ra(n,e),Lo.dirtyParentQueries(r),Pa(r),r}function Oa(t,e,n){var r=e?na(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);ha(n,2,i,o,void 0)}function Pa(t){ha(t,3,null,null,void 0)}function Fa(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ra(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var La=new Object;function ja(t,e,n,r,i,o){return new Va(t,e,n,r,i,o)}var Va=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return i(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ca(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Lo.createRootView(t,e||[],n,i,r,La),s=Po(a,o).instance;return n&&a.renderer.setAttribute(Oo(a,0).renderElement,"ng-version",oi.full),new Ha(a,new qa(a),s)},e}(zn),Ha=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ir(Oo(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ka(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Hn);function za(t,e,n){return new Ba(t,e,n)}var Ba=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new ir(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ka(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=ea(t),t=t.parent;return t?new Ka(t,e):new Ka(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ia(this._data,t);Lo.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new qa(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Kn||(i=o.get(Gn));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=a._view).viewContainerParent=this._view,Fa(o,r,i),function(t,e){var n=ta(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),Lo.dirtyParentQueries(i),Oa(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Ra(o,r),null==i&&(i=o.length),Fa(o,i,a),Lo.dirtyParentQueries(a),Pa(a),Oa(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ia(this._data,t);e&&Lo.destroyView(e)},t.prototype.detach=function(t){var e=Ia(this._data,t);return e?new qa(e):null},t}();function Ua(t){return new qa(t)}var qa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ha(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){$o(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Lo.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Lo.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Lo.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Pa(this._view),Lo.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Qa(t,e){return new Za(t,e)}var Za=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return i(e,t),e.prototype.createEmbeddedView=function(t){return new qa(Lo.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ir(Oo(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Nr);function Wa(t,e){return new Ka(t,e)}var Ka=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Ut.THROW_IF_NOT_FOUND),Lo.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Uo(t)},e)},t}();function Ga(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Oo(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Io(t,n.nodeIndex).renderText;if(20240&n.flags)return Po(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ya(t){return new $a(t.renderer)}var $a=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=u(ma(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=u(ma(e),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function Xa(t,e,n,r){return new Ja(t,e,n,r)}var Ja=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Da(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Ut.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),Na(this,{token:t,tokenKey:Uo(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Zn)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+Dt(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=t._providers[i];if(o&&o!==Ta){var a=o.ngOnDestroy;"function"!=typeof a||r.has(o)||(a.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),ts=Uo(or),es=Uo(lr),ns=Uo(ir),rs=Uo(to),is=Uo(Nr),os=Uo(eo),as=Uo(Ut),ss=Uo(zt);function ls(t,e,n,r,i,o,a,s){var l=[];if(a)for(var c in a){var h=u(a[c],2);l[h[0]]={flags:8,name:c,nonMinifiedName:h[1],ns:null,securityContext:null,suffix:null}}var f=[];if(s)for(var p in s)f.push({type:1,propName:p,target:null,eventName:s[p]});return us(t,e|=16384,n,r,i,i,o,l,f)}function us(t,e,n,r,i,o,a,s,l){var u=aa(n),c=u.matchedQueries,h=u.references,f=u.matchedQueryIds;l||(l=[]),s||(s=[]),o=Ot(o);var p=sa(a,Dt(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:f,references:h,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ga(s),outputs:l,element:null,provider:{token:i,value:o,deps:p},text:null,query:null,ngContent:null}}function cs(t,e){return ds(t,e)}function hs(t,e){for(var n=t;n.parent&&!ra(n);)n=n.parent;return ys(n.parent,ea(n),!0,e.provider.value,e.provider.deps)}function fs(t,e){var n,r=ys(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],a=r[o.propName];if(!(n=a)||"function"!=typeof n.subscribe)throw new Error("@Output "+o.propName+" not initialized in '"+r.constructor.name+"'.");var s=a.subscribe(ps(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function ps(t,e,n){return function(r){return Jo(t,e,n,r)}}function ds(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return ys(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(ms(t,e,n,i[0]));case 2:return r(ms(t,e,n,i[0]),ms(t,e,n,i[1]));case 3:return r(ms(t,e,n,i[0]),ms(t,e,n,i[1]),ms(t,e,n,i[2]));default:for(var a=Array(o),s=0;s<o;s++)a[s]=ms(t,e,n,i[s]);return r.apply(void 0,c(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return ms(t,e.parent,n,r.deps[0]);case 256:return r.value}}function ys(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(ms(t,e,n,i[0]));case 2:return new r(ms(t,e,n,i[0]),ms(t,e,n,i[1]));case 3:return new r(ms(t,e,n,i[0]),ms(t,e,n,i[1]),ms(t,e,n,i[2]));default:for(var a=new Array(o),s=0;s<o;s++)a[s]=ms(t,e,n,i[s]);return new(r.bind.apply(r,c([void 0],a)))}}var vs={};function ms(t,e,n,r,i){if(void 0===i&&(i=Ut.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var a=r.tokenKey;a===os&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var s=t;s;){if(e)switch(a){case ts:return Ya(gs(s,e,n));case es:return gs(s,e,n).renderer;case ns:return new ir(Oo(s,e.nodeIndex).renderElement);case rs:return Oo(s,e.nodeIndex).viewContainer;case is:if(e.element.template)return Oo(s,e.nodeIndex).template;break;case os:return Ua(gs(s,e,n));case as:case ss:return Wa(s,e);default:var l=(n?e.element.allProviders:e.element.publicProviders)[a];if(l){var u=Po(s,l.nodeIndex);return u||(u={instance:ds(s,l)},s.nodes[l.nodeIndex]=u),u.instance}}n=ra(s),e=ea(s),s=s.parent,4&r.flags&&(s=null)}var c=o.root.injector.get(r.token,vs);return c!==vs||i===vs?c:o.root.ngModule.injector.get(r.token,i)}function gs(t,e,n){var r;if(n)r=Oo(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!ra(r);)r=r.parent;return r}function _s(t,e,n,r,i,o){if(32768&n.flags){var a=Oo(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var s=Te.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Se(s,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function bs(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&e&&xs(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=ws(t,a,e,r)),a=a.parent}}function ws(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&xs(t,i,o.flags&n,r++),i+=o.childCount}return r}function xs(t,e,n,r){var i=Po(t,e);if(i){var o=i.instance;o&&(Lo.setCurrentNode(t,e),1048576&n&&Do(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Do(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Es(t,e,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:oa(e),bindings:r},ngContent:null}}function Cs(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ia(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&Ro(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&Ro(t,i).setDirty(),i+=o.childCount}}function Ts(t,e){var n=Ro(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Ss(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Po(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Ss(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var a=e.query.bindings,s=!1,l=0;l<a.length;l++){var u=a[l],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}r[u.propName]=c}s&&n.notifyOnChanges()}}function Ss(t,e,n,r,i){for(var o=e;o<=n;o++){var a=t.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(ks(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var l=Oo(t,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(Ss(t,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var u=l.viewContainer._embeddedViews,c=0;c<u.length;c++){var h=u[c],f=ta(h);f&&f===l&&Ss(h,0,h.def.nodes.length-1,r,i)}var p=l.template._projectedViews;if(p)for(c=0;c<p.length;c++){var d=p[c];Ss(d,0,d.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function ks(t,e,n){if(null!=n)switch(n){case 1:return Oo(t,e.nodeIndex).renderElement;case 0:return new ir(Oo(t,e.nodeIndex).renderElement);case 2:return Oo(t,e.nodeIndex).template;case 3:return Oo(t,e.nodeIndex).viewContainer;case 4:return Po(t,e.nodeIndex).instance}}function As(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Ms(t,e,n){var r=la(t,e,n);r&&pa(t,n.ngContent.index,1,r,null,void 0)}function Ns(t,e){return Is(32,t,new Array(e))}function Ds(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var a=n[o];i[e[a]]=a}return Is(64,t,i)}function Is(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ga(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Os(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Ps(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=la(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function Fs(t,e){return(null!=t?t.toString():"")+e.suffix}function Rs(t,e,n,r){for(var i=0,o=0,a=0,s=0,l=0,u=null,c=null,h=!1,f=!1,p=null,d=0;d<e.length;d++){var y=e[d];if(y.nodeIndex=d,y.parent=u,y.bindingIndex=i,y.outputIndex=o,y.renderParent=c,a|=y.flags,l|=y.matchedQueryIds,y.element){var v=y.element;v.publicProviders=u?u.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,h=!1,f=!1,y.element.template&&(l|=y.element.template.nodeMatchedQueries)}if(js(u,y,e.length),i+=y.bindings.length,o+=y.outputs.length,!c&&3&y.flags&&(p=y),20224&y.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var m=0!=(32768&y.flags);0==(8192&y.flags)||m?u.element.publicProviders[Uo(y.provider.token)]=y:(f||(f=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Uo(y.provider.token)]=y),m&&(u.element.componentProvider=y)}if(u?(u.childFlags|=y.flags,u.directChildFlags|=y.flags,u.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(u.childMatchedQueries|=y.element.template.nodeMatchedQueries)):s|=y.flags,y.childCount>0)u=y,Ls(y)||(c=y);else for(;u&&d===u.nodeIndex+u.childCount;){var g=u.parent;g&&(g.childFlags|=u.childFlags,g.childMatchedQueries|=u.childMatchedQueries),c=(u=g)&&Ls(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||zo,updateRenderer:r||zo,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:p}}function Ls(t){return 0!=(1&t.flags)&&null===t.element.name}function js(t,e,n){var r=e.element&&e.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 "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Vs(t,e,n,r){var i=Bs(t.root,t.renderer,t,e,n);return Us(i,t.component,r),qs(i),i}function Hs(t,e,n){var r=Bs(t,t.renderer,null,null,e);return Us(r,n,n),qs(r),r}function zs(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Bs(t.root,i,t,e.element.componentProvider,n)}function Bs(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Us(t,e,n){t.component=e,t.context=n}function qs(t){var e;ra(t)&&(e=Oo(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Lo.setCurrentNode(t,i);var a=void 0;switch(201347067&o.flags){case 1:var s=wa(t,e,o),l=void 0;if(33554432&o.flags){var u=ca(o.element.componentView);l=Lo.createComponentView(t,o,u,s)}xa(t,l,o,s),a={renderElement:s,componentView:l,viewContainer:null,template:o.element.template?Qa(t,o):void 0},16777216&o.flags&&(a.viewContainer=za(t,o,a));break;case 2:a=Ps(t,e,o);break;case 512:case 1024:case 2048:case 256:(a=r[i])||4096&o.flags||(a={instance:cs(t,o)});break;case 16:a={instance:hs(t,o)};break;case 16384:(a=r[i])||(a={instance:fs(t,o)}),32768&o.flags&&Us(Oo(t,o.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new Ji;break;case 8:Ms(t,e,o),a=void 0}r[i]=a}Js(t,Xs.CreateViewNodes),rl(t,201326592,268435456,0)}function Qs(t){Ks(t),Lo.updateDirectives(t,1),tl(t,Xs.CheckNoChanges),Lo.updateRenderer(t,1),Js(t,Xs.CheckNoChanges),t.state&=-97}function Zs(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,No(t,0,256),Ks(t),Lo.updateDirectives(t,0),tl(t,Xs.CheckAndUpdate),rl(t,67108864,536870912,0);var e=No(t,256,512);bs(t,2097152|(e?1048576:0)),Lo.updateRenderer(t,0),Js(t,Xs.CheckAndUpdate),rl(t,134217728,536870912,0),bs(t,8388608|((e=No(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,No(t,768,1024)}function Ws(t,e,n,r,i,o,a,s,l,u,h,f,p){return 0===n?function(t,e,n,r,i,o,a,s,l,u,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,a,s,l,u,c,h){var f=e.bindings.length,p=!1;return f>0&&Ca(t,e,0,n)&&(p=!0),f>1&&Ca(t,e,1,r)&&(p=!0),f>2&&Ca(t,e,2,i)&&(p=!0),f>3&&Ca(t,e,3,o)&&(p=!0),f>4&&Ca(t,e,4,a)&&(p=!0),f>5&&Ca(t,e,5,s)&&(p=!0),f>6&&Ca(t,e,6,l)&&(p=!0),f>7&&Ca(t,e,7,u)&&(p=!0),f>8&&Ca(t,e,8,c)&&(p=!0),f>9&&Ca(t,e,9,h)&&(p=!0),p}(t,e,n,r,i,o,a,s,l,u,c,h);case 2:return function(t,e,n,r,i,o,a,s,l,u,c,h){var f=!1,p=e.bindings,d=p.length;if(d>0&&Go(t,e,0,n)&&(f=!0),d>1&&Go(t,e,1,r)&&(f=!0),d>2&&Go(t,e,2,i)&&(f=!0),d>3&&Go(t,e,3,o)&&(f=!0),d>4&&Go(t,e,4,a)&&(f=!0),d>5&&Go(t,e,5,s)&&(f=!0),d>6&&Go(t,e,6,l)&&(f=!0),d>7&&Go(t,e,7,u)&&(f=!0),d>8&&Go(t,e,8,c)&&(f=!0),d>9&&Go(t,e,9,h)&&(f=!0),f){var y=e.text.prefix;d>0&&(y+=Fs(n,p[0])),d>1&&(y+=Fs(r,p[1])),d>2&&(y+=Fs(i,p[2])),d>3&&(y+=Fs(o,p[3])),d>4&&(y+=Fs(a,p[4])),d>5&&(y+=Fs(s,p[5])),d>6&&(y+=Fs(l,p[6])),d>7&&(y+=Fs(u,p[7])),d>8&&(y+=Fs(c,p[8])),d>9&&(y+=Fs(h,p[9]));var v=Io(t,e.nodeIndex).renderText;t.renderer.setValue(v,y)}return f}(t,e,n,r,i,o,a,s,l,u,c,h);case 16384:return function(t,e,n,r,i,o,a,s,l,u,c,h){var f=Po(t,e.nodeIndex),p=f.instance,d=!1,y=void 0,v=e.bindings.length;return v>0&&Ko(t,e,0,n)&&(d=!0,y=_s(t,f,e,0,n,y)),v>1&&Ko(t,e,1,r)&&(d=!0,y=_s(t,f,e,1,r,y)),v>2&&Ko(t,e,2,i)&&(d=!0,y=_s(t,f,e,2,i,y)),v>3&&Ko(t,e,3,o)&&(d=!0,y=_s(t,f,e,3,o,y)),v>4&&Ko(t,e,4,a)&&(d=!0,y=_s(t,f,e,4,a,y)),v>5&&Ko(t,e,5,s)&&(d=!0,y=_s(t,f,e,5,s,y)),v>6&&Ko(t,e,6,l)&&(d=!0,y=_s(t,f,e,6,l,y)),v>7&&Ko(t,e,7,u)&&(d=!0,y=_s(t,f,e,7,u,y)),v>8&&Ko(t,e,8,c)&&(d=!0,y=_s(t,f,e,8,c,y)),v>9&&Ko(t,e,9,h)&&(d=!0,y=_s(t,f,e,9,h,y)),y&&p.ngOnChanges(y),65536&e.flags&&Do(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),d}(t,e,n,r,i,o,a,s,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,l,u,c,h){var f=e.bindings,p=!1,d=f.length;if(d>0&&Go(t,e,0,n)&&(p=!0),d>1&&Go(t,e,1,r)&&(p=!0),d>2&&Go(t,e,2,i)&&(p=!0),d>3&&Go(t,e,3,o)&&(p=!0),d>4&&Go(t,e,4,a)&&(p=!0),d>5&&Go(t,e,5,s)&&(p=!0),d>6&&Go(t,e,6,l)&&(p=!0),d>7&&Go(t,e,7,u)&&(p=!0),d>8&&Go(t,e,8,c)&&(p=!0),d>9&&Go(t,e,9,h)&&(p=!0),p){var y=Fo(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(f.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=i),d>3&&(v[3]=o),d>4&&(v[4]=a),d>5&&(v[5]=s),d>6&&(v[6]=l),d>7&&(v[7]=u),d>8&&(v[8]=c),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[f[0].name]=n),d>1&&(v[f[1].name]=r),d>2&&(v[f[2].name]=i),d>3&&(v[f[3].name]=o),d>4&&(v[f[4].name]=a),d>5&&(v[f[5].name]=s),d>6&&(v[f[6].name]=l),d>7&&(v[f[7].name]=u),d>8&&(v[f[8].name]=c),d>9&&(v[f[9].name]=h);break;case 128:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,a);break;case 6:v=m.transform(r,i,o,a,s);break;case 7:v=m.transform(r,i,o,a,s,l);break;case 8:v=m.transform(r,i,o,a,s,l,u);break;case 9:v=m.transform(r,i,o,a,s,l,u,c);break;case 10:v=m.transform(r,i,o,a,s,l,u,c,h)}}y.value=v}return p}(t,e,n,r,i,o,a,s,l,u,c,h);default:throw"unreachable"}}(t,e,r,i,o,a,s,l,u,h,f,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)Ca(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Go(t,e,o,n[o])&&(i=!0);if(i){var a="";for(o=0;o<n.length;o++)a+=Fs(n[o],r[o]);a=e.text.prefix+a;var s=Io(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=Po(t,e.nodeIndex),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)Ko(t,e,s,n[s])&&(o=!0,a=_s(t,r,e,s,n[s],a));return a&&i.ngOnChanges(a),65536&e.flags&&Do(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Go(t,e,o,n[o])&&(i=!0);if(i){var a=Fo(t,e.nodeIndex),s=void 0;switch(201347067&e.flags){case 32:s=n;break;case 64:for(s={},o=0;o<n.length;o++)s[r[o].name]=n[o];break;case 128:var l=n[0],u=n.slice(1);s=l.transform.apply(l,c(u))}a.value=s}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function Ks(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Oo(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,Xo(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Gs(t,e,n,r,i,o,a,s,l,u,c,h,f){return 0===n?function(t,e,n,r,i,o,a,s,l,u,c,h){var f=e.bindings.length;f>0&&Yo(t,e,0,n),f>1&&Yo(t,e,1,r),f>2&&Yo(t,e,2,i),f>3&&Yo(t,e,3,o),f>4&&Yo(t,e,4,a),f>5&&Yo(t,e,5,s),f>6&&Yo(t,e,6,l),f>7&&Yo(t,e,7,u),f>8&&Yo(t,e,8,c),f>9&&Yo(t,e,9,h)}(t,e,r,i,o,a,s,l,u,c,h,f):function(t,e,n){for(var r=0;r<n.length;r++)Yo(t,e,r,n[r])}(t,e,r),!1}function Ys(t,e){if(Ro(t,e.nodeIndex).dirty)throw jo(Lo.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function $s(t){if(!(128&t.state)){if(tl(t,Xs.Destroy),Js(t,Xs.Destroy),bs(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=ta(t);if(e){var n=e.template._projectedViews;n&&(Ra(n,n.indexOf(t)),Lo.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Oo(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Io(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&Ro(t,n).destroy()}}(t),ra(t)&&t.renderer.destroy(),t.state|=128}}var Xs=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function Js(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?el(Oo(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function tl(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Oo(t,r).viewContainer._embeddedViews,a=0;a<o.length;a++)el(o[a],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function el(t,e){var n=t.state;switch(e){case Xs.CheckNoChanges:0==(128&n)&&(12==(12&n)?Qs(t):64&n&&nl(t,Xs.CheckNoChangesProjectedViews));break;case Xs.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Qs(t):64&n&&nl(t,e));break;case Xs.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Zs(t):64&n&&nl(t,Xs.CheckAndUpdateProjectedViews));break;case Xs.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Zs(t):64&n&&nl(t,e));break;case Xs.Destroy:$s(t);break;case Xs.CreateViewNodes:qs(t)}}function nl(t,e){tl(t,e),Js(t,e)}function rl(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var a=t.def.nodes[o];if(a.flags&e&&a.flags&n)switch(Lo.setCurrentNode(t,a.nodeIndex),r){case 0:Ts(t,a);break;case 1:Ys(t,a)}a.childFlags&e&&a.childFlags&n||(o+=a.childCount)}}var il=!1;function ol(t,e,n,r,i,o){var a=i.injector.get(ar);return Hs(sl(t,i,a,e,n),r,o)}function al(t,e,n,r,i,o){var a=i.injector.get(ar),s=sl(t,i,new zl(a),e,n),l=ml(r);return Vl(Sl.create,Hs,null,[s,l,o])}function sl(t,e,n,r,i){var o=e.injector.get(ei),a=e.injector.get(fi),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:s,errorHandler:a}}function ll(t,e,n,r){var i=ml(n);return Vl(Sl.create,Vs,null,[t,e,i,r])}function ul(t,e,n,r){return n=pl.get(e.element.componentProvider.provider.token)||ml(n),Vl(Sl.create,zs,null,[t,e,n,r])}function cl(t,e,n,r){return Xa(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===hl.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=hl.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){fl.forEach(function(r,i){yt(i).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var r=t.providers[e];n&&(r.flags|=4096);var i=hl.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=sa(i.deps),r.value=i.value)}if(fl.size>0){var o=new Set(t.modules);fl.forEach(function(e,r){if(o.has(yt(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:sa(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Uo(r)]=i}})}}(t=t.factory(function(){return zo})),t):t}(r))}var hl=new Map,fl=new Map,pl=new Map;function dl(t){var e;hl.set(t.token,t),"function"==typeof t.token&&(e=yt(t.token))&&"function"==typeof e.providedIn&&fl.set(t.token,t)}function yl(t,e){var n=ca(e.viewDefFactory),r=ca(n.nodes[0].element.componentView);pl.set(t,r)}function vl(){hl.clear(),fl.clear(),pl.clear()}function ml(t){if(0===hl.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&hl.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return zo});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=hl.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=sa(o.deps),i.value=o.value)}}}}function gl(t,e,n,r,i,o,a,s,l,u,c,h,f){var p=t.def.nodes[e];return Ws(t,p,n,r,i,o,a,s,l,u,c,h,f),224&p.flags?Fo(t,e).value:void 0}function _l(t,e,n,r,i,o,a,s,l,u,c,h,f){var p=t.def.nodes[e];return Gs(t,p,n,r,i,o,a,s,l,u,c,h,f),224&p.flags?Fo(t,e).value:void 0}function bl(t){return Vl(Sl.detectChanges,Zs,null,[t])}function wl(t){return Vl(Sl.checkNoChanges,Qs,null,[t])}function xl(t){return Vl(Sl.destroy,$s,null,[t])}var El,Cl,Tl,Sl=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function kl(t,e){Cl=t,Tl=e}function Al(t,e,n,r){return kl(t,e),Vl(Sl.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Ml(t,e){if(128&t.state)throw Ho(Sl[El]);return kl(t,Fl(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Dl(t,a,r,i):Il(t,a,r,i),16384&a.flags&&kl(t,Fl(t,n)),224&a.flags?Fo(t,a.nodeIndex).value:void 0},t)}function Nl(t,e){if(128&t.state)throw Ho(Sl[El]);return kl(t,Rl(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Dl(t,a,r,i):Il(t,a,r,i),3&a.flags&&kl(t,Rl(t,n)),224&a.flags?Fo(t,a.nodeIndex).value:void 0},t)}function Dl(t,e,n,r){if(Ws.apply(void 0,c([t,e,n],r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],l=i[a];8&s.flags&&(o[(p=s.nonMinifiedName,d=void 0,d=p.replace(/[$@]/g,"_"),"ng-reflect-"+(p=d.replace(Ol,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})))]=Pl(l))}var u=e.parent,h=Oo(t,u.nodeIndex).renderElement;if(u.element.name)for(var f in o)null!=(l=o[f])?t.renderer.setAttribute(h,f,l):t.renderer.removeAttribute(h,f);else t.renderer.setValue(h,"bindings="+JSON.stringify(o,null,2))}}var p,d}function Il(t,e,n,r){Gs.apply(void 0,c([t,e,n],r))}var Ol=/([A-Z])/g;function Pl(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Fl(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Rl(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Ll=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ea(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Oo(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Wa(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){jl(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&jl(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!ra(t);)t=t.parent;return t.parent?Oo(t.parent,ea(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?na(this.view,this.nodeDef):na(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===o?(e=t.error).bind.apply(e,c([t],r)):zo}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,c(r)))},t}();function jl(t,e,n){for(var r in e.references)n[r]=ks(t,e,e.references[r])}function Vl(t,e,n,r){var i=El,o=Cl,a=Tl;try{El=t;var s=e.apply(n,r);return Cl=o,Tl=a,El=i,s}catch(l){if(ui(l)||!Cl)throw l;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Vo(t,e),t}(l,Hl())}}function Hl(){return Cl?new Ll(Cl,Tl):null}var zl=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Bl(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Bl=function(){function t(t){this.delegate=t,this.debugContextFactory=Hl,this.data=this.delegate.data}return t.prototype.createDebugContext=function(t){return this.debugContextFactory(t)},t.prototype.destroyNode=function(t){!function(t){oo.delete(t.nativeNode)}(ao(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){var i=new io(n,null,r);i.name=t,so(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&so(new ro(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&so(new ro(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=ao(t),r=ao(e);n&&r&&n instanceof io&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=ao(t),i=ao(e),o=ao(n);r&&i&&r instanceof io&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=ao(t),r=ao(e);n&&r&&n instanceof io&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=Hl()||null;return r&&so(new io(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var i=ao(t);i&&i instanceof io&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=ao(t);r&&r instanceof io&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=ao(t);n&&n instanceof io&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=ao(t);n&&n instanceof io&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=ao(t);i&&i instanceof io&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=ao(t);r&&r instanceof io&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=ao(t);r&&r instanceof io&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=ao(t);r&&r.listeners.push(new no(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();function Ul(t,e,n){return new ql(t,e,n)}var ql=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return i(e,t),e.prototype.create=function(t){!function(){if(!il){il=!0;var t=Or()?{setCurrentNode:kl,createRootView:al,createEmbeddedView:ll,createComponentView:ul,createNgModuleRef:cl,overrideProvider:dl,overrideComponentView:yl,clearOverrides:vl,checkAndUpdateView:bl,checkNoChangesView:wl,destroyView:xl,createDebugContext:function(t,e){return new Ll(t,e)},handleEvent:Al,updateDirectives:Ml,updateRenderer:Nl}:{setCurrentNode:function(){},createRootView:ol,createEmbeddedView:Vs,createComponentView:zs,createNgModuleRef:Xa,overrideProvider:zo,overrideComponentView:zo,clearOverrides:zo,checkAndUpdateView:Zs,checkNoChangesView:Qs,destroyView:$s,createDebugContext:function(t,e){return new Ll(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?gl:_l,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?gl:_l,t)}};Lo.setCurrentNode=t.setCurrentNode,Lo.createRootView=t.createRootView,Lo.createEmbeddedView=t.createEmbeddedView,Lo.createComponentView=t.createComponentView,Lo.createNgModuleRef=t.createNgModuleRef,Lo.overrideProvider=t.overrideProvider,Lo.overrideComponentView=t.overrideComponentView,Lo.clearOverrides=t.clearOverrides,Lo.checkAndUpdateView=t.checkAndUpdateView,Lo.checkNoChangesView=t.checkNoChangesView,Lo.destroyView=t.destroyView,Lo.resolveDep=ms,Lo.createDebugContext=t.createDebugContext,Lo.handleEvent=t.handleEvent,Lo.updateDirectives=t.updateDirectives,Lo.updateRenderer=t.updateRenderer,Lo.dirtyParentQueries=Cs}}();var e=function(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(ca(this._ngModuleDefFactory));return Lo.createNgModuleRef(this.moduleType,t||Ut.NULL,this._bootstrapComponents,e)},e}(Yn),Ql=function(){return function(){}}(),Zl=function(){return function(){var t=this;this.data=[{name:"Montserrat",series:[{value:2982,name:"2016-09-22T15:59:23.936Z"},{value:6698,name:"2016-09-22T01:18:14.719Z"},{value:4889,name:"2016-09-16T17:03:04.637Z"},{value:2783,name:"2016-09-20T12:46:28.015Z"},{value:2515,name:"2016-09-16T02:33:37.649Z"}]},{name:"Sudan",series:[{value:3717,name:"2016-09-22T15:59:23.936Z"},{value:3933,name:"2016-09-22T01:18:14.719Z"},{value:3899,name:"2016-09-16T17:03:04.637Z"},{value:5439,name:"2016-09-20T12:46:28.015Z"},{value:3562,name:"2016-09-16T02:33:37.649Z"}]},{name:"Cameroon",series:[{value:3869,name:"2016-09-22T15:59:23.936Z"},{value:6431,name:"2016-09-22T01:18:14.719Z"},{value:5628,name:"2016-09-16T17:03:04.637Z"},{value:4173,name:"2016-09-20T12:46:28.015Z"},{value:2158,name:"2016-09-16T02:33:37.649Z"}]},{name:"Monaco",series:[{value:3648,name:"2016-09-22T15:59:23.936Z"},{value:5082,name:"2016-09-22T01:18:14.719Z"},{value:3846,name:"2016-09-16T17:03:04.637Z"},{value:3375,name:"2016-09-20T12:46:28.015Z"},{value:5817,name:"2016-09-16T02:33:37.649Z"}]},{name:"Sao Tome and Principe",series:[{value:4275,name:"2016-09-22T15:59:23.936Z"},{value:3651,name:"2016-09-22T01:18:14.719Z"},{value:4816,name:"2016-09-16T17:03:04.637Z"},{value:6281,name:"2016-09-20T12:46:28.015Z"},{value:5571,name:"2016-09-16T02:33:37.649Z"}]}],this.customColors=[],this.activeEntries=[],this.colors=["#112F41","#068587","#4FB99F","#F2B134","#ED553B"],this.customColors=this.colors.map(function(e,n){return{name:t.data[n].name,value:e}})}}(),Wl=function(){return function(){}}(),Kl=function(){return function(){}}(),Gl=new mt("appBaseHref"),Yl=function(){function t(t){var n=this;this._subject=new Mr,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash($l(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,$l(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function $l(t){return t.replace(/\/index.html$/,"")}var Xl=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return i(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Yl.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Yl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Yl.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Yl.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Kl),Jl=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],tu={},eu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),nu=new mt("UseV4Plurals"),ru=function(){return function(){}}(),iu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return i(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=tu[e];if(n)return n;var r=e.split("-")[0];if(n=tu[r])return n;if("en"===r)return Jl;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case eu.Zero:return"zero";case eu.One:return"one";case eu.Two:return"two";case eu.Few:return"few";case eu.Many:return"many";default:return"other"}},e}(ru),ou=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),au=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Or()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new ou(null,e._ngForOf,-1,-1),i),a=new su(t,o);n.push(a)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new su(t,o),n.push(a))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.ngTemplateContextGuard=function(t,e){return!0},t}(),su=function(){return function(t,e){this.record=t,this.view=e}}(),lu=function(){function t(t,e){this._viewContainer=t,this._context=new uu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){cu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){cu("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t.ngTemplateGuard_ngIf=function(t,e){return!0},t}(),uu=function(){return function(){this.$implicit=null,this.ngIf=null}}();function cu(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Dt(e)+"'.")}var hu=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e,n,r=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(r.length===i.length){try{for(var o=l(i),a=o.next();!a.done;a=o.next())if(-1===r.indexOf(a.value))return!0}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1}return!0},t.prototype._updateExistingContext=function(t){var e,n;try{for(var r=l(Object.keys(t)),i=r.next();!i.done;i=r.next()){var o=i.value;this._viewRef.context[o]=this.ngTemplateOutletContext[o]}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t}(),fu=function(){return function(){}}(),pu=new mt("DocumentToken"),du="server",yu=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({}),vu=7;function mu(t,e,n){return"top"===n?t.top-vu:"bottom"===n?t.top+t.height-e.height+vu:"center"===n?t.top+t.height/2-e.height/2:void 0}function gu(t,e,n){return"left"===n?t.left-vu:"right"===n?t.left+t.width-e.width+vu:"center"===n?t.left+t.width/2-e.width/2:void 0}var _u=function(){function t(){}return t.calculateVerticalAlignment=function(t,e,n){var r=mu(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r},t.calculateVerticalCaret=function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+vu),"bottom"===r&&(i=e.height-t.height/2-n.height/2-vu),"center"===r&&(i=e.height/2-n.height/2);var o=mu(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i},t.calculateHorizontalAlignment=function(t,e,n){var r=gu(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r},t.calculateHorizontalCaret=function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+vu),"right"===r&&(i=e.width-t.width/2-n.width/2-vu),"center"===r&&(i=e.width/2-n.width/2);var o=gu(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i},t.shouldFlip=function(t,e,n,r,i){var o=!1;return"right"===n&&gu(t,e,r)+e.width+i>window.innerWidth&&(o=!0),"left"===n&&gu(t,e,r)-i<0&&(o=!0),"top"===n&&t.top-e.height-i<0&&(o=!0),"bottom"===n&&mu(t,e,r)+e.height+i>window.innerHeight&&(o=!0),o},t.positionCaret=function(e,n,r,i,o){var a=0,s=0;return e===yu.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===yu.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===yu.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===yu.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}},t.positionContent=function(e,n,r,i,o){var a=0,s=0;return e===yu.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===yu.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===yu.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===yu.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}},t.determinePlacement=function(e,n,r,i,o){if(t.shouldFlip(r,n,e,o,i)){if(e===yu.right)return yu.left;if(e===yu.left)return yu.right;if(e===yu.top)return yu.bottom;if(e===yu.bottom)return yu.top}return e},t}(),bu=function(){function t(t,e){this.element=t,this.renderer=e}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){var t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,(t+=" type-"+this.type)+" "+this.cssClass},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},t.prototype.position=function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}},t.prototype.positionContent=function(t,e,n){var r=_u.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.left;this.renderer.setStyle(t,"top",r.top+"px"),this.renderer.setStyle(t,"left",i+"px")},t.prototype.positionCaret=function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=_u.positionCaret(this.placement,e,t,r,this.alignment),o=i.left;this.renderer.setStyle(n,"top",i.top+"px"),this.renderer.setStyle(n,"left",o+"px")},t.prototype.checkFlip=function(t,e){this.placement=_u.determinePlacement(this.placement,e,t,this.spacing,this.alignment)},t.prototype.onWindowResize=function(){this.position()},a([ii("window:resize"),(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:function(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function l(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var e=+new Date;s||!1!==n.leading||(s=e);var u=100-(e-s);return r=this,i=arguments,u<=0?(clearTimeout(a),a=null,s=e,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(l,u)),o}}(n.value,0,void 0)}),this[e]}}}),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onWindowResize",null),t}(),wu=Zo({encapsulation:2,styles:[[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s;transition:opacity .3s,transform .3s,-webkit-transform .3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}"]],data:{}});function xu(t){return Rs(0,[(t()(),_a(0,null,null,0))],null,null)}function Eu(t){return Rs(0,[(t()(),ba(0,0,null,null,3,"span",[],null,null,null,null,null)),(t()(),_a(16777216,null,null,2,null,xu)),ls(2,540672,null,0,hu,[to],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Ds(3,{model:0})],function(t,e){var n=e.component,r=t(e,3,0,n.context);t(e,2,0,r,n.template)},null)}function Cu(t){return Rs(0,[(t()(),ba(0,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.title)})}function Tu(t){return Rs(0,[Es(402653184,1,{caretElm:0}),(t()(),ba(1,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),ba(2,0,[[1,0],["caretElm",1]],null,0,"span",[],[[8,"hidden",0],[8,"className",0]],null,null,null,null)),(t()(),ba(3,0,null,null,4,"div",[["class","tooltip-content"]],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Eu)),ls(5,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,Cu)),ls(7,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,!n.title),t(e,7,0,n.title)},function(t,e){var n,r=e.component;t(e,2,0,!r.showCaret,"tooltip-caret position-"+(null!=(n=r.placement)?n.toString():""))})}function Su(t){return Rs(0,[(t()(),ba(0,0,null,null,1,"ngx-tooltip-content",[],[[8,"className",0]],[["window","resize"]],function(t,e,n){var r=!0;return"window:resize"===e&&(r=!1!==Ga(t,1).onWindowResize()&&r),r},Tu,wu)),ls(1,4243456,null,0,bu,[ir,lr],null,null)],null,function(t,e){t(e,0,0,Ga(e,1).cssClasses)})}var ku=ja("ngx-tooltip-content",bu,Su,{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},{},[]);function Au(t,e){return void 0===e&&(e=16),"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}function Mu(t,e){if(t.length>e){for(var n=[],r=Math.floor(t.length/e),i=0;i<t.length;i++)i%r==0&&n.push(t[i]);t=n}return t}var Nu=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.dimensionsChanged=new Mr,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.trimLabel=Au}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t=this,e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};var n=this.getRotationAngle(this.ticks);this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",0!==n?(this.textTransform="rotate("+n+")",this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(function(){return t.updateDims()})},t.prototype.getRotationAngle=function(t){for(var e=0,n=0;n<t.length;n++){var r=this.tickFormat(t[n]).toString();r.length>this.maxTicksLength&&(this.maxTicksLength=r.length)}for(var i=8*Math.min(this.maxTicksLength,this.maxAllowedLength),o=i,a=Math.floor(this.width/t.length);o>a&&e>-90;)e-=30,o=Math.cos(e*(Math.PI/180))*i;return e},t.prototype.getTicks=function(){var t=this.getMaxTicks(20),e=this.getMaxTicks(100);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.apply(this.scale,[e]):Mu(this.scale.domain(),t)},t.prototype.getMaxTicks=function(t){return Math.floor(this.width/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(0,"+(-this.verticalSpacing-5)+")"},t}(),Du=Zo({encapsulation:2,styles:[],data:{}});function Iu(t){return Rs(0,[(t()(),ba(0,0,null,null,4,":svg:g",[["class","tick"]],[[1,"transform",0]],null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:title",[],null,null,null,null,null)),(t()(),Os(2,null,["",""])),(t()(),ba(3,0,null,null,1,":svg:text",[["stroke-width","0.01"]],[[1,"text-anchor",0],[1,"transform",0],[4,"font-size",null]],null,null,null,null)),(t()(),Os(4,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.tickTransform(e.context.$implicit)),t(e,2,0,n.tickFormat(e.context.$implicit)),t(e,3,0,n.textAnchor,n.textTransform,"12px"),t(e,4,0,n.trimLabel(n.tickFormat(e.context.$implicit)))})}function Ou(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(t()(),ba(1,0,null,null,0,":svg:line",[["class","gridline-path gridline-path-vertical"],["y2","0"]],[[1,"y1",0]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.gridLineTransform()),t(e,1,0,0-n.gridLineHeight)})}function Pu(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Ou)),ls(2,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.showGridLines)},function(t,e){t(e,0,0,e.component.tickTransform(e.context.$implicit))})}function Fu(t){return Rs(2,[Es(402653184,1,{ticksElement:0}),(t()(),ba(1,0,[[1,0],["ticksel",1]],null,2,":svg:g",[],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Iu)),ls(3,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null),(t()(),_a(16777216,null,null,1,null,Pu)),ls(5,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.ticks),t(e,5,0,n.ticks)},null)}var Ru=function(){function t(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}},t}(),Lu=Zo({encapsulation:2,styles:[],data:{}});function ju(t){return Rs(2,[(t()(),ba(0,0,null,null,1,":svg:text",[],[[1,"stroke-width",0],[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"transform",0]],null,null,null,null)),(t()(),Os(1,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.strokeWidth,n.x,n.y,n.textAnchor,n.transform),t(e,1,0,n.label)})}var Vu=function(){function t(){this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new Mr,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.transform="translate(0,"+(this.xAxisOffset+this.padding+this.dims.height)+")",void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])},t.prototype.emitTicksHeight=function(t){var e=this,n=t.height,r=n+25+5;r!==this.labelOffset&&(this.labelOffset=r,setTimeout(function(){e.dimensionsChanged.emit({height:n})},0))},t}(),Hu=Zo({encapsulation:2,styles:[],data:{}});function zu(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-x-axis-ticks",""]],null,[[null,"dimensionsChanged"]],function(t,e,n){var r=!0;return"dimensionsChanged"===e&&(r=!1!==t.component.emitTicksHeight(n)&&r),r},Fu,Du)),ls(1,4767744,[[1,4]],0,Nu,[],{scale:[0,"scale"],orient:[1,"orient"],tickArguments:[2,"tickArguments"],tickValues:[3,"tickValues"],tickStroke:[4,"tickStroke"],tickFormatting:[5,"tickFormatting"],showGridLines:[6,"showGridLines"],gridLineHeight:[7,"gridLineHeight"],width:[8,"width"]},{dimensionsChanged:"dimensionsChanged"})],function(t,e){var n=e.component;t(e,1,0,n.xScale,n.xOrient,n.tickArguments,n.ticks,n.tickStroke,n.tickFormatting,n.showGridLines,n.dims.height,n.dims.width)},null)}function Bu(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-axis-label",""]],null,null,null,ju,Lu)),ls(1,573440,null,0,Ru,[ir],{orient:[0,"orient"],label:[1,"label"],offset:[2,"offset"],width:[3,"width"],height:[4,"height"]},null)],function(t,e){var n=e.component;t(e,1,0,"bottom",n.labelText,n.labelOffset,n.dims.width,n.dims.height)},null)}function Uu(t){return Rs(2,[Es(671088640,1,{ticksComponent:0}),(t()(),ba(1,0,null,null,4,":svg:g",[],[[1,"class",0],[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,zu)),ls(3,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,Bu)),ls(5,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.xScale),t(e,5,0,n.showLabel)},function(t,e){var n=e.component;t(e,1,0,n.xAxisClassName,n.transform)})}var qu=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new Mr,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.trimLabel=Au}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t,e=this,n="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em"}setTimeout(function(){return e.updateDims()})},t.prototype.setReferencelines=function(){var t,e,n,r,i,o,a,s;this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(function(t){return t.value}))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(function(t){return t.value}))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=(t=this.gridLineWidth,e=this.refMin-this.refMax,r=(n=[!1,!1,!1,!1])[0],i=n[1],o=n[2],a=n[3],s="",s="M"+[0,this.refMax],s+="h"+((t=0===(t=Math.floor(t))?1:t)-0),s+=i?"a"+[0,0]+" 0 0 1 "+[0,0]:"h0v0",s+="v"+((e=0===(e=Math.floor(e))?1:e)-0),s+=a?"a"+[0,0]+" 0 0 1 "+[-0,0]:"v0h0",s+="h"+(0-t),s+=o?"a"+[0,0]+" 0 0 1 "+[-0,-0]:"h0v0",s+="v"+(0-e),s+=r?"a"+[0,0]+" 0 0 1 "+[0,-0]:"v0h0",s+="z")},t.prototype.getTicks=function(){var t=this.getMaxTicks(20),e=this.getMaxTicks(50);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.apply(this.scale,[e]):Mu(this.scale.domain(),t)},t.prototype.getMaxTicks=function(t){return Math.floor(this.height/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(5,0)"},t}(),Qu=Zo({encapsulation:2,styles:[],data:{}});function Zu(t){return Rs(0,[(t()(),ba(0,0,null,null,4,":svg:g",[["class","tick"]],[[1,"transform",0]],null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:title",[],null,null,null,null,null)),(t()(),Os(2,null,["",""])),(t()(),ba(3,0,null,null,1,":svg:text",[["stroke-width","0.01"]],[[1,"dy",0],[1,"x",0],[1,"y",0],[1,"text-anchor",0],[4,"font-size",null]],null,null,null,null)),(t()(),Os(4,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.transform(e.context.$implicit)),t(e,2,0,n.tickFormat(e.context.$implicit)),t(e,3,0,n.dy,n.x1,n.y1,n.textAnchor,"12px"),t(e,4,0,n.trimLabel(n.tickFormat(e.context.$implicit)))})}function Wu(t){return Rs(0,[(t()(),ba(0,0,null,null,0,":svg:path",[["class","reference-area"]],[[1,"d",0],[1,"transform",0]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.referenceAreaPath,n.gridLineTransform())})}function Ku(t){return Rs(0,[(t()(),ba(0,0,null,null,0,":svg:line",[["class","gridline-path gridline-path-horizontal"],["x1","0"]],[[1,"x2",0]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.gridLineWidth)})}function Gu(t){return Rs(0,[(t()(),ba(0,0,null,null,0,":svg:line",[["class","gridline-path gridline-path-horizontal"],["x1","0"]],[[1,"x2",0]],null,null,null,null))],null,function(t,e){t(e,0,0,0-e.component.gridLineWidth)})}function Yu(t){return Rs(0,[(t()(),ba(0,0,null,null,4,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Ku)),ls(2,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,Gu)),ls(4,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,"left"===n.orient),t(e,4,0,"right"===n.orient)},function(t,e){t(e,0,0,e.component.gridLineTransform())})}function $u(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Yu)),ls(2,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.showGridLines)},function(t,e){t(e,0,0,e.component.transform(e.context.$implicit))})}function Xu(t){return Rs(0,[(t()(),ba(0,0,null,null,4,":svg:g",[],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:title",[],null,null,null,null,null)),(t()(),Os(2,null,["",""])),(t()(),ba(3,0,null,null,1,":svg:text",[["class","refline-label"]],[[1,"dy",0],[1,"y",0],[1,"x",0],[1,"text-anchor",0]],null,null,null,null)),(t()(),Os(4,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,2,0,n.trimLabel(n.tickFormat(e.parent.parent.context.$implicit.value))),t(e,3,0,n.dy,-6,n.gridLineWidth,n.textAnchor),t(e,4,0,e.parent.parent.context.$implicit.name)})}function Ju(t){return Rs(0,[(t()(),ba(0,0,null,null,3,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(t()(),ba(1,0,null,null,0,":svg:line",[["class","refline-path gridline-path-horizontal"],["x1","0"]],[[1,"x2",0],[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Xu)),ls(3,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.showRefLabels)},function(t,e){var n=e.component;t(e,0,0,n.transform(e.parent.context.$implicit.value)),t(e,1,0,n.gridLineWidth,n.gridLineTransform())})}function tc(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:g",[],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Ju)),ls(2,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.showRefLines)},null)}function ec(t){return Rs(2,[Es(402653184,1,{ticksElement:0}),(t()(),ba(1,0,[[1,0],["ticksel",1]],null,2,":svg:g",[],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Zu)),ls(3,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null),(t()(),_a(16777216,null,null,1,null,Wu)),ls(5,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,$u)),ls(7,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null),(t()(),_a(16777216,null,null,1,null,tc)),ls(9,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.ticks),t(e,5,0,n.referenceLineLength>1&&n.refMax&&n.refMin&&n.showRefLines),t(e,7,0,n.ticks),t(e,9,0,n.referenceLines)},null)}var nc=function(){function t(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new Mr,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform="translate("+(this.offset+this.dims.width)+" , 0)"):(this.offset=this.offset,this.transform="translate("+this.offset+" , 0)"),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])},t.prototype.emitTicksWidth=function(t){var e=this,n=t.width;n!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=n+this.labelOffset,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0))},t}(),rc=Zo({encapsulation:2,styles:[],data:{}});function ic(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-y-axis-ticks",""]],null,[[null,"dimensionsChanged"]],function(t,e,n){var r=!0;return"dimensionsChanged"===e&&(r=!1!==t.component.emitTicksWidth(n)&&r),r},ec,Qu)),ls(1,4767744,[[1,4]],0,qu,[],{scale:[0,"scale"],orient:[1,"orient"],tickArguments:[2,"tickArguments"],tickValues:[3,"tickValues"],tickStroke:[4,"tickStroke"],tickFormatting:[5,"tickFormatting"],showGridLines:[6,"showGridLines"],gridLineWidth:[7,"gridLineWidth"],height:[8,"height"],referenceLines:[9,"referenceLines"],showRefLabels:[10,"showRefLabels"],showRefLines:[11,"showRefLines"]},{dimensionsChanged:"dimensionsChanged"})],function(t,e){var n=e.component;t(e,1,1,[n.yScale,n.yOrient,n.tickArguments,n.ticks,n.tickStroke,n.tickFormatting,n.showGridLines,n.dims.width,n.dims.height,n.referenceLines,n.showRefLabels,n.showRefLines])},null)}function oc(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-axis-label",""]],null,null,null,ju,Lu)),ls(1,573440,null,0,Ru,[ir],{orient:[0,"orient"],label:[1,"label"],offset:[2,"offset"],width:[3,"width"],height:[4,"height"]},null)],function(t,e){var n=e.component;t(e,1,0,n.yOrient,n.labelText,n.labelOffset,n.dims.width,n.dims.height)},null)}function ac(t){return Rs(2,[Es(671088640,1,{ticksComponent:0}),(t()(),ba(1,0,null,null,4,":svg:g",[],[[1,"class",0],[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,ic)),ls(3,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,oc)),ls(5,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.yScale),t(e,5,0,n.showLabel)},function(t,e){var n=e.component;t(e,1,0,n.yAxisClassName,n.transform)})}var sc=function(){function t(){this.orientation="vertical"}return t.prototype.ngOnChanges=function(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")},t}(),lc=Zo({encapsulation:2,styles:[],data:{}});function uc(t){return Rs(0,[(t()(),ba(0,0,null,null,0,":svg:stop",[],[[1,"offset",0],[4,"stop-color",null],[4,"stop-opacity",null]],null,null,null,null))],null,function(t,e){t(e,0,0,e.context.$implicit.offset+"%",e.context.$implicit.color,e.context.$implicit.opacity)})}function cc(t){return Rs(2,[(t()(),ba(0,0,null,null,2,":svg:linearGradient",[],[[8,"id",0],[1,"x1",0],[1,"y1",0],[1,"x2",0],[1,"y2",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,uc)),ls(2,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.stops)},function(t,e){var n=e.component;t(e,0,0,n.name,n.x1,n.y1,n.x2,n.y2)})}var hc="http://www.w3.org/1999/xhtml",fc={svg:"http://www.w3.org/2000/svg",xhtml:hc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pc=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),fc.hasOwnProperty(e)?{space:fc[e],local:t}:t},dc=function(t){var e=pc(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===hc&&e.documentElement.namespaceURI===hc?e.createElement(t):e.createElementNS(n,t)}})(e)};function yc(){}var vc=function(t){return null==t?yc:function(){return this.querySelector(t)}};function mc(){return[]}var gc=function(t){return null==t?mc:function(){return this.querySelectorAll(t)}},_c=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var bc=document.documentElement;if(!bc.matches){var wc=bc.webkitMatchesSelector||bc.msMatchesSelector||bc.mozMatchesSelector||bc.oMatchesSelector;_c=function(t){return function(){return wc.call(this,t)}}}}var xc=_c,Ec=function(t){return new Array(t.length)};function Cc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Cc.prototype={constructor:Cc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Tc="$";function Sc(t,e,n,r,i,o){for(var a,s=0,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Cc(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function kc(t,e,n,r,i,o,a){var s,l,u,c={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(p[s]=u=Tc+a.call(l,l.__data__,s,e),u in c?i[s]=l:c[u]=l);for(s=0;s<f;++s)(l=c[u=Tc+a.call(t,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new Cc(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&c[p[s]]===l&&(i[s]=l)}function Ac(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Mc=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Nc(t,e){return t.style.getPropertyValue(e)||Mc(t).getComputedStyle(t,null).getPropertyValue(e)}function Dc(t){return t.trim().split(/^|\s+/)}function Ic(t){return t.classList||new Oc(t)}function Oc(t){this._node=t,this._names=Dc(t.getAttribute("class")||"")}function Pc(t,e){for(var n=Ic(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Fc(t,e){for(var n=Ic(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Rc(){this.textContent=""}function Lc(){this.innerHTML=""}function jc(){this.nextSibling&&this.parentNode.appendChild(this)}function Vc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Hc(){return null}function zc(){var t=this.parentNode;t&&t.removeChild(this)}function Bc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Uc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Oc.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var qc={},Qc=null;function Zc(t,e,n){return t=Wc(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Wc(t,e,n){return function(r){var i=Qc;Qc=r;try{t.call(this,this.__data__,e,n)}finally{Qc=i}}}function Kc(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function Gc(t,e,n){var r=qc.hasOwnProperty(t.type)?Zc:Wc;return function(i,o,a){var s,l=this.__on,u=r(e,o,a);if(l)for(var c=0,h=l.length;c<h;++c)if((s=l[c]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=e);this.addEventListener(t.type,u,n),s={type:t.type,name:t.name,value:e,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function Yc(t,e,n){var r=Mc(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(qc={mouseenter:"mouseover",mouseleave:"mouseout"}));var $c=[null];function Xc(t,e){this._groups=t,this._parents=e}function Jc(){return new Xc([[document.documentElement]],$c)}Xc.prototype=Jc.prototype={constructor:Xc,select:function(t){"function"!=typeof t&&(t=vc(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Xc(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=gc(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(t.call(a,a.__data__,u,s)),i.push(a));return new Xc(r,i)},filter:function(t){"function"!=typeof t&&(t=xc(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&l.push(o);return new Xc(r,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var n,r=e?kc:Sc,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var h=i[c],f=o[c],p=f.length,d=t.call(h,h&&h.__data__,c,i),y=d.length,v=l[c]=new Array(y),m=s[c]=new Array(y);r(h,f,v,m,u[c]=new Array(p),d,e);for(var g,_,b=0,w=0;b<y;++b)if(g=v[b]){for(b>=w&&(w=b+1);!(_=m[w])&&++w<y;);g._next=_||null}}return(s=new Xc(s,i))._enter=l,s._exit=u,s},enter:function(){return new Xc(this._enter||this._groups.map(Ec),this._parents)},exit:function(){return new Xc(this._exit||this._groups.map(Ec),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=Math.min(r,n.length),o=new Array(r),a=0;a<i;++a)for(var s,l=e[a],u=n[a],c=l.length,h=o[a]=new Array(c),f=0;f<c;++f)(s=l[f]||u[f])&&(h[f]=s);for(;a<r;++a)o[a]=e[a];return new Xc(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ac);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(e)}return new Xc(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=pc(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):Nc(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Dc(t+"");if(arguments.length<2){for(var r=Ic(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?Pc:Fc)(this,t)}}:e?function(t){return function(){Pc(this,t)}}:function(t){return function(){Fc(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?Rc:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Lc:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(jc)},lower:function(){return this.each(Vc)},append:function(t){var e="function"==typeof t?t:dc(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:dc(t),r=null==e?Hc:"function"==typeof e?e:vc(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(zc)},clone:function(t){return this.select(t?Uc:Bc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(!(arguments.length<2)){for(s=e?Gc:Kc,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return Yc(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return Yc(this,t,e)}})(t,e))}};var th=Jc,eh=function(t){return"string"==typeof t?new Xc([[document.querySelector(t)]],[document.documentElement]):new Xc([[t]],$c)},nh=0;function rh(){this._="@"+(++nh).toString(36)}rh.prototype=(function(){return new rh}).prototype={constructor:rh,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var ih=function(t){var e=function(){for(var t,e=Qc;t=e.sourceEvent;)e=t;return e}();return e.changedTouches&&(e=e.changedTouches[0]),function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}(t,e)},oh={};function ah(){var t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return oh[t="a"+t]?ah():(oh[t]=!0,t)}var sh=function(){function t(t){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new Mr,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+ah().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()},t.prototype.loadAnimation=function(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var t=eh(this.element).select(".area");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]},t}(),lh=Zo({encapsulation:2,styles:[],data:{}});function uh(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:defs",[],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:g",[["ngx-charts-svg-linear-gradient",""],["orientation","vertical"]],null,null,null,cc,lc)),ls(2,573440,null,0,sc,[],{orientation:[0,"orientation"],name:[1,"name"],stops:[2,"stops"]},null)],function(t,e){var n=e.component;t(e,2,0,"vertical",n.gradientId,n.gradientStops)},null)}function ch(t){return Rs(2,[(t()(),_a(16777216,null,null,1,null,uh)),ls(1,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),ba(2,0,null,null,0,":svg:path",[["class","area"]],[[1,"d",0],[1,"fill",0],[4,"opacity",null]],null,null,null,null))],function(t,e){t(e,1,0,e.component.gradient)},function(t,e){var n=e.component;t(e,2,0,n.areaPath,n.gradient?n.gradientFill:n.fill,n.opacity)})}var hh=function(){function t(t){this.element=t,this.fill="none",this.animations=!0,this.select=new Mr,this.initialized=!1}return t.prototype.ngOnChanges=function(t){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)},t.prototype.updatePathEl=function(){var t=eh(this.element.nativeElement).select(".line");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)},t}(),fh=Zo({encapsulation:2,styles:[],data:{animation:[{type:7,name:"animationState",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{strokeDasharray:2e3,strokeDashoffset:2e3},offset:null},{type:4,styles:{type:6,styles:{strokeDashoffset:0},offset:null},timings:1e3}],options:null}],options:{}}]}});function ph(t){return Rs(2,[(t()(),ba(0,0,null,null,0,":svg:path",[["class","line"],["stroke-width","1.5px"]],[[24,"@animationState",0],[1,"d",0],[1,"fill",0],[1,"stroke",0]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,"active",n.initialPath,n.fill,n.stroke)})}var dh=Math.PI,yh=2*dh,vh=yh-1e-6;function mh(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gh(){return new mh}mh.prototype=gh.prototype={constructor:mh,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){var o=this._x1,a=this._y1,s=(n=+n)-(t=+t),l=(r=+r)-(e=+e),u=o-t,c=a-e,h=u*u+c*c;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(c*s-l*u)>1e-6&&i){var f=n-o,p=r-a,d=s*s+l*l,y=f*f+p*p,v=Math.sqrt(d),m=Math.sqrt(h),g=i*Math.tan((dh-Math.acos((d+h-y)/(2*v*m)))/2),_=g/m,b=g/v;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*u)+","+(e+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,u=e+s,c=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(h<0&&(h=h%yh+yh),h>vh?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=dh)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var _h=gh,bh=function(t){return function(){return t}},wh=(Math,Math,Math,Math,Math,Math,Math,1e-12),xh=Math.PI,Eh=2*xh;function Ch(t){this._context=t}Ch.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Th=function(t){return new Ch(t)};function Sh(t){return t[0]}function kh(t){return t[1]}var Ah=function(){var t=Sh,e=kh,n=bh(!0),r=null,i=Th,o=null;function a(a){var s,l,u,c=a.length,h=!1;for(null==r&&(o=i(u=_h())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+e(l,s,a));if(u)return o=null,u+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:bh(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:bh(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:bh(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},Mh=function(){var t=Sh,e=null,n=bh(0),r=kh,i=bh(!0),o=null,a=Th,s=null;function l(l){var u,c,h,f,p,d=l.length,y=!1,v=new Array(d),m=new Array(d);for(null==o&&(s=a(p=_h())),u=0;u<=d;++u){if(!(u<d&&i(f=l[u],u,l))===y)if(y=!y)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=c;--h)s.point(v[h],m[h]);s.lineEnd(),s.areaEnd()}y&&(v[u]=+t(f,u,l),m[u]=+n(f,u,l),s.point(e?+e(f,u,l):v[u],r?+r(f,u,l):m[u]))}if(p)return s=null,p+""||null}function u(){return Ah().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:bh(+n),e=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:bh(+e),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:bh(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:bh(+t),r=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:bh(+t),l):n},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:bh(+t),l):r},l.lineX0=l.lineY0=function(){return u().x(t).y(n)},l.lineY1=function(){return u().x(t).y(r)},l.lineX1=function(){return u().x(e).y(n)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:bh(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l};function Nh(t){this._curve=t}Nh.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Array,Math.sqrt(1/3),Math.sin(xh/10),Math.sin(7*xh/10);var Dh=(Math.sin(Eh/10),Math.cos(Eh/10),Math.sqrt(3),Math.sqrt(3),Math.sqrt(12),function(){});function Ih(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Oh(t){this._context=t}function Ph(t,e){this._basis=new Oh(t),this._beta=e}function Fh(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rh(t,e){this._context=t,this._k=(1-e)/6}function Lh(t,e){this._context=t,this._k=(1-e)/6}function jh(t,e){this._context=t,this._k=(1-e)/6}function Vh(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>wh){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>wh){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Hh(t,e){this._context=t,this._alpha=e}function zh(t,e){this._context=t,this._alpha=e}function Bh(t,e){this._context=t,this._alpha=e}function Uh(t){return t<0?-1:1}function qh(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Uh(o)+Uh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Qh(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Zh(t,e,n){var r=t._x0,i=t._x1,o=t._y1,a=(i-r)/3;t._context.bezierCurveTo(r+a,t._y0+a*e,i-a,o-a*n,i,o)}function Wh(t){this._context=t}function Kh(t){this._context=t}Oh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ih(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ih(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ph.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,l=-1;++l<=n;)this._basis.point(this._beta*t[l]+(1-this._beta)*(i+(r=l/n)*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}},function t(e){function n(t){return 1===e?new Oh(t):new Ph(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Fh(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Fh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Rh(t,e)}return n.tension=function(e){return t(+e)},n}(0),Lh.prototype={areaStart:Dh,areaEnd:Dh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Fh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Lh(t,e)}return n.tension=function(e){return t(+e)},n}(0),jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new jh(t,e)}return n.tension=function(e){return t(+e)},n}(0),Hh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Vh(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new Hh(t,e):new Rh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),zh.prototype={areaStart:Dh,areaEnd:Dh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Vh(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new zh(t,e):new Lh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),Bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vh(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new Bh(t,e):new jh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),Wh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zh(this,this._t0,Qh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Zh(this,Qh(this,n=qh(this,t,e)),n);break;default:Zh(this,this._t0,n=qh(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},((function(t){this._context=new Kh(t)}).prototype=Object.create(Wh.prototype)).point=function(t,e){Wh.prototype.point.call(this,e,t)},Kh.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};var Gh=function(){function t(){this.animations=!0}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.updateGradients();var t=this.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";var n=this.getAreaGenerator();if(this.areaPath=n(t)||"",this.hasRange){var r=this.getRangeGenerator();this.outerPath=r(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;var i=this.data.series.map(function(t){return t.value}),o=Math.max.apply(Math,i);o===Math.min.apply(Math,i)&&(this.stroke=this.colors.getColor(o))}else this.stroke=this.colors.getColor(this.data.name)},t.prototype.getLineGenerator=function(){var t=this;return Ah().x(function(e){var n=e.name;return t.xScale("time"===t.scaleType?n:"linear"===t.scaleType?Number(n):n)}).y(function(e){return t.yScale(e.value)}).curve(this.curve)},t.prototype.getRangeGenerator=function(){var t=this;return Mh().x(function(e){var n=e.name;return t.xScale("time"===t.scaleType?n:"linear"===t.scaleType?Number(n):n)}).y0(function(e){return t.yScale(e.min?e.min:e.value)}).y1(function(e){return t.yScale(e.max?e.max:e.value)}).curve(this.curve)},t.prototype.getAreaGenerator=function(){var t=this;return Mh().x(function(e){return t.xScale(e.name)}).y0(function(){return t.yScale.range()[0]}).y1(function(e){return t.yScale(e.value)}).curve(this.curve)},t.prototype.sortData=function(t){return"linear"===this.scaleType?function(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,e){return"asc"===n?t.name-e.name:e.name-t.name})}(t):"time"===this.scaleType?function(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,e){var r=t.name.getTime(),i=e.name.getTime();return"asc"===n?r>i?1:i>r?-1:0:r>i?-1:i>r?1:0})}(t):function(t,e,n,r){return void 0===n&&(n="asc"),t.sort(function(t,e){var i=e.name,o=r.indexOf(t.name),a=r.indexOf(i);return"asc"===n?o-a:a-o})}(t,0,"asc",this.xScale.domain())},t.prototype.updateGradients=function(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+ah().toString(),this.gradientUrl="url(#"+this.gradientId+")";var t=this.data.series.map(function(t){return t.value}),e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(e,n),this.areaGradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(e){return t.name===e.name})},t}(),Yh=Zo({encapsulation:2,styles:[],data:{}});function $h(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-svg-linear-gradient",""],["orientation","vertical"]],null,null,null,cc,lc)),ls(1,573440,null,0,sc,[],{orientation:[0,"orientation"],name:[1,"name"],stops:[2,"stops"]},null)],function(t,e){var n=e.component;t(e,1,0,"vertical",n.gradientId,n.gradientStops)},null)}function Xh(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["class","line-series-range"],["ngx-charts-area",""]],[[2,"active",null],[2,"inactive",null]],null,null,ch,lh)),ls(1,573440,null,0,sh,[ir],{data:[0,"data"],path:[1,"path"],fill:[2,"fill"],opacity:[3,"opacity"],animations:[4,"animations"]},null)],function(t,e){var n=e.component;t(e,1,0,n.data,n.outerPath,n.hasGradient?n.gradientUrl:n.colors.getColor(n.data.name),n.rangeFillOpacity,n.animations)},function(t,e){var n=e.component;t(e,0,0,n.isActive(n.data),n.isInactive(n.data))})}function Jh(t){return Rs(2,[(t()(),ba(0,0,null,null,9,":svg:g",[],null,null,null,null,null)),(t()(),ba(1,0,null,null,2,":svg:defs",[],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,$h)),ls(3,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),ba(4,0,null,null,1,":svg:g",[["class","line-highlight"],["ngx-charts-area",""]],[[2,"active",null],[2,"inactive",null]],null,null,ch,lh)),ls(5,573440,null,0,sh,[ir],{data:[0,"data"],path:[1,"path"],fill:[2,"fill"],opacity:[3,"opacity"],startOpacity:[4,"startOpacity"],gradient:[5,"gradient"],stops:[6,"stops"],animations:[7,"animations"]},null),(t()(),ba(6,0,null,null,1,":svg:g",[["class","line-series"],["ngx-charts-line",""]],[[2,"active",null],[2,"inactive",null]],null,null,ph,fh)),ls(7,573440,null,0,hh,[ir],{path:[0,"path"],stroke:[1,"stroke"],data:[2,"data"],animations:[3,"animations"]},null),(t()(),_a(16777216,null,null,1,null,Xh)),ls(9,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.hasGradient),t(e,5,0,n.data,n.areaPath,n.hasGradient?n.gradientUrl:n.colors.getColor(n.data.name),.25,0,!0,n.areaGradientStops,n.animations),t(e,7,0,n.path,n.stroke,n.data,n.animations),t(e,9,0,n.hasRange)},function(t,e){var n=e.component;t(e,4,0,n.isActive(n.data),n.isInactive(n.data)),t(e,6,0,n.isActive(n.data),n.isInactive(n.data))})}var tf=function(){function t(){this.select=new Mr,this.activate=new Mr,this.deactivate=new Mr}return t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t.prototype.ngOnChanges=function(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"},t}(),ef=Zo({encapsulation:2,styles:[],data:{}});function nf(t){return Rs(2,[(t()(),ba(0,0,null,null,0,":svg:circle",[],[[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0],[1,"stroke",0],[1,"opacity",0],[1,"class",0],[1,"pointer-events",0]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.cx,n.cy,n.r,n.fill,n.stroke,n.circleOpacity,n.classNames,n.pointerEvents)})}var rf=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),of=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),af=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({}),sf=function(){function t(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}var e;return e=t,t.setGlobalRootViewContainer=function(t){e.globalRootViewContainer=t},t.prototype.getRootViewContainer=function(){var t=this.applicationRef.components;if(t&&t.length)return t[0];if(this._container)return this._container;if(e.globalRootViewContainer)return e.globalRootViewContainer;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},t.prototype.setRootViewContainer=function(t){this._container=t},t.prototype.getComponentRootNode=function(t){return t.hostView?t.hostView.rootNodes[0]:t.element.nativeElement},t.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},t.prototype.projectComponentBindings=function(t,e){if(e){if(void 0!==e.inputs)for(var n=0,r=Object.getOwnPropertyNames(e.inputs);n<r.length;n++){var i=r[n];t.instance[i]=e.inputs[i]}if(void 0!==e.outputs)for(var o=0,a=Object.getOwnPropertyNames(e.outputs);o<a.length;o++){var s=a[o];t.instance[s]=e.outputs[s]}}return t},t.prototype.appendComponent=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=this.getRootViewContainerNode());var r=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector),i=this.applicationRef,o=this.getComponentRootNode(r);return this.projectComponentBindings(r,e),i.attachView(r.hostView),r.onDestroy(function(){i.detachView(r.hostView)}),r.instance.renderer.appendChild(n,o),r},t.globalRootViewContainer=null,t}(),lf=function(t){function e(e){var n=t.call(this,e)||this;return n.injectionService=e,n.type=bu,n}return i(e,t),e}(function(){function t(t){this.injectionService=t,this.defaults={},this.components=new Map}return t.prototype.getByType=function(t){return void 0===t&&(t=this.type),this.components.get(t)},t.prototype.create=function(t){return this.createByType(this.type,t)},t.prototype.createByType=function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n},t.prototype.destroy=function(t){var e=this.components.get(t.componentType);if(e){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}},t.prototype.destroyAll=function(){this.destroyByType(this.type)},t.prototype.destroyByType=function(t){var e=this.components.get(t);if(e)for(var n=0,r=e;n<r.length;n++)this.destroy(r[n])},t.prototype.assignDefaults=function(t){var e=this.defaults,n=e.inputs,r=e.outputs;return t.inputs||t.outputs||(t={inputs:t}),n&&(t.inputs=Object.assign(n,t.inputs)),r&&(t.outputs=Object.assign(r,t.outputs)),t},t.prototype.injectComponent=function(t,e){return this.injectionService.appendComponent(t,e)},t.prototype.register=function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)},t}()),uf=function(){function t(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=yu.top,this.tooltipAlignment=of.center,this.tooltipType=rf.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=af.all,this.tooltipImmediateExit=!1,this.show=new Mr,this.hide=new Mr}return Object.defineProperty(t.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===af.all||this.tooltipShowEvent===af.focus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===af.all||this.tooltipShowEvent===af.mouseover},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.hideTooltip(!0)},t.prototype.onFocus=function(){this.listensForFocus&&this.showTooltip()},t.prototype.onBlur=function(){this.listensForFocus&&this.hideTooltip(!0)},t.prototype.onMouseEnter=function(){this.listensForHover&&this.showTooltip()},t.prototype.onMouseLeave=function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}},t.prototype.onMouseClick=function(){this.listensForHover&&this.hideTooltip(!0)},t.prototype.showTooltip=function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}},t.prototype.addHideListeners=function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip(e.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",function(n){t.contains(n.target)||e.hideTooltip()}))},t.prototype.hideTooltip=function(t){var e=this;if(void 0===t&&(t=!1),this.component){var n=function(){e.mouseLeaveContentEvent&&e.mouseLeaveContentEvent(),e.mouseEnterContentEvent&&e.mouseEnterContentEvent(),e.documentClickEvent&&e.documentClickEvent(),e.hide.emit(!0),e.tooltipService.destroy(e.component),e.component=void 0};clearTimeout(this.timeout),t?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}},t.prototype.createBoundOptions=function(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}},t}();function cf(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}var hf=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},ff=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return hf(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},pf=ff(hf).right,df=function(t){return null===t?NaN:+t},yf=(Array,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}),vf=Math.sqrt(50),mf=Math.sqrt(10),gf=Math.sqrt(2),_f=function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=bf(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;return r&&o.reverse(),o};function bf(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=vf?10:o>=mf?5:o>=gf?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=vf?10:o>=mf?5:o>=gf?2:1)}function wf(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=vf?i*=10:o>=mf?i*=5:o>=gf&&(i*=2),e<t?-i:i}var xf=function(t,e,n){if(null==n&&(n=df),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}};function Ef(){}function Cf(t,e){var n=new Ef;if(t instanceof Ef)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}Ef.prototype=Cf.prototype={constructor:Ef,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var Tf=Cf;function Sf(){}var kf=Tf.prototype;Sf.prototype=(function(t,e){var n=new Sf;if(t instanceof Sf)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}).prototype={constructor:Sf,has:kf.has,add:function(t){return this["$"+(t+="")]=t,this},remove:kf.remove,clear:kf.clear,values:kf.keys,size:kf.size,empty:kf.empty,each:kf.each};var Af=Array.prototype,Mf=Af.map,Nf=Af.slice,Df={name:"implicit"};function If(t){var e=Tf(),n=[],r=Df;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==Df)return r;e.set(o,a=n.push(i))}return t[(a-1)%t.length]}return t=null==t?[]:Nf.call(t),i.domain=function(t){if(!arguments.length)return n.slice();n=[],e=Tf();for(var r,o,a=-1,s=t.length;++a<s;)e.has(o=(r=t[a])+"")||e.set(o,n.push(r));return i},i.range=function(e){return arguments.length?(t=Nf.call(e),i):t.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return If().domain(n).range(t).unknown(r)},i}function Of(){var t,e,n=If().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,u=.5;function c(){var n=r().length,c=o[1]<o[0],h=o[c-0],f=o[1-c];t=(f-h)/Math.max(1,n-s+2*l),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*u,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=yf(n).map(function(e){return h+t*e});return i(c?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),c()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],c()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,c()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,c()):a},n.padding=function(t){return arguments.length?(s=l=Math.max(0,Math.min(1,t)),c()):s},n.paddingInner=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),c()):s},n.paddingOuter=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),c()):l},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),c()):u},n.copy=function(){return Of().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(u)},c()}function Pf(){return function t(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(n())},e}(Of().paddingInner(1))}var Ff=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Rf(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Lf(){}var jf="\\s*([+-]?\\d+)\\s*",Vf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zf=/^#([0-9a-f]{3})$/,Bf=/^#([0-9a-f]{6})$/,Uf=new RegExp("^rgb\\("+[jf,jf,jf]+"\\)$"),qf=new RegExp("^rgb\\("+[Hf,Hf,Hf]+"\\)$"),Qf=new RegExp("^rgba\\("+[jf,jf,jf,Vf]+"\\)$"),Zf=new RegExp("^rgba\\("+[Hf,Hf,Hf,Vf]+"\\)$"),Wf=new RegExp("^hsl\\("+[Vf,Hf,Hf]+"\\)$"),Kf=new RegExp("^hsla\\("+[Vf,Hf,Hf,Vf]+"\\)$"),Gf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Yf(t){var e;return t=(t+"").trim().toLowerCase(),(e=zf.exec(t))?new ep((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Bf.exec(t))?$f(parseInt(e[1],16)):(e=Uf.exec(t))?new ep(e[1],e[2],e[3],1):(e=qf.exec(t))?new ep(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Qf.exec(t))?Xf(e[1],e[2],e[3],e[4]):(e=Zf.exec(t))?Xf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Wf.exec(t))?rp(e[1],e[2]/100,e[3]/100,1):(e=Kf.exec(t))?rp(e[1],e[2]/100,e[3]/100,e[4]):Gf.hasOwnProperty(t)?$f(Gf[t]):"transparent"===t?new ep(NaN,NaN,NaN,0):null}function $f(t){return new ep(t>>16&255,t>>8&255,255&t,1)}function Xf(t,e,n,r){return r<=0&&(t=e=n=NaN),new ep(t,e,n,r)}function Jf(t){return t instanceof Lf||(t=Yf(t)),t?new ep((t=t.rgb()).r,t.g,t.b,t.opacity):new ep}function tp(t,e,n,r){return 1===arguments.length?Jf(t):new ep(t,e,n,null==r?1:r)}function ep(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function np(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function rp(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new op(t,e,n,r)}function ip(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof op)return new op(t.h,t.s,t.l,t.opacity);if(t instanceof Lf||(t=Yf(t)),!t)return new op;if(t instanceof op)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new op(a,s,l,t.opacity)}(t):new op(t,e,n,null==r?1:r)}function op(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ap(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ff(Lf,Yf,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Ff(ep,tp,Rf(Lf,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ep(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ep(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+np(this.r)+np(this.g)+np(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Ff(op,ip,Rf(Lf,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new op(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new op(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ep(ap(t>=240?t-240:t+120,i,r),ap(t,i,r),ap(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var sp=Math.PI/180,lp=180/Math.PI,up=.96422,cp=1,hp=.82521,fp=4/29,pp=6/29,dp=3*pp*pp,yp=pp*pp*pp;function vp(t){if(t instanceof mp)return new mp(t.l,t.a,t.b,t.opacity);if(t instanceof Ep){if(isNaN(t.h))return new mp(t.l,0,0,t.opacity);var e=t.h*sp;return new mp(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof ep||(t=Jf(t));var n,r,i=wp(t.r),o=wp(t.g),a=wp(t.b),s=gp((.2225045*i+.7168786*o+.0606169*a)/cp);return i===o&&o===a?n=r=s:(n=gp((.4360747*i+.3850649*o+.1430804*a)/up),r=gp((.0139322*i+.0971045*o+.7141733*a)/hp)),new mp(116*s-16,500*(n-s),200*(s-r),t.opacity)}function mp(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function gp(t){return t>yp?Math.pow(t,1/3):t/dp+fp}function _p(t){return t>pp?t*t*t:dp*(t-fp)}function bp(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function wp(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xp(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ep)return new Ep(t.h,t.c,t.l,t.opacity);if(t instanceof mp||(t=vp(t)),0===t.a&&0===t.b)return new Ep(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*lp;return new Ep(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ep(t,e,n,null==r?1:r)}function Ep(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Ff(mp,function(t,e,n,r){return 1===arguments.length?vp(t):new mp(t,e,n,null==r?1:r)},Rf(Lf,{brighter:function(t){return new mp(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new mp(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new ep(bp(3.1338561*(e=up*_p(e))-1.6168667*(t=cp*_p(t))-.4906146*(n=hp*_p(n))),bp(-.9787684*e+1.9161415*t+.033454*n),bp(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Ff(Ep,xp,Rf(Lf,{brighter:function(t){return new Ep(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ep(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return vp(this).rgb()}}));var Cp=-.14861,Tp=1.78277,Sp=-.29227,kp=-.90649,Ap=1.97294,Mp=Ap*kp,Np=Ap*Tp,Dp=Tp*Sp-kp*Cp;function Ip(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Op)return new Op(t.h,t.s,t.l,t.opacity);t instanceof ep||(t=Jf(t));var e=t.g/255,n=t.b/255,r=(Dp*n+Mp*(t.r/255)-Np*e)/(Dp+Mp-Np),i=n-r,o=(Ap*(e-r)-Sp*i)/kp,a=Math.sqrt(o*o+i*i)/(Ap*r*(1-r)),s=a?Math.atan2(o,i)*lp-120:NaN;return new Op(s<0?s+360:s,a,r,t.opacity)}(t):new Op(t,e,n,null==r?1:r)}function Op(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Pp(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Ff(Op,Ip,Rf(Lf,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Op(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Op(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*sp,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new ep(255*(e+n*(Cp*r+Tp*i)),255*(e+n*(Sp*r+kp*i)),255*(e+n*(Ap*r)),this.opacity)}}));var Fp=function(t){return function(){return t}};function Rp(t,e){return function(n){return t+n*e}}function Lp(t,e){var n=e-t;return n?Rp(t,n>180||n<-180?n-360*Math.round(n/360):n):Fp(isNaN(t)?e:t)}function jp(t,e){var n=e-t;return n?Rp(t,n):Fp(isNaN(t)?e:t)}var Vp=function t(e){var n=function(t){return 1==(t=+t)?jp:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Fp(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=tp(t)).r,(e=tp(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=jp(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Hp(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=tp(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Hp(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Pp((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,r<e-1?t[r+2]:2*o-i)}}),Hp(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e);return Pp((n-r/e)*e,t[(r+e-1)%e],t[r%e],t[(r+1)%e],t[(r+2)%e])}});var zp,Bp,Up,qp,Qp=function(t,e){return e-=t=+t,function(n){return t+e*n}},Zp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wp=new RegExp(Zp.source,"g"),Kp=function(t,e){var n,r,i,o=Zp.lastIndex=Wp.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Zp.exec(t))&&(r=Wp.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Qp(n,r)})),o=Wp.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})},Gp=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Fp(e):("number"===r?Qp:"string"===r?(n=Yf(e))?(e=n,Vp):Kp:e instanceof Yf?Vp:e instanceof Date?function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}:Array.isArray(e)?function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Gp(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Gp(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}:Qp)(t,e)},Yp=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},$p=180/Math.PI,Xp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Jp=function(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*$p,skewX:Math.atan(l)*$p,scaleX:a,scaleY:s}};function td(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:Qp(t,i)},{i:l-2,x:Qp(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Qp(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Qp(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Qp(t,n)},{i:s-2,x:Qp(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var ed=td(function(t){return"none"===t?Xp:(zp||(zp=document.createElement("DIV"),Bp=document.documentElement,Up=document.defaultView),zp.style.transform=t,t=Up.getComputedStyle(Bp.appendChild(zp),null).getPropertyValue("transform"),Bp.removeChild(zp),t=t.slice(7,-1).split(","),Jp(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),nd=td(function(t){return null==t?Xp:(qp||(qp=document.createElementNS("http://www.w3.org/2000/svg","g")),qp.setAttribute("transform",t),(t=qp.transform.baseVal.consolidate())?Jp((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Xp)},", ",")",")");function rd(t){return function(e,n){var r=t((e=ip(e)).h,(n=ip(n)).h),i=jp(e.s,n.s),o=jp(e.l,n.l),a=jp(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}function id(t){return function(e,n){var r=t((e=xp(e)).h,(n=xp(n)).h),i=jp(e.c,n.c),o=jp(e.l,n.l),a=jp(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}function od(t){return function e(n){function r(e,r){var i=t((e=Ip(e)).h,(r=Ip(r)).h),o=jp(e.s,r.s),a=jp(e.l,r.l),s=jp(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}Math,rd(Lp),rd(jp),id(Lp),id(jp),od(Lp);var ad=od(jp),sd=function(t){return function(){return t}},ld=function(t){return+t},ud=[0,1];function cd(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:sd(e)}function hd(t,e,n,r){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(t){return a(i(t))}}function fd(t,e,n,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=n(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(e){var n=pf(t,e,1,i)-1;return a[n](o[n](e))}}function pd(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function dd(t,e){var n,r,i,o=ud,a=ud,s=Gp,l=!1;function u(){return n=Math.min(o.length,a.length)>2?fd:hd,r=i=null,c}function c(e){return(r||(r=n(o,a,l?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,s)))(+e)}return c.invert=function(t){return(i||(i=n(a,o,cd,l?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},c.domain=function(t){return arguments.length?(o=Mf.call(t,ld),u()):o.slice()},c.range=function(t){return arguments.length?(a=Nf.call(t),u()):a.slice()},c.rangeRound=function(t){return a=Nf.call(t),s=Yp,u()},c.clamp=function(t){return arguments.length?(l=!!t,u()):l},c.interpolate=function(t){return arguments.length?(s=t,u()):s},u()}var yd=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},vd=function(t){return(t=yd(Math.abs(t)))?t[1]:NaN},md=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gd(t){return new _d(t)}function _d(t){if(!(e=md.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}gd.prototype=_d.prototype,_d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var bd,wd,xd,Ed,Cd=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},Td=function(t,e){var n=yd(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Sd={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Td(100*t,e)},r:Td,s:function(t,e){var n=yd(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(bd=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+yd(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},kd=function(t){return t},Ad=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];wd=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}):kd,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):kd,s=t.percent||"%";function l(t){var e=(t=gd(t)).fill,n=t.align,l=t.sign,u=t.symbol,c=t.zero,h=t.width,f=t.comma,p=t.precision,d=t.trim,y=t.type;"n"===y?(f=!0,y="g"):Sd[y]||(null==p&&(p=12),d=!0,y="g"),(c||"0"===e&&"="===n)&&(c=!0,e="0",n="=");var v="$"===u?i[0]:"#"===u&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===u?i[1]:/[%p]/.test(y)?s:"",g=Sd[y],_=/[defgprs%]/.test(y);function b(t){var i,s,u,b=v,w=m;if("c"===y)w=g(t)+w,t="";else{var x=(t=+t)<0;if(t=g(Math.abs(t),p),d&&(t=Cd(t)),x&&0==+t&&(x=!1),b=(x?"("===l?l:"-":"-"===l||"("===l?"":l)+b,w=("s"===y?Ad[8+bd/3]:"")+w+(x&&"("===l?")":""),_)for(i=-1,s=t.length;++i<s;)if(48>(u=t.charCodeAt(i))||u>57){w=(46===u?o+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}f&&!c&&(t=r(t,1/0));var E=b.length+t.length+w.length,C=E<h?new Array(h-E+1).join(e):"";switch(f&&c&&(t=r(C+t,C.length?h-w.length:1/0),C=""),n){case"<":t=b+t+w+C;break;case"=":t=b+C+t+w;break;case"^":t=C.slice(0,E=C.length>>1)+b+t+w+C.slice(E);break;default:t=C+b+t+w}return a(t)}return p=null==p?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),b.toString=function(){return t+""},b}return{format:l,formatPrefix:function(t,e){var n=l(((t=gd(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(vd(e)/3))),i=Math.pow(10,-r),o=Ad[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),xd=wd.format,Ed=wd.formatPrefix;var Md=function(t,e,n){var r,i=t[0],o=t[t.length-1],a=wf(i,o,null==e?10:e);switch((n=gd(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vd(e)/3)))-vd(Math.abs(t)))}(a,s))||(n.precision=r),Ed(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,vd(e)-vd(t))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-vd(Math.abs(t)))}(a))||(n.precision=r-2*("%"===n.type))}return xd(n)};function Nd(){var t=dd(cd,Qp);return t.copy=function(){return pd(t,Nd())},function(t){var e=t.domain;return t.ticks=function(t){var n=e();return _f(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Md(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=bf(s,l,n))>0?r=bf(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=bf(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,e(i)),t},t}(t)}var Dd=new Date,Id=new Date;function Od(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return Od(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Dd.setTime(+e),Id.setTime(+r),t(Dd),t(Id),Math.floor(n(Dd,Id))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Pd=Od(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Pd.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Od(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Pd:null};var Fd=Pd,Rd=6e4,Ld=6048e5,jd=Od(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),Vd=Od(function(t){t.setTime(Math.floor(t/Rd)*Rd)},function(t,e){t.setTime(+t+e*Rd)},function(t,e){return(e-t)/Rd},function(t){return t.getMinutes()}),Hd=Od(function(t){var e=t.getTimezoneOffset()*Rd%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),zd=Od(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Rd)/864e5},function(t){return t.getDate()-1});function Bd(t){return Od(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Rd)/Ld})}var Ud=Bd(0),qd=Bd(1),Qd=(Bd(2),Bd(3),Bd(4)),Zd=(Bd(5),Bd(6),Od(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),Wd=Od(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Wd.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Od(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Kd=Wd,Gd=(Od(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Rd)},function(t,e){return(e-t)/Rd},function(t){return t.getUTCMinutes()}),Od(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),Od(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Yd(t){return Od(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Ld})}var $d=Yd(0),Xd=Yd(1),Jd=(Yd(2),Yd(3),Yd(4)),ty=(Yd(5),Yd(6),Od(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Od(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));ty.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Od(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var ey=ty;function ny(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ry(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function iy(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var oy,ay,sy,ly,uy={"-":"",_:" ",0:"0"},cy=/^\s*\d+/,hy=/^%/,fy=/[\\^$*+?|[\]().{}]/g;function py(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function dy(t){return t.replace(fy,"\\$&")}function yy(t){return new RegExp("^(?:"+t.map(dy).join("|")+")","i")}function vy(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function my(t,e,n){var r=cy.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function gy(t,e,n){var r=cy.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function _y(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function by(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wy(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function xy(t,e,n){var r=cy.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ey(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cy(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ty(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Sy(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ky(t,e,n){var r=cy.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ay(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function My(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ny(t,e,n){var r=cy.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Dy(t,e,n){var r=cy.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Iy(t,e,n){var r=cy.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Oy(t,e,n){var r=hy.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Py(t,e,n){var r=cy.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Fy(t,e,n){var r=cy.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Ry(t,e){return py(t.getDate(),e,2)}function Ly(t,e){return py(t.getHours(),e,2)}function jy(t,e){return py(t.getHours()%12||12,e,2)}function Vy(t,e){return py(1+zd.count(Kd(t),t),e,3)}function Hy(t,e){return py(t.getMilliseconds(),e,3)}function zy(t,e){return Hy(t,e)+"000"}function By(t,e){return py(t.getMonth()+1,e,2)}function Uy(t,e){return py(t.getMinutes(),e,2)}function qy(t,e){return py(t.getSeconds(),e,2)}function Qy(t){var e=t.getDay();return 0===e?7:e}function Zy(t,e){return py(Ud.count(Kd(t),t),e,2)}function Wy(t,e){var n=t.getDay();return t=n>=4||0===n?Qd(t):Qd.ceil(t),py(Qd.count(Kd(t),t)+(4===Kd(t).getDay()),e,2)}function Ky(t){return t.getDay()}function Gy(t,e){return py(qd.count(Kd(t),t),e,2)}function Yy(t,e){return py(t.getFullYear()%100,e,2)}function $y(t,e){return py(t.getFullYear()%1e4,e,4)}function Xy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+py(e/60|0,"0",2)+py(e%60,"0",2)}function Jy(t,e){return py(t.getUTCDate(),e,2)}function tv(t,e){return py(t.getUTCHours(),e,2)}function ev(t,e){return py(t.getUTCHours()%12||12,e,2)}function nv(t,e){return py(1+Gd.count(ey(t),t),e,3)}function rv(t,e){return py(t.getUTCMilliseconds(),e,3)}function iv(t,e){return rv(t,e)+"000"}function ov(t,e){return py(t.getUTCMonth()+1,e,2)}function av(t,e){return py(t.getUTCMinutes(),e,2)}function sv(t,e){return py(t.getUTCSeconds(),e,2)}function lv(t){var e=t.getUTCDay();return 0===e?7:e}function uv(t,e){return py($d.count(ey(t),t),e,2)}function cv(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Jd(t):Jd.ceil(t),py(Jd.count(ey(t),t)+(4===ey(t).getUTCDay()),e,2)}function hv(t){return t.getUTCDay()}function fv(t,e){return py(Xd.count(ey(t),t),e,2)}function pv(t,e){return py(t.getUTCFullYear()%100,e,2)}function dv(t,e){return py(t.getUTCFullYear()%1e4,e,4)}function yv(){return"+0000"}function vv(){return"%"}function mv(t){return+t}function gv(t){return Math.floor(+t/1e3)}!function(t){oy=function(e){var n=t.dateTime,r=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,c=yy(o),h=vy(o),f=yy(a),p=vy(a),d=yy(s),y=vy(s),v=yy(l),m=vy(l),g=yy(u),_=vy(u),b={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:null,d:Ry,e:Ry,f:zy,H:Ly,I:jy,j:Vy,L:Hy,m:By,M:Uy,p:function(t){return o[+(t.getHours()>=12)]},Q:mv,s:gv,S:qy,u:Qy,U:Zy,V:Wy,w:Ky,W:Gy,x:null,X:null,y:Yy,Y:$y,Z:Xy,"%":vv},w={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return l[t.getUTCMonth()]},c:null,d:Jy,e:Jy,f:iv,H:tv,I:ev,j:nv,L:rv,m:ov,M:av,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:mv,s:gv,S:sv,u:lv,U:uv,V:cv,w:hv,W:fv,x:null,X:null,y:pv,Y:dv,Z:yv,"%":vv},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=y[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,r){return T(t,n,e,r)},d:Sy,e:Sy,f:Iy,H:Ay,I:Ay,j:ky,L:Dy,m:Ty,M:My,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=h[r[0].toLowerCase()],n+r[0].length):-1},Q:Py,s:Fy,S:Ny,u:gy,U:_y,V:by,w:my,W:wy,x:function(t,e,n){return T(t,r,e,n)},X:function(t,e,n){return T(t,i,e,n)},y:Ey,Y:xy,Z:Cy,"%":Oy};function E(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=uy[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function C(t,e){return function(n){var r,i,o=iy(1900);if(T(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ry(iy(o.y))).getUTCDay(),r=i>4||0===i?Xd.ceil(r):Xd(r),r=Gd.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=e(iy(o.y))).getDay(),r=i>4||0===i?qd.ceil(r):qd(r),r=zd.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ry(iy(o.y)).getUTCDay():e(iy(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ry(o)):e(o)}}function T(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in uy?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=E(r,b),b.X=E(i,b),b.c=E(n,b),w.x=E(r,w),w.X=E(i,w),w.c=E(n,w),{format:function(t){var e=E(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",ny);return e.toString=function(){return t},e},utcFormat:function(t){var e=E(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t,ry);return e.toString=function(){return t},e}}}(),ay=oy.format,sy=oy.utcFormat,ly=oy.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Date.prototype.toISOString||sy("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||ly("%Y-%m-%dT%H:%M:%S.%LZ");var _v=31536e6;function bv(t){return new Date(t)}function wv(t){return t instanceof Date?+t:+new Date(+t)}var xv=function(){return function t(e,n,r,i,o,a,s,l,u){var c=dd(cd,Qp),h=c.invert,f=c.domain,p=u(".%L"),d=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),_=u("%B"),b=u("%Y"),w=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[n,1,2592e6],[n,3,7776e6],[e,1,_v]];function x(t){return(s(t)<t?p:a(t)<t?d:o(t)<t?y:i(t)<t?v:n(t)<t?r(t)<t?m:g:e(t)<t?_:b)(t)}function E(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=ff(function(t){return t[2]}).right(w,o);a===w.length?(i=wf(n/_v,r/_v,t),t=e):a?(i=(a=w[o/w[a-1][2]<w[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(wf(n,r,t),1),t=l)}return null==i?t:t.every(i)}return c.invert=function(t){return new Date(h(t))},c.domain=function(t){return arguments.length?f(Mf.call(t,wv)):f().map(bv)},c.ticks=function(t,e){var n,r=f(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=E(t,i,o,e))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?x:u(e)},c.nice=function(t,e){var n=f();return(t=E(t,n[0],n[n.length-1],e))?f(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):c},c.copy=function(){return pd(c,t(e,n,r,i,o,a,s,l,u))},c}(Kd,Zd,Ud,zd,Hd,Vd,jd,Fd,ay).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Ev=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})};function Cv(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}Ev("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Ev("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Ev("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Ev("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ad(Ip(300,.5,0),Ip(-240,.5,1)),ad(Ip(-100,.75,.35),Ip(80,1.5,.8)),ad(Ip(260,.75,.35),Ip(80,1.5,.8)),Ip(),Cv(Ev("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Cv(Ev("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Cv(Ev("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Cv(Ev("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var Tv,Sv=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}],kv=function(){function t(t,e,n,r){"string"==typeof t&&(t=Sv.find(function(e){return e.name===t})),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}return t.prototype.generateColorScheme=function(t,e,n){var r;if("string"==typeof t&&(t=Sv.find(function(e){return e.name===t})),"quantile"===e)r=function t(){var e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=xf(e,t/i);return o}function o(t){if(!isNaN(t=+t))return n[pf(r,t)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,o=t.length;r<o;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(hf),i()},o.range=function(t){return arguments.length?(n=Nf.call(t),i()):n.slice()},o.quantiles=function(){return r.slice()},o.copy=function(){return t().domain(e).range(n)},o}().range(t.domain).domain(n);else if("ordinal"===e)r=If().range(t.domain).domain(n);else if("linear"===e){var i=t.domain.slice();1===i.length&&(i.push(i[0]),this.colorDomain=i);var o=yf(0,1,1/i.length);r=Nd().domain(o).range(i)}return r},t.prototype.getColor=function(t){if("linear"===this.scaleType){var e=Nd().domain(this.domain).range([0,1]);return this.scale(e(t))}if("function"==typeof this.customColors)return this.customColors(t);var n=t.toString(),r=void 0;return this.customColors&&this.customColors.length>0&&(r=this.customColors.find(function(t){return t.name.toLowerCase()===n.toLowerCase()})),r?r.value:this.scale(t)},t.prototype.getLinearGradientStops=function(t,e){void 0===e&&(e=this.domain[0]);var n=Nd().domain(this.domain).range([0,1]),r=Of().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t),l=1,u=o,c=[];for(c.push({color:a,offset:o,originalOffset:o,opacity:1});u<s&&l<this.colorDomain.length;){var h=this.colorDomain[l],f=r(h);if(f<=o)l++;else{if(f.toFixed(4)>=(s-r.bandwidth()).toFixed(4))break;c.push({color:h,offset:f,opacity:1}),u=f,l++}}if(c[c.length-1].offset<100&&c.push({color:i,offset:s,opacity:1}),s===o)c[0].offset=0,c[1].offset=100;else if(100!==c[c.length-1].offset)for(var p=0,d=c;p<d.length;p++){var y=d[p];y.offset=(y.offset-o)/(s-o)*100}return c},t}(),Av=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.select=new Mr,this.activate=new Mr,this.deactivate=new Mr,this.barVisible=!1}return t.prototype.ngOnInit=function(){this.gradientId="grad"+ah().toString(),this.gradientFill="url(#"+this.gradientId+")"},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circle=this.getActiveCircle()},t.prototype.getActiveCircle=function(){var t=this,e=this.data.series.findIndex(function(e){var n=e.name;return n&&t.visibleValue&&n.toString()===t.visibleValue.toString()&&void 0!==e.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)},t.prototype.mapDataPointToCircle=function(t,e){var n,r=this.data.name,i=t.value,o=t.name,a=cf(o);n=this.xScale("time"===this.scaleType?o:"linear"===this.scaleType?Number(o):o);var s,l=this.yScale("standard"===this.type?i:t.d1);return{classNames:["circle-data-"+e],value:i,label:o,data:{series:r,value:i,name:o},cx:n,cy:l,radius:5,height:this.yScale.range()[0]-l,tooltipLabel:a,color:s=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?i:t.d1:r),opacity:1,seriesName:r,gradientStops:this.getGradientStops(s),min:t.min,max:t.max}},t.prototype.getTooltipText=function(t){var e=t.min,n=t.max;return'\n <span class="tooltip-label">'+t.seriesName+" \u2022 "+t.tooltipLabel+'</span>\n <span class="tooltip-val">'+t.value.toLocaleString()+this.getTooltipMinMaxText(e,n)+"</span>\n "},t.prototype.getTooltipMinMaxText=function(t,e){if(void 0!==t||void 0!==e){var n=" (";return void 0!==t?(void 0===e&&(n+="\u2265"),n+=t.toLocaleString(),void 0!==e&&(n+=" - ")):void 0!==e&&(n+="\u2264"),void 0!==e&&(n+=e.toLocaleString()),n+")"}return""},t.prototype.getGradientStops=function(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.activateCircle=function(){this.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})},t}(),Mv=Zo({encapsulation:2,styles:[],data:{animation:[{type:7,name:"animationState",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:250}],options:null}],options:{}}]}});function Nv(t){return Rs(0,[(t()(),ba(0,0,null,null,0,":svg:rect",[["class","tooltip-bar"]],[[24,"@animationState",0],[1,"x",0],[1,"y",0],[1,"width",0],[1,"height",0],[1,"fill",0]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,"active",n.circle.cx-n.circle.radius,n.circle.cy,2*n.circle.radius,n.circle.height,n.gradientFill)})}function Dv(t){return Rs(0,[(t()(),ba(0,0,null,null,9,":svg:g",[],null,null,null,null,null)),(t()(),ba(1,0,null,null,2,":svg:defs",[],null,null,null,null,null)),(t()(),ba(2,0,null,null,1,":svg:g",[["ngx-charts-svg-linear-gradient",""],["orientation","vertical"]],null,null,null,cc,lc)),ls(3,573440,null,0,sc,[],{orientation:[0,"orientation"],name:[1,"name"],stops:[2,"stops"]},null),(t()(),_a(16777216,null,null,1,null,Nv)),ls(5,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),ba(6,16777216,null,null,3,":svg:g",[["class","circle"],["ngx-charts-circle",""],["ngx-tooltip",""]],[[2,"active",null]],[[null,"select"],[null,"activate"],[null,"deactivate"],[null,"focusin"],[null,"blur"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"focusin"===e&&(r=!1!==Ga(t,7).onFocus()&&r),"blur"===e&&(r=!1!==Ga(t,7).onBlur()&&r),"mouseenter"===e&&(r=!1!==Ga(t,7).onMouseEnter()&&r),"mouseleave"===e&&(r=!1!==Ga(t,7).onMouseLeave(n.target)&&r),"click"===e&&(r=!1!==Ga(t,7).onMouseClick()&&r),"click"===e&&(r=!1!==Ga(t,8).onClick()&&r),"mouseenter"===e&&(r=!1!==Ga(t,8).onMouseEnter()&&r),"mouseleave"===e&&(r=!1!==Ga(t,8).onMouseLeave()&&r),"select"===e&&(r=!1!==i.onClick(n,i.circle.label)&&r),"activate"===e&&(r=!1!==i.activateCircle()&&r),"deactivate"===e&&(r=!1!==i.deactivateCircle()&&r),r},nf,ef)),ls(7,147456,null,0,uf,[lf,to,lr],{tooltipTitle:[0,"tooltipTitle"],tooltipDisabled:[1,"tooltipDisabled"],tooltipPlacement:[2,"tooltipPlacement"],tooltipType:[3,"tooltipType"],tooltipTemplate:[4,"tooltipTemplate"],tooltipContext:[5,"tooltipContext"]},null),ls(8,573440,null,0,tf,[],{cx:[0,"cx"],cy:[1,"cy"],r:[2,"r"],fill:[3,"fill"],data:[4,"data"],classNames:[5,"classNames"],pointerEvents:[6,"pointerEvents"]},{select:"select",activate:"activate",deactivate:"deactivate"}),Ds(9,{name:0})],function(t,e){var n=e.component;t(e,3,0,"vertical",n.gradientId,n.circle.gradientStops),t(e,5,0,n.barVisible&&"standard"===n.type),t(e,7,0,n.tooltipTemplate?void 0:n.getTooltipText(n.circle),n.tooltipDisabled,"top","tooltip",n.tooltipTemplate,n.circle.data),t(e,8,0,n.circle.cx,n.circle.cy,n.circle.radius,n.circle.color,n.circle.value,n.circle.classNames,0===n.circle.value?"none":"all")},function(t,e){var n=e.component,r=n.isActive(t(e,9,0,n.circle.seriesName));t(e,6,0,r)})}function Iv(t){return Rs(2,[(t()(),_a(16777216,null,null,1,null,Dv)),ls(1,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,e.component.circle)},null)}"undefined"!=typeof window?Tv=window:"undefined"!=typeof global&&(Tv=global);var Ov=Tv.MouseEvent,Pv=function(){function t(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new Mr}return t.prototype.getValues=function(t){for(var e=[],n=0,r=this.results;n<r.length;n++){var i=r[n],o=i.series.find(function(e){return e.name.toString()===t.toString()}),a=i.name;if(a instanceof Date&&(a=a.toLocaleDateString()),o){var s=o.name,l=o.value;this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%");var u=void 0;if("linear"===this.colors.scaleType){var c=l;o.d1&&(c=o.d1),u=this.colors.getColor(c)}else u=this.colors.getColor(i.name);e.push({value:l,name:s,series:a,min:o.min,max:o.max,color:u})}}return e},t.prototype.mouseMove=function(t){var e=t.pageX-t.target.getBoundingClientRect().left,n=this.findClosestPointIndex(e),r=this.xSet[n];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){var i=new Ov("mouseleave",{bubbles:!1});this.tooltipAnchor.nativeElement.dispatchEvent(i),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}},t.prototype.findClosestPointIndex=function(t){for(var e=0,n=this.xSet.length-1,r=Number.MAX_VALUE,i=0;e<=n;){var o=(e+n)/2|0,a=this.xScale(this.xSet[o]),s=Math.abs(a-t);if(s<r&&(r=s,i=o),a<t)e=o+1;else{if(!(a>t)){r=0,i=o;break}n=o-1}}return i},t.prototype.showTooltip=function(){var t=new Ov("mouseenter",{bubbles:!1});this.tooltipAnchor.nativeElement.dispatchEvent(t)},t.prototype.hideTooltip=function(){var t=new Ov("mouseleave",{bubbles:!1});this.tooltipAnchor.nativeElement.dispatchEvent(t),this.anchorOpacity=0,this.lastAnchorPos=-1},t.prototype.getToolTipText=function(t){var e="";return e+=void 0!==t.series?t.series:"???",e+=": ",void 0!==t.value&&(e+=t.value.toLocaleString()),void 0===t.min&&void 0===t.max||(e+=" (",void 0!==t.min?(void 0===t.max&&(e+="\u2265"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="\u2264"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e},t}(),Fv=Zo({encapsulation:2,styles:[],data:{animation:[{type:7,name:"animationState",definitions:[{type:1,expr:"inactive => active",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:{type:6,styles:{opacity:.7},offset:null},timings:250}],options:null},{type:1,expr:"active => inactive",animation:[{type:6,styles:{opacity:.7},offset:null},{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:250}],options:null}],options:{}}]}});function Rv(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":xhtml:div",[["class","tooltip-item"]],null,null,null,null,null)),(t()(),ba(1,0,null,null,0,":xhtml:span",[["class","tooltip-item-color"]],[[4,"background-color",null]],null,null,null,null)),(t()(),Os(2,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,1,0,e.context.$implicit.color),t(e,2,0,n.getToolTipText(e.context.$implicit))})}function Lv(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":xhtml:div",[["class","area-tooltip-container"]],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,Rv)),ls(2,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.context.model)},null)}function jv(t){return Rs(2,[Es(402653184,1,{tooltipAnchor:0}),(t()(),ba(1,0,null,null,4,":svg:g",[],null,null,null,null,null)),(t()(),ba(2,0,null,null,0,":svg:rect",[["class","tooltip-area"],["style","opacity: 0; cursor: 'auto';"],["y","0"]],[[1,"x",0],[1,"width",0],[1,"height",0]],[[null,"mousemove"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mousemove"===e&&(r=!1!==i.mouseMove(n)&&r),"mouseleave"===e&&(r=!1!==i.hideTooltip()&&r),r},null,null)),(t()(),_a(0,[["defaultTooltipTemplate",2]],null,0,null,Lv)),(t()(),ba(4,16777216,[[1,0],["tooltipAnchor",1]],null,1,":svg:rect",[["class","tooltip-anchor"],["ngx-tooltip",""],["y","0"]],[[24,"@animationState",0],[1,"x",0],[1,"width",0],[1,"height",0],[4,"opacity",null],[4,"pointer-events",null]],[[null,"focusin"],[null,"blur"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"]],function(t,e,n){var r=!0;return"focusin"===e&&(r=!1!==Ga(t,5).onFocus()&&r),"blur"===e&&(r=!1!==Ga(t,5).onBlur()&&r),"mouseenter"===e&&(r=!1!==Ga(t,5).onMouseEnter()&&r),"mouseleave"===e&&(r=!1!==Ga(t,5).onMouseLeave(n.target)&&r),"click"===e&&(r=!1!==Ga(t,5).onMouseClick()&&r),r},null,null)),ls(5,147456,null,0,uf,[lf,to,lr],{tooltipSpacing:[0,"tooltipSpacing"],tooltipDisabled:[1,"tooltipDisabled"],tooltipPlacement:[2,"tooltipPlacement"],tooltipType:[3,"tooltipType"],tooltipTemplate:[4,"tooltipTemplate"],tooltipContext:[5,"tooltipContext"],tooltipImmediateExit:[6,"tooltipImmediateExit"]},null)],function(t,e){var n=e.component;t(e,5,0,15,n.tooltipDisabled,"right","tooltip",n.tooltipTemplate?n.tooltipTemplate:Ga(e,3),n.anchorValues,!0)},function(t,e){var n=e.component;t(e,2,0,0,n.dims.width,n.dims.height),t(e,4,0,0!==n.anchorOpacity?"active":"inactive",n.anchorPos,1,n.dims.height,n.anchorOpacity,"none")})}var Vv={value:function(){}};function Hv(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new zv(r)}function zv(t){this._=t}function Bv(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Uv(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Vv,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}zv.prototype=Hv.prototype={constructor:zv,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=o[a]).type)i[n]=Uv(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Uv(i[n],t.name,null);return this}for(;++a<s;)if((n=(t=o[a]).type)&&(n=Bv(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new zv(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var qv,Qv,Zv=Hv,Wv=function(){Qc.preventDefault(),Qc.stopImmediatePropagation()},Kv=function(t){var e=t.document.documentElement,n=eh(t).on("dragstart.drag",Wv,!0);"onselectstart"in e?n.on("selectstart.drag",Wv,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")},Gv=0,Yv=0,$v=0,Xv=1e3,Jv=0,tm=0,em=0,nm="object"==typeof performance&&performance.now?performance:Date,rm="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function im(){return tm||(rm(om),tm=nm.now()+em)}function om(){tm=0}function am(){this._call=this._time=this._next=null}function sm(t,e,n){var r=new am;return r.restart(t,e,n),r}function lm(){tm=(Jv=nm.now())+em,Gv=Yv=0;try{!function(){im(),++Gv;for(var t,e=qv;e;)(t=tm-e._time)>=0&&e._call.call(null,t),e=e._next;--Gv}()}finally{Gv=0,function(){for(var t,e,n=qv,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:qv=e);Qv=t,cm(r)}(),tm=0}}function um(){var t=nm.now(),e=t-Jv;e>Xv&&(em-=e,Jv=t)}function cm(t){Gv||(Yv&&(Yv=clearTimeout(Yv)),t-tm>24?(t<1/0&&(Yv=setTimeout(lm,t-nm.now()-em)),$v&&($v=clearInterval($v))):($v||(Jv=nm.now(),$v=setInterval(um,Xv)),Gv=1,rm(lm)))}am.prototype=sm.prototype={constructor:am,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?im():+n)+(null==e?0:+e),this._next||Qv===this||(Qv?Qv._next=this:qv=this,Qv=this),this._call=t,this._time=n,cm()},stop:function(){this._call&&(this._call=null,this._time=1/0,cm())}};var hm=function(t,e,n){var r=new am;return r.restart(function(n){r.stop(),t(n+e)},e=null==e?0:+e,n),r},fm=Zv("start","end","interrupt"),pm=[],dm=0,ym=1,vm=2,mm=3,gm=4,_m=5,bm=6,wm=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var u,c,h,f;if(n.state!==ym)return s();for(u in i)if((f=i[u]).name===n.name){if(f.state===mm)return hm(o);f.state===gm?(f.state=bm,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u<e&&(f.state=bm,f.timer.stop(),delete i[u])}if(hm(function(){n.state===mm&&(n.state=gm,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=vm,n.on.call("start",t,t.__data__,n.index,n.group),n.state===vm){for(n.state=mm,r=new Array(h=n.tween.length),u=0,c=-1;u<h;++u)(f=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=_m,1),o=-1,a=r.length;++o<a;)r[o].call(null,i);n.state===_m&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=bm,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=sm(function(t){n.state=ym,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:fm,tween:pm,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:dm})};function xm(t,e){var n=Cm(t,e);if(n.state>dm)throw new Error("too late; already scheduled");return n}function Em(t,e){var n=Cm(t,e);if(n.state>vm)throw new Error("too late; already started");return n}function Cm(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Tm=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>vm&&n.state<_m,n.state=bm,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}};function Sm(t,e,n){var r=t._id;return t.each(function(){var t=Em(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Cm(t,r).value[e]}}var km=function(t,e){var n;return("number"==typeof e?Qp:e instanceof Yf?Vp:(n=Yf(e))?(e=n,Vp):Kp)(t,e)},Am=th.prototype.constructor,Mm=0;function Nm(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Dm(){return++Mm}var Im=th.prototype;Nm.prototype=(function(t){return th().transition(t)}).prototype={constructor:Nm,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=vc(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,u=r[a],c=u.length,h=o[a]=new Array(c),f=0;f<c;++f)(s=u[f])&&(l=t.call(s,s.__data__,f,u))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,wm(h[f],e,n,f,h,Cm(s,n)));return new Nm(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=gc(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,h=0;h<c;++h)if(l=u[h]){for(var f,p=t.call(l,l.__data__,h,u),d=Cm(l,n),y=0,v=p.length;y<v;++y)(f=p[y])&&wm(f,e,n,y,p,d);o.push(p),a.push(l)}return new Nm(o,a,e,n)},filter:function(t){"function"!=typeof t&&(t=xc(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&l.push(o);return new Nm(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=Math.min(r,n.length),o=new Array(r),a=0;a<i;++a)for(var s,l=e[a],u=n[a],c=l.length,h=o[a]=new Array(c),f=0;f<c;++f)(s=l[f]||u[f])&&(h[f]=s);for(;a<r;++a)o[a]=e[a];return new Nm(o,this._parents,this._name,this._id)},selection:function(){return new Am(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Dm(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=Cm(a,e);wm(a,t,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Nm(r,this._parents,t,n)},call:Im.call,nodes:Im.nodes,node:Im.node,size:Im.size,empty:Im.empty,each:Im.each,on:function(t,e){var n=this._id;return arguments.length<2?Cm(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?xm:Em;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=pc(t),r="transform"===n?nd:km;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(t.space,t.local))===s?null:a===r&&s===i?o:o=e(r=a,i=s);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(t))===s?null:a===r&&s===i?o:o=e(r=a,i=s);this.removeAttribute(t)}})(n,r,Sm(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?i:i=e(r=o,n)}}:function(t,e,n){var r,i;return function(){var o=this.getAttribute(t);return o===n?null:o===r?i:i=e(r=o,n)}})(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=pc(t);return this.tween(n,(r.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(r,e))},style:function(t,e,n){var r="transform"==(t+="")?ed:km;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Nc(this,t),a=(this.style.removeProperty(t),Nc(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,o;return function(){var a=Nc(this,t),s=n(this);return null==s&&(this.style.removeProperty(t),s=Nc(this,t)),a===s?null:a===r&&s===i?o:o=e(r=a,i=s)}}(t,r,Sm(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var o=Nc(this,t);return o===n?null:o===r?i:i=e(r=o,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Sm(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Cm(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=Em(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Em(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){xm(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){xm(this,t).delay=e}})(e,t)):Cm(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Em(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Em(this,t).duration=e}})(e,t)):Cm(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Em(this,t).ease=e}}(e,t)):Cm(this.node(),e).ease}},function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Math,function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158);var Om=2*Math.PI,Pm=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Om);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Om)},i.period=function(n){return t(e,n)},i}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Om);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Om)},i.period=function(n){return t(e,n)},i}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Om);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Om)},i.period=function(n){return t(e,n)},i}(1,.3),{time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}});function Fm(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Pm.time=im(),Pm;return n}th.prototype.interrupt=function(t){return this.each(function(){Tm(this,t)})},th.prototype.transition=function(t){var e,n;t instanceof Nm?(e=t._id,t=t._name):(e=Dm(),(n=Pm).time=im(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)(a=s[u])&&wm(a,t,e,u,s,n||Fm(a,e));return new Nm(r,this._parents,t,e)};var Rm=function(t){return function(){return t}},Lm=function(t,e,n){this.target=t,this.type=e,this.selection=n};function jm(){Qc.stopImmediatePropagation()}var Vm=function(){Qc.preventDefault(),Qc.stopImmediatePropagation()},Hm={name:"drag"},zm={name:"space"},Bm={name:"handle"},Um={name:"center"},qm={name:"x",handles:["e","w"].map($m),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Qm={name:"y",handles:["n","s"].map($m),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Zm=(["n","e","s","w","nw","ne","se","sw"].map($m),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),Wm={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Km={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Gm={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ym={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function $m(t){return{type:t}}function Xm(){return!Qc.button}function Jm(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function tg(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function eg(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}var ng=function(){function t(t,e){this.element=t,this.zone=e,this.visible=new Mr,this.isVisible=!1,this.runCheck()}return t.prototype.destroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})},t.prototype.runCheck=function(){var t=this,e=function(){if(t.element){var n=t.element.nativeElement;n.offsetHeight&&n.offsetWidth?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})},t}(),rg=function(){function t(t,e){this.cd=e,this.height=50,this.select=new Mr,this.onDomainChange=new Mr,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)},t.prototype.update=function(){this.dims=this.getDims(),this.height=this.dims.height;var t=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform="translate(0 , "+t+")",this.filterId="filter"+ah().toString(),this.filter="url(#"+this.filterId+")",this.cd.markForCheck()},t.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}var a=[];return"time"===this.scaleType?a=[Math.min.apply(Math,t),Math.max.apply(Math,t)]:"linear"===this.scaleType?(t=t.map(function(t){return Number(t)}),a=[Math.min.apply(Math,t),Math.max.apply(Math,t)]):a=t,a},t.prototype.getXScale=function(){var t;return"time"===this.scaleType?t=xv().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?t=Nd().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(t=Pf().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t},t.prototype.addBrush=function(){var t=this;if(!this.brush){var e=this.height,n=this.view[0];this.brush=function(t){var e,n=Jm,r=Xm,i=Zv(a,"start","brush","end"),o=6;function a(e){var n=e.property("__brush",h).selectAll(".overlay").data([$m("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Zm.overlay).merge(n).each(function(){var t=tg(this).extent;eh(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([$m("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Zm.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return Zm[t.type]}),e.each(s).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",c)}function s(){var t=eh(this),e=tg(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-o/2:e[0][0]-o/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-o/2:e[0][1]-o/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+o:o}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+o:o})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e){return t.__brush.emitter||new u(t,e)}function u(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function c(){if(Qc.touches){if(Qc.changedTouches.length<Qc.touches.length)return Vm()}else if(e)return;if(r.apply(this,arguments)){var n,i,o,a,u,c,h,f,p,d,y,v,m,g=this,_=Qc.target.__data__.type,b="selection"===(Qc.metaKey?_="overlay":_)?Hm:Qc.altKey?Um:Bm,w=t===Qm?null:Gm[_],x=t===qm?null:Ym[_],E=tg(g),C=E.extent,T=E.selection,S=C[0][0],k=C[0][1],A=C[1][0],M=C[1][1],N=w&&x&&Qc.shiftKey,D=ih(g),I=D,O=l(g,arguments).beforestart();"overlay"===_?E.selection=T=[[n=t===Qm?S:D[0],o=t===qm?k:D[1]],[u=t===Qm?A:n,h=t===qm?M:o]]:(n=T[0][0],o=T[0][1],u=T[1][0],h=T[1][1]),i=n,a=o,c=u,f=h;var P=eh(g).attr("pointer-events","none"),F=P.selectAll(".overlay").attr("cursor",Zm[_]);if(Qc.touches)P.on("touchmove.brush",L,!0).on("touchend.brush touchcancel.brush",V,!0);else{var R=eh(Qc.view).on("keydown.brush",function(){switch(Qc.keyCode){case 16:N=w&&x;break;case 18:b===Bm&&(w&&(u=c-p*w,n=i+p*w),x&&(h=f-d*x,o=a+d*x),b=Um,j());break;case 32:b!==Bm&&b!==Um||(w<0?u=c-p:w>0&&(n=i-p),x<0?h=f-d:x>0&&(o=a-d),b=zm,F.attr("cursor",Zm.selection),j());break;default:return}Vm()},!0).on("keyup.brush",function(){switch(Qc.keyCode){case 16:N&&(v=m=N=!1,j());break;case 18:b===Um&&(w<0?u=c:w>0&&(n=i),x<0?h=f:x>0&&(o=a),b=Bm,j());break;case 32:b===zm&&(Qc.altKey?(w&&(u=c-p*w,n=i+p*w),x&&(h=f-d*x,o=a+d*x),b=Um):(w<0?u=c:w>0&&(n=i),x<0?h=f:x>0&&(o=a),b=Bm),F.attr("cursor",Zm[_]),j());break;default:return}Vm()},!0).on("mousemove.brush",L,!0).on("mouseup.brush",V,!0);Kv(Qc.view)}jm(),Tm(g),s.call(g),O.start()}function L(){var t=ih(g);!N||v||m||(Math.abs(t[0]-I[0])>Math.abs(t[1]-I[1])?m=!0:v=!0),I=t,y=!0,Vm(),j()}function j(){var t;switch(p=I[0]-D[0],d=I[1]-D[1],b){case zm:case Hm:w&&(p=Math.max(S-n,Math.min(A-u,p)),i=n+p,c=u+p),x&&(d=Math.max(k-o,Math.min(M-h,d)),a=o+d,f=h+d);break;case Bm:w<0?(p=Math.max(S-n,Math.min(A-n,p)),i=n+p,c=u):w>0&&(p=Math.max(S-u,Math.min(A-u,p)),i=n,c=u+p),x<0?(d=Math.max(k-o,Math.min(M-o,d)),a=o+d,f=h):x>0&&(d=Math.max(k-h,Math.min(M-h,d)),a=o,f=h+d);break;case Um:w&&(i=Math.max(S,Math.min(A,n-p*w)),c=Math.max(S,Math.min(A,u+p*w))),x&&(a=Math.max(k,Math.min(M,o-d*x)),f=Math.max(k,Math.min(M,h+d*x)))}c<i&&(w*=-1,t=n,n=u,u=t,t=i,i=c,c=t,_ in Wm&&F.attr("cursor",Zm[_=Wm[_]])),f<a&&(x*=-1,t=o,o=h,h=t,t=a,a=f,f=t,_ in Km&&F.attr("cursor",Zm[_=Km[_]])),E.selection&&(T=E.selection),v&&(i=T[0][0],c=T[1][0]),m&&(a=T[0][1],f=T[1][1]),T[0][0]===i&&T[0][1]===a&&T[1][0]===c&&T[1][1]===f||(E.selection=[[i,a],[c,f]],s.call(g),O.brush())}function V(){if(jm(),Qc.touches){if(Qc.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500),P.on("touchmove.brush touchend.brush touchcancel.brush",null)}else(function(t,e){var n=t.document.documentElement,r=eh(t).on("dragstart.drag",null);e&&(r.on("click.drag",Wv,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)})(Qc.view,y),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);P.attr("pointer-events","all"),F.attr("cursor",Zm.overlay),E.selection&&(T=E.selection),eg(T)&&(E.selection=null,s.call(g)),O.end()}}function h(){var e=this.__brush||{selection:null};return e.extent=n.apply(this,arguments),e.dim=t,e}return a.move=function(e,n){e.selection?e.on("start.brush",function(){l(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){l(this,arguments).end()}).tween("brush",function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),u=Gp(o,a);function c(t){r.selection=1===t&&eg(a)?null:u(t),s.call(e),i.brush()}return o&&a?c:c(1)}):e.each(function(){var e=arguments,r=this.__brush,i=t.input("function"==typeof n?n.apply(this,e):n,r.extent),o=l(this,e).beforestart();Tm(this),r.selection=null==i||eg(i)?null:i,s.call(this),o.start().brush().end()})},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){!function(t,e,n,r){var i=Qc;t.sourceEvent=Qc,Qc=t;try{e.apply(n,r)}finally{Qc=i}}(new Lm(a,e,t.output(this.state.selection)),i.apply,i,[e,this.that,this.args])}},a.extent=function(t){return arguments.length?(n="function"==typeof t?t:Rm([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),a):n},a.filter=function(t){return arguments.length?(r="function"==typeof t?t:Rm(!!t),a):r},a.handleSize=function(t){return arguments.length?(o=+t,a):o},a.on=function(){var t=i.on.apply(i,arguments);return t===i?a:t},a}(qm).extent([[0,0],[n,e]]).on("brush end",function(){var e=(Qc.selection||t.xScale.range()).map(t.xScale.invert);t.onDomainChange.emit(e),t.cd.markForCheck()}),eh(this.element).select(".brush").call(this.brush)}},t.prototype.updateBrush=function(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),eh(this.element).select(".brush").call(this.brush),eh(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())},t.prototype.getDims=function(){return{width:this.view[0],height:this.height}},t}(),ig=Zo({encapsulation:2,styles:[[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke-width:1px;stroke:#888}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"]],data:{}});function og(t){return Rs(2,[(t()(),ba(0,0,null,null,6,":svg:g",[["class","timeline"]],[[1,"transform",0]],null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:filter",[],[[1,"id",0]],null,null,null,null)),(t()(),ba(2,0,null,null,0,":svg:feColorMatrix",[["in","SourceGraphic"],["type","matrix"],["values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"]],null,null,null,null,null)),(t()(),ba(3,0,null,null,1,":svg:g",[["class","embedded-chart"]],null,null,null,null,null)),As(null,0),(t()(),ba(5,0,null,null,0,":svg:rect",[["class","brush-background"],["x","0"],["y","0"]],[[1,"width",0],[1,"height",0]],null,null,null,null)),(t()(),ba(6,0,null,null,0,":svg:g",[["class","brush"]],null,null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.transform),t(e,1,0,n.filterId),t(e,5,0,n.view[0],n.height)})}var ag=function(){function t(t){this.sanitizer=t,this.horizontal=!1}return t.prototype.ngOnChanges=function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to "+(this.horizontal?"right":"bottom")+", "+e+")")},t.prototype.gradientString=function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,r){n.push(t+" "+Math.round(100*e[r])+"%")}),n.join(", ")},t}(),sg=null;function lg(){return sg}var ug,cg={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},hg={"\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"},fg={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"};Tt.Node&&(ug=Tt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var pg,dg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,sg||(sg=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,c(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return cg},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return ug.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&fg.hasOwnProperty(e)&&(e=fg[e]))}return hg[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=yg||(yg=document.querySelector("base"))?yg.getAttribute("href"):null;return null==n?null:(e=n,pg||(pg=document.createElement("a")),pg.setAttribute("href",e),"/"===pg.pathname.charAt(0)?pg.pathname:"/"+pg.pathname)},e.prototype.resetBaseElement=function(){yg=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return function(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=l(t.split(";")),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.indexOf("="),c=u(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),h=c[1];if(c[0].trim()===e)return decodeURIComponent(h)}}catch(f){n={error:f}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(a){e._animationPrefix=null,e._transitionEnd=null}return e}return i(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),yg=null,vg=pu;function mg(){return!!window.history.pushState}var gg=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}var n;return i(e,t),e.prototype._init=function(){this.location=lg().getLocation(),this._history=lg().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return lg().getBaseHref(this._doc)},e.prototype.onPopState=function(t){lg().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){lg().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){mg()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){mg()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},a([(n=Pt(vg),function(t,e){n(t,e,0)}),s("design:paramtypes",[Object])],e)}(Wl),_g=new mt("TRANSITION_ID"),bg=[{provide:di,useFactory:function(t,e,n){return function(){n.get(yi).donePromise.then(function(){var n=lg();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[_g,vg,Ut],multi:!0}],wg=function(){function t(){}return t.init=function(){var e;e=new t,Ui=e},t.prototype.addToWindow=function(t){Tt.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Tt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Tt.getAllAngularRootElements=function(){return t.getAllRootElements()},Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(function(t){var e=Tt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?lg().isShadowRoot(e)?this.findTestabilityInTree(t,lg().getHost(e),!0):this.findTestabilityInTree(t,lg().parentElement(e),!0):null},t}();function xg(t,e){"undefined"!=typeof COMPILED&&COMPILED||((Tt.ng=Tt.ng||{})[t]=e)}var Eg={ApplicationRef:Yi,NgZone:Oi};function Cg(t){return ao(t)}var Tg=new mt("EventManagerPlugins"),Sg=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}(),kg=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=lg().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),Ag=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),Mg=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return i(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return lg().remove(t)})},e}(Ag),Ng={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/"},Dg=/%COMP%/g,Ig="_nghost-%COMP%",Og="_ngcontent-%COMP%";function Pg(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?Pg(t,i,n):(i=i.replace(Dg,t),n.push(i))}return n}function Fg(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var Rg=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new Lg(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ae.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new zg(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case ae.Native:case ae.ShadowDom:return new Bg(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=Pg(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),Lg=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(Ng[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=Ng[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=Ng[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&sr.DashCase?t.style.setProperty(e,n,r&sr.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&sr.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){Vg(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return Vg(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Fg(n)):this.eventManager.addEventListener(t,e,Fg(n))},t}(),jg="@".charCodeAt(0);function Vg(t,e){if(t.charCodeAt(0)===jg)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Hg,zg=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=Pg(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=Og.replace(Dg,r.id),i.hostAttr=Ig.replace(Dg,r.id),i}return i(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(Lg),Bg=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=i.encapsulation===ae.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=Pg(i.id,i.styles,[]),s=0;s<a.length;s++){var l=document.createElement("style");l.textContent=a[s],o.shadowRoot.appendChild(l)}return o}return i(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(Lg),Ug="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},qg=Ug("addEventListener"),Qg=Ug("removeEventListener"),Zg={},Wg="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[Ug("BLACK_LISTED_EVENTS")]&&(Hg={});var Kg=function(t){return!!Hg&&Hg.hasOwnProperty(t)},Gg=function(t){var e=Zg[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==t[Wg];o++){var a;(a=i[o]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},Yg=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.ngZone=n,r&&function(t){return t===du}(r)||i.patchEvent(),i}return i(e,t),e.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Wg]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=n;if(!t[qg]||Oi.isInAngularZone()&&!Kg(e))t.addEventListener(e,i,!1);else{var o=Zg[e];o||(o=Zg[e]=Ug("ANGULAR"+e+"FALSE"));var a=t[o],s=a&&a.length>0;a||(a=t[o]=[]);var l=Kg(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:i});else{for(var u=!1,c=0;c<a.length;c++)if(a[c].handler===i){u=!0;break}u||a.push({zone:l,handler:i})}s||t[qg](e,Gg,!1)}return function(){return r.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var r=t[Qg];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var i=Zg[e],o=i&&t[i];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&r.apply(t,[e,Gg,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(kg),$g={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},Xg=new mt("HammerGestureConfig"),Jg=new mt("HammerLoader"),t_=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),e_=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._config=n,o.console=r,o.loader=i,o}return i(e,t),e.prototype.supports=function(t){return!(!$g.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var o=!1,a=function(){o=!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(a=function(){});o||(a=r.addEventListener(t,e,n))}).catch(function(){r.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(t),a=function(t){i.runGuarded(function(){n(t)})};return o.on(e,a),function(){o.off(e,a),"function"==typeof o.destroy&&o.destroy()}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(kg),n_=["alt","control","meta","shift"],r_={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},i_=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return lg().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(n_.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=lg().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),n_.forEach(function(r){r!=n&&(0,r_[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(kg),o_=function(){return function(){}}(),a_=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case ti.NONE:return e;case ti.HTML:return e instanceof l_?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Hr=Hr||new Pr(t);var r=e?String(e):"";n=Hr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Hr.getInertBodyElement(r)}while(r!==o);var a=new Gr,s=a.sanitizeChildren(Jr(n)||n);return Or()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var l=Jr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case ti.STYLE:return e instanceof u_?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(ri);return e&&Lr(e[1])===e[1]||t.match(ni)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(Or()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case ti.SCRIPT:if(e instanceof c_)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case ti.URL:return e instanceof f_||e instanceof h_?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Lr(String(e)));case ti.RESOURCE_URL:if(e instanceof f_)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof s_)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new l_(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new u_(t)},e.prototype.bypassSecurityTrustScript=function(t){return new c_(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new h_(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new f_(t)},e}(o_),s_=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),l_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(s_),u_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Style"},e}(s_),c_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Script"},e}(s_),h_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"URL"},e}(s_),f_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(s_),p_=Zi(Co,"browser",[{provide:bi,useValue:"browser"},{provide:_i,useValue:function(){dg.makeCurrent(),wg.init()},multi:!0},{provide:Wl,useClass:gg,deps:[vg]},{provide:vg,useFactory:function(){return document},deps:[]}]);function d_(){return new fi}var y_=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:vi,useValue:t.appId},{provide:_g,useExisting:vi},bg]}},t}();"undefined"!=typeof window&&window;var v_=Zo({encapsulation:2,styles:[[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}"]],data:{}});function m_(t){return Rs(2,[(t()(),ba(0,0,null,null,7,"div",[["class","scale-legend"]],[[2,"horizontal-legend",null],[4,"height","px"],[4,"width","px"]],null,null,null,null)),(t()(),ba(1,0,null,null,2,"div",[["class","scale-legend-label"]],null,null,null,null,null)),(t()(),ba(2,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Os(3,null,["",""])),(t()(),ba(4,0,null,null,0,"div",[["class","scale-legend-wrap"]],[[4,"background",null]],null,null,null,null)),(t()(),ba(5,0,null,null,2,"div",[["class","scale-legend-label"]],null,null,null,null,null)),(t()(),ba(6,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Os(7,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.horizontal,n.horizontal?void 0:n.height,n.width),t(e,3,0,n.valueRange[1].toLocaleString()),t(e,4,0,n.gradient),t(e,7,0,n.valueRange[0].toLocaleString())})}var g_=function(){function t(){this.isActive=!1,this.select=new Mr,this.activate=new Mr,this.deactivate=new Mr,this.toggle=new Mr}return Object.defineProperty(t.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},t.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},t}(),__=Zo({encapsulation:2,styles:[],data:{}});function b_(t){return Rs(2,[(t()(),ba(0,0,null,null,3,"span",[["tabindex","-1"]],[[8,"title",0],[2,"active",null]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.select.emit(i.formattedLabel)&&r),r},null,null)),(t()(),ba(1,0,null,null,0,"span",[["class","legend-label-color"]],[[4,"background-color",null]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.toggle.emit(i.formattedLabel)&&r),r},null,null)),(t()(),ba(2,0,null,null,1,"span",[["class","legend-label-text"]],null,null,null,null,null)),(t()(),Os(3,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.formattedLabel,n.isActive),t(e,1,0,n.color),t(e,3,0,n.trimmedLabel)})}var w_=function(){function t(t){this.cd=t,this.horizontal=!1,this.labelClick=new Mr,this.labelActivate=new Mr,this.labelDeactivate=new Mr,this.legendEntries=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},t.prototype.getLegendEntries=function(){for(var t=[],e=function(e){var r=cf(e);-1===t.findIndex(function(t){return t.label===r})&&t.push({label:e,formattedLabel:r,color:n.colors.getColor(e)})},n=this,r=0,i=this.data;r<i.length;r++)e(i[r]);return t},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.label===e.name})},t.prototype.activate=function(t){this.labelActivate.emit(t)},t.prototype.deactivate=function(t){this.labelDeactivate.emit(t)},t.prototype.trackBy=function(t,e){return e.label},t}(),x_=Zo({encapsulation:2,styles:[[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend li,.chart-legend ul{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]],data:{}});function E_(t){return Rs(0,[(t()(),ba(0,0,null,null,2,"header",[["class","legend-title"]],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,"span",[["class","legend-title-text"]],null,null,null,null,null)),(t()(),Os(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component.title)})}function C_(t){return Rs(0,[(t()(),ba(0,0,null,null,2,"li",[["class","legend-label"]],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,"ngx-charts-legend-entry",[],null,[[null,"select"],[null,"activate"],[null,"deactivate"],[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==Ga(t,2).onMouseEnter()&&r),"mouseleave"===e&&(r=!1!==Ga(t,2).onMouseLeave()&&r),"select"===e&&(r=!1!==i.labelClick.emit(n)&&r),"activate"===e&&(r=!1!==i.activate(n)&&r),"deactivate"===e&&(r=!1!==i.deactivate(n)&&r),r},b_,__)),ls(2,49152,null,0,g_,[],{color:[0,"color"],label:[1,"label"],formattedLabel:[2,"formattedLabel"],isActive:[3,"isActive"]},{select:"select",activate:"activate",deactivate:"deactivate"})],function(t,e){t(e,2,0,e.context.$implicit.color,e.context.$implicit.label,e.context.$implicit.formattedLabel,e.component.isActive(e.context.$implicit))},null)}function T_(t){return Rs(2,[(t()(),ba(0,0,null,null,6,"div",[],[[4,"width","px"]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,E_)),ls(2,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),ba(3,0,null,null,3,"div",[["class","legend-wrap"]],null,null,null,null,null)),(t()(),ba(4,0,null,null,2,"ul",[["class","legend-labels"]],[[2,"horizontal-legend",null],[4,"max-height","px"]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,C_)),ls(6,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(t,e){var n=e.component;t(e,2,0,(null==n.title?null:n.title.length)>0),t(e,6,0,n.legendEntries,n.trackBy)},function(t,e){var n=e.component;t(e,0,0,n.width),t(e,4,0,n.horizontal,n.height-45)})}var S_=function(){return function(){}}(),k_=function(){function t(t,e){this.vcr=t,this.tooltipService=e,this.showLegend=!1,this.animations=!0,this.legendLabelClick=new Mr,this.legendLabelActivate=new Mr,this.legendLabelDeactivate=new Mr,this.tooltipService.injectionService.setRootViewContainer(this.vcr)}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=~~(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:~~(this.view[0]*t/12)},t.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},t}(),A_=Zo({encapsulation:2,styles:[],data:{animation:[{type:7,name:"animationState",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"500ms 100ms"}],options:null}],options:{}}]}});function M_(t){return Rs(0,[(t()(),ba(0,0,null,null,1,"ngx-charts-scale-legend",[["class","chart-legend"]],null,null,null,m_,v_)),ls(1,573440,null,0,ag,[o_],{valueRange:[0,"valueRange"],colors:[1,"colors"],height:[2,"height"],width:[3,"width"],horizontal:[4,"horizontal"]},null)],function(t,e){var n=e.component;t(e,1,0,n.legendOptions.domain,n.legendOptions.colors,n.view[1],n.legendWidth,n.legendOptions&&"below"===n.legendOptions.position)},null)}function N_(t){return Rs(0,[(t()(),ba(0,0,null,null,1,"ngx-charts-legend",[["class","chart-legend"]],null,[[null,"labelClick"],[null,"labelActivate"],[null,"labelDeactivate"]],function(t,e,n){var r=!0,i=t.component;return"labelClick"===e&&(r=!1!==i.legendLabelClick.emit(n)&&r),"labelActivate"===e&&(r=!1!==i.legendLabelActivate.emit(n)&&r),"labelDeactivate"===e&&(r=!1!==i.legendLabelDeactivate.emit(n)&&r),r},T_,x_)),ls(1,573440,null,0,w_,[eo],{data:[0,"data"],title:[1,"title"],colors:[2,"colors"],height:[3,"height"],width:[4,"width"],activeEntries:[5,"activeEntries"],horizontal:[6,"horizontal"]},{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"})],function(t,e){var n=e.component;t(e,1,0,n.legendOptions.domain,n.legendOptions.title,n.legendOptions.colors,n.view[1],n.legendWidth,n.activeEntries,n.legendOptions&&"below"===n.legendOptions.position)},null)}function D_(t){return Rs(2,[(t()(),ba(0,0,null,null,6,"div",[["class","ngx-charts-outer"]],[[4,"width","px"],[24,"@animationState",0],[24,"@.disabled",0]],null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:svg",[["class","ngx-charts"]],[[1,"width",0],[1,"height",0]],null,null,null,null)),As(null,0),(t()(),_a(16777216,null,null,1,null,M_)),ls(4,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,N_)),ls(6,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,n.showLegend&&"scaleLegend"===n.legendType),t(e,6,0,n.showLegend&&"legend"===n.legendType)},function(t,e){var n=e.component;t(e,0,0,n.view[0],"active",!n.animations),t(e,1,0,n.chartWidth,n.view[1])})}Object;var I_=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(b)),O_=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),P_=new(function(t){function e(n,r){void 0===r&&(r=O_.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(O_))(I_),F_=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new R_(t,this.dueTime,this.scheduler))},t}(),R_=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L_,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(k);function L_(t){t.debouncedNext()}var j_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.legendPosition="right",e.showGridLines=!0,e.curve=Th,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.showRefLines=!1,e.showRefLabels=!0,e.activate=new Mr,e.deactivate=new Mr,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return i(e,t),e.prototype.update=function(){var e,n,r,i,o,a,s,l,u,c,h,f,p,d,y,v,m,g;t.prototype.update.call(this),this.dims=(a=(e={width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}).xAxisHeight,l=void 0===(s=e.yAxisWidth)?0:s,u=e.showXLabel,c=e.showYLabel,f=e.legendType,p=e.legendPosition,y=void 0===(d=e.columns)?12:d,v=(r=e.margins)[3],g=e.height-r[0]-r[2],void 0!==(h=e.showLegend)&&h&&"right"===(void 0===p?"right":p)&&(y-="ordinal"===(void 0===f?"ordinal":f)?2:1),m=(m=(m=e.width)*y/12)-r[1]-r[3],void 0!==(i=e.showXAxis)&&i&&(g-=5,g-=void 0===a?0:a,void 0!==u&&u&&(g-=n=30)),void 0!==(o=e.showYAxis)&&o&&(m-=5,m-=l,v+=l,v+=10,void 0!==c&&c&&(m-=n=30,v+=n)),{width:~~(m=Math.max(0,m)),height:~~(g=Math.max(0,g)),xOffset:~~v}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+ah().toString(),this.clipPath="url(#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){var t=function(t){for(var e=new Set,n=0,r=t;n<r.length;n++)for(var i=0,o=r[n].series;i<o.length;i++)e.add(o[i].name);return Array.from(e)}(this.results);this.scaleType=function(t,e){return void 0===e&&(e=!0),e&&t.every(function(t){return t instanceof Date})?"time":t.every(function(t){return"number"==typeof t})?"linear":"ordinal"}(t);var e,n,r=[];return"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)})),"time"!==this.scaleType&&"linear"!==this.scaleType||(e=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),n=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(r=[new Date(e),new Date(n)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),r=e.getTime();return n>r?1:r>n?-1:0})):"linear"===this.scaleType?(r=[e,n],this.xSet=t.slice().sort(function(t,e){return t-e})):(r=t,this.xSet=t),r},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.indexOf(o.value)<0&&t.push(o.value),void 0!==o.min&&(this.hasRange=!0,t.indexOf(o.min)<0&&t.push(o.min)),void 0!==o.max&&(this.hasRange=!0,t.indexOf(o.max)<0&&t.push(o.max))}var a=t.slice();return this.autoScale||a.push(0),[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,a),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,a)]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=xv().range([0,e]).domain(t):"linear"===this.scaleType?(n=Nd().range([0,e]).domain(t),this.roundDomains&&(n=n.nice())):"ordinal"===this.scaleType&&(n=Pf().range([0,e]).padding(.1).domain(t)),n},e.prototype.getYScale=function(t,e){var n=Nd().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){this.colors=new kv(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){this.yAxisWidth=t.width,this.update()},e.prototype.updateXAxisHeight=function(t){this.xAxisHeight=t.height,this.update()},e.prototype.onActivate=function(t){this.deactivateAll(),this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t],this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++)this.deactivate.emit({value:e[t],entries:[]});this.activeEntries=[]},e}(function(){function t(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new Mr}return t.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new ng(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=~~this.width,this.height=~~this.height,this.cd&&this.cd.markForCheck()},t.prototype.getContainerDims=function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null},t.prototype.formatDates=function(){for(var t=0;t<this.results.length;t++){var e=this.results[t];if(e.name instanceof Date&&(e.name=e.name.toLocaleDateString()),e.series)for(var n=0;n<e.series.length;n++){var r=e.series[n];r.name instanceof Date&&(r.name=r.name.toLocaleDateString())}}},t.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},t.prototype.bindWindowResizeEvent=function(){var t,e=this,n=function t(e,n,r,i){return p(r)&&(i=r,r=void 0),i?t(e,n,r).pipe(G(function(t){return h(t)?i.apply(void 0,t):i(t)})):new N(function(t){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,r),a=function(){return l.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c<h;c++)t(e[c],n,r,i,o)}i.add(a)}(e,n,function(e){t.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},t,r)})}(window,"resize").pipe((void 0===t&&(t=P_),function(e){return e.lift(new F_(200,t))})).subscribe(function(t){e.update(),e.cd&&e.cd.markForCheck()});this.resizeSubscription=n},t.prototype.cloneData=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n],o={name:i.name};if(void 0!==i.value&&(o.value=i.value),void 0!==i.series){o.series=[];for(var a=0,s=i.series;a<s.length;a++){var l=Object.assign({},s[a]);o.series.push(l)}}void 0!==i.extra&&(o.extra=JSON.parse(JSON.stringify(i.extra))),e.push(o)}return e},t}()),V_=Zo({encapsulation:2,styles:[[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus,.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]],data:{animation:[{type:7,name:"animationState",definitions:[{type:1,expr:":leave",animation:[{type:6,styles:{opacity:1},offset:null},{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:500}],options:null}],options:{}}]}});function H_(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-x-axis",""]],null,[[null,"dimensionsChanged"]],function(t,e,n){var r=!0;return"dimensionsChanged"===e&&(r=!1!==t.component.updateXAxisHeight(n)&&r),r},Uu,Hu)),ls(1,573440,null,0,Vu,[],{xScale:[0,"xScale"],dims:[1,"dims"],tickFormatting:[2,"tickFormatting"],showGridLines:[3,"showGridLines"],showLabel:[4,"showLabel"],labelText:[5,"labelText"],ticks:[6,"ticks"]},{dimensionsChanged:"dimensionsChanged"})],function(t,e){var n=e.component;t(e,1,0,n.xScale,n.dims,n.xAxisTickFormatting,n.showGridLines,n.showXAxisLabel,n.xAxisLabel,n.xAxisTicks)},null)}function z_(t){return Rs(0,[(t()(),ba(0,0,null,null,1,":svg:g",[["ngx-charts-y-axis",""]],null,[[null,"dimensionsChanged"]],function(t,e,n){var r=!0;return"dimensionsChanged"===e&&(r=!1!==t.component.updateYAxisWidth(n)&&r),r},ac,rc)),ls(1,573440,null,0,nc,[],{yScale:[0,"yScale"],dims:[1,"dims"],tickFormatting:[2,"tickFormatting"],ticks:[3,"ticks"],showGridLines:[4,"showGridLines"],showLabel:[5,"showLabel"],labelText:[6,"labelText"],referenceLines:[7,"referenceLines"],showRefLines:[8,"showRefLines"],showRefLabels:[9,"showRefLabels"]},{dimensionsChanged:"dimensionsChanged"})],function(t,e){var n=e.component;t(e,1,0,n.yScale,n.dims,n.yAxisTickFormatting,n.yAxisTicks,n.showGridLines,n.showYAxisLabel,n.yAxisLabel,n.referenceLines,n.showRefLines,n.showRefLabels)},null)}function B_(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:g",[],[[24,"@animationState",0]],null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:g",[["ngx-charts-line-series",""]],null,null,null,Jh,Yh)),ls(2,573440,null,0,Gh,[],{data:[0,"data"],xScale:[1,"xScale"],yScale:[2,"yScale"],colors:[3,"colors"],scaleType:[4,"scaleType"],curve:[5,"curve"],activeEntries:[6,"activeEntries"],rangeFillOpacity:[7,"rangeFillOpacity"],hasRange:[8,"hasRange"],animations:[9,"animations"]},null)],function(t,e){var n=e.component;t(e,2,0,e.context.$implicit,n.xScale,n.yScale,n.colors,n.scaleType,n.curve,n.activeEntries,n.rangeFillOpacity,n.hasRange,n.animations)},function(t,e){t(e,0,0,"active")})}function U_(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:g",[],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:g",[["ngx-charts-circle-series",""]],null,[[null,"select"],[null,"activate"],[null,"deactivate"]],function(t,e,n){var r=!0,i=t.component;return"select"===e&&(r=!1!==i.onClick(n,t.context.$implicit)&&r),"activate"===e&&(r=!1!==i.onActivate(n)&&r),"deactivate"===e&&(r=!1!==i.onDeactivate(n)&&r),r},Iv,Mv)),ls(2,638976,null,0,Av,[],{data:[0,"data"],xScale:[1,"xScale"],yScale:[2,"yScale"],colors:[3,"colors"],scaleType:[4,"scaleType"],visibleValue:[5,"visibleValue"],activeEntries:[6,"activeEntries"],tooltipDisabled:[7,"tooltipDisabled"],tooltipTemplate:[8,"tooltipTemplate"]},{select:"select",activate:"activate",deactivate:"deactivate"})],function(t,e){var n=e.component;t(e,2,0,e.context.$implicit,n.xScale,n.yScale,n.colors,n.scaleType,n.hoveredVertical,n.activeEntries,n.tooltipDisabled,n.tooltipTemplate)},null)}function q_(t){return Rs(0,[(t()(),ba(0,0,null,null,4,":svg:g",[],null,[[null,"mouseleave"]],function(t,e,n){var r=!0;return"mouseleave"===e&&(r=!1!==t.component.hideCircles()&&r),r},null,null)),(t()(),ba(1,0,null,null,1,":svg:g",[["ngx-charts-tooltip-area",""]],null,[[null,"hover"]],function(t,e,n){var r=!0;return"hover"===e&&(r=!1!==t.component.updateHoveredVertical(n)&&r),r},jv,Fv)),ls(2,49152,null,0,Pv,[],{dims:[0,"dims"],xSet:[1,"xSet"],xScale:[2,"xScale"],yScale:[3,"yScale"],results:[4,"results"],colors:[5,"colors"],tooltipDisabled:[6,"tooltipDisabled"],tooltipTemplate:[7,"tooltipTemplate"]},{hover:"hover"}),(t()(),_a(16777216,null,null,1,null,U_)),ls(4,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.dims,n.xSet,n.xScale,n.yScale,n.results,n.colors,n.tooltipDisabled,n.seriesTooltipTemplate),t(e,4,0,n.results)},null)}function Q_(t){return Rs(0,[(t()(),ba(0,0,null,null,2,":svg:g",[],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,":svg:g",[["ngx-charts-line-series",""]],null,null,null,Jh,Yh)),ls(2,573440,null,0,Gh,[],{data:[0,"data"],xScale:[1,"xScale"],yScale:[2,"yScale"],colors:[3,"colors"],scaleType:[4,"scaleType"],curve:[5,"curve"],hasRange:[6,"hasRange"],animations:[7,"animations"]},null)],function(t,e){var n=e.component;t(e,2,0,e.context.$implicit,n.timelineXScale,n.timelineYScale,n.colors,n.scaleType,n.curve,n.hasRange,n.animations)},null)}function Z_(t){return Rs(0,[(t()(),ba(0,0,null,null,4,":svg:g",[["ngx-charts-timeline",""]],[[1,"transform",0]],[[null,"onDomainChange"]],function(t,e,n){var r=!0;return"onDomainChange"===e&&(r=!1!==t.component.updateDomain(n)&&r),r},og,ig)),ls(1,573440,null,0,rg,[ir,eo],{view:[0,"view"],results:[1,"results"],scheme:[2,"scheme"],customColors:[3,"customColors"],legend:[4,"legend"],scaleType:[5,"scaleType"],height:[6,"height"]},{onDomainChange:"onDomainChange"}),Ns(2,2),(t()(),_a(16777216,null,0,1,null,Q_)),ls(4,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(t,e){var n=e.component,r=t(e,2,0,n.timelineWidth,n.height);t(e,1,0,r,n.results,n.scheme,n.customColors,n.legend,n.scaleType,n.timelineHeight),t(e,4,0,n.results,n.trackBy)},function(t,e){t(e,0,0,e.component.timelineTransform)})}function W_(t){return Rs(2,[(t()(),ba(0,16777216,null,null,18,"ngx-charts-chart",[],null,[[null,"legendLabelClick"],[null,"legendLabelActivate"],[null,"legendLabelDeactivate"]],function(t,e,n){var r=!0,i=t.component;return"legendLabelClick"===e&&(r=!1!==i.onClick(n)&&r),"legendLabelActivate"===e&&(r=!1!==i.onActivate(n)&&r),"legendLabelDeactivate"===e&&(r=!1!==i.onDeactivate(n)&&r),r},D_,A_)),(512,null,e=lf,n=lf,r=[sf],us(-1,512,null,0,e,n,r)),ls(2,573440,null,0,k_,[to,lf],{view:[0,"view"],showLegend:[1,"showLegend"],legendOptions:[2,"legendOptions"],activeEntries:[3,"activeEntries"],animations:[4,"animations"]},{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"}),Ns(3,2),(t()(),ba(4,0,null,0,2,":svg:defs",[],null,null,null,null,null)),(t()(),ba(5,0,null,null,1,":svg:clipPath",[],[[1,"id",0]],null,null,null,null)),(t()(),ba(6,0,null,null,0,":svg:rect",[],[[1,"width",0],[1,"height",0],[1,"transform",0]],null,null,null,null)),(t()(),ba(7,0,null,0,9,":svg:g",[["class","line-chart chart"]],[[1,"transform",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,H_)),ls(9,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,null,1,null,z_)),ls(11,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),ba(12,0,null,null,4,":svg:g",[],[[1,"clip-path",0]],null,null,null,null)),(t()(),_a(16777216,null,null,1,null,B_)),ls(14,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(t()(),_a(16777216,null,null,1,null,q_)),ls(16,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null),(t()(),_a(16777216,null,0,1,null,Z_)),ls(18,16384,null,0,lu,[to,Nr],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component,r=t(e,3,0,n.width,n.height);t(e,2,0,r,n.legend,n.legendOptions,n.activeEntries,n.animations),t(e,9,0,n.xAxis),t(e,11,0,n.yAxis),t(e,14,0,n.results,n.trackBy),t(e,16,0,!n.tooltipDisabled),t(e,18,0,n.timeline&&"ordinal"!=n.scaleType)},function(t,e){var n=e.component;t(e,5,0,n.clipPathId),t(e,6,0,n.dims.width+10,n.dims.height+10,"translate(-5, -5)"),t(e,7,0,n.transform),t(e,12,0,n.clipPath)});var e,n,r}var K_=Zo({encapsulation:0,styles:[[".container[_ngcontent-%COMP%]{width:1240px;overflow:hidden;box-sizing:border-box}.logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.logo__img[_ngcontent-%COMP%]{width:150px;margin:0 20px}.charts__chart[_ngcontent-%COMP%]{width:100%;height:500px}.charts-legend[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center}.charts-legend__item[_ngcontent-%COMP%]{margin:50px 15px;padding:5px;cursor:pointer;display:flex;align-items:center}.charts-legend__item-dot[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;margin:0 10px 0 0}.pdf-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.pdf-container__size[_ngcontent-%COMP%]{height:100%;width:1px;fill:#fff}"]],data:{}});function G_(t){return Rs(0,[(t()(),ba(0,0,null,null,3,"div",[["class","charts-legend__item"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==(i.activeEntries=[t.context.$implicit])&&r),"mouseleave"===e&&(r=!1!==(i.activeEntries=[])&&r),r},null,null)),(t()(),ba(1,0,null,null,0,"div",[["class","charts-legend__item-dot"]],[[4,"backgroundColor",null]],null,null,null,null)),(t()(),ba(2,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),Os(3,null,["",""]))],null,function(t,e){t(e,1,0,e.component.customColors[e.context.index].value),t(e,3,0,e.context.$implicit.name)})}function Y_(t){return Rs(0,[(t()(),ba(0,0,[["test",1]],null,17,"div",[["class","container"]],null,null,null,null,null)),(t()(),ba(1,0,null,null,1,"div",[["class","logo"]],null,null,null,null,null)),(t()(),ba(2,0,null,null,0,"img",[["alt",""],["class","logo__img"],["src","/assets/img/andys_logo.svg"]],null,null,null,null,null)),(t()(),ba(3,0,null,null,14,"div",[["class","pdf-container"]],null,null,null,null,null)),(t()(),ba(4,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),ba(5,0,null,null,1,":svg:svg",[["class","pdf-container__size"],["version","1.1"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),ba(6,0,null,null,0,":svg:line",[["stroke-width","1"],["x1","0"],["x2","0"],["y1","0"],["y2","100%"]],null,null,null,null,null)),(t()(),ba(7,0,null,null,10,"div",[["class","charts"]],null,null,null,null,null)),(t()(),ba(8,0,null,null,1,"h1",[["class","charts__title"]],null,null,null,null,null)),(t()(),Os(-1,null,["City analytics"])),(t()(),ba(10,0,null,null,4,"ngx-charts-line-chart",[["class","charts__chart"]],null,[[null,"mouseleave"]],function(t,e,n){var r=!0;return"mouseleave"===e&&(r=!1!==Ga(t,11).hideCircles()&&r),r},W_,V_)),ls(11,4898816,null,2,j_,[ir,Oi,eo],{results:[0,"results"],view:[1,"view"],customColors:[2,"customColors"],legend:[3,"legend"],xAxis:[4,"xAxis"],yAxis:[5,"yAxis"],activeEntries:[6,"activeEntries"]},null),Es(335544320,1,{tooltipTemplate:0}),Es(335544320,2,{seriesTooltipTemplate:0}),Ns(14,2),(t()(),ba(15,0,null,null,2,"div",[["class","charts-legend"]],null,null,null,null,null)),(t()(),_a(16777216,null,null,1,null,G_)),ls(17,278528,null,0,au,[to,Nr,_o],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component,r=n.data,i=t(e,14,0,1100,400);t(e,11,0,r,i,n.customColors,!1,!0,!0,n.activeEntries),t(e,17,0,n.data)},null)}function $_(t){return Rs(0,[(t()(),ba(0,0,null,null,1,"app-root",[],null,null,null,Y_,K_)),ls(1,49152,null,0,Zl,[],null,null)],null,null)}var X_=ja("app-root",Zl,$_,{},{},[]),J_=function(){return function(){}}(),tb=function(){return function(){}}(),eb="*";function nb(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function rb(t){return{type:6,styles:t,offset:null}}function ib(t){Promise.resolve(null).then(t)}var ob=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;ib(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),ab=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,i=0,o=this.players.length;0==o?ib(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++r==o&&e._onDestroy()}),t.onStart(function(){++i==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),sb="!";function lb(){return"undefined"!=typeof process}function ub(t){switch(t.length){case 0:return new ob;case 1:return t[0];default:return new ab(t)}}function cb(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var a=[],s=[],l=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==l,c=r&&u||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case sb:s=i[n];break;case eb:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),u=c,l=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function hb(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&fb(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&fb(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&fb(n,"destroy",t))})}}function fb(t,e,n){var r=n.totalTime,i=pb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function pb(t,e,n,r,i,o,a){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function db(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function yb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var vb=function(t,e){return!1},mb=function(t,e){return!1},gb=function(t,e,n){return[]},_b=lb();if(_b||"undefined"!=typeof Element){if(vb=function(t,e){return t.contains(e)},_b||Element.prototype.matches)mb=function(t,e){return t.matches(e)};else{var bb=Element.prototype,wb=bb.matchesSelector||bb.mozMatchesSelector||bb.msMatchesSelector||bb.oMatchesSelector||bb.webkitMatchesSelector;wb&&(mb=function(t,e){return wb.apply(t,[e])})}gb=function(t,e,n){var r=[];if(n)r.push.apply(r,c(t.querySelectorAll(e)));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var xb=null,Eb=!1;function Cb(t){xb||(xb=("undefined"!=typeof document?document.body:null)||{},Eb=!!xb.style&&"WebkitAppearance"in xb.style);var e=!0;return xb.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in xb.style)&&Eb&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in xb.style),e}var Tb=mb,Sb=vb,kb=gb;function Ab(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var Mb=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return Cb(t)},t.prototype.matchesElement=function(t,e){return Tb(t,e)},t.prototype.containsElement=function(t,e){return Sb(t,e)},t.prototype.query=function(t,e,n){return kb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o,a){return void 0===o&&(o=[]),new ob(n,r)},t}(),Nb=function(){function t(){}return t.NOOP=new Mb,t}(),Db=1e3;function Ib(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ob(parseFloat(e[1]),e[2])}function Ob(t,e){switch(e){case"s":return t*Db;default:return t}}function Pb(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=Ob(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Ob(Math.floor(parseFloat(s)),a[4]));var l=a[5];l&&(o=l)}else r=t;if(!n){var u=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function Fb(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Rb(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Fb(t,n);return n}function Lb(t,e,n){return n?e+":"+n+";":""}function jb(t){for(var e="",n=0;n<t.style.length;n++)e+=Lb(0,r=t.style.item(n),t.style.getPropertyValue(r));for(var r in t.style)t.style.hasOwnProperty(r)&&!r.startsWith("_")&&(e+=Lb(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[r]));t.setAttribute("style",e)}function Vb(t,e){t.style&&(Object.keys(e).forEach(function(n){var r=Wb(n);t.style[r]=e[n]}),lb()&&jb(t))}function Hb(t,e){t.style&&(Object.keys(e).forEach(function(e){var n=Wb(e);t.style[n]=""}),lb()&&jb(t))}function zb(t){return Array.isArray(t)?1==t.length?t[0]:nb(t):t}var Bb=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ub(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=Bb.exec(n);)e.push(r[1]);Bb.lastIndex=0}return e}function qb(t,e,n){var r=t.toString(),i=r.replace(Bb,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function Qb(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Zb=/-+([a-z0-9])/g;function Wb(t){return t.replace(Zb,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function Kb(t,e){return 0===t||0===e}function Gb(t,e,n){var r=Object.keys(n);if(r.length&&e.length){var i=e[0],o=[];if(r.forEach(function(t){i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var a=function(){var n=e[s];o.forEach(function(e){n[e]=$b(t,e)})},s=1;s<e.length;s++)a()}return e}function Yb(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function $b(t,e){return window.getComputedStyle(t)[e]}var Xb="*",Jb=new Set(["true","1"]),tw=new Set(["false","0"]);function ew(t,e){var n=Jb.has(t)||tw.has(t),r=Jb.has(e)||tw.has(e);return function(i,o){var a=t==Xb||t==i,s=e==Xb||e==o;return!a&&n&&"boolean"==typeof i&&(a=i?Jb.has(t):tw.has(t)),!s&&r&&"boolean"==typeof o&&(s=o?Jb.has(e):tw.has(e)),a&&s}}var nw=new RegExp("s*:selfs*,?","g");function rw(t,e,n){return new iw(t).build(e,n)}var iw=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new ow(e);return this._resetContextStyleTimingState(n),Yb(this,zb(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(t){s.name=t,o.push(n.visitState(s,e))}),s.name=l}else if(1==t.type){var u=n.visitTransition(t,e);r+=u.queryCount,i+=u.depCount,a.push(u)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(t){if(aw(t)){var e=t;Object.keys(e).forEach(function(t){Ub(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var a=Qb(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n,r,i,o=Yb(this,zb(t.animation),e);return{type:1,matchers:(n=t.expr,r=e.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(ew(o,s)),"<"!=a[0]||o==Xb&&s==Xb||e.push(ew(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:sw(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Yb(n,t,e)}),options:sw(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=Yb(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:sw(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return lw(Pb(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=lw(0,0,"");return i.dynamic=!0,i.strValue=r,i}return lw((n=n||Pb(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:rb({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=rb(s)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==eb?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(aw(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],h=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),h=!1),o=c.startTime),h&&(u[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(l=Ub(t[r])).length&&l.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(aw(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(aw(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),r});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));var f=c-1,p=e.currentTime,d=e.currentAnimateTimings,y=d.duration;return u.forEach(function(t,i){var a=h>0?i==f?1:h*i:o[i],s=a*y;e.currentTime=p+d.delay+s,d.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Yb(this,zb(t.animation),e),options:sw(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:sw(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:sw(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=u(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(nw,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,db(e.collectedStyles,e.currentQuerySelector,{});var s=Yb(this,zb(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:sw(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Pb(t.timings,e.errors,!0);return{type:12,animation:Yb(this,zb(t.animation),e),timings:n,options:null}},t}(),ow=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function aw(t){return!Array.isArray(t)&&"object"==typeof t}function sw(t){var e;return t?(t=Fb(t)).params&&(t.params=(e=t.params)?Fb(e):null):t={},t}function lw(t,e,n){return{duration:t,delay:e,easing:n}}function uw(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var cw=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,c(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),hw=new RegExp(":enter","g"),fw=new RegExp(":leave","g");function pw(t,e,n,r,i,o,a,s,l,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new dw).buildKeyframes(t,e,n,r,i,o,a,s,l,u)}var dw=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,l,u){void 0===u&&(u=[]),l=l||new cw;var c=new vw(t,e,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Yb(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[uw(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Ib(n.duration):null,o=null!=n.delay?Ib(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Yb(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yw);var a=Ib(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Yb(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Ib(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Yb(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Pb(e.params?qb(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Ib(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yw);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(l=s.currentTimeline),Yb(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Yb(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),yw={},vw=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new mw(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Ib(r.duration)),null!=r.delay&&(i.delay=Ib(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=qb(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=yw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new gw(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(hw,"."+this._enterClassName)).replace(fw,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,c(s))}return i||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),mw=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||eb,e._currentKeyframe[t]=eb}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=eb}):Rb(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=qb(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:eb),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=Rb(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==sb?e.add(t):r==eb&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?Qb(e.values()):[],a=n.size?Qb(n.values()):[];if(r){var s=i[0],l=Fb(s);s.offset=0,l.offset=1,i=[s,l]}return uw(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),gw=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var l=t.call(this,e,n,a.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=s,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return i(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=Rb(t[0],!1);l.offset=0,o.push(l);var u=Rb(t[0],!1);u.offset=_w(s),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var f=Rb(t[h],!1);f.offset=_w((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",t=o}return uw(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(mw);function _w(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var bw=function(){return function(){}}(),ww=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.normalizePropertyName=function(t,e){return Wb(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(xw[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(bw),xw=Ew("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Ew(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function Cw(t,e,n,r,i,o,a,s,l,u,c,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:f}}var Tw={},Sw=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,a,s,l,u,c){var h=[],f=this.ast.options&&this.ast.options.params||Tw,p=this.buildStyles(n,s&&s.params||Tw,h),d=l&&l.params||Tw,y=this.buildStyles(r,d,h),v=new Set,m=new Map,g=new Map,_="void"===r,b={params:o({},f,d)},w=c?[]:pw(t,e,this.ast.animation,i,a,p,y,b,u,h),x=0;if(w.forEach(function(t){x=Math.max(t.duration+t.delay,x)}),h.length)return Cw(e,this._triggerName,n,r,_,p,y,[],[],m,g,x,h);w.forEach(function(t){var n=t.element,r=db(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=db(g,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&v.add(n)});var E=Qb(v.values());return Cw(e,this._triggerName,n,r,_,p,y,w,E,m,g,x)},t}(),kw=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Fb(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=qb(o,r,e)),n[t]=o})}}),n},t}(),Aw=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new kw(t.style,t.options&&t.options.params||{})}),Mw(this.states,"true","1"),Mw(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Sw(t,e,n.states))}),this.fallbackTransition=new Sw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Mw(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Nw=new cw,Dw=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=rw(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=cb(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=pw(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Nw,o)).forEach(function(t){var e=db(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,eb)})});var l=ub(i.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return r.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=pb(e,"","","");return hb(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Iw=[],Ow={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fw="__ng_removed",Rw=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Fb(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Lw=new Rw("void"),jw=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Zw(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=db(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var l=db(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Zw(t,"ng-trigger"),Zw(t,"ng-trigger-"+e),l[e]=Lw),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new Hw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Zw(t,"ng-trigger"),Zw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new Rw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=Lw),"void"===u.value||l.value!==u.value){var c=db(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(l.value,u.value,t,u.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:a,isFallbackTransition:f}),f||(Zw(t,"ng-animate-queued"),a.onStart(function(){Ww(t,"ng-animate-queued")})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(l.params,u.params)){var p=[],d=o.matchStyles(l.value,l.params,p),y=o.matchStyles(u.value,u.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(function(){Hb(t,d),Vb(t,y)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,".ng-trigger",!0).forEach(function(t){if(!t[Fw]){var n=r._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):r.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,e,n,r){var i=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",r);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&ub(a).onDone(function(){return i._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,a=e._engine.statesByElement.get(t)[i]||Lw,s=new Rw("void"),l=new Hw(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,fromState:a,toState:s,player:l,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var a=t;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}this.prepareLeaveAnimationListeners(t),i?r.markElementAsRemoved(this.id,t,!1,e):(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){Zw(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==r.triggerName){var n=pb(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,hb(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e},t}(),Vw=function(){function t(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new jw(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,r){if(zw(e)){var i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1},t.prototype.insertNode=function(t,e,n,r){if(zw(e)){var i=e[Fw];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zw(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ww(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(zw(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Fw]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return zw(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return ub(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Fw];if(n&&n.setForRemoval){if(t[Fw]=Ow,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)Zw(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?ub(n).onDone(function(){o.forEach(function(t){return t()})}):o.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,r=new cw,i=[],a=new Map,s=[],l=new Map,u=new Map,h=new Map,f=new Set;this.disabledNodes.forEach(function(t){f.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)f.add(e[r])});var p=this.bodyNode,d=Array.from(this.statesByElement.keys()),y=qw(d,this.collectedEnterElements),v=new Map,m=0;y.forEach(function(t,e){var n="ng-enter"+m++;v.set(e,n),t.forEach(function(t){return Zw(t,n)})});for(var g=[],_=new Set,b=new Set,w=0;w<this.collectedLeaveElements.length;w++)(j=(L=this.collectedLeaveElements[w])[Fw])&&j.setForRemoval&&(g.push(L),_.add(L),j.hasAnimation?this.driver.query(L,".ng-star-inserted",!0).forEach(function(t){return _.add(t)}):b.add(L));var x=new Map,E=qw(d,Array.from(_));E.forEach(function(t,e){var n="ng-leave"+m++;x.set(e,n),t.forEach(function(t){return Zw(t,n)})}),t.push(function(){y.forEach(function(t,e){var n=v.get(e);t.forEach(function(t){return Ww(t,n)})}),E.forEach(function(t,e){var n=x.get(e);t.forEach(function(t){return Ww(t,n)})}),g.forEach(function(t){n.processLeaveNode(t)})});for(var C=[],T=[],S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(C.push(e),n.collectedEnterElements.length){var a=o[Fw];if(a&&a.setForMove)return void e.destroy()}var c=!p||!n.driver.containsElement(p,o),f=x.get(o),d=v.get(o),y=n._buildInstruction(t,r,d,f,c);if(y.errors&&y.errors.length)T.push(y);else{if(c)return e.onStart(function(){return Hb(o,y.fromStyles)}),e.onDestroy(function(){return Vb(o,y.toStyles)}),void i.push(e);if(t.isFallbackTransition)return e.onStart(function(){return Hb(o,y.fromStyles)}),e.onDestroy(function(){return Vb(o,y.toStyles)}),void i.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,y.timelines),s.push({instruction:y,player:e,element:o}),y.queriedElements.forEach(function(t){return db(l,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(T.length){var k=[];T.forEach(function(t){k.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return k.push("- "+t+"\n")})}),C.forEach(function(t){return t.destroy()}),this.reportError(k)}var A=new Map,M=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(M.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){db(A,e,[]).push(t),t.destroy()})});var N=g.filter(function(t){return Gw(t,u,h)}),D=new Map;Uw(D,this.driver,b,h,eb).forEach(function(t){Gw(t,u,h)&&N.push(t)});var I=new Map;y.forEach(function(t,e){Uw(I,n.driver,new Set(t),u,sb)}),N.forEach(function(t){var e=D.get(t),n=I.get(t);D.set(t,o({},e,n))});var O=[],P=[],F={};s.forEach(function(t){var e=t.element,o=t.player,s=t.instruction;if(r.has(e)){if(f.has(e))return o.onDestroy(function(){return Vb(e,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);var l=F;if(M.size>1){for(var u=e,c=[];u=u.parentNode;){var h=M.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(t){return M.set(t,l)})}var p=n._buildAnimation(o.namespaceId,s,A,a,I,D);if(o.setRealPlayer(p),l===F)O.push(o);else{var d=n.playersByElement.get(l);d&&d.length&&(o.parentPlayer=ub(d)),i.push(o)}}else Hb(e,s.fromStyles),o.onDestroy(function(){return Vb(e,s.toStyles)}),P.push(o),f.has(e)&&i.push(o)}),P.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=ub(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var R=0;R<g.length;R++){var L,j=(L=g[R])[Fw];if(Ww(L,"ng-leave"),!j||!j.hasAnimation){var V=[];if(l.size){var H=l.get(L);H&&H.length&&V.push.apply(V,c(H));for(var z=this.driver.query(L,".ng-animating",!0),B=0;B<z.length;B++){var U=l.get(z[B]);U&&U.length&&V.push.apply(V,c(U))}}var q=V.filter(function(t){return!t.destroyed});q.length?Kw(this,L,q):this.processLeaveNode(L)}}return g.length=0,O.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),O},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[Fw];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var l=!i||"void"==i;s.forEach(function(t){t.queued||(l||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return!(n&&n!=t.namespaceId||r&&r!=t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){var r,i,o=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,u=function(t){var r=t.element,i=r!==o,l=db(n,r,[]);c._getPreviousPlayers(r,i,a,s,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})},c=this;try{for(var h=l(e.timelines),f=h.next();!f.done;f=h.next())u(f.value)}catch(p){r={error:p}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}Hb(o,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,r,i,o){var a=this,s=e.triggerName,l=e.element,u=[],c=new Set,h=new Set,f=e.timelines.map(function(e){var f=e.element;c.add(f);var p=f[Fw];if(p&&p.removedBeforeQueried)return new ob(e.duration,e.delay);var d,y,v=f!==l,m=(d=(n.get(f)||Iw).map(function(t){return t.getRealPlayer()}),y=[],function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];i instanceof ab?t(i.players,n):n.push(i)}}(d,y),y).filter(function(t){return!!t.element&&t.element===f}),g=i.get(f),_=o.get(f),b=cb(0,a._normalizer,0,e.keyframes,g,_),w=a._buildPlayer(e,b,m);if(e.subTimeline&&r&&h.add(f),v){var x=new Hw(t,s,f);x.setRealPlayer(w),u.push(x)}return w});u.forEach(function(t){db(a.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else(r=t[e])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete t[e]);return r}(a.playersByQueriedElement,t.element,t)})}),c.forEach(function(t){return Zw(t,"ng-animating")});var p=ub(f);return p.onDestroy(function(){c.forEach(function(t){return Ww(t,"ng-animating")}),Vb(l,e.toStyles)}),h.forEach(function(t){db(r,t,[]).push(p)}),p},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new ob(t.duration,t.delay)},t}(),Hw=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new ob,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return hb(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){db(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function zw(t){return t&&1===t.nodeType}function Bw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Uw(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Bw(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Fw]=Pw,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return Bw(t,o[s++])}),a}function qw(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var Qw="$$classes";function Zw(t,e){if(t.classList)t.classList.add(e);else{var n=t[Qw];n||(n=t[Qw]={}),n[e]=!0}}function Ww(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Qw];n&&delete n[e]}}function Kw(t,e,n){ub(n).onDone(function(){return t.processLeaveNode(e)})}function Gw(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var Yw=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Vw(t,e,n),this._timelineEngine=new Dw(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=rw(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Aw(t,e)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=u(yb(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=u(yb(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),$w="animation",Xw="animationend",Jw=function(){function t(t,e,n,r,i,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=ox(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)","===t.charAt(n)&&0}(n),e=n+", "+e),ix(t,"",e),rx(this._element,this._eventFn,!1),this._startTime=Date.now()},t.prototype.pause=function(){tx(this._element,this._name,"paused")},t.prototype.resume=function(){tx(this._element,this._name,"running")},t.prototype.setPosition=function(t){var e=ex(this._element,this._name);this._position=t*this._duration,ix(this._element,"Delay","-"+this._position+"ms",e)},t.prototype.getPosition=function(){return this._position},t.prototype._handleCallback=function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),rx(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=nx(n=ox(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),ix(t,"",n.join(","))))},t}();function tx(t,e,n){ix(t,"PlayState",n,ex(t,e))}function ex(t,e){var n=ox(t,"");return n.indexOf(",")>0?nx(n.split(","),e):nx([n],e)}function nx(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function rx(t,e,n){n?t.removeEventListener(Xw,e):t.addEventListener(Xw,e)}function ix(t,e,n,r){var i=$w+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function ox(t,e){return t.style[$w+e]}var ax="linear",sx=function(){function t(t,e,n,r,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||ax,this.totalTime=r+i,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Jw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:$b(t.element,r))})}this.currentSnapshot=e},t}(),lx=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ab(n),r}return i(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(ob),ux=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Cb(t)},t.prototype.matchesElement=function(t,e){return Tb(t,e)},t.prototype.containsElement=function(t,e){return Sb(t,e)},t.prototype.query=function(t,e,n){return kb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map(function(t){return Ab(t)});var r="@keyframes "+e+" {\n",i="";n.forEach(function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter(function(t){return t instanceof sx}),l={};Kb(n,r)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Gb(t,e,l));if(0==n)return new lx(t,u);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var f=new sx(t,e,c,n,r,i,u);return f.onDestroy(function(){var t;(t=h).parentNode.removeChild(t)}),f},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),cx=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:$b(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),hx=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(fx().toString()),this._cssKeyframesDriver=new ux}return t.prototype.validateStyleProperty=function(t){return Cb(t)},t.prototype.matchesElement=function(t,e){return Tb(t,e)},t.prototype.containsElement=function(t,e){return Sb(t,e)},t.prototype.query=function(t,e,n){return kb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var l={},u=o.filter(function(t){return t instanceof cx});return Kb(n,r)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})}),e=Gb(t,e=e.map(function(t){return Rb(t,!1)}),l),new cx(t,e,s)},t}();function fx(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var px=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ae.None,styles:[],data:{animation:[]}}),r}return i(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?nb(t):t;return vx(this._renderer,null,e,"register",[n]),new dx(e,this._renderer)},e}(J_),dx=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return i(e,t),e.prototype.create=function(t,e){return new yx(this._id,t,e||{},this._renderer)},e}(tb),yx=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return vx(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function vx(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var mx=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new gx("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,a=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,a,t,e.name,e)}),new _x(this,a,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then(function(){t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){var e=u(t,2);(0,e[0])(e[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}(),gx=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t,e){return this.delegate.selectRootElement(t,e)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),_x=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return i(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r,i,o,a=this;if("@"==e.charAt(0)){var s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),l=e.substr(1),c="";return"@"!=l.charAt(0)&&(l=(r=u((i=l,o=i.indexOf("."),[i.substring(0,o),i.substr(o+1)]),2))[0],c=r[1]),this.engine.listen(this.namespaceId,s,l,c,function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)},e}(gx),bx=function(t){function e(e,n,r){return t.call(this,e.body,n,r)||this}return i(e,t),e}(Yw);function wx(){return"function"==typeof fx()?new hx:new ux}function xx(){return new ww}function Ex(t,e,n){return new mx(t,e,n)}var Cx=new mt("AnimationModuleType"),Tx=function(){return function(){}}(),Sx=function(){return function(){}}(),kx=function(){return function(){}}(),Ax=function(){return function(){}}(),Mx=Ul(Ql,[Zl],function(t){return function(t){for(var e={},n=[],r=!1,i=0;i<t.length;i++){var o=t[i];o.token===vr&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,e[Uo(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:r}}([Ma(512,Zn,Wn,[[8,[ku,X_]],[3,Zn],Gn]),Ma(5120,To,Ao,[[3,To]]),Ma(4608,ru,iu,[To,[2,nu]]),Ma(4608,Si,Si,[]),Ma(5120,vi,mi,[]),Ma(5120,_o,So,[]),Ma(5120,bo,ko,[]),Ma(4608,o_,a_,[pu]),Ma(6144,ei,null,[o_]),Ma(4608,Xg,t_,[]),Ma(5120,Tg,function(t,e,n,r,i,o,a,s){return[new Yg(t,e,n),new i_(r),new e_(i,o,a,s)]},[pu,Oi,bi,pu,pu,Xg,xi,[2,Jg]]),Ma(4608,Sg,Sg,[Tg,Oi]),Ma(135680,Mg,Mg,[pu]),Ma(4608,Rg,Rg,[Sg,Mg]),Ma(5120,Nb,wx,[]),Ma(5120,bw,xx,[]),Ma(4608,Yw,bx,[pu,Nb,bw]),Ma(5120,ar,Ex,[Rg,Yw,Oi]),Ma(6144,Ag,null,[Mg]),Ma(4608,zi,zi,[Oi]),Ma(4608,J_,px,[ar,vg]),Ma(4608,sf,sf,[Yi,Zn,Ut]),Ma(4608,lf,lf,[sf]),Ma(4608,Kl,Xl,[Wl,[2,Gl]]),Ma(4608,Yl,Yl,[Kl]),Ma(1073742336,fu,fu,[]),Ma(1024,fi,d_,[]),Ma(1024,di,function(t){return[(e=t,xg("probe",Cg),xg("coreTokens",o({},Eg,(e||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return Cg})];var e},[[2,Qi]]),Ma(512,yi,yi,[[2,di]]),Ma(131584,Yi,Yi,[Oi,xi,Ut,fi,Zn,yi]),Ma(1073742336,Mo,Mo,[Yi]),Ma(1073742336,y_,y_,[[3,y_]]),Ma(1073742336,Tx,Tx,[]),Ma(1073742336,Sx,Sx,[]),Ma(1073742336,S_,S_,[]),Ma(1073742336,kx,kx,[]),Ma(1073742336,Ax,Ax,[]),Ma(1073742336,Ql,Ql,[]),Ma(256,vr,!0,[]),Ma(256,Cx,"BrowserAnimations",[])])});(function(){if(Ir)throw new Error("Cannot enable prod mode after platform setup.");Dr=!1})(),p_().bootstrapModuleFactory(Mx).catch(function(t){return console.error(t)})}},[[0,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"0TWp":function(e,t,n){!function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}if(n("Zone"),e.Zone)throw new Error("Zone already loaded.");var o,a=function(){function t(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new s(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return z.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return O},enumerable:!0,configurable:!0}),t.__load_patch=function(o,a){if(D.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var i="Zone:"+o;n(i),D[o]=a(e,t,Z),r(i,i)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{z=z.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{z=z.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");if(e.state!==y||e.type!==S){var r=e.state!=_;r&&e._transitionTo(_,m),e.runCount++;var o=O;O=e,z={parent:z,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{e.state!==y&&e.state!==T&&(e.type==S||e.data&&e.data.isPeriodic?r&&e._transitionTo(m,_):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,_,y))),z=z.parent,O=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(k,y);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(T,k,y),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(m,k),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new c(w,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new c(E,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new c(S,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");e._transitionTo(b,m,_);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(T,b),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,b),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t.__symbol__=C,t}(),i={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,a){return e.invokeTask(n,r,o,a)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},s=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t.zone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t.zone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t.zone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t.zone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:i,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new a(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=w)throw new Error("Task is missing scheduleFn.");d(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),c=function(){function t(n,r,o,a,i,s){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=a,this.scheduleFn=i,this.cancelFn=s,this.callback=o;var c=this;this.invoke=n===S&&a&&a.useG?t.invokeTask:function(){return t.invokeTask.call(e,c,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&v(),P--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(y,k)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==y&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),u=C("setTimeout"),l=C("Promise"),p=C("then"),f=[],h=!1;function d(t){0===P&&0===f.length&&(o||e[l]&&(o=e[l].resolve(0)),o?o[p](v):e[u](v,0)),t&&f.push(t)}function v(){if(!h){for(h=!0;f.length;){var e=f;f=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){Z.onUnhandledError(r)}}}Z.microtaskDrainDone(),h=!1}}var g={name:"NO ZONE"},y="notScheduled",k="scheduling",m="scheduled",_="running",b="canceling",T="unknown",w="microTask",E="macroTask",S="eventTask",D={},Z={symbol:C,currentZoneFrame:function(){return z},onUnhandledError:j,microtaskDrainDone:j,scheduleMicroTask:d,showUncaughtError:function(){return!a[C("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:j,patchMethod:function(){return j},bindArguments:function(){return null},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(o=e.resolve(0))}},z={parent:null,zone:new a(null,null)},O=null,P=0;function j(){}function C(e){return"__zone_symbol__"+e}r("Zone","Zone"),e.Zone=a}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,a=n.symbol,i=[],s=a("Promise"),c=a("then"),u="__creationTrace__";n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(;i.length;)for(var e=function(){var e=i.shift();try{e.zone.runGuarded(function(){throw e})}catch(t){p(t)}};i.length;)e()};var l=a("unhandledPromiseRejectionHandler");function p(e){n.onUnhandledError(e);try{var r=t[l];r&&"function"==typeof r&&r.call(this,e)}catch(o){}}function f(e){return e&&e.then}function h(e){return e}function d(e){return I.reject(e)}var v=a("state"),g=a("value"),y=a("finally"),k=a("parentPromiseValue"),m=a("parentPromiseState"),_="Promise.then",b=null,T=!0,w=!1,E=0;function S(e,t){return function(n){try{O(e,t,n)}catch(r){O(e,!1,r)}}}var D=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},Z="Promise resolved with itself",z=a("currentTaskTrace");function O(e,r,a){var s,c=D();if(e===a)throw new TypeError(Z);if(e[v]===b){var l=null;try{"object"!=typeof a&&"function"!=typeof a||(l=a&&a.then)}catch(_){return c(function(){O(e,!1,_)})(),e}if(r!==w&&a instanceof I&&a.hasOwnProperty(v)&&a.hasOwnProperty(g)&&a[v]!==b)j(a),O(e,a[v],a[g]);else if(r!==w&&"function"==typeof l)try{l.call(a,c(S(e,r)),c(S(e,!1)))}catch(_){c(function(){O(e,!1,_)})()}else{e[v]=r;var p=e[g];if(e[g]=a,e[y]===y&&r===T&&(e[v]=e[m],e[g]=e[k]),r===w&&a instanceof Error){var f=t.currentTask&&t.currentTask.data&&t.currentTask.data[u];f&&o(a,z,{configurable:!0,enumerable:!1,writable:!0,value:f})}for(var h=0;h<p.length;)C(e,p[h++],p[h++],p[h++],p[h++]);if(0==p.length&&r==w){e[v]=E;try{throw new Error("Uncaught (in promise): "+((s=a)&&s.toString===Object.prototype.toString?(s.constructor&&s.constructor.name||"")+": "+JSON.stringify(s):s?s.toString():Object.prototype.toString.call(s))+(a&&a.stack?"\n"+a.stack:""))}catch(_){var d=_;d.rejection=a,d.promise=e,d.zone=t.current,d.task=t.currentTask,i.push(d),n.scheduleMicroTask()}}}}return e}var P=a("rejectionHandledHandler");function j(e){if(e[v]===E){try{var n=t[P];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(o){}e[v]=w;for(var r=0;r<i.length;r++)e===i[r].promise&&i.splice(r,1)}}function C(e,t,n,r,o){j(e);var a=e[v],i=a?"function"==typeof r?r:h:"function"==typeof o?o:d;t.scheduleMicroTask(_,function(){try{var r=e[g],o=n&&y===n[y];o&&(n[k]=r,n[m]=a);var s=t.run(i,void 0,o&&i!==d&&i!==h?[]:[r]);O(n,!0,s)}catch(c){O(n,!1,c)}},n)}var I=function(){function e(t){if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[v]=b,this[g]=[];try{t&&t(S(this,T),S(this,w))}catch(n){O(this,!1,n)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return O(new this(null),T,e)},e.reject=function(e){return O(new this(null),w,e)},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function o(e){r&&(r=t(e))}function a(e){r&&(r=n(e))}for(var i=0,s=e;i<s.length;i++){var c=s[i];f(c)||(c=this.resolve(c)),c.then(o,a)}return r},e.all=function(e){for(var t,n,r=new this(function(e,r){t=e,n=r}),o=0,a=[],i=0,s=e;i<s.length;i++){var c=s[i];f(c)||(c=this.resolve(c)),c.then(function(e){return function(n){a[e]=n,--o||t(a)}}(o),n),o++}return o||t(a),r},e.prototype.then=function(e,n){var r=new this.constructor(null),o=t.current;return this[v]==b?this[g].push(o,r,e,n):C(this,o,r,e,n),r},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=new this.constructor(null);n[y]=y;var r=t.current;return this[v]==b?this[g].push(r,n,e,e):C(this,r,n,e,e),n},e}();I.resolve=I.resolve,I.reject=I.reject,I.race=I.race,I.all=I.all;var L=e[s]=e.Promise,M=t.__symbol__("ZoneAwarePromise"),R=r(e,"Promise");R&&!R.configurable||(R&&delete R.writable,R&&delete R.value,R||(R={configurable:!0,enumerable:!0}),R.get=function(){return e[M]?e[M]:e[s]},R.set=function(t){t===I?e[M]=t:(e[s]=t,t.prototype[c]||F(t),n.setNativePromise(t))},o(e,"Promise",R)),e.Promise=I;var H,x=a("thenPatched");function F(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[c]=o,e.prototype.then=function(e,t){var n=this;return new I(function(e,t){o.call(n,e,t)}).then(e,t)},e[x]=!0}}if(L){F(L);var q=e.fetch;"function"==typeof q&&(e.fetch=(H=q,function(){var e=H.apply(this,arguments);if(e instanceof I)return e;var t=e.constructor;return t[x]||F(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=i,I});var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,a="addEventListener",i="removeEventListener",s=Zone.__symbol__(a),c=Zone.__symbol__(i),u="true",l="false",p="__zone_symbol__";function f(e,t){return Zone.current.wrap(e,t)}function h(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var d=Zone.__symbol__,v="undefined"!=typeof window,g=v?window:void 0,y=v&&g||"object"==typeof self&&self||global,k="removeAttribute",m=[null];function _(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=f(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,w=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!w&&!T&&!(!v||!g.HTMLElement),S=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!T&&!(!v||!g.HTMLElement),D={},Z=function(e){if(e=e||y.event){var t=D[e.type];t||(t=D[e.type]=d("ON_PROPERTY"+e.type));var n=(this||e.target||y)[t],r=n&&n.apply(this,arguments);return null==r||r||e.preventDefault(),r}};function z(n,r,o){var a=e(n,r);if(!a&&o&&e(o,r)&&(a={enumerable:!0,configurable:!0}),a&&a.configurable){delete a.writable,delete a.value;var i=a.get,s=a.set,c=r.substr(2),u=D[c];u||(u=D[c]=d("ON_PROPERTY"+c)),a.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[u]&&t.removeEventListener(c,Z),s&&s.apply(t,m),"function"==typeof e?(t[u]=e,t.addEventListener(c,Z,!1)):t[u]=null)},a.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[u];if(t)return t;if(i){var o=i&&i.call(this);if(o)return a.set.call(this,o),"function"==typeof e[k]&&e.removeAttribute(r),o}return null},t(n,r,a)}}function O(e,t,n){if(t)for(var r=0;r<t.length;r++)z(e,"on"+t[r],n);else{var o=[];for(var a in e)"on"==a.substr(0,2)&&o.push(a);for(var i=0;i<o.length;i++)z(e,o[i],n)}}var P=d("originalInstance");function j(e){var n=y[e];if(n){y[d(e)]=n,y[e]=function(){var t=_(arguments,e);switch(t.length){case 0:this[P]=new n;break;case 1:this[P]=new n(t[0]);break;case 2:this[P]=new n(t[0],t[1]);break;case 3:this[P]=new n(t[0],t[1],t[2]);break;case 4:this[P]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},I(y[e],n);var r,o=new n(function(){});for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?y[e].prototype[n]=function(){return this[P][n].apply(this[P],arguments)}:t(y[e].prototype,n,{set:function(t){"function"==typeof t?(this[P][n]=f(t,e+"."+n),I(this[P][n],t)):this[P][n]=t},get:function(){return this[P][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(y[e][r]=n[r])}}function C(t,r,o){for(var a=t;a&&!a.hasOwnProperty(r);)a=n(a);!a&&t[r]&&(a=t);var i,s=d(r);if(a&&!(i=a[s])&&(i=a[s]=a[r],b(a&&e(a,r)))){var c=o(i,s,r);a[r]=function(){return c(this,arguments)},I(a[r],i)}return i}function I(e,t){e[d("OriginalDelegate")]=t}var L=!1,M=!1;function R(){if(L)return M;L=!0;try{var e=g.navigator.userAgent;return-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(M=!0),M}catch(t){}}Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),o=d("Error"),a=function(){if("function"==typeof this){var a=this[n];if(a)return"function"==typeof a?t.apply(this[n],arguments):Object.prototype.toString.call(a);if(this===Promise){var i=e[r];if(i)return t.apply(i,arguments)}if(this===Error){var s=e[o];if(s)return t.apply(s,arguments)}}return t.apply(this,arguments)};a[n]=t,Function.prototype.toString=a;var i=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":i.apply(this,arguments)}});var H={useG:!0},x={},F={},q=/^__zone_symbol__(\w+)(true|false)$/,A="__zone_symbol__propagationStopped";function B(e,t,r){var o=r&&r.add||a,s=r&&r.rm||i,c=r&&r.listeners||"eventListeners",f=r&&r.rmAll||"removeAllListeners",h=d(o),v="."+o+":",g="prependListener",y="."+g+":",k=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},m=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[x[t.type][l]];if(r)if(1===r.length)k(r[0],n,t);else for(var o=r.slice(),a=0;a<o.length&&(!t||!0!==t[A]);a++)k(o[a],n,t)}},_=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[x[t.type][u]];if(r)if(1===r.length)k(r[0],n,t);else for(var o=r.slice(),a=0;a<o.length&&(!t||!0!==t[A]);a++)k(o[a],n,t)}};function b(t,r){if(!t)return!1;var a=!0;r&&void 0!==r.useG&&(a=r.useG);var i=r&&r.vh,k=!0;r&&void 0!==r.chkDup&&(k=r.chkDup);var b=!1;r&&void 0!==r.rt&&(b=r.rt);for(var T=t;T&&!T.hasOwnProperty(o);)T=n(T);if(!T&&t[o]&&(T=t),!T)return!1;if(T[h])return!1;var w,E={},S=T[h]=T[o],D=T[d(s)]=T[s],Z=T[d(c)]=T[c],z=T[d(f)]=T[f];r&&r.prepend&&(w=T[d(r.prepend)]=T[r.prepend]);var O=a?function(){if(!E.isExisting)return S.call(E.target,E.eventName,E.capture?_:m,E.options)}:function(e){return S.call(E.target,E.eventName,e.invoke,E.options)},P=a?function(e){if(!e.isRemoved){var t=x[e.eventName],n=void 0;t&&(n=t[e.capture?u:l]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return D.call(e.target,e.eventName,e.capture?_:m,e.options)}:function(e){return D.call(e.target,e.eventName,e.invoke,e.options)},j=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},C=Zone[Zone.__symbol__("BLACK_LISTED_EVENTS")],L=function(t,n,r,o,s,c){return void 0===s&&(s=!1),void 0===c&&(c=!1),function(){var f=this||e,h=arguments[1];if(!h)return t.apply(this,arguments);var d=!1;if("function"!=typeof h){if(!h.handleEvent)return t.apply(this,arguments);d=!0}if(!i||i(t,h,f,arguments)){var v,g=arguments[0],y=arguments[2];if(C)for(var m=0;m<C.length;m++)if(g===C[m])return t.apply(this,arguments);var _=!1;void 0===y?v=!1:!0===y?v=!0:!1===y?v=!1:(v=!!y&&!!y.capture,_=!!y&&!!y.once);var b,T=Zone.current,w=x[g];if(w)b=w[v?u:l];else{var S=p+(g+l),D=p+(g+u);x[g]={},x[g][l]=S,x[g][u]=D,b=v?D:S}var Z,z=f[b],O=!1;if(z){if(O=!0,k)for(m=0;m<z.length;m++)if(j(z[m],h))return}else z=f[b]=[];var P=f.constructor.name,I=F[P];I&&(Z=I[g]),Z||(Z=P+n+g),E.options=y,_&&(E.options.once=!1),E.target=f,E.capture=v,E.eventName=g,E.isExisting=O;var L=a?H:null;L&&(L.taskData=E);var M=T.scheduleEventTask(Z,h,L,r,o);return E.target=null,L&&(L.taskData=null),_&&(y.once=!0),M.options=y,M.target=f,M.capture=v,M.eventName=g,d&&(M.originalDelegate=h),c?z.unshift(M):z.push(M),s?f:void 0}}};return T[o]=L(S,v,O,P,b),w&&(T[g]=L(w,y,function(e){return w.call(E.target,E.eventName,e.invoke,E.options)},P,b,!0)),T[s]=function(){var t,n=this||e,r=arguments[0],o=arguments[2];t=void 0!==o&&(!0===o||!1!==o&&!!o&&!!o.capture);var a=arguments[1];if(!a)return D.apply(this,arguments);if(!i||i(D,a,n,arguments)){var s,c=x[r];c&&(s=c[t?u:l]);var p=s&&n[s];if(p)for(var f=0;f<p.length;f++){var h=p[f];if(j(h,a))return p.splice(f,1),h.isRemoved=!0,0===p.length&&(h.allRemoved=!0,n[s]=null),h.zone.cancelTask(h),b?n:void 0}return D.apply(this,arguments)}},T[c]=function(){for(var t=[],n=N(this||e,arguments[0]),r=0;r<n.length;r++){var o=n[r];t.push(o.originalDelegate?o.originalDelegate:o.callback)}return t},T[f]=function(){var t=this||e,n=arguments[0];if(n){var r=x[n];if(r){var o=t[r[l]],a=t[r[u]];if(o){var i=o.slice();for(h=0;h<i.length;h++)this[s].call(this,n,(c=i[h]).originalDelegate?c.originalDelegate:c.callback,c.options)}if(a)for(i=a.slice(),h=0;h<i.length;h++){var c;this[s].call(this,n,(c=i[h]).originalDelegate?c.originalDelegate:c.callback,c.options)}}}else{for(var p=Object.keys(t),h=0;h<p.length;h++){var d=q.exec(p[h]),v=d&&d[1];v&&"removeListener"!==v&&this[f].call(this,v)}this[f].call(this,"removeListener")}if(b)return this},I(T[o],S),I(T[s],D),z&&I(T[f],z),Z&&I(T[c],Z),!0}for(var T=[],w=0;w<t.length;w++)T[w]=b(t[w],r);return T}function N(e,t){var n=[];for(var r in e){var o=q.exec(r),a=o&&o[1];if(a&&(!t||a===t)){var i=e[r];if(i)for(var s=0;s<i.length;s++)n.push(i[s])}}return n}var W=d("zoneTask");function X(e,t,n,r){var o=null,a=null;n+=r;var i={};function s(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete i[n.handleId]:n.handleId&&(n.handleId[W]=null))}},n.handleId=o.apply(e,n.args),t}function c(e){return a(e.data.handleId)}o=C(e,t+=r,function(n){return function(o,a){if("function"==typeof a[0]){var u=h(t,a[0],{handleId:null,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?a[1]||0:null,args:a},s,c);if(!u)return u;var l=u.data.handleId;return"number"==typeof l?i[l]=u:l&&(l[W]=u),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(u.ref=l.ref.bind(l),u.unref=l.unref.bind(l)),"number"==typeof l||l?l:u}return n.apply(e,a)}}),a=C(e,n,function(t){return function(n,r){var o,a=r[0];"number"==typeof a?o=i[a]:(o=a&&a[W])||(o=a),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof a?delete i[a]:a&&(a[W]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}var G=Object[d("defineProperty")]=Object.defineProperty,U=Object[d("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,V=Object.create,J=d("unconfigurables");function K(e,t){return e&&e[J]&&e[J][t]}function Y(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[J]||Object.isFrozen(e)||G(e,J,{writable:!0,value:{}}),e[J]&&(e[J][t]=!0)),n}function Q(e,t,n,r){try{return G(e,t,n)}catch(a){if(!n.configurable)throw a;void 0===r?delete n.configurable:n.configurable=r;try{return G(e,t,n)}catch(a){var o=null;try{o=JSON.stringify(n)}catch(a){o=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+o+"' on object '"+e+"' and got error, giving up: "+a)}}}var $=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ee=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],te=["load"],ne=["blur","error","focus","load","resize","scroll","messageerror"],re=["bounce","finish","start"],oe=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ae=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ie=["close","error","open","message"],se=["error","message"],ce=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange"],$,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ue(e,t,n,r){e&&O(e,function(e,t,n){if(!n)return t;var r=n.filter(function(t){return t.target===e});if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter(function(e){return-1===o.indexOf(e)})}(e,t,n),r)}function le(s,c){if(!w||S){var u="undefined"!=typeof WebSocket;if(function(){if((E||S)&&!e(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var n=e(Element.prototype,"onclick");if(n&&!n.configurable)return!1}var r=XMLHttpRequest.prototype,o=e(r,"onreadystatechange");if(o){t(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var a=!!(s=new XMLHttpRequest).onreadystatechange;return t(r,"onreadystatechange",o||{}),a}var i=d("fake");t(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[i]},set:function(e){this[i]=e}});var s,c=function(){};return(s=new XMLHttpRequest).onreadystatechange=c,a=s[i]===c,s.onreadystatechange=null,a}()){var l=c.__Zone_ignore_on_properties;if(E){var p=window;ue(p,ce.concat(["messageerror"]),l,n(p)),ue(Document.prototype,ce,l),void 0!==p.SVGElement&&ue(p.SVGElement.prototype,ce,l),ue(Element.prototype,ce,l),ue(HTMLElement.prototype,ce,l),ue(HTMLMediaElement.prototype,ee,l),ue(HTMLFrameSetElement.prototype,$.concat(ne),l),ue(HTMLBodyElement.prototype,$.concat(ne),l),ue(HTMLFrameElement.prototype,te,l),ue(HTMLIFrameElement.prototype,te,l);var h=p.HTMLMarqueeElement;h&&ue(h.prototype,re,l);var v=p.Worker;v&&ue(v.prototype,se,l)}ue(XMLHttpRequest.prototype,oe,l);var g=c.XMLHttpRequestEventTarget;g&&ue(g&&g.prototype,oe,l),"undefined"!=typeof IDBIndex&&(ue(IDBIndex.prototype,ae,l),ue(IDBRequest.prototype,ae,l),ue(IDBOpenDBRequest.prototype,ae,l),ue(IDBDatabase.prototype,ae,l),ue(IDBTransaction.prototype,ae,l),ue(IDBCursor.prototype,ae,l)),u&&ue(WebSocket.prototype,ie,l)}else!function(){for(var e=function(e){var t=ce[e],n="on"+t;self.addEventListener(t,function(e){var t,r,o=e.target;for(r=o?o.constructor.name+"."+n:"unknown."+n;o;)o[n]&&!o[n][pe]&&((t=f(o[n],r))[pe]=o[n],o[n]=t),o=o.parentElement},!0)},t=0;t<ce.length;t++)e(t)}(),j("XMLHttpRequest"),u&&function(t,n){var s=n.WebSocket;n.EventTarget||B(n,[s.prototype]),n.WebSocket=function(t,n){var c,u,l=arguments.length>1?new s(t,n):new s(t),p=e(l,"onmessage");return p&&!1===p.configurable?(c=r(l),u=l,[a,i,"send","close"].forEach(function(e){c[e]=function(){var t=o.call(arguments);if(e===a||e===i){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=c[r]}}return l[e].apply(l,t)}})):c=l,O(c,["close","error","message","open"],u),c};var c=n.WebSocket;for(var u in s)c[u]=s[u]}(0,c)}}var pe=d("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=O,n.patchMethod=C,n.bindArguments=_}),Zone.__load_patch("timers",function(e){X(e,"set","clear","Timeout"),X(e,"set","clear","Interval"),X(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){X(e,"request","cancel","AnimationFrame"),X(e,"mozRequest","mozCancel","AnimationFrame"),X(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)C(e,n[r],function(n,r,o){return function(r,a){return t.current.run(n,e,a,o)}})}),Zone.__load_patch("EventTarget",function(e,t,n){var r=t.__symbol__("BLACK_LISTED_EVENTS");e[r]&&(t[r]=e[r]),function(e,t){!function(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[A]=!0,e&&e.apply(t,n)}})}(e,t)}(e,n),function(e,t){var n="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",r="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),o=[],a=e.wtf,i=n.split(",");a?o=i.map(function(e){return"HTML"+e+"Element"}).concat(r):e.EventTarget?o.push("EventTarget"):o=r;for(var s=e.__Zone_disable_IE_check||!1,c=e.__Zone_enable_cross_context_check||!1,f=R(),h="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",d=0;d<ce.length;d++){var v=p+((_=ce[d])+l),g=p+(_+u);x[_]={},x[_][l]=v,x[_][u]=g}for(d=0;d<n.length;d++)for(var y=i[d],k=F[y]={},m=0;m<ce.length;m++){var _;k[_=ce[m]]=y+".addEventListener:"+_}var b=[];for(d=0;d<o.length;d++){var T=e[o[d]];b.push(T&&T.prototype)}B(e,b,{vh:function(e,t,n,r){if(!s&&f){if(c)try{var o;if("[object FunctionWrapper]"===(o=t.toString())||o==h)return e.apply(n,r),!1}catch(a){return e.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=t.toString())||o==h)return e.apply(n,r),!1}else if(c)try{t.toString()}catch(a){return e.apply(n,r),!1}return!0}}),t.patchEventTarget=B}(e,n);var o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),j("MutationObserver"),j("WebKitMutationObserver"),j("IntersectionObserver"),j("FileReader")}),Zone.__load_patch("on_property",function(t,n,r){le(0,t),Object.defineProperty=function(e,t,n){if(K(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=Y(e,t,n)),Q(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach(function(n){t[n]=Y(e,n,t[n])}),V(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=U(e,t);return K(e,t)&&(n.configurable=!1),n},function(n){if((E||S)&&"registerElement"in t.document){var r=document.registerElement,o=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(t,n){return n&&n.prototype&&o.forEach(function(t){var r,o,a,i,s="Document.registerElement::"+t,c=n.prototype;if(c.hasOwnProperty(t)){var u=e(c,t);u&&u.value?(u.value=f(u.value,s),i=(a=u).configurable,Q(r=n.prototype,o=t,a=Y(r,o,a),i)):c[t]=f(c[t],s)}else c[t]&&(c[t]=f(c[t],s))}),r.call(document,t,n)},I(document.registerElement,r)}}()}),Zone.__load_patch("canvas",function(e){var t=e.HTMLCanvasElement;void 0!==t&&t.prototype&&t.prototype.toBlob&&function(e,n,r){var o=null;function a(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=C(t.prototype,"toBlob",function(e){return function(t,n){var r=function(e,t){return{name:"HTMLCanvasElement.toBlob",target:e,cbIdx:0,args:t}}(t,n);return r.cbIdx>=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,a,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var u=XMLHttpRequest.prototype,l=u[s],p=u[c];if(!l){var f=e.XMLHttpRequestEventTarget;if(f){var d=f.prototype;l=d[s],p=d[c]}}var v="readystatechange",g="scheduled";function y(e){XMLHttpRequest[a]=!1;var t=e.data,r=t.target,i=r[o];l||(l=r[s],p=r[c]),i&&p.call(r,v,i);var u=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[a]&&e.state===g&&e.invoke()};return l.call(r,v,u),r[n]||(r[n]=e),b.apply(r,t.args),XMLHttpRequest[a]=!0,e}function k(){}function m(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}var _=C(u,"open",function(){return function(e,t){return e[r]=0==t[2],e[i]=t[1],_.apply(e,t)}}),b=C(u,"send",function(){return function(e,t){return e[r]?b.apply(e,t):h("XMLHttpRequest.send",k,{target:e,url:e[i],isPeriodic:!1,delay:null,args:t,aborted:!1},y,m)}}),T=C(u,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=d("xhrTask"),r=d("xhrSync"),o=d("xhrListener"),a=d("xhrScheduled"),i=d("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var a=n[o],i=t[a];if(i){if(!b(e(t,a)))return"continue";t[a]=function(e){var t=function(){return e.apply(this,_(arguments,r+"."+a))};return I(t,e),t}(i)}},a=0;a<n.length;a++)o(a)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){N(e,t).forEach(function(r){var o=e.PromiseRejectionEvent;if(o){var a=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(a)}})}}e.PromiseRejectionEvent&&(t[d("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[d("rejectionHandledHandler")]=n("rejectionhandled"))})}()},1:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("0TWp")}},[[1,0]]]);
!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)o[f=i[c]]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++)0!==o[t[i]]&&(n=!1);n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={0:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,(function(r){return e[r]}).bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=l;t()}([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment