-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-es5.0ea8476cd6eddf7abf17.js
1 lines (1 loc) · 222 KB
/
main-es5.0ea8476cd6eddf7abf17.js
1
function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(u){i=!0,s=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw s}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);var i=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}};function o(e){setTimeout((function(){throw e}),0)}var a={closed:!0,next:function(e){},error:function(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete:function(){}},u=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}var c,h=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),f=((c=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,s=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var o=0;o<n.length;++o)n[o].remove(this);if(r(i))try{i.call(this)}catch(v){t=v instanceof h?d(v.errors):[v]}if(u(s))for(var a=-1,c=s.length;++a<c;){var f=s[a];if(l(f))try{f.unsubscribe()}catch(v){t=t||[],v instanceof h?t=t.concat(d(v.errors)):t.push(v)}}if(t)throw new h(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;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:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new c),c);function d(e){return e.reduce((function(e,t){return e.concat(t instanceof h?t.errors:t)}),[])}var v="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var s;switch(_classCallCheck(this,n),(s=t.call(this)).syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=a;break;case 1:if(!e){s.destination=a;break}if("object"==typeof e){e instanceof n?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(_assertThisInitialized(s))):(s.syncErrorThrowable=!0,s.destination=new p(_assertThisInitialized(s),e));break}default:s.syncErrorThrowable=!0,s.destination=new p(_assertThisInitialized(s),e,r,i)}return s}return _createClass(n,[{key:v,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(f),p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,s,o){var u,l;_classCallCheck(this,n),(u=t.call(this))._parentSubscriber=e;var c=_assertThisInitialized(u);return r(i)?l=i:i&&(l=i.next,s=i.error,o=i.complete,i!==a&&(r((c=Object.create(i)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(_assertThisInitialized(u)))),u._context=c,u._next=l,u._error=s,u._complete=o,u}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.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):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(y),_="function"==typeof Symbol&&Symbol.observable||"@@observable";function m(e){return e}var g,k=((g=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof y)return e;if(e[v])return e[v]()}return e||t||n?new y(e,t,n):new y(a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof y?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=b(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:_,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(r=t).length?m:1===r.length?r[0]:function(e){return r.reduce((function(e,t){return t(e)}),e)})(this);var r}},{key:"toPromise",value:function(e){var t=this;return new(e=b(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))}}]),e}()).create=function(e){return new g(e)},g);function b(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var C,w=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return _createClass(n,[{key:"unsubscribe",value: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)}}}}]),n}(f),E=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(y),T=((C=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:v,value:function(){return new E(this)}},{key:"lift",value:function(e){var t=new A(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new w;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new w;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}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new w;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),f.EMPTY):this.isStopped?(e.complete(),f.EMPTY):(this.observers.push(e),new S(this,e))}},{key:"asObservable",value:function(){var e=new k;return e.source=this,e}}]),n}(k)).create=function(e,t){return new A(e,t)},C),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).destination=e,i.source=r,i}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):f.EMPTY}}]),n}(T),x=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var s;return _classCallCheck(this,n),(s=t.call(this)).parent=e,s.outerValue=r,s.outerIndex=i,s.index=0,s}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(y),I=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};var P="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",O=function(e){if(e&&"function"==typeof e[_])return s=e,function(e){var t=s[_]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((t=e)&&"number"==typeof t.length&&"function"!=typeof t)return I(e);var t,n,r,i,s;if((n=e)&&"function"!=typeof n.subscribe&&"function"==typeof n.then)return i=e,function(e){return i.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,o),e};if(e&&"function"==typeof e[P])return r=e,function(e){for(var t=r[P]();;){var n=t.next();if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof t.return&&e.add((function(){t.return&&t.return()})),e};var a=l(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(a," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))},D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(y),N=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new F(e,this.project,this.thisArg))}}]),e}(),F=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var s;return _classCallCheck(this,n),(s=t.call(this,e)).project=r,s.count=0,s.thisArg=i||_assertThisInitialized(s),s}return _createClass(n,[{key:"_next",value: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)}}]),n}(y),R=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new M(e,this.project,this.concurrent))}}]),e}(),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=s,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value: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)}},{key:"_innerSub",value:function(e,t,n){var r=new x(this,t,n),i=this.destination;i.add(r);var s=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new x(e,n,r);if(!i.closed)return t instanceof k?t.subscribe(i):O(t)(i)}(this,e,void 0,void 0,r);s!==r&&i.add(s)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyComplete",value: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()}}]),n}(D);function j(){return function(e){return e.lift(new V(e))}}var H,V=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new L(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value: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}}]),n}(y),B={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(H=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new z(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return j()(this)}}]),n}(k).prototype)._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}},z=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(E);function q(){return new T}function Q(e){return{toString:e}.toString()}function K(e,t,n){return Q((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var s=_construct(i,t);return o.annotation=s,o;function o(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(s),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}var Z=K("Inject",(function(e){return{token:e}})),U=K("Optional"),W=K("Self"),G=K("SkipSelf"),J=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 $(e){for(var t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function X(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ee(e){return te(e,e[re])||te(e,e[oe])}function te(e,t){return t&&t.token===e?t:null}function ne(e){return e&&(e.hasOwnProperty(ie)||e.hasOwnProperty(ae))?e[ie]:null}var re=$({"\u0275prov":$}),ie=$({"\u0275inj":$}),se=$({"\u0275provFallback":$}),oe=$({ngInjectableDef:$}),ae=$({ngInjectorDef:$});function ue(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ue).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)}function le(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var ce=$({__forward_ref__:$});function he(e){return e.__forward_ref__=he,e.toString=function(){return ue(this())},e}function fe(e){return"function"==typeof(t=e)&&t.hasOwnProperty(ce)&&t.__forward_ref__===he?e():e;var t}var de,ve="undefined"!=typeof globalThis&&globalThis,ye="undefined"!=typeof window&&window,pe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,_e="undefined"!=typeof global&&global,me=ve||_e||ye||pe,ge=$({"\u0275cmp":$}),ke=$({"\u0275dir":$}),be=$({"\u0275pipe":$}),Ce=$({"\u0275mod":$}),we=$({"\u0275loc":$}),Se=$({"\u0275fac":$}),Ee=$({__NG_ELEMENT_ID__:$}),Te=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Y({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),Ae=new Te("INJECTOR",-1),xe={},Ie=/\n/gm,Pe=$({provide:String,useValue:$}),Oe=void 0;function De(e){var t=Oe;return Oe=e,t}function Ne(e){var t=de;return de=e,t}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.Default;if(void 0===Oe)throw new Error("inject() must be called from an injection context");return null===Oe?Me(e,void 0,t):Oe.get(e,t&J.Optional?null:void 0,t)}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.Default;return(de||Fe)(fe(e),t)}function Me(e,t,n){var r=ee(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&J.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(ue(e),"]"))}function je(e){for(var t=[],n=0;n<e.length;n++){var r=fe(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,s=J.Default,o=0;o<r.length;o++){var a=r[o];a instanceof U||"Optional"===a.ngMetadataName||a===U?s|=J.Optional:a instanceof G||"SkipSelf"===a.ngMetadataName||a===G?s|=J.SkipSelf:a instanceof W||"Self"===a.ngMetadataName||a===W?s|=J.Self:i=a instanceof Z||a===Z?a.token:a}t.push(Re(i,s))}else t.push(Re(r))}return t}var He=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xe;if(t===xe){var n=new Error("NullInjectorError: No provider for ".concat(ue(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Ve=function e(){_classCallCheck(this,e)};function Le(e,t){e.forEach((function(e){return Array.isArray(e)?Le(e,t):t(e)}))}var Be=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),ze=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),qe={},Qe=[],Ke=0;function Ze(e){return Q((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Qe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ze.Emulated,id:"c",styles:e.styles||Qe,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,o=e.features,a=e.pipes;return i.id+=Ke++,i.inputs=$e(e.inputs,r),i.outputs=$e(e.outputs),o&&o.forEach((function(e){return e(i)})),i.directiveDefs=s?function(){return("function"==typeof s?s():s).map(Ue)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(We)}:null,i}))}function Ue(e){return Xe(e)||function(e){return e[ke]||null}(e)}function We(e){return function(e){return e[be]||null}(e)}var Ge={};function Je(e){var t={type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Q((function(){Ge[e.id]=e.type})),t}function $e(e,t){if(null==e)return qe;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}var Ye=Ze;function Xe(e){return e[ge]||null}function et(e,t){return e.hasOwnProperty(Se)?e[Se]:null}function tt(e,t){var n=e[Ce]||null;if(!n&&!0===t)throw new Error("Type ".concat(ue(e)," does not have '\u0275mod' property."));return n}function nt(e){return Array.isArray(e)&&"object"==typeof e[1]}function rt(e){return Array.isArray(e)&&!0===e[1]}function it(e){return 0!=(8&e.flags)}function st(e){return 2==(2&e.flags)}function ot(e){return 1==(1&e.flags)}function at(e){return null!==e.template}var ut=void 0;function lt(e){return!!e.listen}var ct={createRenderer:function(e,t){return void 0!==ut?ut:"undefined"!=typeof document?document:void 0}};function ht(e){for(;Array.isArray(e);)e=e[0];return e}function ft(e,t){return ht(t[e.index])}function dt(e,t){return e.data[t+20]}function vt(e,t){var n=t[e];return nt(n)?n:n[0]}function yt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function pt(e){return 128==(128&e[2])}function _t(e,t){return null===e||null==t?null:e[t]}function mt(e){e[18]=0}function gt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var kt={lFrame:Rt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function bt(){return kt.bindingsEnabled}function Ct(){return kt.lFrame.lView}function wt(){return kt.lFrame.tView}function St(){return kt.lFrame.previousOrParentTNode}function Et(e,t){kt.lFrame.previousOrParentTNode=e,kt.lFrame.isParent=t}function Tt(){return kt.lFrame.isParent}function At(){return kt.checkNoChangesMode}function xt(e){kt.checkNoChangesMode=e}function It(e,t){var n=kt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Pt(t)}function Pt(e){kt.lFrame.currentDirectiveIndex=e}function Ot(e){kt.lFrame.currentQueryIndex=e}function Dt(e,t){var n=Ft();kt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Nt(e,t){var n=Ft(),r=e[1];kt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function Ft(){var e=kt.lFrame,t=null===e?null:e.child;return null===t?Rt(e):t}function Rt(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Mt(){var e=kt.lFrame;return kt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var jt=Mt;function Ht(){var e=Mt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Vt(){return kt.lFrame.selectedIndex}function Lt(e){kt.lFrame.selectedIndex=e}function Bt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n];i.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,i.afterContentInit),i.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,i.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i.afterContentChecked)),i.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,i.afterViewInit),i.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,i.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,i.afterViewChecked)),null!=i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,i.onDestroy)}}function zt(e,t,n){Kt(e,t,3,n)}function qt(e,t,n,r){(3&e[2])===n&&Kt(e,t,n,r)}function Qt(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Kt(e,t,n,r){for(var i=null!=r?r:-1,s=0,o=void 0!==r?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(s=t[o],null!=r&&s>=r)break}else t[o]<0&&(e[18]+=65536),(s<i||-1==i)&&(Zt(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function Zt(e,t,n,r){var i=n[r]<0,s=n[r+1],o=e[i?-n[r]:n[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}var Ut=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Wt(e,t,n){for(var r=lt(e),i=0;i<n.length;){var s=n[i];if("number"==typeof s){if(0!==s)break;i++;var o=n[i++],a=n[i++],u=n[i++];r?e.setAttribute(t,a,u,o):t.setAttributeNS(o,a,u)}else{var l=s,c=n[++i];Gt(l)?r&&e.setProperty(t,l,c):r?e.setAttribute(t,l,c):t.setAttribute(l,c),i++}}return i}function Gt(e){return 64===e.charCodeAt(0)}function Jt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||$t(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function $t(e,t,n,r,i){var s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){var a=e[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<e.length;){var u=e[s];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}function Yt(e){return 32767&e}function Xt(e,t){for(var n=e>>16,r=t;n>0;)r=r[15],n--;return r}function en(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function(e){return"string"==typeof e?e:null==e?"":""+e}(e)}var tn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(me);function nn(e){return e instanceof Function?e():e}var rn=!0;function sn(e){var t=rn;return rn=e,t}var on=0;function an(e,t){var n=ln(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,un(r.data,e),un(t,null),un(r.blueprint,null));var i=cn(e,t),s=e.injectorIndex;if(-1!==i)for(var o=Yt(i),a=Xt(i,t),u=a[1].data,l=0;l<8;l++)t[s+l]=a[o+l]|u[o+l];return t[s+8]=i,s}function un(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ln(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function cn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function hn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Ee]:n.charCodeAt(0)||0;null==r&&(r=n[Ee]=on++);var i=255&r,s=1<<i,o=64&i,a=32&i,u=t.data;128&i?o?a?u[e+7]|=s:u[e+6]|=s:a?u[e+5]|=s:u[e+4]|=s:o?a?u[e+3]|=s:u[e+2]|=s:a?u[e+1]|=s:u[e]|=s}(e,t,n)}function fn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:J.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Ee];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof s){Dt(t,e);try{var o=s();if(null!=o||r&J.Optional)return o;throw new Error("No provider for ".concat(en(n),"!"))}finally{jt()}}else if("number"==typeof s){if(-1===s)return new mn(e,t);var a=null,u=ln(e,t),l=-1,c=r&J.Host?t[16][6]:null;for((-1===u||r&J.SkipSelf)&&(l=-1===u?cn(e,t):t[u+8],_n(r,!1)?(a=t[1],u=Yt(l),t=Xt(l,t)):u=-1);-1!==u;){l=t[u+8];var h=t[1];if(pn(s,u,h.data)){var f=vn(u,t,n,a,r,c);if(f!==dn)return f}_n(r,t[1].data[u+8]===c)&&pn(s,u,t)?(a=h,u=Yt(l),t=Xt(l,t)):u=-1}}}if(r&J.Optional&&void 0===i&&(i=null),0==(r&(J.Self|J.Host))){var d=t[9],v=Ne(void 0);try{return d?d.get(n,i,r&J.Optional):Me(n,i,r&J.Optional)}finally{Ne(v)}}if(r&J.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(en(n),"]"))}var dn={};function vn(e,t,n,r,i,s){var o=t[1],a=o.data[e+8],u=function(e,t,n,r,i){for(var s=e.providerIndexes,o=t.data,a=65535&s,u=e.directiveStart,l=s>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h<c;h++){var f=o[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(i){var d=o[u];if(d&&at(d)&&d.type===n)return u}return null}(a,o,n,null==r?st(a)&&rn:r!=o&&3===a.type,i&J.Host&&s===a);return null!==u?yn(t,o,u,a):dn}function yn(e,t,n,r){var i=e[n],s=t.data;if(i instanceof Ut){var o=i;if(o.resolving)throw new Error("Circular dep for "+en(s[n]));var a,u=sn(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(a=Ne(o.injectImpl)),Dt(e,r);try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,s=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{o.injectImpl&&Ne(a),sn(u),o.resolving=!1,jt()}}return i}function pn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<<e)}function _n(e,t){return!(e&J.Self||e&J.Host&&t)}var mn=function(){function e(t,n){_classCallCheck(this,e),this._tNode=t,this._lView=n}return _createClass(e,[{key:"get",value:function(e,t){return fn(this._tNode,this._lView,e,void 0,t)}}]),e}();function gn(e){return e.ngDebugContext}function kn(e){return e.ngOriginalError}function bn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var Cn=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||bn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?gn(e)?gn(e):this._findContext(kn(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=kn(e);t&&kn(t);)t=kn(t);return t}}]),e}(),wn=!0,Sn=!1;function En(){return Sn=!0,wn}function Tn(e,t){e.__ngContext__=t}function An(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function xn(){throw new Error("Cannot mix multi providers and regular providers")}function In(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}function Pn(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==In((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function On(e){return 0===e.type&&"ng-template"!==e.tagName}function Dn(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function Nn(e,t,n){for(var r=4,i=e.attrs||[],s=function(e){for(var t=0;t<e.length;t++)if(3===(n=e[t])||4===n||6===n)return t;var n;return e.length}(i),o=!1,a=0;a<t.length;a++){var u=t[a];if("number"!=typeof u){if(!o)if(4&r){if(r=2|1&r,""!==u&&!Dn(e,u,n)||""===u&&1===t.length){if(Fn(r))return!1;o=!0}}else{var l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!Pn(e.attrs,l,n)){if(Fn(r))return!1;o=!0}continue}var c=Rn(8&r?"class":u,i,On(e),n);if(-1===c){if(Fn(r))return!1;o=!0;continue}if(""!==l){var h;h=c>s?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==In(f,l,0)||2&r&&l!==h){if(Fn(r))return!1;o=!0}}}}else{if(!o&&!Fn(r)&&!Fn(u))return!1;if(o&&Fn(u))continue;o=!1,r=u|1&r}}return Fn(r)||o}function Fn(e){return 0==(1&e)}function Rn(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var s=!1;i<t.length;){var o=t[i];if(o===e)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){for(var a=t[++i];"string"==typeof a;)a=t[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Mn(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(Nn(e,t[r],n))return!0;return!1}function jn(e,t){return e?":not("+t.trim()+")":t}function Hn(e){for(var t=e[0],n=1,r=2,i="",s=!1;n<e.length;){var o=e[n];if("string"==typeof o)if(2&r){var a=e[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||Fn(o)||(t+=jn(s,i),i=""),r=o,s=s||!Fn(r);n++}return""!==i&&(t+=jn(s,i)),t}var Vn={};function Ln(e){var t=e[3];return rt(t)?t[3]:t}function Bn(e){return qn(e[13])}function zn(e){return qn(e[4])}function qn(e){for(;null!==e&&!rt(e);)e=e[4];return e}function Qn(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&zt(t,i,n)}else{var s=e.preOrderHooks;null!==s&&qt(t,s,0,n)}Lt(n)}function Kn(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],s=n[r+1];if(-1!==s){var o=e.data[s];Ot(i),o.contentQueries(2,t[s],s)}}}function Zn(e,t,n){return lt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Un(e,t,n,r,i,s,o,a,u,l){var c=t.blueprint.slice();return c[0]=i,c[2]=140|r,mt(c),c[3]=c[15]=e,c[8]=n,c[10]=o||e&&e[10],c[11]=a||e&&e[11],c[12]=u||e&&e[12]||null,c[9]=l||e&&e[9]||null,c[6]=s,c[16]=2==t.type?e[16]:c,c}function Wn(e,t,n,r,i,s){var o=n+20,a=e.data[o]||function(e,t,n,r,i,s){var o=St(),a=Tt(),u=a?o:o&&o.parent,l=e.data[n]=tr(0,u&&u!==t?u:null,r,n,i,s);return null===e.firstChild&&(e.firstChild=l),o&&(!a||null!=o.child||null===l.parent&&2!==o.type?a||(o.next=l):o.child=l),l}(e,t,o,r,i,s);return Et(a,!0),a}function Gn(e,t,n){Nt(t,t[6]);try{var r=e.viewQuery;null!==r&&kr(1,r,n);var i=e.template;null!==i&&Yn(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Kn(e,t),e.staticViewQueries&&kr(2,e.viewQuery,n);var s=e.components;null!==s&&function(e,t){for(var n=0;n<t.length;n++)yr(e,t[n])}(t,s)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),o}finally{t[2]&=-5,Ht()}}function Jn(e,t,n,r){var i=t[2];if(256!=(256&i)){Nt(t,t[6]);var s=At();try{mt(t),kt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Yn(e,t,n,2,r);var o=3==(3&i);if(!s)if(o){var a=e.preOrderCheckHooks;null!==a&&zt(t,a,null)}else{var u=e.preOrderHooks;null!==u&&qt(t,u,0,null),Qt(t,0)}if(function(e){for(var t=Bn(e);null!==t;t=zn(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var i=n[r],s=i[3];0==(1024&i[2])&>(s,1),i[2]|=1024}}(t),function(e){for(var t=Bn(e);null!==t;t=zn(t))for(var n=10;n<t.length;n++){var r=t[n],i=r[1];pt(r)&&Jn(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Kn(e,t),!s)if(o){var l=e.contentCheckHooks;null!==l&&zt(t,l)}else{var c=e.contentHooks;null!==c&&qt(t,c,1),Qt(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var r=e.expandoStartIndex,i=-1,s=0;s<n.length;s++){var o=n[s];"number"==typeof o?o<=0?(Lt(0-o),i=r+=9+n[++s]):r+=o:(null!==o&&(It(r,i),o(2,t[i])),i++)}}finally{Lt(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)vr(e,t[n])}(t,h);var f=e.viewQuery;if(null!==f&&kr(2,f,r),!s)if(o){var d=e.viewCheckHooks;null!==d&&zt(t,d)}else{var v=e.viewHooks;null!==v&&qt(t,v,2),Qt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,gt(t[3],-1))}finally{Ht()}}}function $n(e,t,n,r){var i=t[10],s=!At(),o=4==(4&t[2]);try{s&&!o&&i.begin&&i.begin(),o&&Gn(e,t,r),Jn(e,t,n,r)}finally{s&&!o&&i.end&&i.end()}}function Yn(e,t,n,r,i){var s=Vt();try{Lt(-1),2&r&&t.length>20&&Qn(e,t,0,At()),n(r,i)}finally{Lt(s)}}function Xn(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=er(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function er(e,t,n,r,i,s,o,a,u,l){var c=20+r,h=c+i,f=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:Vn);return n}(c,h);return f[1]={type:e,id:t,blueprint:f,template:n,queries:null,viewQuery:a,node:null,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:u,consts:l,incompleteFirstPass:!1}}function tr(e,t,n,r,i,s){return{type:n,index:r,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function nr(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function rr(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function ir(e,t,n){for(var r=0;r<n;r++)t.push(Vn),e.blueprint.push(Vn),e.data.push(null)}function sr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function or(e,t,n){var r=20-t.index,i=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,n)}function ar(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ur(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;at(t)&&(n[""]=e)}}function lr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function cr(e,t,n){e.data.push(n);var r=n.factory||(n.factory=et(n.type)),i=new Ut(r,at(n),null);e.blueprint.push(i),t.push(i)}function hr(e,t,n){var r=ft(t,e),i=Xn(n),s=e[10],o=pr(e,Un(e,i,null,n.onPush?64:16,r,t,s,s.createRenderer(r,n)));e[t.index]=o}function fr(e,t,n,r,i,s){var o=s[t];if(null!==o)for(var a=r.setInput,u=0;u<o.length;){var l=o[u++],c=o[u++],h=o[u++];null!==a?r.setInput(n,h,l,c):n[c]=h}}function dr(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function vr(e,t){var n=vt(t,e);if(pt(n)){var r=n[1];80&n[2]?Jn(r,n,r.template,n[8]):n[5]>0&&function e(t){for(var n=Bn(t);null!==n;n=zn(n))for(var r=10;r<n.length;r++){var i=n[r];if(1024&i[2]){var s=i[1];Jn(s,i,s.template,i[8])}else i[5]>0&&e(i)}var o=t[1].components;if(null!==o)for(var a=0;a<o.length;a++){var u=vt(o[a],t);pt(u)&&u[5]>0&&e(u)}}(n)}}function yr(e,t){var n=vt(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),Gn(r,n,n[8])}function pr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function _r(e){for(;e;){e[2]|=64;var t=Ln(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function mr(e,t,n){var r=t[10];r.begin&&r.begin();try{Jn(e,t,e.template,n)}catch(i){throw wr(t,i),i}finally{r.end&&r.end()}}function gr(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=yt(n),i=r[1];$n(i,r,i.template,n)}}(e[8])}function kr(e,t,n){Ot(0),t(e,n)}var br=Promise.resolve(null);function Cr(e){return e[7]||(e[7]=[])}function wr(e,t){var n=e[9],r=n?n.get(Cn,null):null;r&&r.handleError(t)}function Sr(e,t,n,r,i){for(var s=0;s<n.length;){var o=n[s++],a=n[s++],u=t[o],l=e.data[o];null!==l.setInput?l.setInput(u,i,r,a):u[a]=i}}function Er(e,t){var n=t[3];return-1===e.index?rt(n)?n:null:n}function Tr(e,t,n,r,i){if(null!=r){var s,o=!1;rt(r)?s=r:nt(r)&&(o=!0,r=r[0]);var a=ht(r);0===e&&null!==n?null==i?Pr(t,n,a):Ir(t,n,a,i||null):1===e&&null!==n?Ir(t,n,a,i||null):2===e?function(e,t,n){var r=Dr(e,t);r&&function(e,t,n,r){lt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,r,i){var s=n[7];s!==ht(n)&&Tr(t,e,r,s,i);for(var o=10;o<n.length;o++){var a=n[o];Rr(a[1],a,e,t,r,s)}}(t,e,s,n,i)}}function Ar(e,t){var n;return nt(e)&&(n=e[6])&&2===n.type?Er(n,e):e[3]===t?null:e[3]}function xr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var i=t[n[r]];if(!(i instanceof Ut)){var s=n[r+1];if(Array.isArray(s))for(var o=0;o<s.length;o+=2)s[o+1].call(i[s[o]]);else s.call(i)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var r=t[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var s=n[i+1],o="function"==typeof s?s(t):ht(t[s]),a=r[n[i+2]],u=n[i+3];"boolean"==typeof u?o.removeEventListener(n[i],a,u):u>=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&<(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&rt(t[3])){r!==t[3]&&function(e,t){var n=e[9],r=n.indexOf(t);1024&t[2]&>(t[3],-1),n.splice(r,1)}(r,t);var i=t[19];null!==i&&i.detachView(e)}}}function Ir(e,t,n,r){lt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Pr(e,t,n){lt(e)?e.appendChild(t,n):t.appendChild(n)}function Or(e,t,n,r){null!==r?Ir(e,t,n,r):Pr(e,t,n)}function Dr(e,t){return lt(e)?e.parentNode(t):t.parentNode}function Nr(e,t,n,r){var i=function(e,t,n){for(var r,i,s=t.parent;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){var o=n[6];return 2===o.type?(i=Er(o,r=n))?Dr(r[11],i[7]):null:n[0]}if(t&&5===t.type&&4&t.flags)return ft(t,n).parentNode;if(2&s.flags){var a=e.data,u=a[a[s.index].directiveStart].encapsulation;if(u!==ze.ShadowDom&&u!==ze.Native)return null}return ft(s,n)}(e,r,t);if(null!=i){var s=t[11],o=function(e,t){if(2===e.type){var n=Er(e,t);return null===n?null:function e(t,n){var r=10+t+1;if(r<n.length){var i=n[r],s=i[1].firstChild;if(null!==s)return function t(n,r){if(null!==r){var i=r.type;if(3===i)return ft(r,n);if(0===i)return e(-1,n[r.index]);if(4===i||5===i){var s=r.child;if(null!==s)return t(n,s);var o=n[r.index];return rt(o)?e(-1,o):ht(o)}var a=n[16],u=a[6],l=Ln(a),c=u.projection[r.projection];return null!=c?t(l,c):t(n,r.next)}return null}(i,s)}return n[7]}(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?ft(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a<n.length;a++)Or(s,i,n[a],o);else Or(s,i,n,o)}}function Fr(e,t,n,r,i,s,o){for(;null!=n;){var a=r[n.index],u=n.type;o&&0===t&&(a&&Tn(ht(a),r),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Fr(e,t,n.child,r,i,s,!1),Tr(t,e,i,a,s)):1===u?Mr(e,t,r,n,i,s):Tr(t,e,i,a,s)),n=o?n.projectionNext:n.next}}function Rr(e,t,n,r,i,s){Fr(n,r,e.node.child,t,i,s,!1)}function Mr(e,t,n,r,i,s){var o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(var u=0;u<a.length;u++)Tr(t,e,i,a[u],s);else Fr(e,t,a,o[3],i,s,!0)}function jr(e,t,n){lt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Hr(e,t,n){lt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var Vr,Lr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e))._view=e,r}return _createClass(n,[{key:"detectChanges",value:function(){gr(this._view)}},{key:"checkNoChanges",value:function(){!function(e){xt(!0);try{gr(e)}finally{xt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(function(){function e(t,n){_classCallCheck(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return _createClass(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}!function(e,t){if(!(256&t[2])){var n=t[11];lt(n)&&n.destroyNode&&Rr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return xr(e[1],e);for(;t;){var n=null;if(nt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)nt(t)&&xr(t[1],t),t=Ar(t,e);null===t&&(t=e),nt(t)&&xr(t[1],t),n=t&&t[4]}t=n}}(t)}}(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,Cr(n=this._lView).push(r),t.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){_r(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){mr(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){xt(!0);try{mr(e,t,n)}finally{xt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Rr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var o=n[r.index];if(null!==o&&i.push(ht(o)),rt(o))for(var a=10;a<o.length;a++){var u=o[a],l=u[1].firstChild;null!==l&&e(u[1],u,l,i)}var c=r.type;if(4===c||5===c)e(t,n,r.child,i);else if(1===c){var h=n[16],f=h[6].projection[r.projection];if(Array.isArray(f))i.push.apply(i,_toConsumableArray(f));else{var d=Ln(h);e(d[1],d,f,i,!0)}}r=s?r.projectionNext:r.next}return i}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}());function Br(e,t,n){return Vr||(Vr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(e)),new Vr(ft(t,n))}var zr=new Te("Set Injector scope."),qr={},Qr={},Kr=[],Zr=void 0;function Ur(){return void 0===Zr&&(Zr=new He),Zr}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Gr(e,n,t||Ur(),r)}var Gr=function(){function e(t,n,r){var i=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&Le(n,(function(e){return i.processProvider(e,t,n)})),Le([t],(function(e){return i.processInjectorType(e,[],o)})),this.records.set(Ae,$r(void 0,this));var a=this.records.get(zr);this.scope=null!=a?a.value:null,this.source=s||("object"==typeof t?null:ue(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J.Default;this.assertNotDestroyed();var r,i=De(this);try{if(!(n&J.SkipSelf)){var s=this.records.get(e);if(void 0===s){var o=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Te)&&ee(e);s=o&&this.injectableDefInScope(o)?$r(Jr(e),qr):null,this.records.set(e,s)}if(null!=s)return this.hydrate(e,s)}return(n&J.Self?Ur():this.parent).get(e,t=n&J.Optional&&t===xe?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(ue(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=ue(t);if(Array.isArray(t))i=t.map(ue).join(" -> ");else if("object"==typeof t){var s=[];for(var o in t)if(t.hasOwnProperty(o)){var a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ue(a)))}i="{".concat(s.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Ie,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{De(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(ue(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=fe(e)))return!1;var i=ne(e),s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==n.indexOf(o);if(void 0!==s&&(i=ne(s)),null==i)return!1;if(null!=i.imports&&!a){var u;n.push(o);try{Le(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;Le(i,(function(e){return r.processProvider(e,n,i||Kr)}))},c=0;c<u.length;c++)l(c)}this.injectorDefTypes.add(o),this.records.set(o,$r(i.factory,qr));var h=i.providers;if(null!=h&&!a){var f=e;Le(h,(function(e){return r.processProvider(e,f,h)}))}return void 0!==s&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=Xr(e=fe(e))?e:fe(e&&e.provide),i=function(e,t,n){return Yr(e)?$r(void 0,e.useValue):$r(function(e,t,n){var r,i=void 0;if(Xr(e)){var s=fe(e);return et(s)||Jr(s)}if(Yr(e))i=function(){return fe(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(je(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Re(fe(e.useExisting))};else{var o=fe(e&&(e.useClass||e.provide));if(o||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(ue(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return et(o)||Jr(o);i=function(){return _construct(o,_toConsumableArray(je(e.deps)))}}return i}(e,t,n),qr)}(e,t,n);if(Xr(e)||!0!==e.multi){var s=this.records.get(r);s&&void 0!==s.multi&&xn()}else{var o=this.records.get(r);o?void 0===o.multi&&xn():((o=$r(void 0,qr,!0)).factory=function(){return je(o.multi)},this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,i)}},{key:"hydrate",value:function(e,t){var n;return t.value===Qr?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(ue(e)):t.value===qr&&(t.value=Qr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function Jr(e){var t=ee(e),n=null!==t?t.factory:et(e);if(null!==n)return n;var r=ne(e);if(null!==r)return r.factory;if(e instanceof Te)throw new Error("Token ".concat(ue(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=function(e,t){for(var n=[],r=0;r<e;r++)n.push("?");return n}(t);throw new Error("Can't resolve all parameters for ".concat(ue(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[re]||e[oe]||e[se]&&e[se]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function $r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Yr(e){return null!==e&&"object"==typeof e&&Pe in e}function Xr(e){return"function"==typeof e}var ei=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Wr(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},ti=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ei(e,t,""):ei(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=xe,e.NULL=new He,e.\u0275prov=Y({token:e,providedIn:"any",factory:function(){return Re(Ae)}}),e.__NG_ELEMENT_ID__=-1,e}(),ni=new Map,ri=new Set;function ii(e){return"string"==typeof e?e:e.text()}function si(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?s=a:1==s?i=le(i,a):2==s&&(r=le(r,a+": "+t[++o]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var oi=null;function ai(){if(!oi){var e=me.Symbol;if(e&&e.iterator)oi=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&&(oi=r)}}return oi}function ui(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function li(e){return!!ci(e)&&(Array.isArray(e)||!(e instanceof Map)&&ai()in e)}function ci(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function hi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.Default,n=Ct();return null==n?Re(e,t):fn(St(),n,fe(e),t)}function di(e,t,n){var r,i=Ct();return hi(i,kt.lFrame.bindingIndex++,t)&&function(e,t,n,r,i,s,o,a){var u,l,c=ft(t,n),h=t.inputs;null!=h&&(u=h[r])?(Sr(e,n,u,r,i),st(t)&&function(e,t){var n=vt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=o?o(i,t.tagName||"",r):i,lt(s)?s.setProperty(c,r,i):Gt(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}(wt(),dt((r=kt.lFrame).tView,r.selectedIndex),i,e,t,i[11],n),di}function vi(e,t,n,r,i){var s=i?"class":"style";Sr(e,n,t.inputs[s],s,r)}function yi(e,t,n,r){var i=Ct(),s=wt(),o=20+e,a=i[11],u=i[o]=Zn(t,a,kt.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,r,i,s,o){var a=t.consts,u=_t(a,s),l=Wn(t,n[6],e,3,i,u);return function(e,t,n,r){if(bt()){var i=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var s=0;s<r.length;s++){var o=r[s];Mn(n,o.selectors,!1)&&(i||(i=[]),hn(an(n,t),e,o.type),at(o)?(2&n.flags&&An(n),ar(e,n),i.unshift(o)):i.push(o))}return i}(e,t,n),s=null===r?null:{"":-1};if(null!==i){var o=0;!0,lr(n,e.data.length,i.length);for(var a=0;a<i.length;a++){var u=i[a];u.providersResolver&&u.providersResolver(u)}or(e,n,i.length);for(var l=!1,c=!1,h=0;h<i.length;h++){var f=i[h];n.mergedAttrs=Jt(n.mergedAttrs,f.hostAttrs),cr(e,t,f),ur(e.data.length-1,f,s),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128),!l&&(f.onChanges||f.onInit||f.doCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-20),l=!0),c||!f.onChanges&&!f.doCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-20),c=!0),rr(e,f),o+=f.hostVars}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,s=[],o=null,a=null,u=t.directiveStart;u<n;u++){var l=r[u],c=l.inputs,h=null===i||On(t)?null:dr(c,i);s.push(h),o=nr(c,u,o),a=nr(l.outputs,u,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=o,t.outputs=a}(e,n),ir(e,t,o)}s&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var s=n[t[i+1]];if(null==s)throw new Error("Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],s)}}(n,r,s)}n.mergedAttrs=Jt(n.mergedAttrs,n.attrs)}(t,n,l,_t(a,o)),null!==l.attrs&&si(l,l.attrs,!1),null!==l.mergedAttrs&&si(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(e,s,i,0,t,n,r):s.data[o];Et(l,!0);var c=l.mergedAttrs;null!==c&&Wt(a,u,c);var h=l.classes;null!==h&&Hr(a,u,h);var f=l.styles;null!==f&&jr(a,u,f),Nr(s,i,u,l),0===kt.lFrame.elementDepthCount&&Tn(u,i),kt.lFrame.elementDepthCount++,ot(l)&&(function(e,t,n){bt()&&(function(e,t,n,r){var i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||an(n,t),Tn(r,t);for(var o=n.initialInputs,a=i;a<s;a++){var u=e.data[a],l=at(u);l&&hr(t,n,u);var c=yn(t,e,a,n);Tn(c,t),null!==o&&fr(0,a-i,c,u,0,o),l&&(vt(n.index,t)[8]=c)}}(e,t,n,ft(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,s=e.expandoInstructions,o=e.firstCreatePass,a=n.index-20,u=kt.lFrame.currentDirectiveIndex;try{Lt(a);for(var l=r;l<i;l++){var c=e.data[l],h=t[l];Pt(l),null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs?sr(c,h):o&&s.push(null)}}finally{Lt(-1),Pt(u)}}(e,t,n))}(s,i,l),function(e,t,n){if(it(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var s=e.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}(s,l,i)),null!==r&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft,r=t.localNames;if(null!==r)for(var i=t.index+1,s=0;s<r.length;s+=2){var o=r[s+1],a=-1===o?n(t,e):e[o];e[i++]=a}}(i,l)}function pi(){var e=St();Tt()?kt.lFrame.isParent=!1:Et(e=e.parent,!1);var t=e;kt.lFrame.elementDepthCount--;var n=wt();n.firstCreatePass&&(Bt(n,e),it(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&vi(n,t,Ct(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&vi(n,t,Ct(),t.stylesWithoutHost,!1)}function _i(e,t,n,r){yi(e,t,n,r),pi()}function mi(e){return!!e&&"function"==typeof e.then}function gi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Ct(),s=wt(),o=St();return function(e,t,n,r,i,s){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,u=ot(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Cr(t),h=!0;if(3===r.type){var f=ft(r,t),d=a?a(f):qe,v=d.target||f,y=c.length,p=a?function(e){return a(ht(e[r.index])).target}:r.index;if(lt(n)){var _=null;if(!a&&u&&(_=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var s=0;s<i.length-1;s+=2){var o=i[s];if(o===n&&i[s+1]===r){var a=t[7],u=i[s+2];return a.length>u?a[u]:null}"string"==typeof o&&(s+=2)}return null}(e,t,i,r.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=s,_.__ngLastListenerFn__=s,h=!1;else{s=bi(r,t,s,!1);var m=n.listen(d.name||v,i,s);c.push(s,m),l&&l.push(i,p,y,y+1)}}else s=bi(r,t,s,!0),v.addEventListener(i,s,o),c.push(s),l&&l.push(i,p,y,o)}var g,k=r.outputs;if(h&&null!==k&&(g=k[i])){var b=g.length;if(b)for(var C=0;C<b;C+=2){var w=t[g[C]][g[C+1]].subscribe(s),S=c.length;c.push(s,w),l&&l.push(i,r.index,S,-(S+1))}}}(s,i,i[11],o,e,t,n,r),gi}function ki(e,t,n){try{return!1!==t(n)}catch(r){return wr(e,r),!1}}function bi(e,t,n,r){return function i(s){if(s===Function)return n;var o=2&e.flags?vt(e.index,t):t;0==(32&t[2])&&_r(o);for(var a=ki(t,n,s),u=i.__ngNextListenerFn__;u;)a=ki(t,u,s)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Ci(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Ct(),r=wt(),i=e+20,s=r.firstCreatePass?Wn(r,n[6],e,3,null,null):r.data[i],o=n[i]=function(e,t){return lt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Nr(r,n,o,s),Et(s,!1)}function wi(e,t){var n=yt(e)[1],r=n.data.length-1;Bt(n,{directiveStart:r,directiveEnd:r+1})}var Si=function e(){_classCallCheck(this,e)},Ei=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(ue(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ti=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Ei,e}(),Ai=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return xi(e)},e}(),xi=function(e){return Br(e,St(),Ct())},Ii=function e(){_classCallCheck(this,e)},Pi=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Oi=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Di()},e}(),Di=function(){var e=Ct(),t=vt(St().index,e);return function(e){var t=e[11];if(lt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(nt(t)?t:e)},Ni=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=Y({token:e,providedIn:"root",factory:function(){return null}}),e}(),Fi=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("9.1.12"),Ri=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return li(e)}},{key:"create",value:function(e){return new ji(e)}}]),e}(),Mi=function(e,t){return t},ji=function(){function e(t){_classCallCheck(this,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=t||Mi}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var s=!n||t&&t.currentIndex<Bi(n,r,i)?t:n,o=Bi(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{i||(i=[]);var u=o-r,l=a-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;l<=f&&f<u&&(i[c]=h+1)}i[s.previousIndex]=l-u}}o!==a&&e(s,o,a)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!li(e))throw new Error("Error trying to diff '".concat(ue(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,s=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)r=e[a],i=this._trackByFn(a,r),null!==s&&ui(s.trackById,i)?(o&&(s=this._verifyReinsertion(s,r,i,a)),ui(s.item,r)||this._addIdentityChange(s,r)):(s=this._mismatch(s,r,i,a),o=!0),s=s._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,i=e[ai()]();!(r=i.next()).done;)t(r.value)}(e,(function(e){i=t._trackByFn(n,e),null!==s&&ui(s.trackById,i)?(o&&(s=t._verifyReinsertion(s,e,i,n)),ui(s.item,e)||t._addIdentityChange(s,e)):(s=t._mismatch(s,e,i,n),o=!0),s=s._next,n++})),this.length=n;return this._truncate(s),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e,t;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}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(ui(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ui(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new Hi(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value: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)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value: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 Li),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value: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}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Li),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}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),Hi=function e(t,n){_classCallCheck(this,e),this.item=t,this.trackById=n,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},Vi=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value: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)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&ui(n.trackById,e))return n;return null}},{key:"remove",value: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}(),Li=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Vi,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function Bi(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var zi=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||ci(e)}},{key:"create",value:function(){return new qi}}]),e}(),qi=function(){function e(){_classCallCheck(this,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 _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||ci(e)))throw new Error("Error trying to diff '".concat(ue(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value: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 i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value: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}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var s=new Qi(e);return this._records.set(e,s),s.currentValue=t,this._addToAdditions(s),s}},{key:"_reset",value:function(){if(this.isDirty){var e;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}}},{key:"_maybeAddToChanges",value:function(e,t){ui(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),Qi=function e(t){_classCallCheck(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},Ki=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value: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 '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value: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 G,new U]]}}}]),e}();return e.\u0275prov=Y({token:e,providedIn:"root",factory:function(){return new e([new Ri])}}),e}(),Zi=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value: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 '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value: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 G,new U]]}}}]),e}();return e.\u0275prov=Y({token:e,providedIn:"root",factory:function(){return new e([new zi])}}),e}(),Ui=[new zi],Wi=new Ki([new Ri]),Gi=new Zi(Ui),Ji={},$i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).ngModule=e,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=Xe(e);return new es(t,this.ngModule)}}]),n}(Ti);function Yi(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Xi=new Te("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return tn}}),es=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Hn).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"create",value:function(e,t,n,r){var i,s,o=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var s=e.get(n,Ji,i);return s!==Ji||r===Ji?s:t.get(n,r,i)}}}(e,r.injector):e,a=o.get(Ii,ct),u=o.get(Ni,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(lt(e))return e.selectRootElement(t,n===ze.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Zn(c,a.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),v={components:[],scheduler:tn,clean:br,playerHandler:null,flags:0},y=er(0,-1,null,1,0,null,null,null,null,null),p=Un(null,y,v,f,null,null,a,l,u,o);Nt(p,null);try{var _=function(e,t,n,r,i,s){var o=n[1];n[20]=e;var a=Wn(o,null,0,3,null,null),u=a.mergedAttrs=t.hostAttrs;null!==u&&(si(a,u,!0),null!==e&&(Wt(i,e,u),null!==a.classes&&Hr(i,e,a.classes),null!==a.styles&&jr(i,e,a.styles)));var l=r.createRenderer(e,t),c=Un(n,Xn(t),null,t.onPush?64:16,n[20],a,r,l,void 0);return o.firstCreatePass&&(hn(an(a,n),o,t.type),ar(o,a),lr(a,n.length,1)),pr(n,c),n[20]=c}(h,this.componentDef,p,a,l);if(h)if(n)Wt(l,h,["ng-version",Fi.full]);else{var m=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!Fn(i))break;i=s}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),g=m.attrs,k=m.classes;g&&Wt(l,h,g),k&&k.length>0&&Hr(l,h,k.join(" "))}if(s=dt(y,0),void 0!==t)for(var b=s.projection=[],C=0;C<this.ngContentSelectors.length;C++){var w=t[C];b.push(null!=w?Array.from(w):null)}i=function(e,t,n,r,i){var s=n[1],o=function(e,t,n){var r=St();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),or(e,r,1),cr(e,t,n));var i=yn(t,e,t.length-1,r);Tn(i,t);var s=ft(r,t);return s&&Tn(s,t),i}(s,n,t);r.components.push(o),e[8]=o,i&&i.forEach((function(e){return e(o,t)})),t.contentQueries&&t.contentQueries(1,o,n.length-1);var a=St();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Lt(a.index-20);var u=n[1];rr(u,t),ir(u,n,t.hostVars),sr(t,o)}return o}(_,this.componentDef,p,v,[wi]),Gn(y,p,null)}finally{Ht()}var S=new ts(this.componentType,i,Br(Ai,s,p),p,s);return n&&!d||(y.node.child=s),S}},{key:"inputs",get:function(){return Yi(this.componentDef.inputs)}},{key:"outputs",get:function(){return Yi(this.componentDef.outputs)}}]),n}(Si),ts=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,s,o){var a,u,l,c;return _classCallCheck(this,n),(a=t.call(this)).location=i,a._rootLView=s,a._tNode=o,a.destroyCbs=[],a.instance=r,a.hostView=a.changeDetectorRef=new Lr(s),u=s[1],l=s,null==(c=u.node)&&(u.node=c=tr(0,null,2,-1,null,null)),l[6]=c,a.componentType=e,a}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new mn(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),ns=void 0,rs=["en",[["a","p"],["AM","PM"],ns],[["AM","PM"],ns,ns],[["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"]],ns,[["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"]],ns,[["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}",ns,"{1} 'at' {0}",ns],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],is={};function ss(e){return e in is||(is[e]=me.ng&&me.ng.common&&me.ng.common.locales&&me.ng.common.locales[e]),is[e]}var os=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function as(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var us=new Map,ls=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new $i(_assertThisInitialized(i));var s=tt(e),o=e[we]||null;return o&&as(o),i._bootstrapComponents=nn(s.bootstrap),i._r3Injector=Wr(e,r,[{provide:Ve,useValue:_assertThisInitialized(i)},{provide:Ti,useValue:i.componentFactoryResolver}],ue(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ti.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J.Default;return e===ti||e===Ve||e===Ae?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Ve),cs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==tt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ue(t)," vs ").concat(ue(t.name)))})(n,us.get(n),t),us.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new ls(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function hs(e,t,n,r){return function(e,t,n,r,i,s){var o=t+n;return hi(e,o,i)?function(e,t,n){return e[t]=n}(e,o+1,s?r.call(s,i):r(i)):function(e,t){var n=e[t];return n===Vn?void 0:n}(e,o+1)}(Ct(),(i=kt.lFrame,-1===(s=i.bindingRootIndex)&&(s=i.bindingRootIndex=i.tView.bindingStartIndex),s),e,t,n,r);var i,s}var fs=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,s=function(e){return null},o=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(o=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(o=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,s,o);return e instanceof f&&e.add(a),a}}]),n}(T),ds=new Te("Application Initializer"),vs=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value: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 i=this.appInits[r]();mi(i)&&t.push(i)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Re(ds,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e}(),ys=new Te("AppId"),ps={provide:ys,useFactory:function(){return"".concat(_s()).concat(_s()).concat(_s())},deps:[]};function _s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ms=new Te("Platform Initializer"),gs=new Te("Platform ID"),ks=new Te("appBootstrapListener"),bs=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e}(),Cs=new Te("LocaleId"),ws=new Te("DefaultCurrencyCode"),Ss=function e(t,n){_classCallCheck(this,e),this.ngModuleFactory=t,this.componentFactories=n},Es=function(e){return new cs(e)},Ts=Es,As=function(e){return Promise.resolve(Es(e))},xs=function(e){var t=Es(e),n=nn(tt(e).declarations).reduce((function(e,t){var n=Xe(t);return n&&e.push(new es(n)),e}),[]);return new Ss(t,n)},Is=xs,Ps=function(e){return Promise.resolve(xs(e))},Os=function(){var e=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=Ts,this.compileModuleAsync=As,this.compileModuleAndAllComponentsSync=Is,this.compileModuleAndAllComponentsAsync=Ps}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e}(),Ds=new Te("compilerOptions"),Ns=Promise.resolve(0);function Fs(e){"undefined"==typeof Zone?Ns.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Rs=function(){function e(t){var n,r,i=t.enableLongStackTrace,s=void 0!==i&&i,o=t.shouldCoalesceEventChangeDetection,a=void 0!==o&&o;if(_classCallCheck(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fs(!1),this.onMicrotaskEmpty=new fs(!1),this.onStable=new fs(!1),this.onError=new fs(!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)),s&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=a,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=me.requestAnimationFrame,t=me.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,r=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(me,(function(){e.lastRequestAnimationFrameId=-1,Vs(e),Hs(e)})),Vs(e))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r},onInvokeTask:function(e,t,i,s,o,a){try{return Ls(n),e.invokeTask(i,s,o,a)}finally{r&&"eventTask"===s.type&&r(),Bs(n)}},onInvoke:function(e,t,r,i,s,o,a){try{return Ls(n),e.invoke(r,i,s,o,a)}finally{Bs(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,Vs(n),Hs(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,js,Ms,Ms);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function Ms(){}var js={};function Hs(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 Vs(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Ls(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Bs(e){e._nesting--,Hs(e)}var zs,qs=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fs,this.onMicrotaskEmpty=new fs,this.onStable=new fs,this.onError=new fs}return _createClass(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}]),e}(),Qs=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value: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(){Rs.assertNotInAngularZone(),Fs((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Fs((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}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Re(Rs))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e}(),Ks=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Zs.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Zs.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e}(),Zs=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Us=function(e,t,n){var r=e.get(Ds,[]).concat(t),i=new cs(n);if(0===ni.size)return Promise.resolve(i);var s,o,a=(s=r.map((function(e){return e.providers})),o=[],s.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===a.length)return Promise.resolve(i);var u=function(){var e=me.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),l=ti.create({providers:a}).get(u.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(l.get(e))}(e);n.set(e,t=r.then(ii))}return t}return ni.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var s=e.styleUrls,o=e.styles||(e.styles=[]),a=e.styles.length;s&&s.forEach((function(t,n){o.push(""),i.push(r(t).then((function(r){o[a+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)})))}));var u=Promise.all(i).then((function(){return function(e){ri.delete(e)}(n)}));t.push(u)})),ni=new Map,Promise.all(t).then((function(){}))}().then((function(){return i}))},Ws=new Te("AllowMultipleToken");function Gs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Te(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=Js();if(!s||s.injector.get(Ws,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var o=n.concat(t).concat({provide:i,useValue:!0},{provide:zr,useValue:"platform"});!function(e){if(zs&&!zs.destroyed&&!zs.injector.get(Ws,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zs=e.get($s);var t=e.get(ms,null);t&&t.forEach((function(e){return e()}))}(ti.create({providers:o,name:r}))}return function(e){var t=Js();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}(i)}}function Js(){return zs&&!zs.destroyed?zs:null}var $s=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,s=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new qs:("zone.js"===n?void 0:n)||new Rs({enableLongStackTrace:En(),shouldCoalesceEventChangeDetection:r})),o=[{provide:Rs,useValue:s}];return s.run((function(){var t=ti.create({providers:o,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Cn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return to(i._modules,n)})),s.runOutsideAngular((function(){return s.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var s=((o=n.injector.get(vs)).runInitializers(),o.donePromise.then((function(){return as(n.injector.get(Cs,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return mi(s)?s.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):s}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var o}(r,s)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ys({},n);return Us(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(eo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(ue(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)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Re(ti))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e}();function Ys(e,t){return Array.isArray(t)?t.reduce(Ys,e):Object.assign(Object.assign({},e),t)}var Xs,eo=((Xs=function(){function e(t,n,r,i,s,o){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=En(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var u=new k((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),l=new k((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Rs.assertNotInAngularZone(),Fs((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Rs.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Number.POSITIVE_INFINITY,s=null,o=t[t.length-1];return(r=o)&&"function"==typeof r.schedule?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===s&&1===t.length&&t[0]instanceof k?t[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(i){return i.pipe(e((function(e,r){return(i=t(e,r),i instanceof k?i:new k(O(i))).pipe(function(e,t){return function(t){return t.lift(new N(e,void 0))}}((function(t,i){return n(e,t,r,i)})));var i}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new R(t,r))})}(m,e)}(i)(function(e,t){return t?function(e,t){return new k((function(n){var r=new f,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}(e,t):new k(I(e))}(t,s))}(u,l.pipe((function(e){return j()((t=q,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,B);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value: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 Si?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(Ve),s=n.create(ti.NULL,[],t||n.selector,i);s.onDestroy((function(){r._unloadComponent(s)}));var o=s.injector.get(Qs,null);return o&&s.injector.get(Ks).registerApplication(s.location.nativeElement,o),this._loadComponent(s),En()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(s){n.e(s)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(s){i.e(s)}finally{i.f()}}}catch(o){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;to(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ks,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),to(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Xs)(Re(Rs),Re(bs),Re(ti),Re(Cn),Re(Ti),Re(vs))},Xs.\u0275prov=Y({token:Xs,factory:Xs.\u0275fac}),Xs);function to(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var no=Gs(null,"core",[{provide:gs,useValue:"unknown"},{provide:$s,deps:[ti]},{provide:Ks,deps:[]},{provide:bs,deps:[]}]),ro=[{provide:eo,useClass:eo,deps:[Rs,bs,ti,Cn,Ti,vs]},{provide:Xi,deps:[Rs],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:vs,useClass:vs,deps:[[new U,ds]]},{provide:Os,useClass:Os,deps:[]},ps,{provide:Ki,useFactory:function(){return Wi},deps:[]},{provide:Zi,useFactory:function(){return Gi},deps:[]},{provide:Cs,useFactory:function(e){return as(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Z(Cs),new U,new G]]},{provide:ws,useValue:"USD"}],io=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=Je({type:e}),e.\u0275inj=X({factory:function(t){return new(t||e)(Re(eo))},providers:ro}),e}(),so=null;function oo(){return so}var ao,uo,lo,co,ho,fo,vo,yo=new Te("DocumentToken"),po=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),_o=function e(){_classCallCheck(this,e)},mo=((lo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ss(t);if(n)return n;var r=t.split("-")[0];if(n=ss(r))return n;if("en"===r)return rs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[os.PluralCase]}(t||this.locale)(e)){case po.Zero:return"zero";case po.One:return"one";case po.Two:return"two";case po.Few:return"few";case po.Many:return"many";default:return"other"}}}]),n}(_o)).\u0275fac=function(e){return new(e||lo)(Re(Cs))},lo.\u0275prov=Y({token:lo,factory:lo.\u0275fac}),lo),go=((uo=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ue(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(li(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||uo)(fi(Ki),fi(Zi),fi(Ai),fi(Oi))},uo.\u0275dir=Ye({type:uo,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),uo),ko=((ao=function e(){_classCallCheck(this,e)}).\u0275mod=Je({type:ao}),ao.\u0275inj=X({factory:function(e){return new(e||ao)},providers:[{provide:_o,useClass:mo}]}),ao),bo=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Co||(Co=document.querySelector("base"))?Co.getAttribute("href"):null;return null==n?null:(t=n,co||(co=document.createElement("a")),co.setAttribute("href",t),"/"===co.pathname.charAt(0)?co.pathname:"/"+co.pathname)}},{key:"resetBaseElement",value:function(){Co=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,s=i.indexOf("="),o=_slicedToArray(-1==s?[i,""]:[i.slice(0,s),i.slice(s+1)],2),a=o[0],u=o[1];if(a.trim()===t)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,so||(so=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),Co=null,wo=new Te("TRANSITION_ID"),So=[{provide:ds,useFactory:function(e,t,n){return function(){n.get(vs).donePromise.then((function(){var n=oo();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[wo,yo,ti],multi:!0}],Eo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){me.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},me.getAllAngularTestabilities=function(){return e.getAllTestabilities()},me.getAllAngularRootElements=function(){return e.getAllRootElements()},me.frameworkStabilizers||(me.frameworkStabilizers=[]),me.frameworkStabilizers.push((function(e){var t=me.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?oo().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Zs=t}}]),e}(),To=new Te("EventManagerPlugins"),Ao=((ho=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||ho)(Re(To),Re(Rs))},ho.\u0275prov=Y({token:ho,factory:ho.\u0275fac}),ho),xo=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=oo().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),Io=((vo=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value: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)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||vo)},vo.\u0275prov=Y({token:vo,factory:vo.\u0275fac}),vo),Po=((fo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return _createClass(n,[{key:"_addStylesToHost",value: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))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return oo().remove(e)}))}}]),n}(Io)).\u0275fac=function(e){return new(e||fo)(Re(yo))},fo.\u0275prov=Y({token:fo,factory:fo.\u0275fac}),fo),Oo={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/"},Do=/%COMP%/g;function No(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?No(e,i,n):(i=i.replace(Do,e),n.push(i))}return n}function Fo(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Ro,Mo,jo,Ho,Vo=((Ro=function(){function e(t,n,r){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Lo(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ze.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Bo(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case ze.Native:case ze.ShadowDom:return new zo(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=No(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Ro)(Re(Ao),Re(Po),Re(ys))},Ro.\u0275prov=Y({token:Ro,factory:Ro.\u0275fac}),Ro),Lo=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Oo[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=Oo[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=Oo[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&Pi.DashCase?e.style.setProperty(t,n,r&Pi.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Pi.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Fo(n)):this.eventManager.addEventListener(e,t,Fo(n))}}]),e}(),Bo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,s){var o;_classCallCheck(this,n),(o=t.call(this,e)).component=i;var a,u=No(s+"-"+i.id,i.styles,[]);return r.addStyles(u),o.contentAttr="_ngcontent-%COMP%".replace(Do,s+"-"+i.id),o.hostAttr=(a=s+"-"+i.id,"_nghost-%COMP%".replace(Do,a)),o}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(Lo),zo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,s){var o;_classCallCheck(this,n),(o=t.call(this,e)).sharedStylesHost=r,o.hostEl=i,o.component=s,o.shadowRoot=s.encapsulation===ze.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=No(s.id,s.styles,[]),u=0;u<a.length;u++){var l=document.createElement("style");l.textContent=a[u],o.shadowRoot.appendChild(l)}return o}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Lo),qo=((Mo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(xo)).\u0275fac=function(e){return new(e||Mo)(Re(yo))},Mo.\u0275prov=Y({token:Mo,factory:Mo.\u0275fac}),Mo),Qo=["alt","control","meta","shift"],Ko={"\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"},Zo={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"},Uo={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Wo=((jo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),s=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return oo().onAndCancel(e,i.domEventName,s)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),s="";if(Qo.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")})),s+=i,0!=t.length||0===i.length)return null;var o={};return o.domEventName=r,o.fullKey=s,o}},{key:"getEventFullKey",value:function(e){var t="",n=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&&Zo.hasOwnProperty(t)&&(t=Zo[t]))}return Ko[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Qo.forEach((function(r){r!=n&&(0,Uo[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(xo)).\u0275fac=function(e){return new(e||jo)(Re(yo))},jo.\u0275prov=Y({token:jo,factory:jo.\u0275fac}),jo),Go=Gs(no,"browser",[{provide:gs,useValue:"browser"},{provide:ms,useValue:function(){bo.makeCurrent(),Eo.init()},multi:!0},{provide:yo,useFactory:function(){return function(e){ut=e}(document),document},deps:[]}]),Jo=[[],{provide:zr,useValue:"root"},{provide:Cn,useFactory:function(){return new Cn},deps:[]},{provide:To,useClass:qo,multi:!0,deps:[yo,Rs,gs]},{provide:To,useClass:Wo,multi:!0,deps:[yo]},[],{provide:Vo,useClass:Vo,deps:[Ao,Po,ys]},{provide:Ii,useExisting:Vo},{provide:Io,useExisting:Po},{provide:Po,useClass:Po,deps:[yo]},{provide:Qs,useClass:Qs,deps:[Rs]},{provide:Ao,useClass:Ao,deps:[To,Rs]},[]],$o=((Ho=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:ys,useValue:t.appId},{provide:wo,useExisting:ys},So]}}}]),e}()).\u0275mod=Je({type:Ho}),Ho.\u0275inj=X({factory:function(e){return new(e||Ho)(Re(Ho,12))},providers:Jo,imports:[ko,io]}),Ho);"undefined"!=typeof window&&window;var Yo,Xo,ea,ta,na,ra,ia,sa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._value=e,r}return _createClass(n,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(T),oa=((Yo=function(){function e(){_classCallCheck(this,e),this.initialSetting={oldValue:null,newValue:"bootstrap"},this.themeSelection=new sa(this.initialSetting)}return _createClass(e,[{key:"setTheme",value:function(e){this.themeSelection.next({oldValue:this.themeSelection.value.newValue,newValue:e})}},{key:"themeChanges",value:function(){return this.themeSelection.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||Yo)},Yo.\u0275prov=Y({token:Yo,factory:Yo.\u0275fac,providedIn:"root"}),Yo),aa=function(e){return{ovalSelected:e}},ua=function(e){return{buttonSelected:e}},la=((ia=function(){function e(t){_classCallCheck(this,e),this.themeService=t,this.theme="bootstrap"}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"toggleTheme",value:function(){this.theme="bootstrap"===this.theme?"bootstrap-dark":"bootstrap",this.themeService.setTheme(this.theme)}}]),e}()).\u0275fac=function(e){return new(e||ia)(fi(oa))},ia.\u0275cmp=Ze({type:ia,selectors:[["app-theme-toggle"]],decls:2,vars:6,consts:[[1,"oval",3,"ngClass","click"],[1,"button",3,"ngClass"]],template:function(e,t){1&e&&(yi(0,"div",0),gi("click",(function(){return t.toggleTheme()})),_i(1,"div",1),pi()),2&e&&(di("ngClass",hs(2,aa,"bootstrap"==t.theme)),Qn(wt(),Ct(),Vt()+1,At()),di("ngClass",hs(4,ua,"bootstrap"==t.theme)))},directives:[go],styles:[".oval[_ngcontent-%COMP%]{position:relative;margin:10px;width:50px;height:25px;border-radius:25px;background-color:#0275d8;transition:background-color .15s ease-in-out}.ovalSelected[_ngcontent-%COMP%]{background:#fadc04}.button[_ngcontent-%COMP%]{position:absolute;margin-top:3px;margin-left:3px;left:0;width:20px;height:20px;border-radius:50%;background-color:#f7f7f7;transition:left .15s ease-in-out,background-color .15s ease-in-out}.buttonSelected[_ngcontent-%COMP%]{left:25px;background-color:#919191}"]}),ia),ca=((ra=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ra)},ra.\u0275cmp=Ze({type:ra,selectors:[["app-table"]],decls:31,vars:0,consts:[[1,"table-sample"],[1,"table"]],template:function(e,t){1&e&&(yi(0,"div",0),yi(1,"table",1),yi(2,"thead"),yi(3,"th"),Ci(4,"Column 1"),pi(),yi(5,"th"),Ci(6,"Column 2"),pi(),yi(7,"th"),Ci(8,"Column 3"),pi(),pi(),yi(9,"tbody"),yi(10,"tr"),yi(11,"td"),Ci(12,"Value 1"),pi(),yi(13,"td"),Ci(14,"Value 2"),pi(),yi(15,"td"),Ci(16,"Value 3"),pi(),pi(),yi(17,"tr"),yi(18,"td"),Ci(19,"Value 1"),pi(),yi(20,"td"),Ci(21,"Value 2"),pi(),yi(22,"td"),Ci(23,"Value 3"),pi(),pi(),yi(24,"tr"),yi(25,"td"),Ci(26,"Value 1"),pi(),yi(27,"td"),Ci(28,"Value 2"),pi(),yi(29,"td"),Ci(30,"Value 3"),pi(),pi(),pi(),pi(),pi())},styles:[".table-sample[_ngcontent-%COMP%]{width:400px}"]}),ra),ha=((na=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||na)},na.\u0275cmp=Ze({type:na,selectors:[["app-colours"]],decls:17,vars:0,consts:[[1,"ro"],[1,"btn","btn-primary"],[1,"btn","btn-secondary"],[1,"btn","btn-success"],[1,"btn","btn-danger"],[1,"btn","btn-warning"],[1,"btn","btn-info"],[1,"btn","btn-light"],[1,"btn","btn-dark"]],template:function(e,t){1&e&&(yi(0,"div",0),yi(1,"button",1),Ci(2," Primary "),pi(),yi(3,"button",2),Ci(4," Secondary "),pi(),yi(5,"button",3),Ci(6," Success "),pi(),yi(7,"button",4),Ci(8," Danger "),pi(),yi(9,"button",5),Ci(10," Warning "),pi(),yi(11,"button",6),Ci(12," Info "),pi(),yi(13,"button",7),Ci(14," Light "),pi(),yi(15,"button",8),Ci(16," Dark "),pi(),pi())},styles:["button[_ngcontent-%COMP%]{margin-right:10px;margin-bottom:10px}"]}),na),fa=((ta=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ta)},ta.\u0275cmp=Ze({type:ta,selectors:[["app-card"]],decls:10,vars:0,consts:[[1,"card",2,"width","20rem","margin-top","20px"],[1,"card-header"],[1,"card-body"],[1,"card-title"],[1,"card-text"],["href","#",1,"btn","btn-primary"]],template:function(e,t){1&e&&(yi(0,"div",0),yi(1,"h5",1),Ci(2,"Featured"),pi(),yi(3,"div",2),yi(4,"h5",3),Ci(5,"Special title treatment"),pi(),yi(6,"p",4),Ci(7,"With supporting text below as a natural lead-in to additional content."),pi(),yi(8,"a",5),Ci(9,"Go somewhere"),pi(),pi(),pi())},styles:[""]}),ta),da=((ea=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ea)},ea.\u0275cmp=Ze({type:ea,selectors:[["app-credits"]],decls:13,vars:0,consts:[[1,"credits"],["href","https://github.com/tomonline/angular-bootstrap-switcher","target","_blank"],["href","https://iamtom.online/home","target","_blank"]],template:function(e,t){1&e&&(yi(0,"div",0),yi(1,"p"),Ci(2,"Sample page referenced by : "),yi(3,"i"),Ci(4,"Medium article"),pi(),pi(),yi(5,"p"),Ci(6,"Source code on be found on : "),yi(7,"a",1),Ci(8,"GitHub.com"),pi(),pi(),yi(9,"p"),Ci(10,"Contact Tom Matthews at : "),yi(11,"a",2),Ci(12,"IamTom Online"),pi(),pi(),pi())},styles:[".credits[_ngcontent-%COMP%]{border-style:dashed;border-radius:0;padding:10px;font-family:Courier New,Courier,monospace;font-size:.8em}.credits[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0!important}.bootstrap[_nghost-%COMP%] .credits[_ngcontent-%COMP%], .bootstrap [_nghost-%COMP%] .credits[_ngcontent-%COMP%]{background-color:#d3d3d3;border-color:#a9a9a9}.bootstrap[_nghost-%COMP%] .credits[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .bootstrap [_nghost-%COMP%] .credits[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#414141}.bootstrap-dark[_nghost-%COMP%] .credits[_ngcontent-%COMP%], .bootstrap-dark [_nghost-%COMP%] .credits[_ngcontent-%COMP%]{background-color:#212529;border-color:#a9a9a9}.bootstrap-dark[_nghost-%COMP%] .credits[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .bootstrap-dark [_nghost-%COMP%] .credits[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d3d3d3}"]}),ea),va=((Xo=function(){function e(t,n){_classCallCheck(this,e),this.themeService=t,this.renderer=n}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.themeService.themeChanges().subscribe((function(t){t.oldValue&&e.renderer.removeClass(document.body,t.oldValue),e.renderer.addClass(document.body,t.newValue)}))}}]),e}()).\u0275fac=function(e){return new(e||Xo)(fi(oa),fi(Oi))},Xo.\u0275cmp=Ze({type:Xo,selectors:[["app-root"]],decls:15,vars:0,consts:[[1,"d-flex","align-items-center","p-3"],[1,"d-inline-block"],[1,"p-3"]],template:function(e,t){1&e&&(yi(0,"div",0),yi(1,"div",1),yi(2,"h2"),Ci(3,"Bootstrap Theme Switcher"),pi(),pi(),yi(4,"div",1),_i(5,"app-theme-toggle"),pi(),pi(),_i(6,"hr"),yi(7,"div",2),yi(8,"h4"),Ci(9,"Sample Content"),pi(),_i(10,"app-table"),_i(11,"app-colours"),_i(12,"app-card"),_i(13,"hr"),_i(14,"app-credits"),pi())},directives:[la,ca,ha,fa,da],styles:[""]}),Xo),ya=function e(){_classCallCheck(this,e)};function pa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function _a(e){return{type:6,styles:e,offset:null}}function ma(e){Promise.resolve(null).then(e)}var ga=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;ma((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),ka=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,s=0,o=this.players.length;0==o?ma((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++r==o&&n._onFinish()})),e.onDestroy((function(){++i==o&&n._onDestroy()})),e.onStart((function(){++s==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value: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=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value: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)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function ba(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ca(e){switch(e.length){case 0:return new ga;case 1:return e[0];default:return new ka(e)}}function wa(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],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,o),a){case"!":a=i[n];break;case"*":a=s[n];break;default:a=t.normalizeStyleValue(n,r,a,o)}c[r]=a})),r||a.push(c),l=c,u=n})),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return a}function Sa(e,t,n,r){switch(t){case"start":e.onStart((function(){return r(n&&Ea(n,"start",e))}));break;case"done":e.onDone((function(){return r(n&&Ea(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return r(n&&Ea(n,"destroy",e))}))}}function Ea(e,t,n){var r=n.totalTime,i=Ta(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),s=e._data;return null!=s&&(i._data=s),i}function Ta(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Aa(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 xa(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Ia=function(e,t){return!1},Pa=function(e,t){return!1},Oa=function(e,t,n){return[]},Da=ba();(Da||"undefined"!=typeof Element)&&(Ia=function(e,t){return e.contains(t)},Pa=function(){if(Da||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])}:Pa}(),Oa=function(e,t,n){var r=[];if(n)r.push.apply(r,_toConsumableArray(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var Na=null,Fa=!1;function Ra(e){Na||(Na=("undefined"!=typeof document?document.body:null)||{},Fa=!!Na.style&&"WebkitAppearance"in Na.style);var t=!0;return Na.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Na.style)&&Fa)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Na.style),t}var Ma=Pa,ja=Ia,Ha=Oa;function Va(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 La,Ba=((La=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Ra(e)}},{key:"matchesElement",value:function(e,t){return Ma(e,t)}},{key:"containsElement",value:function(e,t){return ja(e,t)}},{key:"query",value:function(e,t,n){return Ha(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new ga(n,r)}}]),e}()).\u0275fac=function(e){return new(e||La)},La.\u0275prov=Y({token:La,factory:La.\u0275fac}),La),za=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new Ba,e}();function qa(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Qa(parseFloat(t[1]),t[2])}function Qa(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Ka(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,s="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=Qa(parseFloat(o[1]),o[2]);var a=o[3];null!=a&&(i=Qa(parseFloat(a),o[4]));var u=o[5];u&&(s=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),i<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 "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:s}}(e,t,n)}function Za(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function Ua(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else Za(e,n);return n}function Wa(e,t,n){return n?t+":"+n+";":""}function Ga(e){for(var t="",n=0;n<e.style.length;n++){var r=e.style.item(n);t+=Wa(0,r,e.style.getPropertyValue(r))}for(var i in e.style)e.style.hasOwnProperty(i)&&!i.startsWith("_")&&(t+=Wa(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[i]));e.setAttribute("style",t)}function Ja(e,t,n){e.style&&(Object.keys(t).forEach((function(r){var i=iu(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]})),ba()&&Ga(e))}function $a(e,t){e.style&&(Object.keys(t).forEach((function(t){var n=iu(t);e.style[n]=""})),ba()&&Ga(e))}function Ya(e){return Array.isArray(e)?1==e.length?e[0]:pa(e):e}var Xa=new RegExp("{{\\s*(.+?)\\s*}}","g");function eu(e){var t=[];if("string"==typeof e){for(var n;n=Xa.exec(e);)t.push(n[1]);Xa.lastIndex=0}return t}function tu(e,t,n){var r=e.toString(),i=r.replace(Xa,(function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()}));return i==r?e:i}function nu(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var ru=/-+([a-z0-9])/g;function iu(e){return e.replace(ru,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function su(e,t){return 0===e||0===t}function ou(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var i=t[0],s=[];if(r.forEach((function(e){i.hasOwnProperty(e)||s.push(e),i[e]=n[e]})),s.length)for(var o=function(){var n=t[a];s.forEach((function(t){n[t]=uu(e,t)}))},a=1;a<t.length;a++)o()}return t}function au(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 uu(e,t){return window.getComputedStyle(e)[t]}var lu=new Set(["true","1"]),cu=new Set(["false","0"]);function hu(e,t){var n=lu.has(e)||cu.has(e),r=lu.has(t)||cu.has(t);return function(i,s){var o="*"==e||e==i,a="*"==t||t==s;return!o&&n&&"boolean"==typeof i&&(o=i?lu.has(e):cu.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?lu.has(t):cu.has(t)),o&&a}}var fu=new RegExp("s*:selfs*,?","g");function du(e,t,n){return new vu(e).build(t,n)}var vu=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new yu(t);return this._resetContextStyleTimingState(n),au(this,Ya(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,r=t.queryCount=0,i=t.depCount=0,s=[],o=[];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,s.push(n.visitState(a,t))})),a.name=u}else if(1==e.type){var l=n.visitTransition(e,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:e.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,s=r||{};if(n.styles.forEach((function(e){if(pu(e)){var t=e;Object.keys(t).forEach((function(e){eu(t[e]).forEach((function(e){s.hasOwnProperty(e)||i.add(e)}))}))}})),i.size){var o=nu(i.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,r,i,s=au(this,Ya(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,i=[],"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 "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var s=i[1],o=i[2],a=i[3];t.push(hu(s,a)),"<"!=o[0]||"*"==s&&"*"==a||t.push(hu(a,s))}(e,i,r)})):i.push(n),i),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:_u(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return au(n,e,t)})),options:_u(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,s=e.steps.map((function(e){t.currentTime=r;var s=au(n,e,t);return i=Math.max(i,t.currentTime),s}));return t.currentTime=i,{type:3,steps:s,options:_u(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return mu(Ka(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var i=mu(0,0,"");return i.dynamic=!0,i.strValue=r,i}return mu((n=n||Ka(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:_a({});if(5==i.type)n=this.visitKeyframes(i,t);else{var s=e.styles,o=!1;if(!s){o=!0;var a={};r.easing&&(a.easing=r.easing),s=_a(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(s,t);u.isEmptyStep=o,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var r=!1,i=null;return n.forEach((function(e){if(pu(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var s in t)if(t[s].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(r){if(n._driver.validateStyleProperty(r)){var o,a,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[r],d=!0;f&&(s!=i&&s>=f.startTime&&i<=f.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(s,'ms" and "').concat(i,'ms"')),d=!1),s=f.startTime),d&&(h[r]={startTime:s,endTime:i}),t.options&&(o=e[r],a=t.options,u=t.errors,l=a.params||{},(c=eu(o)).length&&c.forEach((function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value: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 i=0,s=[],o=!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(pu(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(pu(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,o=o||c<u,u=c,s.push(c),r}));a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,h=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));var f=c-1,d=t.currentTime,v=t.currentAnimateTimings,y=v.duration;return l.forEach((function(e,i){var o=h>0?i==f?1:h*i:s[i],a=o*y;t.currentTime=d+v.delay+a,v.duration=a,n._validateStyleAst(e,t),e.offset=o,r.styles.push(e)})),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:au(this,Ya(e.animation),t),options:_u(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:_u(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:_u(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(fu,"")),[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),s=i[0],o=i[1];t.currentQuerySelector=n.length?n+" "+s:s,Aa(t.collectedStyles,t.currentQuerySelector,{});var a=au(this,Ya(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:_u(e.options)}}},{key:"visitStagger",value: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"}:Ka(e.timings,t.errors,!0);return{type:12,animation:au(this,Ya(e.animation),t),timings:n,options:null}}}]),e}(),yu=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function pu(e){return!Array.isArray(e)&&"object"==typeof e}function _u(e){var t;return e?(e=Za(e)).params&&(e.params=(t=e.params)?Za(t):null):e={},e}function mu(e,t,n){return{duration:e,delay:t,easing:n}}function gu(e,t,n,r,i,s){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var ku=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),bu=new RegExp(":enter","g"),Cu=new RegExp(":leave","g");function wu(e,t,n,r,i){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},a=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Su).buildKeyframes(e,t,n,r,i,s,o,a,u,l)}var Su=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,s,o,a,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new ku;var c=new Tu(e,t,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([s],null,c.errors,a),au(this,n,c);var h=c.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(o).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([o],null,c.errors,a)}return h.length?h.map((function(e){return e.buildKeyframes()})):[gu(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);i!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?qa(n.duration):null,s=null!=n.delay?qa(n.delay):null;return 0!==i&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,i,s);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),au(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&((i=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Eu);var o=qa(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach((function(e){return au(n,e,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?qa(e.options.delay):0;e.steps.forEach((function(o){var a=t.createSubContext(e.options);s&&a.delayNextStep(s),au(n,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)})),r.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Ka(t.params?tu(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach((function(e){s.forwardTime((e.offset||0)*i),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?qa(i.delay):0;s&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Eu);var o=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach((function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);s&&a.delayNextStep(s),r===t.element&&(u=a.currentTimeline),au(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,a.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,s=Math.abs(i.duration),o=s*(t.currentQueryTotal-1),a=s*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;au(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}]),e}(),Eu={},Tu=function(){function e(t,n,r,i,s,o,a,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Eu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Au(this._driver,n,0),a.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=qa(r.duration)),null!=r.delay&&(i.delay=qa(r.delay));var s=r.params;if(s){var o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach((function(e){t&&o.hasOwnProperty(e)||(o[e]=tu(s[e],o,n.errors))}))}}}},{key:"_copyOptions",value: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}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,s=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Eu,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new xu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,s){var o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(bu,"."+this._enterClassName)).replace(Cu,"."+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)),o.push.apply(o,_toConsumableArray(a))}return i||0!=o.length||s.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),e}(),Au=function(){function e(t,n,r,i){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value: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}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value: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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var s=r&&r.params||{},o=function(e,t){var n,r={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){r[e]="*"})):Ua(e,!1,r)})),r}(e,this._globalTimelineStyles);Object.keys(o).forEach((function(e){var t=tu(o[e],s,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value: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])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(s,o){var a=Ua(s,!0);Object.keys(a).forEach((function(e){var r=a[e];"!"==r?t.add(e):"*"==r&&n.add(e)})),r||(a.offset=o/e.duration),i.push(a)}));var s=t.size?nu(t.values()):[],o=n.size?nu(n.values()):[];if(r){var a=i[0],u=Za(a);a.offset=0,u.offset=1,i=[a,u]}return gu(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),xu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,s,o,a){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,r,a.delay)).element=r,u.keyframes=i,u.preStyleProps=s,u.postStyleProps=o,u._stretchStartingKeyframe=l,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var s=[],o=r+n,a=n/o,u=Ua(e[0],!1);u.offset=0,s.push(u);var l=Ua(e[0],!1);l.offset=Iu(a),s.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=Ua(e[h],!1);f.offset=Iu((n+f.offset*r)/o),s.push(f)}r=o,n=0,i="",e=s}return gu(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(Au);function Iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Pu,Ou,Du=function e(){_classCallCheck(this,e)},Nu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return iu(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",s=n.toString().trim();if(Fu[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return s+i}}]),n}(Du),Fu=(Pu="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(","),Ou={},Pu.forEach((function(e){return Ou[e]=!0})),Ou);function Ru(e,t,n,r,i,s,o,a,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Mu={},ju=function(){function e(t,n,r){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return _createClass(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some((function(e){return e(t,n,r,i)}))}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],s=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):s}},{key:"build",value:function(e,t,n,r,i,s,o,a,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Mu,f=this.buildStyles(n,o&&o.params||Mu,c),d=a&&a.params||Mu,v=this.buildStyles(r,d,c),y=new Set,p=new Map,_=new Map,m="void"===r,g={params:Object.assign(Object.assign({},h),d)},k=l?[]:wu(e,t,this.ast.animation,i,s,f,v,g,u,c),b=0;if(k.forEach((function(e){b=Math.max(e.duration+e.delay,b)})),c.length)return Ru(t,this._triggerName,n,r,m,f,v,[],[],p,_,b,c);k.forEach((function(e){var n=e.element,r=Aa(p,n,{});e.preStyleProps.forEach((function(e){return r[e]=!0}));var i=Aa(_,n,{});e.postStyleProps.forEach((function(e){return i[e]=!0})),n!==t&&y.add(n)}));var C=nu(y.values());return Ru(t,this._triggerName,n,r,m,f,v,k,C,p,_,b)}}]),e}(),Hu=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},r=Za(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 i=e;Object.keys(i).forEach((function(e){var s=i[e];s.length>1&&(s=tu(s,r,t)),n[e]=s}))}})),n}}]),e}(),Vu=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){r.states[e.name]=new Hu(e.style,e.options&&e.options.params||{})})),Lu(this.states,"true","1"),Lu(this.states,"false","0"),n.transitions.forEach((function(e){r.transitionFactories.push(new ju(t,e,r.states))})),this.fallbackTransition=new ju(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find((function(i){return i.match(e,t,n,r)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function Lu(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Bu=new ku,zu=function(){function e(t,n,r){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],r=du(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}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=wa(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],o=this._animations[e],a=new Map;if(o?(n=wu(this._driver,t,o,"ng-enter","ng-leave",{},{},i,Bu,s)).forEach((function(e){var t=Aa(a,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(s.push("The requested animation doesn't exist or has already been destroyed"),n=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));a.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=r._driver.computeStyle(t,n,"*")}))}));var u=Ca(n.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}},{key:"destroy",value: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)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,r){var i=Ta(t,"","","");return Sa(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),qu=[],Qu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ku={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var s=Za(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value: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])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Uu=new Zu("void"),Wu=function(){function e(t,n,r){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,tl(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,r){var i,s=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=Aa(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};o.push(a);var u=Aa(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(tl(e,"ng-trigger"),tl(e,"ng-trigger-"+t),u[t]=Uu),function(){s._engine.afterFlush((function(){var e=o.indexOf(a);e>=0&&o.splice(e,1),s._triggers[t]||delete u[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(t),o=new Ju(this.id,t,e),a=this._engine.statesByElement.get(e);a||(tl(e,"ng-trigger"),tl(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],l=new Zu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[t]=l,u||(u=Uu),"void"===l.value||u.value!==l.value){var c=Aa(this._engine.playersByElement,e,[]);c.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var h=s.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!i)return;h=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:o,isFallbackTransition:f}),f||(tl(e,"ng-animate-queued"),o.onStart((function(){nl(e,"ng-animate-queued")}))),o.onDone((function(){var t=r.players.indexOf(o);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(o);i>=0&&n.splice(i,1)}})),this.players.push(o),c.push(o),o}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var s=n[i];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(u.params,l.params)){var d=[],v=s.matchStyles(u.value,u.params,d),y=s.matchStyles(l.value,l.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush((function(){$a(e,v),Ja(e,y)}))}}},{key:"deregister",value: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})))}))}},{key:"clearElementCache",value: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))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,r=this._engine.driver.query(e,".ng-trigger",!0);r.forEach((function(e){if(!e.__ng_removed){var r=n._engine.fetchNamespacesByElement(e);r.size?r.forEach((function(n){return n.triggerLeaveAnimation(e,t,!1,!0)})):n.clearElementCache(e)}})),this._engine.afterFlushAnimationsDone((function(){return r.forEach((function(e){return n.clearElementCache(e)}))}))}},{key:"triggerLeaveAnimation",value:function(e,t,n,r){var i=this,s=this._engine.statesByElement.get(e);if(s){var o=[];if(Object.keys(s).forEach((function(t){if(i._triggers[t]){var n=i.trigger(e,t,"void",r);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Ca(o).onDone((function(){return i._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach((function(n){var i=n.name;if(!r.has(i)){r.add(i);var s=t._triggers[i].fallbackTransition,o=t._engine.statesByElement.get(e)[i]||Uu,a=new Zu("void"),u=new Ju(t.id,i,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:i,transition:s,fromState:o,toState:a,player:u,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var s=r.players.length?r.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else for(var o=e;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{var a=e.__ng_removed;a&&a!==Qu||(r.afterFlush((function(){return n.clearElementCache(e)})),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){tl(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach((function(r){var i=r.player;if(!i.destroyed){var s=r.element,o=t._elementListeners.get(s);o&&o.forEach((function(t){if(t.name==r.triggerName){var n=Ta(s,r.triggerName,r.fromState.value,r.toState.value);n._data=e,Sa(r.player,t.phase,n,t.callback)}})),i.markedForDestroy?t._engine.afterFlush((function(){i.destroy()})):n.push(r)}})),this._queue=[],n.sort((function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:t._engine.driver.containsElement(e.element,n.element)?1:-1}))}},{key:"destroy",value:function(e){this.players.forEach((function(e){return e.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((function(t){return t.element===e}))||t}}]),e}(),Gu=function(){function e(t,n,r){_classCallCheck(this,e),this.bodyNode=t,this.driver=n,this._normalizer=r,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 _createClass(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var n=new Wu(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+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}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value: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)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var s=n[r[i]].namespaceId;if(s){var o=this._fetchNamespace(s);o&&t.add(o)}}return t}},{key:"trigger",value:function(e,t,n,r){if($u(t)){var i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}},{key:"insertNode",value:function(e,t,n,r){if($u(t)){var i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),tl(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),nl(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if($u(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return $u(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value: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)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return Ca(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Qu,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)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)tl(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(var s=0;s<i.length;s++)i[s]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);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 a=this._whenQuietFns;this._whenQuietFns=[],n.length?Ca(n).onDone((function(){a.forEach((function(e){return e()}))})):a.forEach((function(e){return e()}))}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,r=new ku,i=[],s=new Map,o=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach((function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)c.add(t[r])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),d=el(f,this.collectedEnterElements),v=new Map,y=0;d.forEach((function(e,t){var n="ng-enter"+y++;v.set(t,n),e.forEach((function(e){return tl(e,n)}))}));for(var p=[],_=new Set,m=new Set,g=0;g<this.collectedLeaveElements.length;g++){var k=this.collectedLeaveElements[g],b=k.__ng_removed;b&&b.setForRemoval&&(p.push(k),_.add(k),b.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach((function(e){return _.add(e)})):m.add(k))}var C=new Map,w=el(f,Array.from(_));w.forEach((function(e,t){var n="ng-leave"+y++;C.set(t,n),e.forEach((function(e){return tl(e,n)}))})),e.push((function(){d.forEach((function(e,t){var n=v.get(t);e.forEach((function(e){return nl(e,n)}))})),w.forEach((function(e,t){var n=C.get(t);e.forEach((function(e){return nl(e,n)}))})),p.forEach((function(e){n.processLeaveNode(e)}))}));for(var S=[],E=[],T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach((function(e){var t=e.player,s=e.element;if(S.push(t),n.collectedEnterElements.length){var c=s.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,s),d=C.get(s),y=v.get(s),p=n._buildInstruction(e,r,y,d,f);if(p.errors&&p.errors.length)E.push(p);else{if(f)return t.onStart((function(){return $a(s,p.fromStyles)})),t.onDestroy((function(){return Ja(s,p.toStyles)})),void i.push(t);if(e.isFallbackTransition)return t.onStart((function(){return $a(s,p.fromStyles)})),t.onDestroy((function(){return Ja(s,p.toStyles)})),void i.push(t);p.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(s,p.timelines),o.push({instruction:p,player:t,element:s}),p.queriedElements.forEach((function(e){return Aa(a,e,[]).push(t)})),p.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}})),p.postStyleProps.forEach((function(e,t){var n=Object.keys(e),r=l.get(t);r||l.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}))}}));if(E.length){var A=[];E.forEach((function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return A.push("- ".concat(e,"\n"))}))})),S.forEach((function(e){return e.destroy()})),this.reportError(A)}var x=new Map,I=new Map;o.forEach((function(e){var t=e.element;r.has(t)&&(I.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))})),i.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Aa(x,t,[]).push(e),e.destroy()}))}));var P=p.filter((function(e){return il(e,u,l)})),O=new Map;Xu(O,this.driver,m,l,"*").forEach((function(e){il(e,u,l)&&P.push(e)}));var D=new Map;d.forEach((function(e,t){Xu(D,n.driver,new Set(e),u,"!")})),P.forEach((function(e){var t=O.get(e),n=D.get(e);O.set(e,Object.assign(Object.assign({},t),n))}));var N=[],F=[],R={};o.forEach((function(e){var t=e.element,o=e.player,a=e.instruction;if(r.has(t)){if(c.has(t))return o.onDestroy((function(){return Ja(t,a.toStyles)})),o.disabled=!0,o.overrideTotalTime(a.totalTime),void i.push(o);var u=R;if(I.size>1){for(var l=t,h=[];l=l.parentNode;){var f=I.get(l);if(f){u=f;break}h.push(l)}h.forEach((function(e){return I.set(e,u)}))}var d=n._buildAnimation(o.namespaceId,a,x,s,D,O);if(o.setRealPlayer(d),u===R)N.push(o);else{var v=n.playersByElement.get(u);v&&v.length&&(o.parentPlayer=Ca(v)),i.push(o)}}else $a(t,a.fromStyles),o.onDestroy((function(){return Ja(t,a.toStyles)})),F.push(o),c.has(t)&&i.push(o)})),F.forEach((function(e){var t=s.get(e.element);if(t&&t.length){var n=Ca(t);e.setRealPlayer(n)}})),i.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var M=0;M<p.length;M++){var j=p[M],H=j.__ng_removed;if(nl(j,"ng-leave"),!H||!H.hasAnimation){var V=[];if(a.size){var L=a.get(j);L&&L.length&&V.push.apply(V,_toConsumableArray(L));for(var B=this.driver.query(j,".ng-animating",!0),z=0;z<B.length;z++){var q=a.get(B[z]);q&&q.length&&V.push.apply(V,_toConsumableArray(q))}}var Q=V.filter((function(e){return!e.destroyed}));Q.length?rl(this,j,Q):this.processLeaveNode(j)}}return p.length=0,N.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()})),N}},{key:"elementContainsData",value:function(e,t){var n=!1,r=t.__ng_removed;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}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,r,i){var s=[];if(t){var o=this.playersByQueriedElement.get(e);o&&(s=o)}else{var a=this.playersByElement.get(e);if(a){var u=!i||"void"==i;a.forEach((function(e){e.queued||(u||e.triggerName==r)&&s.push(e)}))}}return(n||r)&&(s=s.filter((function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)}))),s}},{key:"_beforeAnimationBuild",value:function(e,t,n){var r,i=this,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName,u=_createForOfIteratorHelper(t.timelines);try{var l=function(){var e=r.value.element,u=e!==s,l=Aa(n,e,[]);i._getPreviousPlayers(e,u,o,a,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))};for(u.s();!(r=u.n()).done;)l()}catch(c){u.e(c)}finally{u.f()}$a(s,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,r,i,s){var o=this,a=t.triggerName,u=t.element,l=[],c=new Set,h=new Set,f=t.timelines.map((function(t){var f=t.element;c.add(f);var d=f.__ng_removed;if(d&&d.removedBeforeQueried)return new ga(t.duration,t.delay);var v,y,p=f!==u,_=(v=(n.get(f)||qu).map((function(e){return e.getRealPlayer()})),y=[],function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];i instanceof ka?e(i.players,n):n.push(i)}}(v,y),y).filter((function(e){return!!e.element&&e.element===f})),m=i.get(f),g=s.get(f),k=wa(0,o._normalizer,0,t.keyframes,m,g),b=o._buildPlayer(t,k,_);if(t.subTimeline&&r&&h.add(f),p){var C=new Ju(e,a,f);C.setRealPlayer(b),l.push(C)}return b}));l.forEach((function(e){Aa(o.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 i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){var s=r.indexOf(n);r.splice(s,1)}0==r.length&&delete e[t]}return r}(o.playersByQueriedElement,e.element,e)}))})),c.forEach((function(e){return tl(e,"ng-animating")}));var d=Ca(f);return d.onDestroy((function(){c.forEach((function(e){return nl(e,"ng-animating")})),Ja(u,t.toStyles)})),h.forEach((function(e){Aa(r,e,[]).push(d)})),d}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ga(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),Ju=function(){function e(t,n,r){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new ga,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return Sa(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value: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()}))}},{key:"_queueEvent",value:function(e,t){Aa(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function $u(e){return e&&1===e.nodeType}function Yu(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Xu(e,t,n,r,i){var s=[];n.forEach((function(e){return s.push(Yu(e))}));var o=[];r.forEach((function(n,r){var s={};n.forEach((function(e){var n=s[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Ku,o.push(r))})),e.set(r,s)}));var a=0;return n.forEach((function(e){return Yu(e,s[a++])})),o}function el(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),i=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var s=i.get(t);if(s)return s;var o=t.parentNode;return s=n.has(o)?o:r.has(o)?1:e(o),i.set(t,s),s}(e);1!==t&&n.get(t).push(e)})),n}function tl(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function nl(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function rl(e,t,n){Ca(n).onDone((function(){return e.processLeaveNode(t)}))}function il(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach((function(e){return i.add(e)})):t.set(e,r),n.delete(e),!0}var sl=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Gu(t,n,r),this._timelineEngine=new zu(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var s=e+"-"+r,o=this._triggerCache[s];if(!o){var a=[],u=du(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(a.join("\n - ")));o=function(e,t){return new Vu(e,t)}(r,u),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,r,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=_slicedToArray(xa(n),2),s=i[0],o=i[1];this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var s=_slicedToArray(xa(n),2),o=s[0],a=s[1];return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function ol(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=ul(t[0]),t.length>1&&(r=ul(t[t.length-1]))):t&&(n=ul(t)),n||r?new al(e,n,r):null}var al=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Ja(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Ja(this._element,this._initialStyles),this._endStyles&&(Ja(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&($a(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($a(this._element,this._endStyles),this._endStyles=null),Ja(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function ul(e){for(var t=null,n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];ll(i)&&((t=t||{})[i]=e[i])}return t}function ll(e){return"display"===e||"position"===e}var cl=function(){function e(t,n,r,i,s,o,a){var u=this;_classCallCheck(this,e),this._element=t,this._name=n,this._duration=r,this._delay=i,this._easing=s,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return _createClass(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=pl(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),yl(e,"",t),vl(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){hl(this._element,this._name,"paused")}},{key:"resume",value:function(){hl(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=fl(this._element,this._name);this._position=e*this._duration,yl(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value: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()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vl(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=pl(e,"").split(","),(r=dl(n,t))>=0&&(n.splice(r,1),yl(e,"",n.join(","))))}}]),e}();function hl(e,t,n){yl(e,"PlayState",n,fl(e,t))}function fl(e,t){var n=pl(e,"");return n.indexOf(",")>0?dl(n.split(","),t):dl([n],t)}function dl(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function vl(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function yl(e,t,n,r){var i="animation"+t;if(null!=r){var s=e.style[i];if(s.length){var o=s.split(",");o[r]=n,n=o.join(",")}}e.style[i]=n}function pl(e,t){return e.style["animation"+t]}var _l=function(){function e(t,n,r,i,s,o,a,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=s,this._finalStyles=a,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+s,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value: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=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new cl(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value: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]:uu(e.element,r))}))}this.currentSnapshot=t}}]),e}(),ml=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=Va(r),i}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(ga),gl=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Ra(e)}},{key:"matchesElement",value:function(e,t){return Ma(e,t)}},{key:"containsElement",value:function(e,t){return ja(e,t)}},{key:"query",value:function(e,t,n){return Ha(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return Va(e)}));var r="@keyframes ".concat(t," {\n"),i="";n.forEach((function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}})),r+=i+"}\n"})),r+="}\n";var s=document.createElement("style");return s.innerHTML=r,s}},{key:"animate",value:function(e,t,n,r,i){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var a=s.filter((function(e){return e instanceof _l})),u={};su(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=ou(e,t,u));if(0==n)return new ml(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=ol(e,t),d=new _l(e,t,c,n,r,i,l,f);return d.onDestroy((function(){var e;(e=h).parentNode.removeChild(e)})),d}},{key:"_notifyFaultyScrubber",value: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}(),kl=function(){function e(t,n,r,i){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value: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()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value: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()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:uu(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),bl=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Cl().toString()),this._cssKeyframesDriver=new gl}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Ra(e)}},{key:"matchesElement",value:function(e,t){return Ma(e,t)}},{key:"containsElement",value:function(e,t){return ja(e,t)}},{key:"query",value:function(e,t,n){return Ha(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,s);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var u={},l=s.filter((function(e){return e instanceof kl}));su(n,r)&&l.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var c=ol(e,t=ou(e,t=t.map((function(e){return Ua(e,!1)})),u));return new kl(e,t,a,c)}}]),e}();function Cl(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var wl,Sl=((wl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:ze.None,styles:[],data:{animation:[]}}),i}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?pa(e):e;return Al(this._renderer,null,t,"register",[n]),new El(t,this._renderer)}}]),n}(ya)).\u0275fac=function(e){return new(e||wl)(Re(Ii),Re(yo))},wl.\u0275prov=Y({token:wl,factory:wl.\u0275fac}),wl),El=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return _createClass(n,[{key:"create",value:function(e,t){return new Tl(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Tl=function(){function e(t,n,r,i){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Al(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}]),e}();function Al(e,t,n,r,i){return e.setProperty(t,"@@".concat(n,":").concat(r),i)}var xl,Il,Pl,Ol,Dl=((xl=function(){function e(t,n,r){_classCallCheck(this,e),this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return _createClass(e,[{key:"createRenderer",value:function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new Nl("",r,this.engine),this._rendererCache.set(r,i)),i}var s=t.id,o=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,e),t.data.animation.forEach((function t(r){Array.isArray(r)?r.forEach(t):n.engine.registerTrigger(s,o,e,r.name,r)})),new Fl(this,o,r,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then((function(){e._microtaskId++}))}},{key:"scheduleListenerCallback",value: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=_slicedToArray(e,2);(0,t[0])(t[1])})),r._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value: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()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||xl)(Re(Ii),Re(sl),Re(Rs))},xl.\u0275prov=Y({token:xl,factory:xl.\u0275fac}),xl),Nl=function(){function e(t,n,r){_classCallCheck(this,e),this.namespaceId=t,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return _createClass(e,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),Fl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,s){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,s)).factory=e,o.namespaceId=r,o}return _createClass(n,[{key:"setProperty",value: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)}},{key:"listen",value:function(e,t,n){var r,i,s=this;if("@"==t.charAt(0)){var o,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),l="";return"@"!=u.charAt(0)&&(i=(r=u).indexOf("."),u=(o=_slicedToArray([r.substring(0,i),r.substr(i+1)],2))[0],l=o[1]),this.engine.listen(this.namespaceId,a,u,l,(function(e){s.factory.scheduleListenerCallback(e._data||-1,n,e)}))}return this.delegate.listen(e,t,n)}}]),n}(Nl),Rl=((Il=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){return _classCallCheck(this,n),t.call(this,e.body,r,i)}return n}(sl)).\u0275fac=function(e){return new(e||Il)(Re(yo),Re(za),Re(Du))},Il.\u0275prov=Y({token:Il,factory:Il.\u0275fac}),Il),Ml=[{provide:za,useFactory:function(){return"function"==typeof Cl()?new bl:new gl}},{provide:new Te("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:ya,useClass:Sl},{provide:Du,useFactory:function(){return new Nu}},{provide:sl,useClass:Rl},{provide:Ii,useFactory:function(e,t,n){return new Dl(e,t,n)},deps:[Vo,sl,Rs]}],jl=((Ol=function e(){_classCallCheck(this,e)}).\u0275mod=Je({type:Ol}),Ol.\u0275inj=X({factory:function(e){return new(e||Ol)},providers:Ml,imports:[$o]}),Ol),Hl=((Pl=function e(){_classCallCheck(this,e)}).\u0275mod=Je({type:Pl,bootstrap:[va]}),Pl.\u0275inj=X({factory:function(e){return new(e||Pl)},providers:[],imports:[[$o,jl]]}),Pl);(function(){if(Sn)throw new Error("Cannot enable prod mode after platform setup.");wn=!1})(),Go().bootstrapModule(Hl).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]]]);