-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-es5.4b5b62cf0deb62eca5f9.js
1 lines (1 loc) · 263 KB
/
main-es5.4b5b62cf0deb62eca5f9.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"23xg":function(e){e.exports=JSON.parse('{"Food":[{"name":"poutine","price":"$6.99","calories":"1350"},{"name":"pizza","price":"$4.99","calories":"1100"},{"name":"chicken wings","price":"$8.99","calories":"1300"}]}')},"9iUS":function(e){e.exports=JSON.parse('{"Food":[{"name":"Chicken noodle soup","price":"$6.99","calories":"1200"},{"name":"PadThai","price":"$7.99","calories":"1000"},{"name":"Sushi","price":"$5.99","calories":"1100"}]}')},LQdv:function(e){e.exports=JSON.parse('{"Food":[{"name":"Chicken sandwich","price":"$6.99","calories":"1200"},{"name":"Beef sandwich","price":"$7.99","calories":"1400"},{"name":"Fish sandwich","price":"$5.99","calories":"1100"}]}')},zUnb:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}var f=Array.isArray||function(e){return e&&"number"==typeof e.length};function p(e){return null!==e&&"object"==typeof e}function h(e){return"function"==typeof e}function d(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}d.prototype=Object.create(Error.prototype);var y=d,v=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(h(o))try{o.call(this)}catch(l){t=!0,e=l instanceof y?m(l.errors):[l]}if(f(i))for(s=-1,a=i.length;++s<a;){var u=i[s];if(p(u))try{u.unsubscribe()}catch(l){t=!0,e=e||[],l instanceof y?e=e.concat(m(l.errors)):e.push(l)}}if(t)throw new y(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function m(e){return e.reduce(function(e,t){return e.concat(t instanceof y?t.errors:t)},[])}var g=!1,_={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){g=e},get useDeprecatedSynchronousErrorHandling(){return g}};function b(e){setTimeout(function(){throw e})}var w={closed:!0,next:function(e){},error:function(e){if(_.useDeprecatedSynchronousErrorHandling)throw e;b(e)},complete:function(){}},E="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),S=function(e){function t(n,r,o){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=w;break;case 1:if(!n){i.destination=w;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new C(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new C(i,n,r,o)}return i}return o(t,e),t.prototype[E]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(v),C=function(e){function t(t,n,r,o){var i,s=e.call(this)||this;s._parentSubscriber=t;var a=s;return h(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==w&&(h((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=i,s._error=r,s._complete=o,s}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;_.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=_.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):b(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;b(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};_.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),_.useDeprecatedSynchronousErrorHandling)throw n;b(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!_.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return _.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(b(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(S),T="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(){}function x(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:k}var A=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=function(e,t,n){if(e){if(e instanceof S)return e;if(e[E])return e[E]()}return e||t||n?new S(e,t,n):new S(w)}(e,t,n);if(o.add(r?r.call(o,this.source):this.source||_.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),_.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){_.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof S?t:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=N(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(n){r(n),o&&o.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[T]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:x(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=N(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function N(e){if(e||(e=_.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function I(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}I.prototype=Object.create(Error.prototype);var P=I,D=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return o(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(v),O=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return o(t,e),t}(S),F=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype[E]=function(){return new O(this)},t.prototype.lift=function(e){var t=new V(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new P;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new P;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new P;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new P;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new P;return this.hasError?(e.error(this.thrownError),v.EMPTY):this.isStopped?(e.complete(),v.EMPTY):(this.observers.push(e),new D(this,e))},t.prototype.asObservable=function(){var e=new A;return e.source=this,e},t.create=function(e,t){return new V(e,t)},t}(A),V=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return o(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):v.EMPTY},t}(F),R=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return o(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(S),M=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},j=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,b),t}};function L(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var H=L(),B=function(e){return function(t){for(var n=e[H]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}},z=function(e){return function(t){var n=e[T]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},q=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function U(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Q=function(e){if(e instanceof A)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[T])return z(e);if(q(e))return M(e);if(U(e))return j(e);if(e&&"function"==typeof e[H])return B(e);var t=p(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function K(e,t,n,r,o){if(void 0===o&&(o=new R(e,n,r)),!o.closed)return Q(t)(o)}var Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(S);function W(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new $(e,t))}}var $=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new G(e,this.project,this.thisArg))},e}(),G=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return o(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(S);function J(e,t){return new A(t?function(n){var r=new v,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:M(e))}function Y(e,t){if(!t)return e instanceof A?e:new A(Q(e));if(null!=e){if(function(e){return e&&"function"==typeof e[T]}(e))return function(e,t){return new A(t?function(n){var r=new v;return r.add(t.schedule(function(){var o=e[T]();r.add(o.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r}:z(e))}(e,t);if(U(e))return function(e,t){return new A(t?function(n){var r=new v;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r}:j(e))}(e,t);if(q(e))return J(e,t);if(function(e){return e&&"function"==typeof e[H]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(t?function(n){var r,o=new v;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(t.schedule(function(){r=e[H](),o.add(t.schedule(function(){if(!n.closed){var e,t;try{var o=r.next();e=o.value,t=o.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}}))})),o}:B(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}var X=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new ee(e,this.project,this.concurrent))},e}(),ee=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new R(this,void 0,void 0);this.destination.add(r),K(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(Z);function te(e){return e}function ne(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(e(function(e,r){return Y(t(e,r)).pipe(W(function(t,o){return n(e,t,r,o)}))},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new X(t,r))})}(te,e)}function re(){return function(e){return e.lift(new oe(e))}}var oe=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new ie(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(S),se=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new v).add(this.source.subscribe(new ue(this.getSubject(),this))),e.closed?(this._connection=null,e=v.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return re()(this)},t}(A).prototype,ae={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:se._subscribe},_isComplete:{value:se._isComplete,writable:!0},getSubject:{value:se.getSubject},connect:{value:se.connect},refCount:{value:se.refCount}},ue=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(O);function le(){return new F}var ce="__parameters__";function fe(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,c(t));for(var o in r)this[o]=r[o]}}}(t);function o(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof o)return r.apply(this,t),this;var i=new((e=o).bind.apply(e,c([void 0],t)));return s.annotation=i,s;function s(e,t,n){for(var r=e.hasOwnProperty(ce)?e[ce]:Object.defineProperty(e,ce,{value:[]})[ce];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}var pe=fe("Inject",function(e){return{token:e}}),he=fe("Optional"),de=fe("Self"),ye=fe("SkipSelf"),ve=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function me(e){for(var t in e)if(e[t]===me)return t;throw Error("Could not find renamed property on target object.")}function ge(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _e(e){var t=e[be];return t&&t.token===e?t:null}var be=me({ngInjectableDef:me});function we(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(we).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}var Ee=me({__forward_ref__:me});function Se(e){return e.__forward_ref__=Se,e.toString=function(){return we(this())},e}function Ce(e){var t=e;return"function"==typeof t&&t.hasOwnProperty(Ee)&&t.__forward_ref__===Se?t():e}var Te,ke="undefined"!=typeof globalThis&&globalThis,xe="undefined"!=typeof window&&window,Ae="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ne="undefined"!=typeof global&&global,Ie=ke||Ne||xe||Ae,Pe=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=ge({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),De=new Pe("INJECTOR",-1),Oe=new Object,Fe=/\n/gm,Ve="\u0275",Re="__source",Me=me({provide:String,useValue:me}),je=void 0;function Le(e){var t=je;return je=e,t}var He=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=Oe),t===Oe){var n=new Error("NullInjectorError: No provider for "+we(e)+"!");throw n.name="NullInjectorError",n}return t},e}();function Be(e,t,n,r){void 0===r&&(r=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ve?e.substr(2):e;var o=we(t);if(t instanceof Array)o=t.map(we).join(" -> ");else if("object"==typeof t){var i=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):we(a)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+e.replace(Fe,"\n ")}var ze=function(){return function(){}}(),qe=function(){return function(){}}();function Ue(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Ke=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ze=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie)}(),We="ngDebugContext",$e="ngOriginalError",Ge="ngErrorLogger";function Je(e){return e[We]}function Ye(e){return e[$e]}function Xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,c(t))}var et=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ge]||Xe}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Je(e)?Je(e):this._findContext(Ye(e)):null},e.prototype._findOriginalError=function(e){for(var t=Ye(e);t&&Ye(t);)t=Ye(t);return t},e}(),tt=!0,nt=!1;function rt(){return nt=!0,tt}var ot=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var o=e.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},e}(),it=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,st=/^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 at(e){return(e=String(e)).match(it)||e.match(st)?e:(rt()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function ut(e){var t,n,r={};try{for(var o=u(e.split(",")),i=o.next();!i.done;i=o.next())r[i.value]=!0}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function lt(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};try{for(var i=u(n),s=i.next();!s.done;s=i.next()){var a=s.value;for(var l in a)a.hasOwnProperty(l)&&(o[l]=!0)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return o}var ct,ft=ut("area,br,col,hr,img,wbr"),pt=ut("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ht=ut("rp,rt"),dt=lt(ht,pt),yt=lt(ft,lt(pt,ut("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")),lt(ht,ut("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")),dt),vt=ut("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mt=ut("srcset"),gt=lt(vt,mt,ut("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"),ut("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),_t=ut("script,style,template"),bt=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t,n=e.nodeName.toLowerCase();if(!yt.hasOwnProperty(n))return this.sanitizedSomething=!0,!_t.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=e.attributes,o=0;o<r.length;o++){var i=r.item(o),s=i.name,a=s.toLowerCase();if(gt.hasOwnProperty(a)){var u=i.value;vt[a]&&(u=at(u)),mt[a]&&(t=u,u=(t=String(t)).split(",").map(function(e){return at(e.trim())}).join(", ")),this.buf.push(" ",s,'="',St(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();yt.hasOwnProperty(t)&&!ft.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(St(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),wt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Et=/([^\#-~ |!])/g;function St(e){return e.replace(/&/g,"&").replace(wt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Et,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Ct(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Tt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),kt=function(){return function(){}}(),xt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),At=/^url\(([^)]+)\)$/,Nt=/([A-Z])/g;function It(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var Pt=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Dt()},e}(),Dt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},Ot=new Pe("The presence of this token marks an injector as being the root injector."),Ft=function(e,t,n){return new Ht(e,t,n)},Vt=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?Ft(e,t,""):Ft(e.providers,e.parent,e.name||"")},e.THROW_IF_NOT_FOUND=Oe,e.NULL=new He,e.ngInjectableDef=ge({token:e,providedIn:"any",factory:function(){return void 0===e&&(e=ve.Default),(Te||function(e,t){if(void 0===t&&(t=ve.Default),void 0===je)throw new Error("inject() must be called from an injection context");return null===je?function(e,t,n){var r=_e(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ve.Optional)return null;throw new Error("Injector: NOT_FOUND ["+we(e)+"]")}(e,0,t):je.get(e,t&ve.Optional?null:void 0,t)})(De,e);var e}}),e.__NG_ELEMENT_ID__=-1,e}(),Rt=function(e){return e},Mt=[],jt=Rt,Lt=function(){return Array.prototype.slice.call(arguments)},Ht=function(){function e(e,t,n){void 0===t&&(t=Vt.NULL),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(Vt,{token:Vt,fn:Rt,deps:Mt,value:this,useNew:!1}),r.set(De,{token:De,fn:Rt,deps:Mt,value:this,useNew:!1}),function e(t,n){if(n)if((n=Ce(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw zt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw zt("Unexpected provider",n);var o=Ce(n.provide),i=function(e){var t=function(e){var t=Mt,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var o=6;if((u=Ce(n[r]))instanceof Array)for(var i=0,s=u;i<s.length;i++){var a=s[i];a instanceof he||a==he?o|=1:a instanceof ye||a==ye?o&=-3:a instanceof de||a==de?o&=-5:u=a instanceof pe?a.token:Ce(a)}t.push({token:u,options:o})}}else if(e.useExisting){var u=Ce(e.useExisting);t=[{token:u,options:6}]}else if(!(n||Me in e))throw zt("'deps' required",e);return t}(e),n=Rt,r=Mt,o=!1,i=Ce(e.provide);if(Me in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)o=!0,n=Ce(e.useClass);else{if("function"!=typeof i)throw zt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);o=!0,n=i}return{deps:t,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var s=t.get(o);if(s){if(s.fn!==Lt)throw Bt(o)}else t.set(o,s={token:n.provide,deps:[],useNew:!1,fn:Lt,value:Mt});s.deps.push({token:o=n,options:6})}var a=t.get(o);if(a&&a.fn==Lt)throw Bt(o);t.set(o,i)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=ve.Default);var r=this._records.get(e);try{return function e(t,n,r,o,i,s){try{return function(t,n,r,o,i,s){var a,u;if(!n||s&ve.SkipSelf)s&ve.Self||(u=o.get(t,i,ve.Default));else{if((u=n.value)==jt)throw Error("\u0275Circular dependency");if(u===Mt){n.value=jt;var l=n.useNew,f=n.fn,p=n.deps,h=Mt;if(p.length){h=[];for(var d=0;d<p.length;d++){var y=p[d],v=y.options,m=2&v?r.get(y.token):void 0;h.push(e(y.token,m,r,m||4&v?o:Vt.NULL,1&v?null:Vt.THROW_IF_NOT_FOUND,ve.Default))}}n.value=u=l?new((a=f).bind.apply(a,c([void 0],h))):f.apply(void 0,h)}}return u}(t,n,r,o,i,s)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==jt&&(n.value=Mt),a}}(e,r,this._records,this.parent,t,n)}catch(o){return function(e,t,n,r){var o=e.ngTempTokenPath;throw t[Re]&&o.unshift(t[Re]),e.message=Be("\n"+e.message,o,"StaticInjectorError",r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(o,e,0,this.source)}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(we(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function Bt(e){return zt("Cannot mix multi providers and regular providers",e)}function zt(e,t){return new Error(Be(e,t,"StaticInjectorError"))}var qt=null;function Ut(){if(!qt){var e=Ie.Symbol;if(e&&e.iterator)qt=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(qt=r)}}return qt}function Qt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Kt(e,t){var n=Wt(e),r=Wt(t);return n&&r?function(e,t,n){for(var r=e[Ut()](),o=t[Ut()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(e,t,Kt):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Qt(e,t)}var Zt=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}();function Wt(e){return!!$t(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ut()in e)}function $t(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Gt(e){return!!e&&"function"==typeof e.then}function Jt(e){return!!e&&"function"==typeof e.subscribe}var Yt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),Xt=function(){return function(){}}(),en=function(){return function(){}}();function tn(e){var t=Error("No component factory found for "+we(e)+". Did you add it to @NgModule.entryComponents?");return t[nn]=e,t}var nn="ngComponent",rn=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw tn(e)},e}(),on=function(){function e(){}return e.NULL=new rn,e}(),sn=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var o=e[r];this._factories.set(o.componentType,o)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw tn(e);return new an(t,this._ngModule)},e}(),an=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return o(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(en);function un(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var ln=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return cn(e)},e}(),cn=un,fn=function(){return function(){}}(),pn=function(){return function(){}}(),hn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),dn=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return yn()},e}(),yn=un,vn=new(function(){return function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}())("8.2.1"),mn=function(){function e(){}return e.prototype.supports=function(e){return Wt(e)},e.prototype.create=function(e){return new _n(e)},e}(),gn=function(e,t){return t},_n=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||gn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<Sn(n,r,o)?t:n,s=Sn(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,l=a-r;if(u!=l){for(var c=0;c<u;c++){var f=c<o.length?o[c]:o[c]=0,p=f+c;l<=p&&p<u&&(o[c]=f+1)}o[i.previousIndex]=l-u}}s!==a&&e(i,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!Wt(e))throw new Error("Error trying to diff '"+we(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)o=this._trackByFn(a,r=e[a]),null!==i&&Qt(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,a)),Qt(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,a),s=!0),i=i._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[Ut()](),o=void 0;!(o=r.next()).done;)t(o.value)}(e,function(e){o=t._trackByFn(n,e),null!==i&&Qt(i.trackById,o)?(s&&(i=t._verifyReinsertion(i,e,o,n)),Qt(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),s=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Qt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Qt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new bn(t,n),o,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new En),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new En),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),bn=function(){return function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),wn=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Qt(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),En=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new wn,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function Sn(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var Cn=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||$t(e)},e.prototype.create=function(){return new Tn},e}(),Tn=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||$t(e)))throw new Error("Error trying to diff '"+we(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new kn(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){Qt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),kn=function(){return function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),xn=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ye,new he]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e.ngInjectableDef=ge({token:e,providedIn:"root",factory:function(){return new e([new mn])}}),e}(),An=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ye,new he]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e.ngInjectableDef=ge({token:e,providedIn:"root",factory:function(){return new e([new Cn])}}),e}(),Nn=[new Cn],In=new xn([new mn]),Pn=new An(Nn),Dn=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return On(e,ln)},e}(),On=un,Fn=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Vn(e,ln)},e}(),Vn=un;function Rn(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Mn(n,t),n}(o,e)}function Mn(e,t){e[We]=t,e[Ge]=t.logError.bind(t)}function jn(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Ln(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Hn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Bn(e,t){return e.nodes[t]}function zn(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function Un(e,t){return e.nodes[t]}function Qn(e,t){return e.nodes[t]}var Kn={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},Zn=function(){},Wn=new Map;function $n(e){var t=Wn.get(e);return t||(t=we(e)+"_"+Wn.size,Wn.set(e,t)),t}var Gn="$$undefined",Jn="$$empty";function Yn(e){return{id:Gn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Xn=0;function er(e,t,n,r){return!(!(2&e.state)&&Qt(e.oldValues[t.bindingIndex+n],r))}function tr(e,t,n,r){return!!er(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function nr(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!Kt(o,r)){var i=t.bindings[n].name;throw Rn(Kn.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function rr(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function or(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ir(e,t,n,r){try{return rr(33554432&e.def.nodes[t].flags?zn(e,t).componentView:e),Kn.handleEvent(e,t,n,r)}catch(o){e.root.errorHandler.handleError(o)}}function sr(e){return e.parent?zn(e.parent,e.parentNodeDef.nodeIndex):null}function ar(e){return e.parent?e.parentNodeDef.parent:null}function ur(e,t){switch(201347067&t.flags){case 1:return zn(e,t.nodeIndex).renderElement;case 2:return Bn(e,t.nodeIndex).renderText}}function lr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function cr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function fr(e){var t={},n=0,r={};return e&&e.forEach(function(e){var o=l(e,2),i=o[0],s=o[1];"number"==typeof i?(t[i]=s,n|=function(e){return 1<<e%32}(i)):r[i]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function pr(e,t){return e.map(function(e){var n,r,o;return Array.isArray(e)?(o=(n=l(e,2))[0],r=n[1]):(o=0,r=e),r&&("function"==typeof r||"object"==typeof r)&&t&&Object.defineProperty(r,Re,{value:t,configurable:!0}),{flags:o,token:r,tokenKey:$n(r)}})}function hr(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ke.Native?zn(e,n.renderParent.nodeIndex).renderElement:void 0:t}var dr=new WeakMap;function yr(e){var t=dr.get(e);return t||((t=e(function(){return Zn})).factory=e,dr.set(e,t)),t}function vr(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(ur(e,e.def.lastRenderRootNode))),mr(e,t,0,e.def.nodes.length-1,n,r,o)}function mr(e,t,n,r,o,i,s){for(var a=n;a<=r;a++){var u=e.def.nodes[a];11&u.flags&&_r(e,u,t,o,i,s),a+=u.childCount}}function gr(e,t,n,r,o,i){for(var s=e;s&&!lr(s);)s=s.parent;for(var a=s.parent,u=ar(s),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var f=a.def.nodes[c];f.ngContentIndex===t&&_r(a,f,n,r,o,i),c+=f.childCount}if(!a.parent){var p=e.root.projectableNodes[t];if(p)for(c=0;c<p.length;c++)br(e,p[c],n,r,o,i)}}function _r(e,t,n,r,o,i){if(8&t.flags)gr(e,t.ngContent.index,n,r,o,i);else{var s=ur(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&br(e,s,n,r,o,i),32&t.bindingFlags&&br(zn(e,t.nodeIndex).componentView,s,n,r,o,i)):br(e,s,n,r,o,i),16777216&t.flags)for(var a=zn(e,t.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)vr(a[u],n,r,o,i);1&t.flags&&!t.element.name&&mr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function br(e,t,n,r,o,i){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,o);break;case 3:s.removeChild(r,t);break;case 0:i.push(t)}}var wr=/^:([^:]+):(.+)$/;function Er(e){if(":"===e[0]){var t=e.match(wr);return[t[1],t[2]]}return["",e]}function Sr(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function Cr(e,t,n,r,o,i,s,a,u,l,c,f,p,h,d,y,v,m,g,_){switch(e){case 1:return t+Tr(n)+r;case 2:return t+Tr(n)+r+Tr(o)+i;case 3:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a;case 4:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a+Tr(u)+l;case 5:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a+Tr(u)+l+Tr(c)+f;case 6:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a+Tr(u)+l+Tr(c)+f+Tr(p)+h;case 7:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a+Tr(u)+l+Tr(c)+f+Tr(p)+h+Tr(d)+y;case 8:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a+Tr(u)+l+Tr(c)+f+Tr(p)+h+Tr(d)+y+Tr(v)+m;case 9:return t+Tr(n)+r+Tr(o)+i+Tr(s)+a+Tr(u)+l+Tr(c)+f+Tr(p)+h+Tr(d)+y+Tr(v)+m+Tr(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Tr(e){return null!=e?e.toString():""}var kr=new Object,xr=$n(Vt),Ar=$n(De),Nr=$n(ze);function Ir(e,t,n,r){return n=Ce(n),{index:-1,deps:pr(r,we(t)),flags:e,token:t,value:n}}function Pr(e,t,n){void 0===n&&(n=Vt.THROW_IF_NOT_FOUND);var r,o,i=Le(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var s=t.tokenKey;switch(s){case xr:case Ar:case Nr:return e}var a,u=e._def.providersByKey[s];if(u){var l=e._providers[u.index];return void 0===l&&(l=e._providers[u.index]=Dr(e,u)),l===kr?void 0:l}if((a=_e(t.token))&&(r=e,null!=(o=a).providedIn&&(function(e,t){return e._def.modules.indexOf(o.providedIn)>-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:t.token},e._providers[c]=kr,e._providers[c]=Dr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Le(i)}}function Dr(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Pr(e,n[0]));case 2:return new t(Pr(e,n[0]),Pr(e,n[1]));case 3:return new t(Pr(e,n[0]),Pr(e,n[1]),Pr(e,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=Pr(e,n[i]);return new(t.bind.apply(t,c([void 0],o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(Pr(e,n[0]));case 2:return t(Pr(e,n[0]),Pr(e,n[1]));case 3:return t(Pr(e,n[0]),Pr(e,n[1]),Pr(e,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=Pr(e,n[i]);return t.apply(void 0,c(o))}}(e,t.value,t.deps);break;case 2048:n=Pr(e,t.deps[0]);break;case 256:n=t.value}return n===kr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?kr:n}function Or(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Qe(n,t),Kn.dirtyParentQueries(r),Vr(r),r}function Fr(e,t,n){var r=t?ur(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);vr(n,2,o,i,void 0)}function Vr(e){vr(e,3,null,null,void 0)}var Rr=new Object;function Mr(e,t,n,r,o,i){return new jr(e,t,n,r,o,i)}var jr=function(e){function t(t,n,r,o,i,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=yr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Kn.createRootView(e,t||[],n,o,r,Rr),a=qn(s,i).instance;return n&&s.renderer.setAttribute(zn(s,0).renderElement,"ng-version",vn.full),new Lr(s,new qr(s),a)},t}(en),Lr=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new ln(zn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Zr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Xt);function Hr(e,t,n){return new Br(e,t,n)}var Br=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new ln(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Zr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ar(e),e=e.parent;return e?new Zr(e,t):new Zr(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Or(this._data,e);Kn.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new qr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof an||(o=i.get(ze));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=e;return i=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=i.length),(o=s._view).viewContainerParent=this._view,Ue(i,r,o),function(e,t){var n=sr(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Kn.dirtyParentQueries(o),Fr(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(e._view);return o=t,s=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Qe(i,r),null==o&&(o=i.length),Ue(i,o,s),Kn.dirtyParentQueries(s),Vr(s),Fr(n,o>0?i[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Or(this._data,e);t&&Kn.destroyView(t)},e.prototype.detach=function(e){var t=Or(this._data,e);return t?new qr(t):null},e}();function zr(e){return new qr(e)}var qr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return vr(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){rr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Kn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Kn.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Kn.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Vr(this._view),Kn.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Ur(e,t){return new Qr(e,t)}var Qr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return o(t,e),t.prototype.createEmbeddedView=function(e){return new qr(Kn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new ln(zn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function Kr(e,t){return new Zr(e,t)}var Zr=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Vt.THROW_IF_NOT_FOUND),Kn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$n(e)},t)},e}();function Wr(e){return new $r(e.renderer)}var $r=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=l(Er(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=l(Er(t),2),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(e,i,n,o):this.delegate.removeAttribute(e,i,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function Gr(e,t,n,r){return new Jr(e,t,n,r)}var Jr=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||void 0===n[r]&&(n[r]=Dr(e,o))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=Vt.THROW_IF_NOT_FOUND),void 0===n&&(n=ve.Default);var r=0;return n&ve.SkipSelf?r|=1:n&ve.Self&&(r|=4),Pr(this,{token:e,tokenKey:$n(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(on)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+we(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){var i=e._providers[o];if(i&&i!==kr){var s=i.ngOnDestroy;"function"!=typeof s||r.has(i)||(s.apply(i),r.add(i))}}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),Yr=$n(fn),Xr=$n(dn),eo=$n(ln),to=$n(Fn),no=$n(Dn),ro=$n(Pt),oo=$n(Vt),io=$n(De);function so(e,t,n,r,o,i,s,a){var u=[];if(s)for(var c in s){var f=l(s[c],2);u[f[0]]={flags:8,name:c,nonMinifiedName:f[1],ns:null,securityContext:null,suffix:null}}var p=[];if(a)for(var h in a)p.push({type:1,propName:h,target:null,eventName:a[h]});return function(e,t,n,r,o,i,s,a,u){var l=fr(n),c=l.matchedQueries,f=l.references,p=l.matchedQueryIds;u||(u=[]),a||(a=[]),i=Ce(i);var h=pr(s,we(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:f,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Sr(a),outputs:u,element:null,provider:{token:o,value:i,deps:h},text:null,query:null,ngContent:null}}(e,t|=16384,n,r,o,o,i,u,p)}function ao(e,t){return fo(e,t)}function uo(e,t){for(var n=e;n.parent&&!lr(n);)n=n.parent;return po(n.parent,ar(n),!0,t.provider.value,t.provider.deps)}function lo(e,t){var n=po(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var o=t.outputs[r],i=n[o.propName];if(!Jt(i))throw new Error("@Output "+o.propName+" not initialized in '"+n.constructor.name+"'.");var s=i.subscribe(co(e,t.parent.nodeIndex,o.eventName));e.disposables[t.outputIndex+r]=s.unsubscribe.bind(s)}return n}function co(e,t,n){return function(r){return ir(e,t,n,r)}}function fo(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return po(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(yo(e,t,n,o[0]));case 2:return r(yo(e,t,n,o[0]),yo(e,t,n,o[1]));case 3:return r(yo(e,t,n,o[0]),yo(e,t,n,o[1]),yo(e,t,n,o[2]));default:for(var s=Array(i),a=0;a<i;a++)s[a]=yo(e,t,n,o[a]);return r.apply(void 0,c(s))}}(e,t.parent,n,r.value,r.deps);case 2048:return yo(e,t.parent,n,r.deps[0]);case 256:return r.value}}function po(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(yo(e,t,n,o[0]));case 2:return new r(yo(e,t,n,o[0]),yo(e,t,n,o[1]));case 3:return new r(yo(e,t,n,o[0]),yo(e,t,n,o[1]),yo(e,t,n,o[2]));default:for(var s=new Array(i),a=0;a<i;a++)s[a]=yo(e,t,n,o[a]);return new(r.bind.apply(r,c([void 0],s)))}}var ho={};function yo(e,t,n,r,o){if(void 0===o&&(o=Vt.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var s=r.tokenKey;s===ro&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var a=e;a;){if(t)switch(s){case Yr:return Wr(vo(a,t,n));case Xr:return vo(a,t,n).renderer;case eo:return new ln(zn(a,t.nodeIndex).renderElement);case to:return zn(a,t.nodeIndex).viewContainer;case no:if(t.element.template)return zn(a,t.nodeIndex).template;break;case ro:return zr(vo(a,t,n));case oo:case io:return Kr(a,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[s];if(u){var l=qn(a,u.nodeIndex);return l||(l={instance:fo(a,u)},a.nodes[u.nodeIndex]=l),l.instance}}n=lr(a),t=ar(a),a=a.parent,4&r.flags&&(a=null)}var c=i.root.injector.get(r.token,ho);return c!==ho||o===ho?c:i.root.ngModule.injector.get(r.token,o)}function vo(e,t,n){var r;if(n)r=zn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!lr(r);)r=r.parent;return r}function mo(e,t,n,r,o,i){if(32768&n.flags){var s=zn(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(t.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var a=Zt.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Yt(a,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function go(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],s=i.parent;for(!s&&i.flags&t&&bo(e,o,i.flags&t,r++),0==(i.childFlags&t)&&(o+=i.childCount);s&&1&s.flags&&o===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=_o(e,s,t,r)),s=s.parent}}function _o(e,t,n,r){for(var o=t.nodeIndex+1;o<=t.nodeIndex+t.childCount;o++){var i=e.def.nodes[o];i.flags&n&&bo(e,o,i.flags&n,r++),o+=i.childCount}return r}function bo(e,t,n,r){var o=qn(e,t);if(o){var i=o.instance;i&&(Kn.setCurrentNode(e,t),1048576&n&&Hn(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Hn(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}var wo=new Pe("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ze}}),Eo={},So=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencySymbol=15]="CurrencySymbol",e[e.CurrencyName=16]="CurrencyName",e[e.Currencies=17]="Currencies",e[e.PluralCase=18]="PluralCase",e[e.ExtraData=19]="ExtraData",e}({}),Co=void 0,To=["en",[["a","p"],["AM","PM"],Co],[["AM","PM"],Co,Co],[["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"]],Co,[["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"]],Co,[["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}",Co,"{1} 'at' {0}",Co],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ko="en-US",xo=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return o(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,i=function(e){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(i=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(i=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,o,i,s);return t instanceof v&&t.add(a),a},t}(F);function Ao(){return this._results[Ut()]()}var No=function(){function e(){this.dirty=!0,this._results=[],this.changes=new xo,this.length=0;var t=Ut(),n=e.prototype;n[t]||(n[t]=Ao)}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?(n===t&&(n=t.slice(0,r)),e(o,n)):n!==t&&n.push(o)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),Io=new Pe("Application Initializer"),Po=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();Gt(o)&&t.push(o)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),Do=new Pe("AppId");function Oo(){return""+Fo()+Fo()+Fo()}function Fo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Vo=new Pe("Platform Initializer"),Ro=new Pe("Platform ID"),Mo=new Pe("appBootstrapListener"),jo=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e}(),Lo=new Pe("LocaleId"),Ho=!1;function Bo(){throw new Error("Runtime compiler is not loaded")}var zo,qo,Uo=Bo,Qo=Bo,Ko=Bo,Zo=Bo,Wo=function(){function e(){this.compileModuleSync=Uo,this.compileModuleAsync=Qo,this.compileModuleAndAllComponentsSync=Ko,this.compileModuleAndAllComponentsAsync=Zo}return e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e}(),$o=function(){return function(){}}();function Go(){var e=Ie.wtf;return!(!e||!(zo=e.trace)||(qo=zo.events,0))}var Jo=Go();function Yo(e,t){return null}var Xo=Jo?function(e,t){return void 0===t&&(t=null),qo.createScope(e,t)}:function(e,t){return Yo},ei=Jo?function(e,t){return zo.leaveScope(e,t),t}:function(e,t){return t},ti=function(){return Promise.resolve(0)}();function ni(e){"undefined"==typeof Zone?ti.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var ri=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xo(!1),this.onMicrotaskEmpty=new xo(!1),this.onStable=new xo(!1),this.onError=new xo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return ai(t),e.invokeTask(r,o,i,s)}finally{ui(t)}},onInvoke:function(e,n,r,o,i,s,a){try{return ai(t),e.invoke(r,o,i,s,a)}finally{ui(t)}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?(t.hasPendingMicrotasks=o.microTask,si(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.runOutsideAngular(function(){return t.onError.emit(o)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,ii,oi,oi);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function oi(){}var ii={};function si(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function ai(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ui(e){e._nesting--,si(e)}var li,ci=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xo,this.onMicrotaskEmpty=new xo,this.onStable=new xo,this.onError=new xo}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),fi=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(function(){t.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){ri.assertNotInAngularZone(),ni(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())ni(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]},e.prototype.addCallback=function(e,t,n){var r=this,o=-1;t&&t>0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),pi=function(){function e(){this._applications=new Map,hi.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),hi.findTestabilityInTree(this,e,t)},s([a("design:paramtypes",[])],e)}(),hi=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),di=new Pe("AllowMultipleToken"),yi=function(){return function(e,t){this.name=e,this.token=t}}();function vi(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new Pe(r);return function(t){void 0===t&&(t=[]);var i=mi();if(!i||i.injector.get(di,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var s=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(li&&!li.destroyed&&!li.injector.get(di,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");li=e.get(gi);var t=e.get(Vo,null);t&&t.forEach(function(e){return e()})}(Vt.create({providers:s,name:r}))}return function(e){var t=mi();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function mi(){return li&&!li.destroyed?li:null}var gi=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new ci:("zone.js"===n?void 0:n)||new ri({enableLongStackTrace:rt()}),i=[{provide:ri,useValue:o}];return o.run(function(){var t=Vt.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(et,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return wi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,o){try{var i=((s=n.injector.get(Po)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Gt(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(a){throw t.runOutsideAngular(function(){return e.handleError(a)}),a}var s}(s,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=_i({},t);return function(e,t,n){return e.get($o).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(bi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+we(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function _i(e,t){return Array.isArray(t)?t.reduce(_i,e):i({},e,t)}var bi=function(){function e(e,t,n,r,o,i){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=rt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new A(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new A(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){ri.assertNotInAngularZone(),ni(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){ri.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r=Number.POSITIVE_INFINITY,o=null,i=e[e.length-1];return(n=i)&&"function"==typeof n.schedule?(o=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof i&&(r=e.pop()),null===o&&1===e.length&&e[0]instanceof A?e[0]:ne(r)(J(e,o))}(a,u.pipe(function(e){return re()((t=le,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ae);return r.source=e,r.subjectFactory=n,r})(e));var t}))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof an?null:this._injector.get(ze),i=n.create(Vt.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(fi,null);return s&&i.injector.get(pi).registerApplication(i.location.nativeElement,s),this._loadComponent(i),rt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var e,n,r,o,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var s=t._tickScope();try{this._runningTick=!0;try{for(var a=u(this._views),l=a.next();!l.done;l=a.next())l.value.detectChanges()}catch(p){e={error:p}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var c=u(this._views),f=c.next();!f.done;f=c.next())f.value.checkNoChanges()}catch(h){r={error:h}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}catch(d){this._zone.runOutsideAngular(function(){return i._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,ei(s)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;wi(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Mo,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),wi(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Xo("ApplicationRef#tick()"),e}();function wi(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ei=function(){return function(e,t){this.name=e,this.callback=t}}(),Si=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Ci&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Ci=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return o(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,c([o+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof Ci&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof Ci&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof Ci&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Si),Ti=new Map,ki=function(e){return Ti.get(e)||null};function xi(e){Ti.set(e.nativeNode,e)}var Ai=vi(null,"core",[{provide:Ro,useValue:"unknown"},{provide:gi,deps:[Vt]},{provide:pi,deps:[]},{provide:jo,deps:[]}]);function Ni(){return In}function Ii(){return Pn}function Pi(e){return e?(Ho&&(t=r=e,n="Expected localeId to be defined",null==t&&function(e){throw new Error("ASSERTION ERROR: "+e)}(n),"string"==typeof r&&r.toLowerCase().replace(/_/g,"-")),e):ko;var t,n,r}function Di(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}var Oi=function(){return function(e){}}();function Fi(e,t,n,r,o,i){e|=1;var s=fr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s.matchedQueries,matchedQueryIds:s.matchedQueryIds,references:s.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?yr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Zn},provider:null,text:null,query:null,ngContent:null}}function Vi(e,t,n,r,o,i,s,a,u,c,f,p){var h;void 0===s&&(s=[]),c||(c=Zn);var d=fr(n),y=d.matchedQueries,v=d.references,m=d.matchedQueryIds,g=null,_=null;i&&(g=(h=l(Er(i),2))[0],_=h[1]),a=a||[];for(var b=new Array(a.length),w=0;w<a.length;w++){var E=l(a[w],3),S=E[0],C=E[2],T=l(Er(E[1]),2),k=T[0],x=T[1],A=void 0,N=void 0;switch(15&S){case 4:N=C;break;case 1:case 8:A=C}b[w]={flags:S,ns:k,name:x,nonMinifiedName:x,securityContext:A,suffix:N}}u=u||[];var I=new Array(u.length);for(w=0;w<u.length;w++){var P=l(u[w],2);I[w]={type:0,target:P[0],eventName:P[1],propName:null}}var D=(s=s||[]).map(function(e){var t=l(e,2),n=t[1],r=l(Er(t[0]),2);return[r[0],r[1],n]});return p=function(e){if(e&&e.id===Gn){var t=null!=e.encapsulation&&e.encapsulation!==Ke.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Xn++:Jn}return e&&e.id===Jn&&(e=null),e||null}(p),f&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:y,matchedQueryIds:m,references:v,ngContentIndex:r,childCount:o,bindings:b,bindingFlags:Sr(b),outputs:I,element:{ns:g,name:_,attrs:D,template:null,componentProvider:null,componentView:f||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:c||Zn},provider:null,text:null,query:null,ngContent:null}}function Ri(e,t,n){var r,o=n.element,i=e.root.selectorOrNode,s=e.renderer;if(e.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=hr(e,t,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i,!!o.componentRendererType&&o.componentRendererType.encapsulation===Ke.ShadowDom);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=l(o.attrs[u],3);s.setAttribute(r,c[1],c[2],c[0])}return r}function Mi(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=ji(e,n.nodeIndex,(f=i.eventName,(c=i.target)?c+":"+f:f)),a=i.target,u=e;"component"===i.target&&(a=null,u=t);var l=u.renderer.listen(a||r,i.eventName,s);e.disposables[n.outputIndex+o]=l}var c,f}function ji(e,t,n){return function(r){return ir(e,t,n,r)}}function Li(e,t,n,r){if(!tr(e,t,n,r))return!1;var o=t.bindings[n],i=zn(e,t.nodeIndex),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,i){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=e.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}(e,o,s,o.ns,a,r);break;case 2:!function(e,t,n,r){var o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,o){var i=e.root.sanitizer.sanitize(Tt.STYLE,o);if(null!=i){i=i.toString();var s=t.suffix;null!=s&&(i+=s)}else i=null;var a=e.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}(e,o,s,a,r);break;case 8:!function(e,t,n,r,o){var i=t.securityContext,s=i?e.root.sanitizer.sanitize(i,o):o;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&o.flags?i.componentView:e,o,s,a,r)}return!0}function Hi(e){for(var t=e.def.nodeMatchedQueries;e.parent&&cr(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++)67108864&(i=e.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&Qn(e,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&e.def.nodeFlags)for(o=0;o<e.def.nodes.length;o++){var i;134217728&(i=e.def.nodes[o]).flags&&536870912&i.flags&&Qn(e,o).setDirty(),o+=i.childCount}}function Bi(e,t){var n=Qn(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=zi(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=qn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=zi(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var s=t.query.bindings,a=!1,u=0;u<s.length;u++){var l=s[u],c=void 0;switch(l.bindingType){case 0:c=n.first;break;case 1:c=n,a=!0}r[l.propName]=c}a&&n.notifyOnChanges()}}function zi(e,t,n,r,o){for(var i=t;i<=n;i++){var s=e.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(qi(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=zn(e,i);if((s.childMatchedQueries&r.filterId)===r.filterId&&(zi(e,i+1,i+s.childCount,r,o),i+=s.childCount),16777216&s.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var f=l[c],p=sr(f);p&&p===u&&zi(f,0,f.def.nodes.length-1,r,o)}var h=u.template._projectedViews;if(h)for(c=0;c<h.length;c++){var d=h[c];zi(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function qi(e,t,n){if(null!=n)switch(n){case 1:return zn(e,t.nodeIndex).renderElement;case 0:return new ln(zn(e,t.nodeIndex).renderElement);case 2:return zn(e,t.nodeIndex).template;case 3:return zn(e,t.nodeIndex).viewContainer;case 4:return qn(e,t.nodeIndex).instance}}function Ui(e,t,n){var r=hr(e,t,n);r&&gr(e,n.ngContent.index,1,r,null,void 0)}function Qi(e,t,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Ki(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=hr(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function Zi(e,t){return(null!=e?e.toString():"")+t.suffix}function Wi(e,t,n,r){for(var o=0,i=0,s=0,a=0,u=0,l=null,c=null,f=!1,p=!1,h=null,d=0;d<t.length;d++){var y=t[d];if(y.nodeIndex=d,y.parent=l,y.bindingIndex=o,y.outputIndex=i,y.renderParent=c,s|=y.flags,u|=y.matchedQueryIds,y.element){var v=y.element;v.publicProviders=l?l.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,f=!1,p=!1,y.element.template&&(u|=y.element.template.nodeMatchedQueries)}if(Gi(l,y,t.length),o+=y.bindings.length,i+=y.outputs.length,!c&&3&y.flags&&(h=y),20224&y.flags){f||(f=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var m=0!=(32768&y.flags);0==(8192&y.flags)||m?l.element.publicProviders[$n(y.provider.token)]=y:(p||(p=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[$n(y.provider.token)]=y),m&&(l.element.componentProvider=y)}if(l?(l.childFlags|=y.flags,l.directChildFlags|=y.flags,l.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(l.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,y.childCount>0)l=y,$i(y)||(c=y);else for(;l&&d===l.nodeIndex+l.childCount;){var g=l.parent;g&&(g.childFlags|=l.childFlags,g.childMatchedQueries|=l.childMatchedQueries),c=(l=g)&&$i(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Zn,updateRenderer:r||Zn,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function $i(e){return 0!=(1&e.flags)&&null===e.element.name}function Gi(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Ji(e,t,n,r){var o=es(e.root,e.renderer,e,t,n);return ts(o,e.component,r),ns(o),o}function Yi(e,t,n){var r=es(e,e.renderer,null,null,t);return ts(r,n,n),ns(r),r}function Xi(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,es(e.root,o,e,t.element.componentProvider,n)}function es(e,t,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function ts(e,t,n){e.component=t,e.context=n}function ns(e){var t;lr(e)&&(t=zn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o];Kn.setCurrentNode(e,o);var s=void 0;switch(201347067&i.flags){case 1:var a=Ri(e,t,i),u=void 0;if(33554432&i.flags){var l=yr(i.element.componentView);u=Kn.createComponentView(e,i,l,a)}Mi(e,u,i,a),s={renderElement:a,componentView:u,viewContainer:null,template:i.element.template?Ur(e,i):void 0},16777216&i.flags&&(s.viewContainer=Hr(e,i,s));break;case 2:s=Ki(e,t,i);break;case 512:case 1024:case 2048:case 256:(s=r[o])||4096&i.flags||(s={instance:ao(e,i)});break;case 16:s={instance:uo(e,i)};break;case 16384:(s=r[o])||(s={instance:lo(e,i)}),32768&i.flags&&ts(zn(e,i.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new No;break;case 8:Ui(e,t,i),s=void 0}r[o]=s}fs(e,cs.CreateViewNodes),ys(e,201326592,268435456,0)}function rs(e){ss(e),Kn.updateDirectives(e,1),ps(e,cs.CheckNoChanges),Kn.updateRenderer(e,1),fs(e,cs.CheckNoChanges),e.state&=-97}function os(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Ln(e,0,256),ss(e),Kn.updateDirectives(e,0),ps(e,cs.CheckAndUpdate),ys(e,67108864,536870912,0);var t=Ln(e,256,512);go(e,2097152|(t?1048576:0)),Kn.updateRenderer(e,0),fs(e,cs.CheckAndUpdate),ys(e,134217728,536870912,0),go(e,8388608|((t=Ln(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Ln(e,768,1024)}function is(e,t,n,r,o,i,s,a,u,l,f,p,h){return 0===n?function(e,t,n,r,o,i,s,a,u,l,c,f){switch(201347067&t.flags){case 1:return function(e,t,n,r,o,i,s,a,u,l,c,f){var p=t.bindings.length,h=!1;return p>0&&Li(e,t,0,n)&&(h=!0),p>1&&Li(e,t,1,r)&&(h=!0),p>2&&Li(e,t,2,o)&&(h=!0),p>3&&Li(e,t,3,i)&&(h=!0),p>4&&Li(e,t,4,s)&&(h=!0),p>5&&Li(e,t,5,a)&&(h=!0),p>6&&Li(e,t,6,u)&&(h=!0),p>7&&Li(e,t,7,l)&&(h=!0),p>8&&Li(e,t,8,c)&&(h=!0),p>9&&Li(e,t,9,f)&&(h=!0),h}(e,t,n,r,o,i,s,a,u,l,c,f);case 2:return function(e,t,n,r,o,i,s,a,u,l,c,f){var p=!1,h=t.bindings,d=h.length;if(d>0&&tr(e,t,0,n)&&(p=!0),d>1&&tr(e,t,1,r)&&(p=!0),d>2&&tr(e,t,2,o)&&(p=!0),d>3&&tr(e,t,3,i)&&(p=!0),d>4&&tr(e,t,4,s)&&(p=!0),d>5&&tr(e,t,5,a)&&(p=!0),d>6&&tr(e,t,6,u)&&(p=!0),d>7&&tr(e,t,7,l)&&(p=!0),d>8&&tr(e,t,8,c)&&(p=!0),d>9&&tr(e,t,9,f)&&(p=!0),p){var y=t.text.prefix;d>0&&(y+=Zi(n,h[0])),d>1&&(y+=Zi(r,h[1])),d>2&&(y+=Zi(o,h[2])),d>3&&(y+=Zi(i,h[3])),d>4&&(y+=Zi(s,h[4])),d>5&&(y+=Zi(a,h[5])),d>6&&(y+=Zi(u,h[6])),d>7&&(y+=Zi(l,h[7])),d>8&&(y+=Zi(c,h[8])),d>9&&(y+=Zi(f,h[9]));var v=Bn(e,t.nodeIndex).renderText;e.renderer.setValue(v,y)}return p}(e,t,n,r,o,i,s,a,u,l,c,f);case 16384:return function(e,t,n,r,o,i,s,a,u,l,c,f){var p=qn(e,t.nodeIndex),h=p.instance,d=!1,y=void 0,v=t.bindings.length;return v>0&&er(e,t,0,n)&&(d=!0,y=mo(e,p,t,0,n,y)),v>1&&er(e,t,1,r)&&(d=!0,y=mo(e,p,t,1,r,y)),v>2&&er(e,t,2,o)&&(d=!0,y=mo(e,p,t,2,o,y)),v>3&&er(e,t,3,i)&&(d=!0,y=mo(e,p,t,3,i,y)),v>4&&er(e,t,4,s)&&(d=!0,y=mo(e,p,t,4,s,y)),v>5&&er(e,t,5,a)&&(d=!0,y=mo(e,p,t,5,a,y)),v>6&&er(e,t,6,u)&&(d=!0,y=mo(e,p,t,6,u,y)),v>7&&er(e,t,7,l)&&(d=!0,y=mo(e,p,t,7,l,y)),v>8&&er(e,t,8,c)&&(d=!0,y=mo(e,p,t,8,c,y)),v>9&&er(e,t,9,f)&&(d=!0,y=mo(e,p,t,9,f,y)),y&&h.ngOnChanges(y),65536&t.flags&&Hn(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),d}(e,t,n,r,o,i,s,a,u,l,c,f);case 32:case 64:case 128:return function(e,t,n,r,o,i,s,a,u,l,c,f){var p=t.bindings,h=!1,d=p.length;if(d>0&&tr(e,t,0,n)&&(h=!0),d>1&&tr(e,t,1,r)&&(h=!0),d>2&&tr(e,t,2,o)&&(h=!0),d>3&&tr(e,t,3,i)&&(h=!0),d>4&&tr(e,t,4,s)&&(h=!0),d>5&&tr(e,t,5,a)&&(h=!0),d>6&&tr(e,t,6,u)&&(h=!0),d>7&&tr(e,t,7,l)&&(h=!0),d>8&&tr(e,t,8,c)&&(h=!0),d>9&&tr(e,t,9,f)&&(h=!0),h){var y=Un(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(p.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=l),d>8&&(v[8]=c),d>9&&(v[9]=f);break;case 64:v={},d>0&&(v[p[0].name]=n),d>1&&(v[p[1].name]=r),d>2&&(v[p[2].name]=o),d>3&&(v[p[3].name]=i),d>4&&(v[p[4].name]=s),d>5&&(v[p[5].name]=a),d>6&&(v[p[6].name]=u),d>7&&(v[p[7].name]=l),d>8&&(v[p[8].name]=c),d>9&&(v[p[9].name]=f);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,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,s);break;case 6:v=m.transform(r,o,i,s,a);break;case 7:v=m.transform(r,o,i,s,a,u);break;case 8:v=m.transform(r,o,i,s,a,u,l);break;case 9:v=m.transform(r,o,i,s,a,u,l,c);break;case 10:v=m.transform(r,o,i,s,a,u,l,c,f)}}y.value=v}return h}(e,t,n,r,o,i,s,a,u,l,c,f);default:throw"unreachable"}}(e,t,r,o,i,s,a,u,l,f,p,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o<n.length;o++)Li(e,t,o,n[o])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)tr(e,t,i,n[i])&&(o=!0);if(o){var s="";for(i=0;i<n.length;i++)s+=Zi(n[i],r[i]);s=t.text.prefix+s;var a=Bn(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return o}(e,t,n);case 16384:return function(e,t,n){for(var r=qn(e,t.nodeIndex),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)er(e,t,a,n[a])&&(i=!0,s=mo(e,r,t,a,n[a],s));return s&&o.ngOnChanges(s),65536&t.flags&&Hn(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)tr(e,t,i,n[i])&&(o=!0);if(o){var s=Un(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:for(a={},i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 128:var u=n[0],l=n.slice(1);a=u.transform.apply(u,c(l))}s.value=a}return o}(e,t,n);default:throw"unreachable"}}(e,t,r)}function ss(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=zn(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,or(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function as(e,t,n,r,o,i,s,a,u,l,c,f,p){return 0===n?function(e,t,n,r,o,i,s,a,u,l,c,f){var p=t.bindings.length;p>0&&nr(e,t,0,n),p>1&&nr(e,t,1,r),p>2&&nr(e,t,2,o),p>3&&nr(e,t,3,i),p>4&&nr(e,t,4,s),p>5&&nr(e,t,5,a),p>6&&nr(e,t,6,u),p>7&&nr(e,t,7,l),p>8&&nr(e,t,8,c),p>9&&nr(e,t,9,f)}(e,t,r,o,i,s,a,u,l,c,f,p):function(e,t,n){for(var r=0;r<n.length;r++)nr(e,t,r,n[r])}(e,t,r),!1}function us(e,t){if(Qn(e,t.nodeIndex).dirty)throw Rn(Kn.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function ls(e){if(!(128&e.state)){if(ps(e,cs.Destroy),fs(e,cs.Destroy),go(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=sr(e);if(t){var n=t.template._projectedViews;n&&(Qe(n,n.indexOf(e)),Kn.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(zn(e,n).renderElement):2&r.flags?e.renderer.destroyNode(Bn(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Qn(e,n).destroy()}}(e),lr(e)&&e.renderer.destroy(),e.state|=128}}var cs=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function fs(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?hs(zn(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function ps(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=zn(e,r).viewContainer._embeddedViews,s=0;s<i.length;s++)hs(i[s],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function hs(e,t){var n=e.state;switch(t){case cs.CheckNoChanges:0==(128&n)&&(12==(12&n)?rs(e):64&n&&ds(e,cs.CheckNoChangesProjectedViews));break;case cs.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?rs(e):64&n&&ds(e,t));break;case cs.CheckAndUpdate:0==(128&n)&&(12==(12&n)?os(e):64&n&&ds(e,cs.CheckAndUpdateProjectedViews));break;case cs.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?os(e):64&n&&ds(e,t));break;case cs.Destroy:ls(e);break;case cs.CreateViewNodes:ns(e)}}function ds(e,t){ps(e,t),fs(e,t)}function ys(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Kn.setCurrentNode(e,s.nodeIndex),r){case 0:Bi(e,s);break;case 1:us(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}var vs=!1;function ms(e,t,n,r,o,i){var s=o.injector.get(pn);return Yi(_s(e,o,s,t,n),r,i)}function gs(e,t,n,r,o,i){var s=o.injector.get(pn),a=_s(e,o,new Ys(s),t,n),u=Ns(r);return Gs(js.create,Yi,null,[a,u,i])}function _s(e,t,n,r,o){var i=t.injector.get(kt),s=t.injector.get(et),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:s}}function bs(e,t,n,r){var o=Ns(n);return Gs(js.create,Ji,null,[e,t,o,r])}function ws(e,t,n,r){return n=Ts.get(t.element.componentProvider.provider.token)||Ns(n),Gs(js.create,Xi,null,[e,t,n,r])}function Es(e,t,n,r){return Gr(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===Ss.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=Ss.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(function(e){Cs.forEach(function(r,o){_e(o).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var r=e.providers[t];n&&(r.flags|=4096);var o=Ss.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=pr(o.deps),r.value=o.value)}if(Cs.size>0){var i=new Set(e.modules);Cs.forEach(function(t,r){if(i.has(_e(r).providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:pr(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[$n(r)]=o}})}}(e=e.factory(function(){return Zn})),e):e}(r))}var Ss=new Map,Cs=new Map,Ts=new Map;function ks(e){var t;Ss.set(e.token,e),"function"==typeof e.token&&(t=_e(e.token))&&"function"==typeof t.providedIn&&Cs.set(e.token,e)}function xs(e,t){var n=yr(t.viewDefFactory),r=yr(n.nodes[0].element.componentView);Ts.set(e,r)}function As(){Ss.clear(),Cs.clear(),Ts.clear()}function Ns(e){if(0===Ss.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&Ss.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Zn});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=Ss.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=pr(i.deps),o.value=i.value)}}}}function Is(e,t,n,r,o,i,s,a,u,l,c,f,p){var h=e.def.nodes[t];return is(e,h,n,r,o,i,s,a,u,l,c,f,p),224&h.flags?Un(e,t).value:void 0}function Ps(e,t,n,r,o,i,s,a,u,l,c,f,p){var h=e.def.nodes[t];return as(e,h,n,r,o,i,s,a,u,l,c,f,p),224&h.flags?Un(e,t).value:void 0}function Ds(e){return Gs(js.detectChanges,os,null,[e])}function Os(e){return Gs(js.checkNoChanges,rs,null,[e])}function Fs(e){return Gs(js.destroy,ls,null,[e])}var Vs,Rs,Ms,js=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});function Ls(e,t){Rs=e,Ms=t}function Hs(e,t,n,r){return Ls(e,t),Gs(js.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Bs(e,t){if(128&e.state)throw jn(js[Vs]);return Ls(e,Qs(e,0)),e.def.updateDirectives(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?qs(e,s,r,o):Us(e,s,r,o),16384&s.flags&&Ls(e,Qs(e,n)),224&s.flags?Un(e,s.nodeIndex).value:void 0},e)}function zs(e,t){if(128&e.state)throw jn(js[Vs]);return Ls(e,Ks(e,0)),e.def.updateRenderer(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?qs(e,s,r,o):Us(e,s,r,o),3&s.flags&&Ls(e,Ks(e,n)),224&s.flags?Un(e,s.nodeIndex).value:void 0},e)}function qs(e,t,n,r){if(is.apply(void 0,c([e,t,n],r))){var o=1===n?r[0]:r;if(16384&t.flags){for(var i={},s=0;s<t.bindings.length;s++){var a=t.bindings[s],u=o[s];8&a.flags&&(i[(h=a.nonMinifiedName,"ng-reflect-"+h.replace(/[$@]/g,"_").replace(Nt,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()}))]=It(u))}var l=t.parent,f=zn(e,l.nodeIndex).renderElement;if(l.element.name)for(var p in i)null!=(u=i[p])?e.renderer.setAttribute(f,p,u):e.renderer.removeAttribute(f,p);else e.renderer.setValue(f,"bindings="+JSON.stringify(i,null,2))}}var h}function Us(e,t,n,r){as.apply(void 0,c([e,t,n],r))}function Qs(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Ks(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Zs=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ar(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return zn(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return Kr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){$s(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&$s(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!lr(e);)e=e.parent;return e.parent?zn(e.parent,ar(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ur(this.view,this.nodeDef):ur(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var i=Ws(t,n),s=-1,a=function(){var t;return++s===i?(t=e.error).bind.apply(t,c([e],r)):Zn};t.factory(a),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,c(r)))},e}();function Ws(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}function $s(e,t,n){for(var r in t.references)n[r]=qi(e,t,t.references[r])}function Gs(e,t,n,r){var o=Vs,i=Rs,s=Ms;try{Vs=e;var a=t.apply(n,r);return Rs=i,Ms=s,Vs=o,a}catch(u){if(Je(u)||!Rs)throw u;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Mn(e,t),e}(u,Js())}}function Js(){return Rs?new Zs(Rs,Ms):null}var Ys=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Xs(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Xs=function(){function e(e){this.delegate=e,this.debugContextFactory=Js,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){var t=ki(e);Ti.delete(t.nativeNode),t instanceof Si&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var o=new Ci(n,null,r);o.name=e,xi(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&xi(new Si(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&xi(new Si(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=ki(e),r=ki(t);n&&r&&n instanceof Ci&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=ki(e),o=ki(t),i=ki(n);r&&o&&r instanceof Ci&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=ki(e),r=ki(t);n&&r&&n instanceof Ci&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=Js();return r&&xi(new Ci(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var o=ki(e);o&&o instanceof Ci&&(o.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=ki(e);r&&r instanceof Ci&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=ki(e);n&&n instanceof Ci&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=ki(e);n&&n instanceof Ci&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=ki(e);o&&o instanceof Ci&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=ki(e);r&&r instanceof Ci&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=ki(e);r&&r instanceof Ci&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=ki(e);r&&r.listeners.push(new Ei(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function ea(e,t,n){return new ta(e,t,n)}var ta=function(e){function t(t,n,r){var o=e.call(this)||this;return o.moduleType=t,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return o(t,e),t.prototype.create=function(e){!function(){if(!vs){vs=!0;var e=rt()?{setCurrentNode:Ls,createRootView:gs,createEmbeddedView:bs,createComponentView:ws,createNgModuleRef:Es,overrideProvider:ks,overrideComponentView:xs,clearOverrides:As,checkAndUpdateView:Ds,checkNoChangesView:Os,destroyView:Fs,createDebugContext:function(e,t){return new Zs(e,t)},handleEvent:Hs,updateDirectives:Bs,updateRenderer:zs}:{setCurrentNode:function(){},createRootView:ms,createEmbeddedView:Ji,createComponentView:Xi,createNgModuleRef:Gr,overrideProvider:Zn,overrideComponentView:Zn,clearOverrides:Zn,checkAndUpdateView:os,checkNoChangesView:rs,destroyView:ls,createDebugContext:function(e,t){return new Zs(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Is:Ps,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Is:Ps,e)}};Kn.setCurrentNode=e.setCurrentNode,Kn.createRootView=e.createRootView,Kn.createEmbeddedView=e.createEmbeddedView,Kn.createComponentView=e.createComponentView,Kn.createNgModuleRef=e.createNgModuleRef,Kn.overrideProvider=e.overrideProvider,Kn.overrideComponentView=e.overrideComponentView,Kn.clearOverrides=e.clearOverrides,Kn.checkAndUpdateView=e.checkAndUpdateView,Kn.checkNoChangesView=e.checkNoChangesView,Kn.destroyView=e.destroyView,Kn.resolveDep=yo,Kn.createDebugContext=e.createDebugContext,Kn.handleEvent=e.handleEvent,Kn.updateDirectives=e.updateDirectives,Kn.updateRenderer=e.updateRenderer,Kn.dirtyParentQueries=Hi}}();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var o in e.providersByKey)r[o]=e.providersByKey[o];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(yr(this._ngModuleDefFactory));return Kn.createNgModuleRef(this.moduleType,e||Vt.NULL,this._bootstrapComponents,t)},t}(qe),na=function(){return function(){}}(),ra=n("LQdv"),oa=n("23xg"),ia=n("9iUS"),sa=function(){function e(e){this.getHejinc=e,this.title="hejinc-A4",this.bfFood=ra.Food,this.lnFood=oa.Food,this.dnFood=ia.Food}return e.prototype.loadStudent=function(){this.hejincInfo=this.getHejinc.loadStudent()},e.prototype.ngOnInit=function(){this.loadStudent()},e}(),aa=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),ua=Yn({encapsulation:0,styles:[[""]],data:{}});function la(e){return Wi(0,[(e()(),Vi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Qi(1,null,[" ","/","\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.title,n.name)})}var ca=function(){return function(){}}(),fa=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),pa=new Pe("UseV4Plurals"),ha=function(){return function(){}}(),da=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return o(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Eo[t];if(n)return n;var r=t.split("-")[0];if(n=Eo[r])return n;if("en"===r)return To;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[So.PluralCase]}(t||this.locale)(e)){case fa.Zero:return"zero";case fa.One:return"one";case fa.Two:return"two";case fa.Few:return"few";case fa.Many:return"many";default:return"other"}},t}(ha),ya=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),va=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){rt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new ya(null,t._ngForOf,-1,-1),null===o?void 0:o),s=new ma(e,i);n.push(s)}else null==o?t._viewContainer.remove(null===r?void 0:r):null!==r&&(i=t._viewContainer.get(r),t._viewContainer.move(i,o),s=new ma(e,i),n.push(s))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o,i.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},e}(),ma=function(){return function(e,t){this.record=e,this.view=t}}(),ga=function(){return function(){}}(),_a=new Pe("DocumentToken"),ba="server",wa=function(){function e(){}return e.prototype.m=function(){console.log(this)},e.prototype.ngOnInit=function(){},e}(),Ea=Yn({encapsulation:0,styles:[[""]],data:{}});function Sa(e){return Wi(0,[(e()(),Vi(0,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),Qi(1,null,["Name: ",""])),(e()(),Vi(2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(3,null,["Price: ",""])),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(5,null,["Calories: ",""]))],null,function(e,t){e(t,1,0,t.context.$implicit.name),e(t,3,0,t.context.$implicit.price),e(t,5,0,t.context.$implicit.calories)})}function Ca(e){return Wi(0,[(e()(),Vi(0,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),Qi(1,null,["Name: ",""])),(e()(),Vi(2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(3,null,["Price: ",""])),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(5,null,["Calories: ",""]))],null,function(e,t){e(t,1,0,t.context.$implicit.name),e(t,3,0,t.context.$implicit.price),e(t,5,0,t.context.$implicit.calories)})}function Ta(e){return Wi(0,[(e()(),Vi(0,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),Qi(1,null,["Name: ",""])),(e()(),Vi(2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(3,null,["Price: ",""])),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(5,null,["Calories: ",""]))],null,function(e,t){e(t,1,0,t.context.$implicit.name),e(t,3,0,t.context.$implicit.price),e(t,5,0,t.context.$implicit.calories)})}function ka(e){return Wi(0,[(e()(),Vi(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Qi(-1,null,["MENU"])),(e()(),Vi(2,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),Fi(16777216,null,null,1,null,Sa)),so(4,278528,null,0,va,[Fn,Dn,xn],{ngForOf:[0,"ngForOf"]},null),(e()(),Vi(5,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),Fi(16777216,null,null,1,null,Ca)),so(7,278528,null,0,va,[Fn,Dn,xn],{ngForOf:[0,"ngForOf"]},null),(e()(),Vi(8,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),Fi(16777216,null,null,1,null,Ta)),so(10,278528,null,0,va,[Fn,Dn,xn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.brFood),e(t,7,0,n.luFood),e(t,10,0,n.diFood)},null)}var xa=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),Aa=Yn({encapsulation:0,styles:[[""]],data:{}});function Na(e){return Wi(0,[(e()(),Vi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Qi(1,null,[""," / "," / "," / ",""]))],null,function(e,t){var n=t.component;e(t,1,0,n.name,n.sid,n.loginName,n.campus)})}var Ia=function(){function e(){}return e.prototype.loadStudent=function(){return Pa},e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Pa={sid:991458834,name:"Jincheng He",loginName:"hejinc",campus:"Davis",assignTitle:"Assignment4"},Da=Yn({encapsulation:0,styles:[[""]],data:{}});function Oa(e){return Wi(0,[(e()(),Vi(0,0,null,null,1,"app-header",[],null,null,null,la,ua)),so(1,114688,null,0,aa,[],{name:[0,"name"],title:[1,"title"]},null),(e()(),Vi(2,0,null,null,1,"app-main",[],null,null,null,ka,Ea)),so(3,114688,null,0,wa,[],{brFood:[0,"brFood"],luFood:[1,"luFood"],diFood:[2,"diFood"]},null),(e()(),Vi(4,0,null,null,1,"app-footer",[],null,null,null,Na,Aa)),so(5,114688,null,0,xa,[],{name:[0,"name"],sid:[1,"sid"],loginName:[2,"loginName"],campus:[3,"campus"]},null)],function(e,t){var n=t.component;e(t,1,0,Cr(1,"",n.hejincInfo.name,""),Cr(1,"",n.hejincInfo.assignTitle,"")),e(t,3,0,n.bfFood,n.lnFood,n.dnFood),e(t,5,0,Cr(1,"",n.hejincInfo.name,""),Cr(1,"",n.hejincInfo.sid,""),Cr(1,"",n.hejincInfo.loginName,""),Cr(1,"",n.hejincInfo.campus,""))},null)}function Fa(e){return Wi(0,[(e()(),Vi(0,0,null,null,1,"app-root",[],null,null,null,Oa,Da)),so(1,114688,null,0,sa,[Ia],null,null)],function(e,t){e(t,1,0)},null)}var Va=Mr("app-root",sa,Fa,{},{},[]),Ra=null;function Ma(){return Ra}var ja,La=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=t.getStyle(n,r[o]+"AnimationName")){t._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=i[e])})}catch(s){t._animationPrefix=null,t._transitionEnd=null}return t}return o(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),Ha={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ba={"\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"},za={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"},qa=function(){if(Ie.Node)return Ie.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),Ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,Ra||(Ra=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,c(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return Ha},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return qa.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var o=n.item(r);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&za.hasOwnProperty(t)&&(t=za[t]))}return Ba[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=Qa||(Qa=document.querySelector("base"))?Qa.getAttribute("href"):null;return null==n?null:(t=n,ja||(ja=document.createElement("a")),ja.setAttribute("href",t),"/"===ja.pathname.charAt(0)?ja.pathname:"/"+ja.pathname)},t.prototype.resetBaseElement=function(){Qa=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return function(e,t){var n,r;t=encodeURIComponent(t);try{for(var o=u(e.split(";")),i=o.next();!i.done;i=o.next()){var s=i.value,a=s.indexOf("="),c=l(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),f=c[1];if(c[0].trim()===t)return decodeURIComponent(f)}}catch(p){n={error:p}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(La),Qa=null;function Ka(){return!!window.history.pushState}var Za=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}var n;return o(t,e),t.prototype._init=function(){this.location=Ma().getLocation(),this._history=Ma().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return Ma().getBaseHref(this._doc)},t.prototype.onPopState=function(e){Ma().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){Ma().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){Ka()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){Ka()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.prototype.getState=function(){return this._history.state},s([(n=pe(_a),function(e,t){n(e,t,0)}),a("design:paramtypes",[Object])],t)}(ca),Wa=new Pe("TRANSITION_ID"),$a=[{provide:Io,useFactory:function(e,t,n){return function(){n.get(Po).donePromise.then(function(){var n=Ma();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Wa,_a,Vt],multi:!0}],Ga=function(){function e(){}return e.init=function(){var t;t=new e,hi=t},e.prototype.addToWindow=function(e){Ie.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ie.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ie.getAllAngularRootElements=function(){return e.getAllRootElements()},Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push(function(e){var t=Ie.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(o)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Ma().isShadowRoot(t)?this.findTestabilityInTree(e,Ma().getHost(t),!0):this.findTestabilityInTree(e,Ma().parentElement(t),!0):null},e}();function Ja(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Ie.ng=Ie.ng||{})[e]=t)}var Ya=function(){return{ApplicationRef:bi,NgZone:ri}}();function Xa(e){return ki(e)}var eu=new Pe("EventManagerPlugins"),tu=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e}(),nu=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=Ma().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),ru=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),ou=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return o(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return Ma().remove(e)})},t}(ru),iu={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/"},su=/%COMP%/g,au="_nghost-%COMP%",uu="_ngcontent-%COMP%";function lu(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?lu(e,o,n):(o=o.replace(su,e),n.push(o))}return n}function cu(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var fu=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new pu(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ke.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new yu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Ke.Native:case Ke.ShadowDom:return new vu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=lu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),pu=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(iu[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=iu[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=iu[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&hn.DashCase?e.style.setProperty(t,n,r&hn.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&hn.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){du(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return du(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,cu(n)):this.eventManager.addEventListener(e,t,cu(n))},e}(),hu=function(){return"@".charCodeAt(0)}();function du(e,t){if(e.charCodeAt(0)===hu)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var yu=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.component=r;var s=lu(o+"-"+r.id,r.styles,[]);return n.addStyles(s),i.contentAttr=uu.replace(su,o+"-"+r.id),i.hostAttr=au.replace(su,o+"-"+r.id),i}return o(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(pu),vu=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=o.encapsulation===Ke.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=lu(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return o(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(pu),mu=function(){return"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e}}(),gu=mu("addEventListener"),_u=mu("removeEventListener"),bu={},wu="__zone_symbol__propagationStopped",Eu=function(){var e="undefined"!=typeof Zone&&Zone[mu("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach(function(e){t[e]=e}),t}}(),Su=function(e){return!!Eu&&Eu.hasOwnProperty(e)},Cu=function(e){var t=bu[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==e[wu];i++){var s;(s=o[i]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},Tu=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.ngZone=n,r&&function(e){return e===ba}(r)||o.patchEvent(),o}return o(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[wu]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=n;if(!e[gu]||ri.isInAngularZone()&&!Su(t))e.addEventListener(t,o,!1);else{var i=bu[t];i||(i=bu[t]=mu("ANGULAR"+t+"FALSE"));var s=e[i],a=s&&s.length>0;s||(s=e[i]=[]);var u=Su(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var l=!1,c=0;c<s.length;c++)if(s[c].handler===o){l=!0;break}l||s.push({zone:u,handler:o})}a||e[gu](t,Cu,!1)}return function(){return r.removeEventListener(e,t,o)}},t.prototype.removeEventListener=function(e,t,n){var r=e[_u];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var o=bu[t],i=o&&e[o];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,a=0;a<i.length;a++)if(i[a].handler===n){s=!0,i.splice(a,1);break}s?0===i.length&&r.apply(e,[t,Cu,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(nu),ku={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},xu=new Pe("HammerGestureConfig"),Au=new Pe("HammerLoader"),Nu=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),Iu=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i._config=n,i.console=r,i.loader=o,i}return o(t,e),t.prototype.supports=function(e){return!(!ku.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},t.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,s=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});i||(s=r.addEventListener(e,t,n))}).catch(function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}}),function(){s()}}return o.runOutsideAngular(function(){var i=r._config.buildHammer(e),s=function(e){o.runGuarded(function(){n(e)})};return i.on(t,s),function(){i.off(t,s),"function"==typeof i.destroy&&i.destroy()}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(nu),Pu=["alt","control","meta","shift"],Du={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Ou=function(e){function t(t){return e.call(this,t)||this}var n;return o(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var o=n.parseEventName(t),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ma().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";if(Pu.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=Ma().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Pu.forEach(function(r){r!=n&&(0,Du[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(nu),Fu=function(){return function(){}}(),Vu=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return o(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Tt.NONE:return t;case Tt.HTML:return t instanceof Mu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ct=ct||new ot(e);var r=t?String(t):"";n=ct.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ct.getInertBodyElement(r)}while(r!==i);var s=new bt,a=s.sanitizeChildren(Ct(n)||n);return rt()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=Ct(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case Tt.STYLE:return t instanceof ju?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(At);return t&&at(t[1])===t[1]||e.match(xt)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var o=e.charAt(r);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}(e)?e:(rt()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case Tt.SCRIPT:if(t instanceof Lu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Tt.URL:return t instanceof Bu||t instanceof Hu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),at(String(t)));case Tt.RESOURCE_URL:if(t instanceof Bu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Ru)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Mu(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new ju(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Lu(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new Hu(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new Bu(e)},t}(Fu),Ru=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Mu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Ru),ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Ru),Lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Ru),Hu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Ru),Bu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Ru),zu=vi(Ai,"browser",[{provide:Ro,useValue:"browser"},{provide:Vo,useValue:function(){Ua.makeCurrent(),Ga.init()},multi:!0},{provide:ca,useClass:Za,deps:[_a]},{provide:_a,useFactory:function(){return document},deps:[]}]);function qu(){return new et}var Uu=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:Do,useValue:e.appId},{provide:Wa,useExisting:Do},$a]}},e}();"undefined"!=typeof window&&window;var Qu=function(){return function(){}}(),Ku=function(){return function(){}}(),Zu="*";function Wu(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function $u(e){return{type:6,styles:e,offset:null}}function Gu(e){Promise.resolve(null).then(e)}var Ju=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;Gu(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Yu=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,i=this.players.length;0==i?Gu(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==i&&t._onFinish()}),e.onDestroy(function(){++r==i&&t._onDestroy()}),e.onStart(function(){++o==i&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Xu="!";function el(){return"undefined"!=typeof process}function tl(e){switch(e.length){case 0:return new Ju;case 1:return e[0];default:return new Yu(e)}}function nl(e,t,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var s=[],a=[],u=-1,l=null;if(r.forEach(function(e){var n=e.offset,r=n==u,c=r&&l||{};Object.keys(e).forEach(function(n){var r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),a){case Xu:a=o[n];break;case Zu:a=i[n];break;default:a=t.normalizeStyleValue(n,r,a,s)}c[r]=a}),r||a.push(c),l=c,u=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function rl(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&ol(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&ol(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&ol(n,"destroy",e))})}}function ol(e,t,n){var r=n.totalTime,o=il(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),i=e._data;return null!=i&&(o._data=i),o}function il(e,t,n,r,o,i,s){return void 0===o&&(o=""),void 0===i&&(i=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function sl(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function al(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ul=function(e,t){return!1},ll=function(e,t){return!1},cl=function(e,t,n){return[]},fl=el();(fl||"undefined"!=typeof Element)&&(ul=function(e,t){return e.contains(t)},ll=function(){if(fl||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:ll}(),cl=function(e,t,n){var r=[];if(n)r.push.apply(r,c(e.querySelectorAll(t)));else{var o=e.querySelector(t);o&&r.push(o)}return r});var pl=null,hl=!1;function dl(e){pl||(pl=("undefined"!=typeof document?document.body:null)||{},hl=!!pl.style&&"WebkitAppearance"in pl.style);var t=!0;return pl.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in pl.style)&&hl&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in pl.style),t}var yl=ll,vl=ul,ml=cl;function gl(e){var t={};return Object.keys(e).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}var _l=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return dl(e)},e.prototype.matchesElement=function(e,t){return yl(e,t)},e.prototype.containsElement=function(e,t){return vl(e,t)},e.prototype.query=function(e,t,n){return ml(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,o,i,s){return void 0===i&&(i=[]),new Ju(n,r)},e}(),bl=function(){function e(){}return e.NOOP=new _l,e}(),wl=1e3;function El(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Sl(parseFloat(t[1]),t[2])}function Sl(e,t){switch(t){case"s":return e*wl;default:return e}}function Cl(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,o=0,i="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=Sl(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(o=Sl(parseFloat(a),s[4]));var u=s[5];u&&(i=u)}else r=e;if(!n){var l=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:o,easing:i}}(e,t,n)}function Tl(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function kl(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else Tl(e,n);return n}function xl(e,t,n){return n?t+":"+n+";":""}function Al(e){for(var t="",n=0;n<e.style.length;n++)t+=xl(0,r=e.style.item(n),e.style.getPropertyValue(r));for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=xl(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Nl(e,t,n){e.style&&(Object.keys(t).forEach(function(r){var o=Ml(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[o]),e.style[o]=t[r]}),el()&&Al(e))}function Il(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=Ml(t);e.style[n]=""}),el()&&Al(e))}function Pl(e){return Array.isArray(e)?1==e.length?e[0]:Wu(e):e}var Dl=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ol(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Dl.exec(n);)t.push(r[1]);Dl.lastIndex=0}return t}function Fl(e,t,n){var r=e.toString(),o=r.replace(Dl,function(e,r){var o=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?e:o}function Vl(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Rl=/-+([a-z0-9])/g;function Ml(e){return e.replace(Rl,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function jl(e,t){return 0===e||0===t}function Ll(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var o=t[0],i=[];if(r.forEach(function(e){o.hasOwnProperty(e)||i.push(e),o[e]=n[e]}),i.length)for(var s=function(){var n=t[a];i.forEach(function(t){n[t]=Bl(e,t)})},a=1;a<t.length;a++)s()}return t}function Hl(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Bl(e,t){return window.getComputedStyle(e)[t]}var zl="*",ql=new Set(["true","1"]),Ul=new Set(["false","0"]);function Ql(e,t){var n=ql.has(e)||Ul.has(e),r=ql.has(t)||Ul.has(t);return function(o,i){var s=e==zl||e==o,a=t==zl||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?ql.has(e):Ul.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?ql.has(t):Ul.has(t)),s&&a}}var Kl=new RegExp("s*:selfs*,?","g");function Zl(e,t,n){return new Wl(e).build(t,n)}var Wl=function(){function e(e){this._driver=e}return e.prototype.build=function(e,t){var n=new $l(t);return this._resetContextStyleTimingState(n),Hl(this,Pl(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,o=t.depCount=0,i=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var a=e,u=a.name;u.toString().split(/\s*,\s*/).forEach(function(e){a.name=e,i.push(n.visitState(a,t))}),a.name=u}else if(1==e.type){var l=n.visitTransition(e,t);r+=l.queryCount,o+=l.depCount,s.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(e){if(Gl(e)){var t=e;Object.keys(t).forEach(function(e){Ol(t[e]).forEach(function(e){i.hasOwnProperty(e)||o.add(e)})})}}),o.size){var s=Vl(o.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n,r,o,i=Hl(this,Pl(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,o=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var o=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var i=o[1],s=o[2],a=o[3];t.push(Ql(i,a)),"<"!=s[0]||i==zl&&a==zl||t.push(Ql(a,i))}(e,o,r)}):o.push(n),o),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Jl(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Hl(n,e,t)}),options:Jl(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,o=0,i=e.steps.map(function(e){t.currentTime=r;var i=Hl(n,e,t);return o=Math.max(o,t.currentTime),i});return t.currentTime=o,{type:3,steps:i,options:Jl(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Yl(Cl(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var o=Yl(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Yl((n=n||Cl(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var o=e.styles?e.styles:$u({});if(5==o.type)n=this.visitKeyframes(o,t);else{var i=e.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=$u(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Zu?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,o=null;return n.forEach(function(e){if(Gl(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!r)for(var i in t)if(t[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,o=t.currentTime,i=t.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=t.collectedStyles[t.currentQuerySelector],c=l[r],f=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(t.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 "'+i+'ms" and "'+o+'ms"'),f=!1),i=c.startTime),f&&(l[r]={startTime:i,endTime:o}),t.options&&(s=t.errors,a=t.options.params||{},(u=Ol(e[r])).length&&u.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,u=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Gl(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Gl(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(o++,c=r.offset=l),a=a||c<0||c>1,s=s||c<u,u=c,i.push(c),r});a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,f=0;o>0&&o<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(f=1/(c-1));var p=c-1,h=t.currentTime,d=t.currentAnimateTimings,y=d.duration;return l.forEach(function(e,o){var s=f>0?o==p?1:f*o:i[o],a=s*y;t.currentTime=h+d.delay+a,d.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:Hl(this,Pl(e.animation),t),options:Jl(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Jl(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Jl(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=l(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Kl,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),i=o[0],s=o[1];t.currentQuerySelector=n.length?n+" "+i:i,sl(t.collectedStyles,t.currentQuerySelector,{});var a=Hl(this,Pl(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Jl(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Cl(e.timings,t.errors,!0);return{type:12,animation:Hl(this,Pl(e.animation),t),timings:n,options:null}},e}(),$l=function(){return function(e){this.errors=e,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 Gl(e){return!Array.isArray(e)&&"object"==typeof e}function Jl(e){var t;return e?(e=Tl(e)).params&&(e.params=(t=e.params)?Tl(t):null):e={},e}function Yl(e,t,n){return{duration:e,delay:t,easing:n}}function Xl(e,t,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var ec=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,c(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),tc=new RegExp(":enter","g"),nc=new RegExp(":leave","g");function rc(e,t,n,r,o,i,s,a,u,l){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new oc).buildKeyframes(e,t,n,r,o,i,s,a,u,l)}var oc=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,o,i,s,a,u,l){void 0===l&&(l=[]),u=u||new ec;var c=new sc(e,t,u,r,o,l,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Hl(this,n,c);var f=c.timelines.filter(function(e){return e.containsAnimation()});if(f.length&&Object.keys(s).length){var p=f[f.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return f.length?f.map(function(e){return e.buildKeyframes()}):[Xl(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,o=null!=n.duration?El(n.duration):null,i=null!=n.delay?El(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,i);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Hl(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,o=t,i=e.options;if(i&&(i.params||i.delay)&&((o=t.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ic);var s=El(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return Hl(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],o=t.currentTimeline.currentTime,i=e.options&&e.options.delay?El(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);i&&a.delayNextStep(i),Hl(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Cl(t.params?Fl(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(function(e){i.forwardTime((e.offset||0)*o),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,o=e.options||{},i=o.delay?El(o.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ic);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,o){t.currentQueryIndex=o;var a=t.createSubContext(e.options,r);i&&a.delayNextStep(i),r===t.element&&(u=a.currentTimeline),Hl(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,o=e.timings,i=Math.abs(o.duration),s=i*(t.currentQueryTotal-1),a=i*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;Hl(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},e}(),ic={},sc=function(){function e(e,t,n,r,o,i,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ic,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ac(this._driver,t,0),s.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,o=this.options;null!=r.duration&&(o.duration=El(r.duration)),null!=r.delay&&(o.delay=El(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=Fl(i[e],s,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var o=n||this.element,i=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=ic,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new uc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,o,i){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(tc,"."+this._enterClassName)).replace(nc,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,c(a))}return o||0!=s.length||i.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),ac=function(){function e(e,t,n,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.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))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Zu,t._currentKeyframe[e]=Zu}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var o=this;t&&(this._previousKeyframe.easing=t);var i=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Zu}):kl(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=Fl(s[e],i,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:Zu),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],o=e._styleSummary[n];(!r||o.time>r.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=kl(i,!0);Object.keys(a).forEach(function(e){var r=a[e];r==Xu?t.add(e):r==Zu&&n.add(e)}),r||(a.offset=s/e.duration),o.push(a)});var i=t.size?Vl(t.values()):[],s=n.size?Vl(n.values()):[];if(r){var a=o[0],u=Tl(a);a.offset=0,u.offset=1,o=[a,u]}return Xl(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},e}(),uc=function(e){function t(t,n,r,o,i,s,a){void 0===a&&(a=!1);var u=e.call(this,t,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return o(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,u=kl(e[0],!1);u.offset=0,i.push(u);var l=kl(e[0],!1);l.offset=lc(a),i.push(l);for(var c=e.length-1,f=1;f<=c;f++){var p=kl(e[f],!1);p.offset=lc((n+p.offset*r)/s),i.push(p)}r=s,n=0,o="",e=i}return Xl(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)},t}(ac);function lc(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var cc=function(){return function(){}}(),fc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.normalizePropertyName=function(e,t){return Ml(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var o="",i=n.toString().trim();if(pc[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return i+o},t}(cc),pc=function(){return function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("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 hc(e,t,n,r,o,i,s,a,u,l,c,f,p){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:f,errors:p}}var dc={},yc=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,o){return e.some(function(e){return e(t,n,r,o)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],o=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return o?o.buildStyles(t,n):i},e.prototype.build=function(e,t,n,r,o,s,a,u,l,c){var f=[],p=this.ast.options&&this.ast.options.params||dc,h=this.buildStyles(n,a&&a.params||dc,f),d=u&&u.params||dc,y=this.buildStyles(r,d,f),v=new Set,m=new Map,g=new Map,_="void"===r,b={params:i({},p,d)},w=c?[]:rc(e,t,this.ast.animation,o,s,h,y,b,l,f),E=0;if(w.forEach(function(e){E=Math.max(e.duration+e.delay,E)}),f.length)return hc(t,this._triggerName,n,r,_,h,y,[],[],m,g,E,f);w.forEach(function(e){var n=e.element,r=sl(m,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var o=sl(g,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&v.add(n)});var S=Vl(v.values());return hc(t,this._triggerName,n,r,_,h,y,w,S,m,g,E)},e}(),vc=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=Tl(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var i=o[e];i.length>1&&(i=Fl(i,r,t)),n[e]=i})}}),n},e}(),mc=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new vc(e.style,e.options&&e.options.params||{})}),gc(this.states,"true","1"),gc(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new yc(e,t,n.states))}),this.fallbackTransition=new yc(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(o){return o.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function gc(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var _c=new ec,bc=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=Zl(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,o=nl(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[e],a=new Map;if(s?(o=rc(this._driver,t,s,"ng-enter","ng-leave",{},{},n,_c,i)).forEach(function(e){var t=sl(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Zu)})});var u=tl(o.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var o=il(t,"","","");return rl(this._getPlayer(e),n,o,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),wc=[],Ec={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Sc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cc="__ng_removed",Tc=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=Tl(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),kc=new Tc("void"),xc=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Vc(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=sl(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var u=sl(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Vc(e,"ng-trigger"),Vc(e,"ng-trigger-"+t),u[t]=kc),function(){i._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),i._triggers[t]||delete u[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(t),s=new Nc(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Vc(e,"ng-trigger"),Vc(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],l=new Tc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[t]=l,u||(u=kc),"void"===l.value||u.value!==l.value){var c=sl(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var f=i.matchTransition(u.value,l.value,e,l.params),p=!1;if(!f){if(!r)return;f=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:u,toState:l,player:s,isFallbackTransition:p}),p||(Vc(e,"ng-animate-queued"),s.onStart(function(){Rc(e,"ng-animate-queued")})),s.onDone(function(){var t=o.players.indexOf(s);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(u.params,l.params)){var h=[],d=i.matchStyles(u.value,u.params,h),y=i.matchStyles(l.value,l.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush(function(){Il(e,d),Nl(e,y)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._signalRemovalForInnerTriggers=function(e,t,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(e,".ng-trigger",!0).forEach(function(e){if(!e[Cc]){var n=r._engine.fetchNamespacesByElement(e);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):r.clearElementCache(e)}})},e.prototype.triggerLeaveAnimation=function(e,t,n,r){var o=this,i=this._engine.statesByElement.get(e);if(i){var s=[];if(Object.keys(i).forEach(function(t){if(o._triggers[t]){var n=o.trigger(e,t,"void",r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&tl(s).onDone(function(){return o._engine.processLeaveNode(e)}),!0}return!1},e.prototype.prepareLeaveAnimationListeners=function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var i=t._triggers[o].fallbackTransition,s=t._engine.statesByElement.get(e)[o]||kc,a=new Tc("void"),u=new Nc(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:i,fromState:s,toState:a,player:u,isFallbackTransition:!0})}})}},e.prototype.removeNode=function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),!this.triggerLeaveAnimation(e,t,!0)){var o=!1;if(r.totalAnimations){var i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else for(var s=e;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}this.prepareLeaveAnimationListeners(e),o?r.markElementAsRemoved(this.id,e,!1,t):(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}},e.prototype.insertNode=function(e,t){Vc(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(r){var o=r.player;if(!o.destroyed){var i=r.element,s=t._elementListeners.get(i);s&&s.forEach(function(t){if(t.name==r.triggerName){var n=il(i,r.triggerName,r.fromState.value,r.toState.value);n._data=e,rl(r.player,t.phase,n,t.callback)}}),o.markedForDestroy?t._engine.afterFlush(function(){o.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,o=n.transition.ast.depCount;return 0==r||0==o?r-o:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t},e}(),Ac=function(){function e(e,t,n){this.bodyNode=e,this.driver=t,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(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new xc(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=n[r[o]].namespaceId;if(i){var s=this._fetchNamespace(i);s&&t.add(s)}}return t},e.prototype.trigger=function(e,t,n,r){if(Ic(t)){var o=this._fetchNamespace(e);if(o)return o.trigger(t,n,r),!0}return!1},e.prototype.insertNode=function(e,t,n,r){if(Ic(t)){var o=t[Cc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var i=this.collectedLeaveElements.indexOf(t);i>=0&&this.collectedLeaveElements.splice(i,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Vc(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Rc(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n,r){if(Ic(t)){var o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,r)}}else this._onRemovalComplete(t,r)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[Cc]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,o){return Ic(t)?this._fetchNamespace(e).listen(t,n,r,o):function(){}},e.prototype._buildInstruction=function(e,t,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,o)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return tl(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[Cc];if(n&&n.setForRemoval){if(e[Cc]=Ec,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)Vc(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,e)}finally{for(r=0;r<o.length;r++)o[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(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var i=this._whenQuietFns;this._whenQuietFns=[],n.length?tl(n).onDone(function(){i.forEach(function(e){return e()})}):i.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,r=new ec,o=[],s=new Map,a=[],u=new Map,l=new Map,f=new Map,p=new Set;this.disabledNodes.forEach(function(e){p.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)p.add(t[r])});var h=this.bodyNode,d=Array.from(this.statesByElement.keys()),y=Oc(d,this.collectedEnterElements),v=new Map,m=0;y.forEach(function(e,t){var n="ng-enter"+m++;v.set(t,n),e.forEach(function(e){return Vc(e,n)})});for(var g=[],_=new Set,b=new Set,w=0;w<this.collectedLeaveElements.length;w++)(j=(M=this.collectedLeaveElements[w])[Cc])&&j.setForRemoval&&(g.push(M),_.add(M),j.hasAnimation?this.driver.query(M,".ng-star-inserted",!0).forEach(function(e){return _.add(e)}):b.add(M));var E=new Map,S=Oc(d,Array.from(_));S.forEach(function(e,t){var n="ng-leave"+m++;E.set(t,n),e.forEach(function(e){return Vc(e,n)})}),e.push(function(){y.forEach(function(e,t){var n=v.get(t);e.forEach(function(e){return Rc(e,n)})}),S.forEach(function(e,t){var n=E.get(t);e.forEach(function(e){return Rc(e,n)})}),g.forEach(function(e){n.processLeaveNode(e)})});for(var C=[],T=[],k=this._namespaceList.length-1;k>=0;k--)this._namespaceList[k].drainQueuedTransitions(t).forEach(function(e){var t=e.player,i=e.element;if(C.push(t),n.collectedEnterElements.length){var s=i[Cc];if(s&&s.setForMove)return void t.destroy()}var c=!h||!n.driver.containsElement(h,i),p=E.get(i),d=v.get(i),y=n._buildInstruction(e,r,d,p,c);if(y.errors&&y.errors.length)T.push(y);else{if(c)return t.onStart(function(){return Il(i,y.fromStyles)}),t.onDestroy(function(){return Nl(i,y.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Il(i,y.fromStyles)}),t.onDestroy(function(){return Nl(i,y.toStyles)}),void o.push(t);y.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(i,y.timelines),a.push({instruction:y,player:t,element:i}),y.queriedElements.forEach(function(e){return sl(u,e,[]).push(t)}),y.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),y.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=f.get(t);r||f.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(T.length){var x=[];T.forEach(function(e){x.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return x.push("- "+e+"\n")})}),C.forEach(function(e){return e.destroy()}),this.reportError(x)}var A=new Map,N=new Map;a.forEach(function(e){var t=e.element;r.has(t)&&(N.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){sl(A,t,[]).push(e),e.destroy()})});var I=g.filter(function(e){return jc(e,l,f)}),P=new Map;Dc(P,this.driver,b,f,Zu).forEach(function(e){jc(e,l,f)&&I.push(e)});var D=new Map;y.forEach(function(e,t){Dc(D,n.driver,new Set(e),l,Xu)}),I.forEach(function(e){var t=P.get(e),n=D.get(e);P.set(e,i({},t,n))});var O=[],F=[],V={};a.forEach(function(e){var t=e.element,i=e.player,a=e.instruction;if(r.has(t)){if(p.has(t))return i.onDestroy(function(){return Nl(t,a.toStyles)}),i.disabled=!0,i.overrideTotalTime(a.totalTime),void o.push(i);var u=V;if(N.size>1){for(var l=t,c=[];l=l.parentNode;){var f=N.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(e){return N.set(e,u)})}var h=n._buildAnimation(i.namespaceId,a,A,s,D,P);if(i.setRealPlayer(h),u===V)O.push(i);else{var d=n.playersByElement.get(u);d&&d.length&&(i.parentPlayer=tl(d)),o.push(i)}}else Il(t,a.fromStyles),i.onDestroy(function(){return Nl(t,a.toStyles)}),F.push(i),p.has(t)&&o.push(i)}),F.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=tl(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var R=0;R<g.length;R++){var M,j=(M=g[R])[Cc];if(Rc(M,"ng-leave"),!j||!j.hasAnimation){var L=[];if(u.size){var H=u.get(M);H&&H.length&&L.push.apply(L,c(H));for(var B=this.driver.query(M,".ng-animating",!0),z=0;z<B.length;z++){var q=u.get(B[z]);q&&q.length&&L.push.apply(L,c(q))}}var U=L.filter(function(e){return!e.destroyed});U.length?Mc(this,M,U):this.processLeaveNode(M)}}return g.length=0,O.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),O},e.prototype.elementContainsData=function(e,t){var n=!1,r=t[Cc];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,r,o){var i=[];if(t){var s=this.playersByQueriedElement.get(e);s&&(i=s)}else{var a=this.playersByElement.get(e);if(a){var u=!o||"void"==o;a.forEach(function(e){e.queued||(u||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),i},e.prototype._beforeAnimationBuild=function(e,t,n){var r,o,i=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName,l=function(e){var r=e.element,o=r!==i,u=sl(n,r,[]);c._getPreviousPlayers(r,o,s,a,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})},c=this;try{for(var f=u(t.timelines),p=f.next();!p.done;p=f.next())l(p.value)}catch(h){r={error:h}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}Il(i,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,r,o,i){var s=this,a=t.triggerName,u=t.element,l=[],c=new Set,f=new Set,p=t.timelines.map(function(t){var p=t.element;c.add(p);var h=p[Cc];if(h&&h.removedBeforeQueried)return new Ju(t.duration,t.delay);var d,y,v=p!==u,m=(d=(n.get(p)||wc).map(function(e){return e.getRealPlayer()}),y=[],function e(t,n){for(var r=0;r<t.length;r++){var o=t[r];o instanceof Yu?e(o.players,n):n.push(o)}}(d,y),y).filter(function(e){return!!e.element&&e.element===p}),g=o.get(p),_=i.get(p),b=nl(0,s._normalizer,0,t.keyframes,g,_),w=s._buildPlayer(t,b,m);if(t.subTimeline&&r&&f.add(p),v){var E=new Nc(e,a,p);E.setRealPlayer(w),l.push(E)}return w});l.forEach(function(e){sl(s.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}}else(r=e[t])&&(r.length&&(o=r.indexOf(n),r.splice(o,1)),0==r.length&&delete e[t]);return r}(s.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return Vc(e,"ng-animating")});var h=tl(p);return h.onDestroy(function(){c.forEach(function(e){return Rc(e,"ng-animating")}),Nl(u,t.toStyles)}),f.forEach(function(e){sl(r,e,[]).push(h)}),h},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Ju(e.duration,e.delay)},e}(),Nc=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Ju,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return rl(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){sl(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Ic(e){return e&&1===e.nodeType}function Pc(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Dc(e,t,n,r,o){var i=[];n.forEach(function(e){return i.push(Pc(e))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(e){var n=i[e]=t.computeStyle(r,e,o);n&&0!=n.length||(r[Cc]=Sc,s.push(r))}),e.set(r,i)});var a=0;return n.forEach(function(e){return Pc(e,i[a++])}),s}function Oc(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),o=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var i=o.get(t);if(i)return i;var s=t.parentNode;return i=n.has(s)?s:r.has(s)?1:e(s),o.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}var Fc="$$classes";function Vc(e,t){if(e.classList)e.classList.add(t);else{var n=e[Fc];n||(n=e[Fc]={}),n[t]=!0}}function Rc(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Fc];n&&delete n[t]}}function Mc(e,t,n){tl(n).onDone(function(){return e.processLeaveNode(t)})}function jc(e,t,n){var r=n.get(e);if(!r)return!1;var o=t.get(e);return o?r.forEach(function(e){return o.add(e)}):t.set(e,r),n.delete(e),!0}var Lc=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ac(e,t,n),this._timelineEngine=new bc(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,o){var i=e+"-"+r,s=this._triggerCache[i];if(!s){var a=[],u=Zl(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new mc(e,t)}(r,u),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(t,r,s)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var o=l(al(n),2);this._timelineEngine.command(o[0],t,o[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,o){if("@"==n.charAt(0)){var i=l(al(n),2);return this._timelineEngine.listen(i[0],t,i[1],o)}return this._transitionEngine.listen(e,t,n,r,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}();function Hc(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=zc(t[0]),t.length>1&&(r=zc(t[t.length-1]))):t&&(n=zc(t)),n||r?new Bc(e,n,r):null}var Bc=function(){function e(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o={}),this._initialStyles=o}return e.prototype.start=function(){this._state<1&&(this._startStyles&&Nl(this._element,this._startStyles,this._initialStyles),this._state=1)},e.prototype.finish=function(){this.start(),this._state<2&&(Nl(this._element,this._initialStyles),this._endStyles&&(Nl(this._element,this._endStyles),this._endStyles=null),this._state=1)},e.prototype.destroy=function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Il(this._element,this._endStyles),this._endStyles=null),Nl(this._element,this._initialStyles),this._state=3)},e.initialStylesByElement=new WeakMap,e}();function zc(e){for(var t=null,n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];qc(o)&&((t=t||{})[o]=e[o])}return t}function qc(e){return"display"===e||"position"===e}var Uc="animation",Qc="animationend",Kc=function(){function e(e,t,n,r,o,i,s){var a=this;this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return a._handleCallback(e)}}return e.prototype.apply=function(){var e,t,n;t=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=Yc(e=this._element,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t=n+", "+t),Jc(e,"",t),Gc(this._element,this._eventFn,!1),this._startTime=Date.now()},e.prototype.pause=function(){Zc(this._element,this._name,"paused")},e.prototype.resume=function(){Zc(this._element,this._name,"running")},e.prototype.setPosition=function(e){var t=Wc(this._element,this._name);this._position=e*this._duration,Jc(this._element,"Delay","-"+this._position+"ms",t)},e.prototype.getPosition=function(){return this._position},e.prototype._handleCallback=function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Gc(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=$c(n=Yc(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),Jc(e,"",n.join(","))))},e}();function Zc(e,t,n){Jc(e,"PlayState",n,Wc(e,t))}function Wc(e,t){var n=Yc(e,"");return n.indexOf(",")>0?$c(n.split(","),t):$c([n],t)}function $c(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Gc(e,t,n){n?e.removeEventListener(Qc,t):e.addEventListener(Qc,t)}function Jc(e,t,n,r){var o=Uc+t;if(null!=r){var i=e.style[o];if(i.length){var s=i.split(",");s[r]=n,n=s.join(",")}}e.style[o]=n}function Yc(e,t){return e.style[Uc+t]}var Xc="linear",ef=function(){function e(e,t,n,r,o,i,s,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||Xc,this.totalTime=r+o,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this._state>=2},e.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new Kc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Bl(e.element,r))})}this.currentSnapshot=t},e}(),tf=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=gl(n),r}return o(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(Ju),nf=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return dl(e)},e.prototype.matchesElement=function(e,t){return yl(e,t)},e.prototype.containsElement=function(e,t){return vl(e,t)},e.prototype.query=function(e,t,n){return ml(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return gl(e)});var r="@keyframes "+t+" {\n",o="";n.forEach(function(e){o=" ";var t=parseFloat(e.offset);r+=""+o+100*t+"% {\n",o+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=o+"animation-timing-function: "+n+";\n"));default:return void(r+=""+o+t+": "+n+";\n")}}),r+=o+"}\n"}),r+="}\n";var i=document.createElement("style");return i.innerHTML=r,i},e.prototype.animate=function(e,t,n,r,o,i,s){void 0===i&&(i=[]),s&&this._notifyFaultyScrubber();var a=i.filter(function(e){return e instanceof ef}),u={};jl(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Ll(e,t,u));if(0==n)return new tf(e,l);var c="gen_css_kf_"+this._count++,f=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(f);var p=Hc(e,t),h=new ef(e,t,c,n,r,o,l,p);return h.onDestroy(function(){var e;(e=f).parentNode.removeChild(e)}),h},e.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)},e}(),rf=function(){function e(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,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 e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Bl(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),of=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(sf().toString()),this._cssKeyframesDriver=new nf}return e.prototype.validateStyleProperty=function(e){return dl(e)},e.prototype.matchesElement=function(e,t){return yl(e,t)},e.prototype.containsElement=function(e,t){return vl(e,t)},e.prototype.query=function(e,t,n){return ml(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,o,i,s){if(void 0===i&&(i=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,o,i);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(a.easing=o);var u={},l=i.filter(function(e){return e instanceof rf});jl(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=Hc(e,t=Ll(e,t=t.map(function(e){return kl(e,!1)}),u));return new rf(e,t,a,c)},e}();function sf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var af=function(e){function t(t,n){var r=e.call(this)||this;return r._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:Ke.None,styles:[],data:{animation:[]}}),r}return o(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Wu(e):e;return cf(this._renderer,null,t,"register",[n]),new uf(t,this._renderer)},t}(Qu),uf=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return o(t,e),t.prototype.create=function(e,t){return new lf(this._id,e,t||{},this._renderer)},t}(Ku),lf=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return cf(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function cf(e,t,n,r,o){return e.setProperty(t,"@@"+n+":"+r,o)}var ff=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var o=this._rendererCache.get(r);return o||(o=new pf("",r,this.engine),this._rendererCache.set(r,o)),o}var i=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(i,s,e,t.name,t)}),new hf(this,s,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;this.promise.then(function(){e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){var t=l(e,2);(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}(),pf=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)},e.prototype.selectRootElement=function(e,t){return this.delegate.selectRootElement(e,t)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),hf=function(e){function t(t,n,r,o){var i=e.call(this,n,r,o)||this;return i.factory=t,i.namespaceId=n,i}return o(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r,o,i,s=this;if("@"==t.charAt(0)){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),c="";return"@"!=u.charAt(0)&&(u=(r=l((o=u,i=o.indexOf("."),[o.substring(0,i),o.substr(i+1)]),2))[0],c=r[1]),this.engine.listen(this.namespaceId,a,u,c,function(e){s.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(pf),df=function(e){function t(t,n,r){return e.call(this,t.body,n,r)||this}return o(t,e),t}(Lc);function yf(){return"function"==typeof sf()?new of:new nf}function vf(){return new fc}function mf(e,t,n){return new ff(e,t,n)}var gf=new Pe("AnimationModuleType"),_f=function(){return function(){}}(),bf=new A(function(e){return e.complete()}),wf=function(e){function t(t,n){var r=e.call(this,t)||this;r.sources=n,r.completed=0,r.haveValues=0;var o=n.length;r.values=new Array(o);for(var i=0;i<o;i++){var s=K(r,n[i],null,i);s&&r.add(s)}return r}return o(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values[n]=t,o._hasValue||(o._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,r=this.values,o=r.length;e._hasValue?(this.completed++,this.completed===o&&(n===o&&t.next(r),t.complete())):t.complete()},t}(Z);function Ef(e){return null==e||0===e.length}var Sf=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Cf=function(){function e(){}return e.min=function(e){return function(t){if(Ef(t.value)||Ef(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(Ef(t.value)||Ef(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Ef(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Ef(e.value)?null:Sf.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Ef(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(Ef(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Tf);return 0==t.length?null:function(e){return xf(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Tf);return 0==t.length?null:function(e){return function e(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&f(n[0])&&(n=n[0]),0===n.length?bf:t?e(n).pipe(W(function(e){return t.apply(void 0,e)})):new A(function(e){return new wf(e,n)})}(function(e,n){return t.map(function(t){return t(e)})}(e).map(kf)).pipe(W(xf))}},e}();function Tf(e){return null!=e}function kf(e){var t=Gt(e)?Y(e):e;if(!Jt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function xf(e){var t=e.reduce(function(e,t){return null!=t?i({},e,t):e},{});return 0===Object.keys(t).length?null:t}function Af(e){return e.validate?function(t){return e.validate(t)}:e}function Nf(e){return e.validate?function(t){return e.validate(t)}:e}var If=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}();function Pf(e){var t,n=Of(e)?e.validators:e;return Array.isArray(n)?null!=(t=n)?Cf.compose(t.map(Af)):null:n||null}function Df(e,t){var n,r=Of(t)?t.asyncValidators:e;return Array.isArray(r)?null!=(n=r)?Cf.composeAsync(n.map(Nf)):null:r||null}function Of(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ff=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=Pf(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=Df(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(i({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(i({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(i({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(i({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=kf(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof Rf?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Mf&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new xo,this.statusChanges=new xo},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){Of(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},e}(),Vf=function(e){function t(t,n,r){void 0===t&&(t=null);var o=e.call(this,Pf(n),Df(r,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return o(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(Ff),Rf=function(e){function t(t,n,r){var o=e.call(this,Pf(n),Df(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Vf?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,o){n=n||t.contains(o)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=u(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(Ff),Mf=function(e){function t(t,n,r){var o=e.call(this,Pf(n),Df(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof Vf?e.value:e.getRawValue()})},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=u(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Ff),jf=new Pe("NgModelWithFormControlWarning"),Lf=function(){return function(){}}(),Hf=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=null,o=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,o=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,o=null!=t.asyncValidator?t.asyncValidator:null)),new Rf(n,{asyncValidators:o,updateOn:i,validators:r})},e.prototype.control=function(e,t,n){return new Vf(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new Mf(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){return e instanceof Vf||e instanceof Rf||e instanceof Mf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Bf=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:jf,useValue:e.warnOnNgModelWithFormControl}]}},e}(),zf=ea(na,[sa],function(e){return function(e){for(var t={},n=[],r=!1,o=0;o<e.length;o++){var i=e[o];i.token===Ot&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=o,t[$n(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Ir(512,on,sn,[[8,[Va]],[3,on],ze]),Ir(5120,Lo,Pi,[[3,Lo]]),Ir(4608,ha,da,[Lo,[2,pa]]),Ir(5120,wo,Di,[ri]),Ir(4608,Wo,Wo,[]),Ir(5120,Do,Oo,[]),Ir(5120,xn,Ni,[]),Ir(5120,An,Ii,[]),Ir(4608,Fu,Vu,[_a]),Ir(6144,kt,null,[Fu]),Ir(4608,xu,Nu,[]),Ir(5120,eu,function(e,t,n,r,o,i,s,a){return[new Tu(e,t,n),new Ou(r),new Iu(o,i,s,a)]},[_a,ri,Ro,_a,_a,xu,jo,[2,Au]]),Ir(4608,tu,tu,[eu,ri]),Ir(135680,ou,ou,[_a]),Ir(4608,fu,fu,[tu,ou,Do]),Ir(5120,bl,yf,[]),Ir(5120,cc,vf,[]),Ir(4608,Lc,df,[_a,bl,cc]),Ir(5120,pn,mf,[fu,Lc,ri]),Ir(6144,ru,null,[ou]),Ir(4608,fi,fi,[ri]),Ir(4608,Qu,af,[pn,_a]),Ir(4608,Hf,Hf,[]),Ir(4608,If,If,[]),Ir(1073742336,ga,ga,[]),Ir(1024,et,qu,[]),Ir(1024,Io,function(e){return[(t=e,Ja("probe",Xa),Ja("coreTokens",i({},Ya,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return Xa})];var t},[[2,yi]]),Ir(512,Po,Po,[[2,Io]]),Ir(131584,bi,bi,[ri,jo,Vt,et,on,Po]),Ir(1073742336,Oi,Oi,[bi]),Ir(1073742336,Uu,Uu,[[3,Uu]]),Ir(1073742336,_f,_f,[]),Ir(1073742336,Lf,Lf,[]),Ir(1073742336,Bf,Bf,[]),Ir(1073742336,na,na,[]),Ir(256,Ot,!0,[]),Ir(256,gf,"BrowserAnimations",[])])});(function(){if(nt)throw new Error("Cannot enable prod mode after platform setup.");tt=!1})(),zu().bootstrapModuleFactory(zf).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);