text: !function(){function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}(t,e)||i(t,e)||function(){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 n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 a,u=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){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 i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return u(t,arguments,p(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)})(t)}function u(t,e,n){return(u=v()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=v();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}(self.webpackChunkgit_search=self.webpackChunkgit_search||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7587:function(i,o,c){"use strict";function v(t){return"function"==typeof t}var g=!1,_={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else g&&console.log("RxJS: Back to a better error behavior. Thank you. <3");g=t},get useDeprecatedSynchronousErrorHandling(){return g}};function k(t){setTimeout(function(){throw t},0)}var w={closed:!0,next:function(t){},error:function(t){if(_.useDeprecatedSynchronousErrorHandling)throw t;k(t)},complete:function(){}},b=Array.isArray||function(t){return t&&"number"==typeof t.length};function C(t){return null!==t&&"object"==typeof t}var S,E=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),x=function(){function t(e){y(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return m(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(v(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){e=a instanceof E?A(a.errors):[a]}}if(b(o))for(var u=-1,s=o.length;++u<s;){var l=o[u];if(C(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof E?e=e.concat(A(c.errors)):e.push(c)}}if(e)throw new E(e)}}},{key:"add",value:function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}]),t}();function A(t){return t.reduce(function(t,e){return t.concat(e instanceof E?e.errors:e)},[])}x.EMPTY=((S=new x).closed=!0,S);var T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),O=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;switch(y(this,n),(o=e.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=w;break;case 1:if(!t){o.destination=w;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(d(o))):(o.syncErrorThrowable=!0,o.destination=new R(d(o),t));break}default:o.syncErrorThrowable=!0,o.destination=new R(d(o),t,r,i)}return o}return m(n,[{key:T,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,s(p(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,r){var i=new n(t,e,r);return i.syncErrorThrowable=!1,i}}]),n}(x),R=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;y(this,n),(a=e.call(this))._parentSubscriber=t;var u,s=d(a);return v(r)?u=r:r&&(u=r.next,i=r.error,o=r.complete,r!==w&&(v((s=Object.create(r)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(d(a)))),a._context=s,a._next=u,a._error=i,a._complete=o,a}return m(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;_.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=_.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):k(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;k(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};_.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),_.useDeprecatedSynchronousErrorHandling)throw n;k(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!_.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return _.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(k(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(O),I="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(t){return t}var j=function(){var t=function(){function t(e){y(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return m(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof O)return t;if(t[T])return t[T]()}return t||e||n?new O(t,e,n):new O(w)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||_.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),_.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){_.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;if(n||i)return!1;t=r&&r instanceof O?r:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var n=this;return new(e=V(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}},r,e)})}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:I,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?this:function(t){return 0===t.length?P:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}(e)(this)}},{key:"toPromise",value:function(t){var e=this;return new(t=V(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})}}]),t}();return t.create=function(e){return new t(e)},t}();function V(t){if(t||(t=_.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var D=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),N=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).subject=t,i.subscriber=r,i.closed=!1,i}return m(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}}}]),n}(x),U=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this,t)).destination=t,r}return n}(O),F=function(){var t=function(t){l(n,t);var e=h(n);function n(){var t;return y(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return m(n,[{key:T,value:function(){return new U(this)}},{key:"lift",value:function(t){var e=new M(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new D;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)}},{key:"error",value:function(t){if(this.closed)throw new D;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new D;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(t){if(this.closed)throw new D;return s(p(n.prototype),"_trySubscribe",this).call(this,t)}},{key:"_subscribe",value:function(t){if(this.closed)throw new D;return this.hasError?(t.error(this.thrownError),x.EMPTY):this.isStopped?(t.complete(),x.EMPTY):(this.observers.push(t),new N(this,t))}},{key:"asObservable",value:function(){var t=new j;return t.source=this,t}}]),n}(j);return t.create=function(t,e){return new M(t,e)},t}(),M=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).destination=t,i.source=r,i}return m(n,[{key:"next",value:function(t){var e=this.destination;e&&e.next&&e.next(t)}},{key:"error",value:function(t){var e=this.destination;e&&e.error&&this.destination.error(t)}},{key:"complete",value:function(){var t=this.destination;t&&t.complete&&this.destination.complete()}},{key:"_subscribe",value:function(t){return this.source?this.source.subscribe(t):x.EMPTY}}]),n}(F);function H(t){return t&&"function"==typeof t.schedule}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(t,e))}}var z=function(){function t(e,n){y(this,t),this.project=e,this.thisArg=n}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new B(t,this.project,this.thisArg))}}]),t}(),B=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t)).project=r,o.count=0,o.thisArg=i||d(o),o}return m(n,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(O),q=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},G="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",W=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Z(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Q=function(t){if(t&&"function"==typeof t[I])return function(t){return function(e){var n=t[I]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}(t);if(W(t))return q(t);if(Z(t))return function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,k),e}}(t);if(t&&"function"==typeof t[G])return function(t){return function(e){for(var n=t[G]();;){var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}(t);var e="You provided ".concat(C(t)?"an invalid object":"'".concat(t,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(e)};function K(t,e){return new j(function(n){var r=new x,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function J(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[I]}(t))return function(t,e){return new j(function(n){var r=new x;return r.add(e.schedule(function(){var i=t[I]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}(t,e);if(Z(t))return function(t,e){return new j(function(n){var r=new x;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r})}(t,e);if(W(t))return K(t,e);if(function(t){return t&&"function"==typeof t[G]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new j(function(n){var r,i=new x;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[G](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof j?t:new j(Q(t))}var $=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this)).parent=t,r}return m(n,[{key:"_next",value:function(t){this.parent.notifyNext(t)}},{key:"_error",value:function(t){this.parent.notifyError(t),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(O),Y=function(t){l(n,t);var e=h(n);function n(){return y(this,n),e.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(t){this.destination.next(t)}},{key:"notifyError",value:function(t){this.destination.error(t)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(O);function X(t,e){if(!e.closed){if(t instanceof j)return t.subscribe(e);var n;try{n=Q(t)(e)}catch(r){e.error(r)}return n}}function tt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(tt(function(n,r){return J(t(n,r)).pipe(L(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new et(t,n))})}var et=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;y(this,t),this.project=e,this.concurrent=n}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new nt(t,this.project,this.concurrent))}}]),t}(),nt=function(t){l(n,t);var e=h(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return y(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return m(n,[{key:"_next",value:function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}},{key:"_innerSub",value:function(t){var e=new $(this),n=this.destination;n.add(e);var r=X(t,e);r!==e&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t){this.destination.next(t)}},{key:"notifyComplete",value:function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Y);function rt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return tt(P,t)}function it(t,e){return e?K(t,e):new j(q(t))}function ot(){return function(t){return t.lift(new at(t))}}var at=function(){function t(e){y(this,t),this.connectable=e}return m(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new ut(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),ut=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).connectable=r,i}return m(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}else this.connection=null}}]),n}(O),st=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return m(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new x).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed&&(this._connection=null,t=x.EMPTY)),t}},{key:"refCount",value:function(){return ot()(this)}}]),n}(j),lt=function(){var t=st.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),ct=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).connectable=r,i}return m(n,[{key:"_error",value:function(t){this._unsubscribe(),s(p(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),s(p(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(U);function ht(){return new F}function ft(t){for(var e in t)if(t[e]===ft)return e;throw Error("Could not find renamed property on target object.")}function dt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function pt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var yt=ft({__forward_ref__:ft});function gt(t){return t.__forward_ref__=gt,t.toString=function(){return vt(this())},t}function mt(t){return _t(t)?t():t}function _t(t){return"function"==typeof t&&t.hasOwnProperty(yt)&&t.__forward_ref__===gt}var kt=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,r))).code=t,i}return n}(a(Error));function wt(t){return"string"==typeof t?t:null==t?"":String(t)}function bt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wt(t)}function Ct(t,e){var n=e?" in ".concat(e):"";throw new kt("201","No provider for ".concat(bt(t)," found").concat(n))}function St(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Et(t){return{providers:t.providers||[],imports:t.imports||[]}}function xt(t){return At(t,Rt)||At(t,Pt)}function At(t,e){return t.hasOwnProperty(e)?t[e]:null}function Tt(t){return t&&(t.hasOwnProperty(It)||t.hasOwnProperty(jt))?t[It]:null}var Ot,Rt=ft({"\u0275prov":ft}),It=ft({"\u0275inj":ft}),Pt=ft({ngInjectableDef:ft}),jt=ft({ngInjectorDef:ft}),Vt=((Vt=Vt||{})[Vt.Default=0]="Default",Vt[Vt.Host=1]="Host",Vt[Vt.Self=2]="Self",Vt[Vt.SkipSelf=4]="SkipSelf",Vt[Vt.Optional=8]="Optional",Vt);function Dt(t){var e=Ot;return Ot=t,e}function Nt(t,e,n){var r=xt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Vt.Optional?null:void 0!==e?e:void Ct(vt(t),"Injector")}function Ut(t){return{toString:t}.toString()}var Ft=((Ft=Ft||{})[Ft.OnPush=0]="OnPush",Ft[Ft.Default=1]="Default",Ft),Mt=((Mt=Mt||{})[Mt.Emulated=0]="Emulated",Mt[Mt.None=2]="None",Mt[Mt.ShadowDom=3]="ShadowDom",Mt),Ht="undefined"!=typeof globalThis&&globalThis,Lt="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt="undefined"!=typeof global&&global,qt=Ht||Bt||Lt||zt,Gt={},Wt=[],Zt=ft({"\u0275cmp":ft}),Qt=ft({"\u0275dir":ft}),Kt=ft({"\u0275pipe":ft}),Jt=ft({"\u0275mod":ft}),$t=ft({"\u0275loc":ft}),Yt=ft({"\u0275fac":ft}),Xt=ft({__NG_ELEMENT_ID__:ft}),te=0;function ee(t){return Ut(function(){var e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ft.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Mt.Emulated,id:"c",styles:t.styles||Wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=te++,n.inputs=ae(t.inputs,e),n.outputs=ae(t.outputs),i&&i.forEach(function(t){return t(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(ne)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(re)}:null,n})}function ne(t){return se(t)||function(t){return t[Qt]||null}(t)}function re(t){return function(t){return t[Kt]||null}(t)}var ie={};function oe(t){return Ut(function(){var e={type:t.type,bootstrap:t.bootstrap||Wt,declarations:t.declarations||Wt,imports:t.imports||Wt,exports:t.exports||Wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ie[t.id]=t.type),e})}function ae(t,e){if(null==t)return Gt;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var ue=ee;function se(t){return t[Zt]||null}function le(t,e){var n=t[Jt]||null;if(!n&&!0===e)throw new Error("Type ".concat(vt(t)," does not have '\u0275mod' property."));return n}var ce=11;function he(t){return Array.isArray(t)&&"object"==typeof t[1]}function fe(t){return Array.isArray(t)&&!0===t[1]}function de(t){return 0!=(8&t.flags)}function ve(t){return 2==(2&t.flags)}function pe(t){return 1==(1&t.flags)}function ye(t){return null!==t.template}function ge(t){return 0!=(512&t[2])}function me(t,e){return t.hasOwnProperty(Yt)?t[Yt]:null}var _e=function(){function t(e,n,r){y(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=r}return m(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function ke(){return we}function we(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ce),be}function be(){var t=xe(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Gt)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Ce(t,e,n,r){var i=xe(t)||function(t,e){return t[Ee]=e}(t,{previous:Gt,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new _e(s&&s.currentValue,e,a===Gt),t[r]=e}ke.ngInherit=!0;var Se,Ee="__ngSimpleChanges__";function xe(t){return t[Ee]||null}function Ae(t){return!!t.listen}var Te={createRenderer:function(t,e){return void 0!==Se?Se:"undefined"!=typeof document?document:void 0}};function Oe(t){for(;Array.isArray(t);)t=t[0];return t}function Re(t,e){return Oe(e[t])}function Ie(t,e){return Oe(e[t.index])}function Pe(t,e){return t.data[e]}function je(t,e){var n=e[t];return he(n)?n:n[0]}function Ve(t){return 128==(128&t[2])}function De(t,e){return null==e?null:t[e]}function Ne(t){t[18]=0}function Ue(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var Fe={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Me(){return Fe.bindingsEnabled}function He(){return Fe.lFrame.lView}function Le(){return Fe.lFrame.tView}function ze(){for(var t=Be();null!==t&&64===t.type;)t=t.parent;return t}function Be(){return Fe.lFrame.currentTNode}function qe(t,e){var n=Fe.lFrame;n.currentTNode=t,n.isParent=e}function Ge(){return Fe.lFrame.isParent}function We(){return Fe.isInCheckNoChangesMode}function Ze(t){Fe.isInCheckNoChangesMode=t}function Qe(){return Fe.lFrame.bindingIndex++}function Ke(t,e){var n=Fe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Je(e)}function Je(t){Fe.lFrame.currentDirectiveIndex=t}function $e(t){Fe.lFrame.currentQueryIndex=t}function Ye(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Xe(t,e,n){if(n&Vt.SkipSelf){for(var r=e,i=t;!(null!==(r=r.parent)||n&Vt.Host||(r=Ye(i),null===r||(i=i[15],10&r.type))););if(null===r)return!1;e=r,t=i}var o=Fe.lFrame=en();return o.currentTNode=e,o.lView=t,!0}function tn(t){var e=en(),n=t[1];Fe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function en(){var t=Fe.lFrame,e=null===t?null:t.child;return null===e?nn(t):e}function nn(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function rn(){var t=Fe.lFrame;return Fe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var on=rn;function an(){var t=rn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function un(){return Fe.lFrame.selectedIndex}function sn(t){Fe.lFrame.selectedIndex=t}function ln(){var t=Fe.lFrame;return Pe(t.tView,t.selectedIndex)}function cn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n<r;n++){var i=t.data[n].type.prototype,o=i.ngAfterContentInit,a=i.ngAfterContentChecked,u=i.ngAfterViewInit,s=i.ngAfterViewChecked,l=i.ngOnDestroy;o&&(t.contentHooks||(t.contentHooks=[])).push(-n,o),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),u&&(t.viewHooks||(t.viewHooks=[])).push(-n,u),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=l&&(t.destroyHooks||(t.destroyHooks=[])).push(n,l)}}function hn(t,e,n){vn(t,e,3,n)}function fn(t,e,n,r){(3&t[2])===n&&vn(t,e,n,r)}function dn(t,e){var n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function vn(t,e,n,r){for(var i=null!=r?r:-1,o=e.length-1,a=0,u=void 0!==r?65535&t[18]:0;u<o;u++)if("number"==typeof e[u+1]){if(a=e[u],null!=r&&a>=r)break}else e[u]<0&&(t[18]+=65536),(a<i||-1==i)&&(pn(t,n,e,u),t[18]=(4294901760&t[18])+u+2),u++}function pn(t,e,n,r){var i=n[r]<0,o=n[r+1],a=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var yn=function t(e,n,r){y(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function gn(t,e,n){for(var r=Ae(t),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],u=n[i++],s=n[i++];r?t.setAttribute(e,u,s,a):e.setAttributeNS(a,u,s)}else{var l=o,c=n[++i];_n(l)?r&&t.setProperty(e,l,c):r?t.setAttribute(e,l,c):e.setAttribute(l,c),i++}}return i}function mn(t){return 3===t||4===t||6===t}function _n(t){return 64===t.charCodeAt(0)}function kn(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else for(var n=-1,r=0;r<e.length;r++){var i=e[r];"number"==typeof i?n=i:0===n||wn(t,n,i,null,-1===n||2===n?e[++r]:null)}return t}function wn(t,e,n,r,i){var o=0,a=t.length;if(-1===e)a=-1;else for(;o<t.length;){var u=t[o++];if("number"==typeof u){if(u===e){a=-1;break}if(u>e){a=o-1;break}}}for(;o<t.length;){var s=t[o];if("number"==typeof s)break;if(s===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==a&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function bn(t){return-1!==t}function Cn(t){return 32767&t}function Sn(t,e){for(var n=function(t){return t>>16}(t),r=e;n>0;)r=r[15],n--;return r}var En=!0;function xn(t){var e=En;return En=t,e}var An=0;function Tn(t,e){var n=Rn(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,On(r.data,t),On(e,null),On(r.blueprint,null));var i=In(t,e),o=t.injectorIndex;if(bn(i))for(var a=Cn(i),u=Sn(i,e),s=u[1].data,l=0;l<8;l++)e[o+l]=u[a+l]|s[a+l];return e[o+8]=i,o}function On(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function In(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Pn(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xt)&&(r=n[Xt]),null==r&&(r=n[Xt]=An++);var i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function jn(t,e,n){if(n&Vt.Optional)return t;Ct(e,"NodeInjector")}function Vn(t,e,n,r){if(n&Vt.Optional&&void 0===r&&(r=null),0==(n&(Vt.Self|Vt.Host))){var i=t[9],o=Dt(void 0);try{return i?i.get(e,r,n&Vt.Optional):Nt(e,r,n&Vt.Optional)}finally{Dt(o)}}return jn(r,e,n)}function Dn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(Xt)?t[Xt]:void 0;return"number"==typeof e?e>=0?255&e:Un:e}(n);if("function"==typeof o){if(!Xe(e,t,r))return r&Vt.Host?jn(i,n,r):Vn(e,n,r,i);try{var a=o(r);if(null!=a||r&Vt.Optional)return a;Ct(n)}finally{on()}}else if("number"==typeof o){var u=null,s=Rn(t,e),l=-1,c=r&Vt.Host?e[16][6]:null;for((-1===s||r&Vt.SkipSelf)&&(-1!==(l=-1===s?In(t,e):e[s+8])&&Ln(r,!1)?(u=e[1],s=Cn(l),e=Sn(l,e)):s=-1);-1!==s;){var h=e[1];if(Hn(o,s,h.data)){var f=Fn(s,e,n,u,r,c);if(f!==Nn)return f}-1!==(l=e[s+8])&&Ln(r,e[1].data[s+8]===c)&&Hn(o,s,e)?(u=h,s=Cn(l),e=Sn(l,e)):s=-1}}}return Vn(e,n,r,i)}var Nn={};function Un(){return new zn(ze(),He())}function Fn(t,e,n,r,i,o){var a=e[1],u=a.data[t+8],s=function(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,u=1048575&o,s=t.directiveStart,l=o>>20,c=i?u+l:t.directiveEnd,h=r?u:u+l;h<c;h++){var f=a[h];if(h<s&&n===f||h>=s&&f.type===n)return h}if(i){var d=a[s];if(d&&ye(d)&&d.type===n)return s}return null}(u,a,n,null==r?ve(u)&&En:r!=a&&0!=(3&u.type),i&Vt.Host&&o===u);return null!==s?Mn(e,a,s,u):Nn}function Mn(t,e,n,r){var i=t[n],o=e.data;if(function(t){return t instanceof yn}(i)){var a=i;a.resolving&&function(t,e){throw new kt("200","Circular dependency in DI detected for ".concat(t))}(bt(o[n]));var u=xn(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?Dt(a.injectImpl):null;Xe(t,r,Vt.Default);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var u=we(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,o[n],e)}finally{null!==s&&Dt(s),xn(u),a.resolving=!1,on()}}return i}function Hn(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Ln(t,e){return!(t&Vt.Self||t&Vt.Host&&e)}var zn=function(){function t(e,n){y(this,t),this._tNode=e,this._lView=n}return m(t,[{key:"get",value:function(t,e){return Dn(this._tNode,this._lView,t,void 0,e)}}]),t}();function Bn(t){return Ut(function(){for(var e=t.prototype.constructor,n=e[Yt]||qn(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;i&&i!==r;){var o=i[Yt]||qn(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return function(t){return new t}})}function qn(t){return _t(t)?function(){var e=qn(mt(t));return e&&e()}:me(t)}var Gn="__parameters__";function Wn(t,e,n){return Ut(function(){var r=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=u(i,e);return a.annotation=o,a;function a(t,e,n){for(var r=t.hasOwnProperty(Gn)?t[Gn]:Object.defineProperty(t,Gn,{value:[]})[Gn];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Zn=function(){function t(e,n){y(this,t),this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=St({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return m(t,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),t}(),Qn=new Zn("AnalyzeForEntryComponents"),Kn=Function;function Jn(t,e){t.forEach(function(t){return Array.isArray(t)?Jn(t,e):e(t)})}function $n(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Yn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Xn(t,e,n){var r=er(t,e);return r>=0?t[1|r]=n:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r=~r,e,n),r}function tr(t,e){var n=er(t,e);if(n>=0)return t[1|n]}function er(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var nr,rr={},ir="__NG_DI_FLAG__",or="ngTempTokenPath",ar=/\n/gm,ur="__source",sr=ft({provide:String,useValue:ft});function lr(t){var e=nr;return nr=t,e}function cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt.Default;if(void 0===nr)throw new Error("inject() must be called from an injection context");return null===nr?Nt(t,void 0,e):nr.get(t,e&Vt.Optional?null:void 0,e)}function hr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt.Default;return(Ot||cr)(mt(t),e)}function fr(t){for(var e=[],n=0;n<t.length;n++){var r=mt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=Vt.Default,a=0;a<r.length;a++){var u=r[a],s=vr(u);"number"==typeof s?-1===s?i=u.token:o|=s:i=u}e.push(hr(i,o))}else e.push(hr(r))}return e}function dr(t,e){return t[ir]=e,t.prototype[ir]=e,t}function vr(t){return t[ir]}function pr(t,e,n,r){var i=t[or];throw e[ur]&&i.unshift(e[ur]),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var u=e[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):vt(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(ar,"\n  "))}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[or]=null,t}var yr=dr(Wn("Inject",function(t){return{token:t}}),-1),gr=dr(Wn("Optional"),8),mr=dr(Wn("SkipSelf"),4),_r=function(){function t(e){y(this,t),this.changingThisBreaksApplicationSecurity=e}return m(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),t}();function kr(t){return t instanceof _r?t.changingThisBreaksApplicationSecurity:t}var wr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,br=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Cr=((Cr=Cr||{})[Cr.NONE=0]="NONE",Cr[Cr.HTML=1]="HTML",Cr[Cr.STYLE=2]="STYLE",Cr[Cr.SCRIPT=3]="SCRIPT",Cr[Cr.URL=4]="URL",Cr[Cr.RESOURCE_URL=5]="RESOURCE_URL",Cr);function Sr(t){var e=function(){var t=He();return t&&t[12]}();return e?e.sanitize(Cr.URL,t)||"":function(t,e){var n=function(t){return t instanceof _r&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}(t,"URL")?kr(t):function(t){return(t=String(t)).match(wr)||t.match(br)?t:"unsafe:"+t}(wt(t))}var Er="__ngContext__";function xr(t,e){t[Er]=e}function Ar(t){var e=function(t){return t[Er]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Tr(t){return t.ngOriginalError}function Or(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t.error.apply(t,n)}var Rr=function(){function t(){y(this,t),this._console=console}return m(t,[{key:"handleError",value:function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t&&t.ngErrorLogger||Or}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(Tr(t)):null}},{key:"_findOriginalError",value:function(t){for(var e=t&&Tr(t);e&&Tr(e);)e=Tr(e);return e||null}}]),t}(),Ir=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(qt);function Pr(t){return t instanceof Function?t():t}var jr=((jr=jr||{})[jr.Important=1]="Important",jr[jr.DashCase=2]="DashCase",jr);function Vr(t,e){return(void 0)(t,e)}function Dr(t){var e=t[3];return fe(e)?e[3]:e}function Nr(t){return Fr(t[13])}function Ur(t){return Fr(t[4])}function Fr(t){for(;null!==t&&!fe(t);)t=t[4];return t}function Mr(t,e,n,r,i){if(null!=r){var o,a=!1;fe(r)?o=r:he(r)&&(a=!0,r=r[0]);var u=Oe(r);0===t&&null!==n?null==i?Wr(e,n,u):Gr(e,n,u,i||null,!0):1===t&&null!==n?Gr(e,n,u,i||null,!0):2===t?function(t,e,n){var r=Qr(t,e);r&&function(t,e,n,r){Ae(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,u,a):3===t&&e.destroyNode(u),null!=o&&function(t,e,n,r,i){var o=n[7];o!==Oe(n)&&Mr(e,t,r,o,i);for(var a=10;a<n.length;a++){var u=n[a];ti(u[1],u,t,e,r,o)}}(e,t,o,n,i)}}function Hr(t,e,n){return Ae(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Lr(t,e){var n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Ue(i,-1)),n.splice(r,1)}function zr(t,e){if(!(t.length<=10)){var n=10+e,r=t[n];if(r){var i=r[17];null!==i&&i!==t&&Lr(i,r),e>0&&(t[n-1][4]=r[4]);var o=Yn(t,10+e);!function(t,e){ti(t,e,e[ce],2,null,null),e[0]=null,e[6]=null}(r[1],r);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Br(t,e){if(!(256&e[2])){var n=e[ce];Ae(n)&&n.destroyNode&&ti(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return qr(t[1],t);for(;e;){var n=null;if(he(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)he(e)&&qr(e[1],e),e=e[3];null===e&&(e=t),he(e)&&qr(e[1],e),n=e&&e[4]}e=n}}(e)}}function qr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r<n.length;r+=2){var i=e[n[r]];if(!(i instanceof yn)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2){var u=i[o[a]],s=o[a+1];try{s.call(u)}finally{}}else try{o.call(i)}finally{}}}}(t,e),function(t,e){var n=t.cleanup,r=e[7],i=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],u="function"==typeof a?a(e):Oe(e[a]),s=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?u.removeEventListener(n[o],s,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=n[o+1]];n[o].call(c)}if(null!==r){for(var h=i+1;h<r.length;h++)r[h]();e[7]=null}}(t,e),1===e[1].type&&Ae(e[ce])&&e[ce].destroy();var n=e[17];if(null!==n&&fe(e[3])){n!==e[3]&&Lr(n,e);var r=e[19];null!==r&&r.detachView(t)}}}function Gr(t,e,n,r,i){Ae(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function Wr(t,e,n){Ae(t)?t.appendChild(e,n):e.appendChild(n)}function Zr(t,e,n,r,i){null!==r?Gr(t,e,n,r,i):Wr(t,e,n)}function Qr(t,e){return Ae(t)?t.parentNode(e):e.parentNode}function Kr(t,e,n,r){var i=function(t,e,n){return function(t,e,n){for(var r=e;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){var i=t.data[r.directiveStart].encapsulation;if(i===Mt.None||i===Mt.Emulated)return null}return Ie(r,n)}(t,e.parent,n)}(t,r,e),o=e[ce],a=function(t,e,n){return function(t,e,n){return 40&t.type?Ie(t,n):null}(t,0,n)}(r.parent||e[6],0,e);if(null!=i)if(Array.isArray(n))for(var u=0;u<n.length;u++)Zr(o,i,n[u],a,!1);else Zr(o,i,n,a,!1)}function Jr(t,e){if(null!==e){var n=e.type;if(3&n)return Ie(e,t);if(4&n)return Yr(-1,t[e.index]);if(8&n){var r=e.child;if(null!==r)return Jr(t,r);var i=t[e.index];return fe(i)?Yr(-1,i):Oe(i)}if(32&n)return Vr(e,t)()||Oe(t[e.index]);var o=$r(t,e);return null!==o?Array.isArray(o)?o[0]:Jr(Dr(t[16]),o):Jr(t,e.next)}return null}function $r(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Yr(t,e){var n=10+t+1;if(n<e.length){var r=e[n],i=r[1].firstChild;if(null!==i)return Jr(r,i)}return e[7]}function Xr(t,e,n,r,i,o,a){for(;null!=n;){var u=r[n.index],s=n.type;if(a&&0===e&&(u&&xr(Oe(u),r),n.flags|=4),64!=(64&n.flags))if(8&s)Xr(t,e,n.child,r,i,o,!1),Mr(e,t,i,u,o);else if(32&s){for(var l=Vr(n,r),c=void 0;c=l();)Mr(e,t,i,c,o);Mr(e,t,i,u,o)}else 16&s?ei(t,e,r,n,i,o):Mr(e,t,i,u,o);n=a?n.projectionNext:n.next}}function ti(t,e,n,r,i,o){Xr(n,r,t.firstChild,e,i,o,!1)}function ei(t,e,n,r,i,o){var a=n[16],u=a[6].projection[r.projection];if(Array.isArray(u))for(var s=0;s<u.length;s++)Mr(e,t,i,u[s],o);else Xr(t,e,u,a[3],i,o,!0)}function ni(t,e,n){Ae(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ri(t,e,n){Ae(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function ii(t,e,n){for(var r=t.length;;){var i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){var o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var oi="ng-template";function ai(t,e,n){for(var r=0;r<t.length;){var i=t[r++];if(n&&"class"===i){if(-1!==ii((i=t[r]).toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ui(t){return 4===t.type&&t.value!==oi}function si(t,e,n){return e===(4!==t.type||n?t.value:oi)}function li(t,e,n){for(var r=4,i=t.attrs||[],o=function(t){for(var e=0;e<t.length;e++)if(mn(t[e]))return e;return t.length}(i),a=!1,u=0;u<e.length;u++){var s=e[u];if("number"!=typeof s){if(!a)if(4&r){if(r=2|1&r,""!==s&&!si(t,s,n)||""===s&&1===e.length){if(ci(r))return!1;a=!0}}else{var l=8&r?s:e[++u];if(8&r&&null!==t.attrs){if(!ai(t.attrs,l,n)){if(ci(r))return!1;a=!0}continue}var c=hi(8&r?"class":s,i,ui(t),n);if(-1===c){if(ci(r))return!1;a=!0;continue}if(""!==l){var h;h=c>o?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==ii(f,l,0)||2&r&&l!==h){if(ci(r))return!1;a=!0}}}}else{if(!a&&!ci(r)&&!ci(s))return!1;if(a&&ci(s))continue;a=!1,r=s|1&r}}return ci(r)||a}function ci(t){return 0==(1&t)}function hi(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i<e.length;){var a=e[i];if(a===t)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var u=e[++i];"string"==typeof u;)u=e[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){var r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function fi(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<e.length;r++)if(li(t,e[r],n))return!0;return!1}function di(t,e){return t?":not("+e.trim()+")":e}function vi(t){for(var e=t[0],n=1,r=2,i="",o=!1;n<t.length;){var a=t[n];if("string"==typeof a)if(2&r){var u=t[++n];i+="["+a+(u.length>0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!ci(a)&&(e+=di(o,i),i=""),r=a,o=o||!ci(r);n++}return""!==i&&(e+=di(o,i)),e}var pi={};function yi(t){gi(Le(),He(),un()+t,We())}function gi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&hn(e,i,n)}else{var o=t.preOrderHooks;null!==o&&fn(e,o,0,n)}sn(n)}function mi(t,e){return t<<17|e<<2}function _i(t){return t>>17&32767}function ki(t){return 2|t}function wi(t){return(131068&t)>>2}function bi(t,e){return-131069&t|e<<2}function Ci(t){return 1|t}function Si(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1];if(-1!==o){var a=t.data[o];$e(i),a.contentQueries(2,e[o],o)}}}function Ei(t,e,n,r,i,o,a,u,s,l){var c=e.blueprint.slice();return c[0]=i,c[2]=140|r,Ne(c),c[3]=c[15]=t,c[8]=n,c[10]=a||t&&t[10],c[ce]=u||t&&t[ce],c[12]=s||t&&t[12]||null,c[9]=l||t&&t[9]||null,c[6]=o,c[16]=2==e.type?t[16]:c,c}function xi(t,e,n,r,i){var o=t.data[e];if(null===o)o=function(t,e,n,r,i){var o=Be(),a=Ge(),u=t.data[e]=function(t,e,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=u),null!==o&&(a?null==o.child&&null!==u.parent&&(o.child=u):null===o.next&&(o.next=u)),u}(t,e,n,r,i),Fe.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;var a=function(){var t=Fe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===a?-1:a.injectorIndex}return qe(o,!0),o}function Ai(t,e,n,r){if(0===n)return-1;for(var i=e.length,o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Ti(t,e,n){tn(e);try{var r=t.viewQuery;null!==r&&no(1,r,n);var i=t.template;null!==i&&Ii(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Si(t,e),t.staticViewQueries&&no(2,t.viewQuery,n);var o=t.components;null!==o&&function(t,e){for(var n=0;n<e.length;n++)$i(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,an()}}function Oi(t,e,n,r){var i=e[2];if(256!=(256&i)){tn(e);var o=We();try{Ne(e),function(t){Fe.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Ii(t,e,n,2,r);var a=3==(3&i);if(!o)if(a){var u=t.preOrderCheckHooks;null!==u&&hn(e,u,null)}else{var s=t.preOrderHooks;null!==s&&fn(e,s,0,null),dn(e,0)}if(function(t){for(var e=Nr(t);null!==e;e=Ur(e))if(e[2])for(var n=e[9],r=0;r<n.length;r++){var i=n[r],o=i[3];0==(1024&i[2])&&Ue(o,1),i[2]|=1024}}(e),function(t){for(var e=Nr(t);null!==e;e=Ur(e))for(var n=10;n<e.length;n++){var r=e[n],i=r[1];Ve(r)&&Oi(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&Si(t,e),!o)if(a){var l=t.contentCheckHooks;null!==l&&hn(e,l)}else{var c=t.contentHooks;null!==c&&fn(e,c,1),dn(e,1)}!function(t,e){var n=t.hostBindingOpCodes;if(null!==n)try{for(var r=0;r<n.length;r++){var i=n[r];if(i<0)sn(~i);else{var o=i,a=n[++r],u=n[++r];Ke(a,o),u(2,e[o])}}}finally{sn(-1)}}(t,e);var h=t.components;null!==h&&function(t,e){for(var n=0;n<e.length;n++)Ki(t,e[n])}(e,h);var f=t.viewQuery;if(null!==f&&no(2,f,r),!o)if(a){var d=t.viewCheckHooks;null!==d&&hn(e,d)}else{var v=t.viewHooks;null!==v&&fn(e,v,2),dn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ue(e[3],-1))}finally{an()}}}function Ri(t,e,n,r){var i=e[10],o=!We(),a=function(t){return 4==(4&t[2])}(e);try{o&&!a&&i.begin&&i.begin(),a&&Ti(t,e,r),Oi(t,e,n,r)}finally{o&&!a&&i.end&&i.end()}}function Ii(t,e,n,r,i){var o=un(),a=2&r;try{sn(-1),a&&e.length>20&&gi(t,e,20,We()),n(r,i)}finally{sn(o)}}function Pi(t,e,n){!Me()||(function(t,e,n,r){var i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Tn(n,e),xr(r,e);for(var a=n.initialInputs,u=i;u<o;u++){var s=t.data[u],l=ye(s);l&&Gi(e,n,s);var c=Mn(e,t,u,n);xr(c,e),null!==a&&Wi(0,u-i,c,s,0,a),l&&(je(n.index,e)[8]=c)}}(t,e,n,Ie(n,e)),128==(128&n.flags)&&function(t,e,n){var r=n.directiveStart,i=n.directiveEnd,o=n.index,a=Fe.lFrame.currentDirectiveIndex;try{sn(o);for(var u=r;u<i;u++){var s=t.data[u],l=e[u];Je(u),(null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs)&&Hi(s,l)}}finally{sn(-1),Je(a)}}(t,e,n))}function ji(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ie,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o<r.length;o+=2){var a=r[o+1],u=-1===a?n(e,t):t[a];t[i++]=u}}function Vi(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Di(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Di(t,e,n,r,i,o,a,u,s,l){var c=20+r,h=c+i,f=function(t,e){for(var n=[],r=0;r<e;r++)n.push(r<t?null:pi);return n}(c,h),d="function"==typeof l?l():l;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:u,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,hostBindingOpCodes: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 o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:s,consts:d,incompleteFirstPass:!1}}function Ni(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Ui(t,e,n,r,i,o,a,u){var s,l=Ie(e,n),c=e.inputs;!u&&null!=c&&(s=c[r])?(uo(t,n,s,r,i),ve(e)&&function(t,e){var n=je(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=a?a(i,e.value||"",r):i,Ae(o)?o.setProperty(l,r,i):_n(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Fi(t,e,n,r){var i=!1;if(Me()){var o=function(t,e,n){var r=t.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];fi(n,a.selectors,!1)&&(i||(i=[]),Pn(Tn(n,e),t,a.type),ye(a)?(Li(t,n),i.unshift(a)):i.push(a))}return i}(t,e,n),a=null===r?null:{"":-1};if(null!==o){i=!0,Bi(n,t.data.length,o.length);for(var u=0;u<o.length;u++){var s=o[u];s.providersResolver&&s.providersResolver(s)}for(var l=!1,c=!1,h=Ai(t,e,o.length,null),f=0;f<o.length;f++){var d=o[f];n.mergedAttrs=kn(n.mergedAttrs,d.hostAttrs),qi(t,n,e,h,d),zi(h,d,a),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);var v=d.type.prototype;!l&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),l=!0),!c&&(v.ngOnChanges||v.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),c=!0),h++}!function(t,e){for(var n=e.directiveEnd,r=t.data,i=e.attrs,o=[],a=null,u=null,s=e.directiveStart;s<n;s++){var l=r[s],c=l.inputs,h=null===i||ui(e)?null:Zi(c,i);o.push(h),a=Ni(c,s,a),u=Ni(l.outputs,s,u)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=u}(t,n)}a&&function(t,e,n){if(e)for(var r=t.localNames=[],i=0;i<e.length;i+=2){var o=n[e[i+1]];if(null==o)throw new kt("301","Export of name '".concat(e[i+1],"' not found!"));r.push(e[i],o)}}(n,r,a)}return n.mergedAttrs=kn(n.mergedAttrs,n.attrs),i}function Mi(t,e,n,r,i,o){var a=o.hostBindings;if(a){var u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);var s=~e.index;(function(t){for(var e=t.length;e>0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function Hi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Li(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function zi(t,e,n){if(n){if(e.exportAs)for(var r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;ye(e)&&(n[""]=t)}}function Bi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function qi(t,e,n,r,i){t.data[r]=i;var o=i.factory||(i.factory=me(i.type)),a=new yn(o,ye(i),null);t.blueprint[r]=a,n[r]=a,Mi(t,e,0,r,Ai(t,n,i.hostVars,pi),i)}function Gi(t,e,n){var r=Ie(e,t),i=Vi(n),o=t[10],a=Yi(t,Ei(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=a}function Wi(t,e,n,r,i,o){var a=o[e];if(null!==a)for(var u=r.setInput,s=0;s<a.length;){var l=a[s++],c=a[s++],h=a[s++];null!==u?r.setInput(n,h,l,c):n[c]=h}}function Zi(t,e){for(var n=null,r=0;r<e.length;){var i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Qi(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function Ki(t,e){var n=je(e,t);if(Ve(n)){var r=n[1];80&n[2]?Oi(r,n,r.template,n[8]):n[5]>0&&Ji(n)}}function Ji(t){for(var e=Nr(t);null!==e;e=Ur(e))for(var n=10;n<e.length;n++){var r=e[n];if(1024&r[2]){var i=r[1];Oi(i,r,i.template,r[8])}else r[5]>0&&Ji(r)}var o=t[1].components;if(null!==o)for(var a=0;a<o.length;a++){var u=je(o[a],t);Ve(u)&&u[5]>0&&Ji(u)}}function $i(t,e){var n=je(e,t),r=n[1];(function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),Ti(r,n,n[8])}function Yi(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Xi(t){for(;t;){t[2]|=64;var e=Dr(t);if(ge(t)&&!e)return t;t=e}return null}function to(t,e,n){var r=e[10];r.begin&&r.begin();try{Oi(t,e,t.template,n)}catch(i){throw ao(e,i),i}finally{r.end&&r.end()}}function eo(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],r=Ar(n),i=r[1];Ri(i,r,i.template,n)}}(t[8])}function no(t,e,n){$e(0),e(t,n)}var ro=Promise.resolve(null);function io(t){return t[7]||(t[7]=[])}function oo(t){return t.cleanup||(t.cleanup=[])}function ao(t,e){var n=t[9],r=n?n.get(Rr,null):null;r&&r.handleError(e)}function uo(t,e,n,r,i){for(var o=0;o<n.length;){var a=n[o++],u=n[o++],s=e[a],l=t.data[a];null!==l.setInput?l.setInput(s,i,r,u):s[u]=i}}function so(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(var a=0;a<e.length;a++){var u=e[a];"number"==typeof u?o=u:1==o?i=pt(i,u):2==o&&(r=pt(r,u+": "+e[++a]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}var lo,co=new Zn("INJECTOR",-1),ho=function(){function t(){y(this,t)}return m(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr;if(e===rr){var n=new Error("NullInjectorError: No provider for ".concat(vt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),fo=new Zn("Set Injector scope."),vo={},po={};function yo(){return void 0===lo&&(lo=new ho),lo}function go(t){var e=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 mo(t,n,e||yo(),r)}var mo=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;y(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Jn(n,function(t){return i.processProvider(t,e,n)}),Jn([e],function(t){return i.processInjectorType(t,[],a)}),this.records.set(co,wo(void 0,this));var u=this.records.get(fo);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof e?null:vt(e))}return m(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt.Default;this.assertNotDestroyed();var r=lr(this),i=Dt(void 0);try{if(!(n&Vt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof Zn}(t)&&xt(t);o=a&&this.injectableDefInScope(a)?wo(_o(t),vo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&Vt.Self?yo():this.parent).get(t,e=n&Vt.Optional&&e===rr?null:e)}catch(u){if("NullInjectorError"===u.name){if((u[or]=u[or]||[]).unshift(vt(t)),r)throw u;return pr(u,t,"R3InjectorError",this.source)}throw u}finally{Dt(i),lr(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(vt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=mt(t)))return!1;var i=Tt(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=Tt(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{Jn(i.imports,function(t){r.processInjectorType(t,e,n)&&(void 0===s&&(s=[]),s.push(t))})}finally{}if(void 0!==s)for(var l=function(t){var e=s[t],n=e.ngModule,i=e.providers;Jn(i,function(t){return r.processProvider(t,n,i||Wt)})},c=0;c<s.length;c++)l(c)}this.injectorDefTypes.add(a);var h=me(a)||function(){return new a};this.records.set(a,wo(h,vo));var f=i.providers;if(null!=f&&!u){var d=t;Jn(f,function(t){return r.processProvider(t,d,f)})}return void 0!==o&&void 0!==t.providers}},{key:"processProvider",value:function(t,e,n){var r=Co(t=mt(t))?t:mt(t&&t.provide),i=function(t,e,n){return bo(t)?wo(void 0,t.useValue):wo(ko(t),vo)}(t);if(Co(t)||!0!==t.multi)this.records.get(r);else{var o=this.records.get(r);o||((o=wo(void 0,vo,!0)).factory=function(){return fr(o.multi)},this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,i)}},{key:"hydrate",value:function(t,e){return e.value===vo&&(e.value=po,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}},{key:"injectableDefInScope",value:function(t){if(!t.providedIn)return!1;var e=mt(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}]),t}();function _o(t){var e=xt(t),n=null!==e?e.factory:me(t);if(null!==n)return n;if(t instanceof Zn)throw new Error("Token ".concat(vt(t)," is missing a \u0275prov definition."));if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=function(t,e){for(var n=[],r=0;r<t;r++)n.push("?");return n}(e);throw new Error("Can't resolve all parameters for ".concat(vt(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[Rt]||t[Pt]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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 a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ko(t,e,n){var i;if(Co(t)){var o=mt(t);return me(o)||_o(o)}if(bo(t))i=function(){return mt(t.useValue)};else if(function(t){return!(!t||!t.useFactory)}(t))i=function(){return t.useFactory.apply(t,r(fr(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return hr(mt(t.useExisting))};else{var a=mt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return me(a)||_o(a);i=function(){return u(a,r(fr(t.deps)))}}return i}function wo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function bo(t){return null!==t&&"object"==typeof t&&sr in t}function Co(t){return"function"==typeof t}var So=function(t,e,n){return function(t){var e=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=go(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Eo=function(){function t(){y(this,t)}return m(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}]),t}();function xo(t,e){cn(Ar(t)[1],ze())}function Ao(t){for(var e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0,r=[t];e;){var i=void 0;if(ye(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=To(t.inputs),o.declaredInputs=To(t.declaredInputs),o.outputs=To(t.outputs);var a=i.hostBindings;a&&Io(t,a);var u=i.viewQuery,s=i.contentQueries;if(u&&Oo(t,u),s&&Ro(t,s),dt(t.inputs,i.inputs),dt(t.declaredInputs,i.declaredInputs),dt(t.outputs,i.outputs),ye(i)&&i.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var h=0;h<c.length;h++){var f=c[h];f&&f.ngInherit&&f(t),f===Ao&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,r=t.length-1;r>=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=kn(i.hostAttrs,n=kn(n,i.hostAttrs))}}(r)}function To(t){return t===Gt?{}:t===Wt?[]:t}function Oo(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Ro(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function Io(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}Eo.THROW_IF_NOT_FOUND=rr,Eo.NULL=new ho,Eo.\u0275prov=St({token:Eo,providedIn:"any",factory:function(){return hr(co)}}),Eo.__NG_ELEMENT_ID__=-1;var Po=null;function jo(){if(!Po){var t=qt.Symbol;if(t&&t.iterator)Po=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Po=r)}}return Po}var Vo=function(){function t(e){y(this,t),this.wrapped=e}return m(t,null,[{key:"wrap",value:function(e){return new t(e)}},{key:"unwrap",value:function(e){return t.isWrapped(e)?e.wrapped:e}},{key:"isWrapped",value:function(e){return e instanceof t}}]),t}();function Do(t){return!!No(t)&&(Array.isArray(t)||!(t instanceof Map)&&jo()in t)}function No(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Uo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Fo(t,e,n,r){return Uo(t,Qe(),n)?e+wt(n)+r:pi}function Mo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt.Default,n=He();return null===n?hr(t,e):Dn(ze(),n,mt(t),e)}function Ho(t,e,n){var r=He();return Uo(r,Qe(),e)&&Ui(Le(),ln(),r,t,e,r[ce],n,!1),Ho}function Lo(t,e,n,r,i){var o=i?"class":"style";uo(t,n,e.inputs[o],o,r)}function zo(t,e,n,r){var i=He(),o=Le(),a=20+t,u=i[ce],s=i[a]=Hr(u,e,Fe.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,r,i,o,a){var u=e.consts,s=xi(e,t,2,i,De(u,o));return Fi(e,n,s,De(u,a)),null!==s.attrs&&so(s,s.attrs,!1),null!==s.mergedAttrs&&so(s,s.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,s),s}(a,o,i,0,e,n,r):o.data[a];qe(l,!0);var c=l.mergedAttrs;null!==c&&gn(u,s,c);var h=l.classes;null!==h&&ri(u,s,h);var f=l.styles;null!==f&&ni(u,s,f),64!=(64&l.flags)&&Kr(o,i,s,l),0===Fe.lFrame.elementDepthCount&&xr(s,i),Fe.lFrame.elementDepthCount++,pe(l)&&(Pi(o,i,l),function(t,e,n){if(de(e))for(var r=e.directiveEnd,i=e.directiveStart;i<r;i++){var o=t.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}(o,l,i)),null!==r&&ji(i,l)}function Bo(){var t=ze();Ge()?Fe.lFrame.isParent=!1:qe(t=t.parent,!1);var e=t;Fe.lFrame.elementDepthCount--;var n=Le();n.firstCreatePass&&(cn(n,t),de(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Lo(n,e,He(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Lo(n,e,He(),e.stylesWithoutHost,!1)}function qo(t,e,n,r){zo(t,e,n,r),Bo()}function Go(t){return!!t&&"function"==typeof t.then}var Wo=function(t){return!!t&&"function"==typeof t.subscribe};function Zo(t,e,n,r){var i=He(),o=Le(),a=ze();return function(t,e,n,r,i,o,a,u){var s=pe(r),l=t.firstCreatePass&&oo(t),c=e[8],h=io(e),f=!0;if(3&r.type||u){var d=Ie(r,e),v=u?u(d):d,p=h.length,y=u?function(t){return u(Oe(t[r.index]))}:r.index;if(Ae(n)){var g=null;if(!u&&s&&(g=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var u=e[7],s=i[o+2];return u.length>s?u[s]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1;else{o=Ko(r,e,c,o,!1);var m=n.listen(v,i,o);h.push(o,m),l&&l.push(i,y,p,p+1)}}else o=Ko(r,e,c,o,!0),v.addEventListener(i,o,a),h.push(o),l&&l.push(i,y,p,a)}else o=Ko(r,e,c,o,!1);var _,k=r.outputs;if(f&&null!==k&&(_=k[i])){var w=_.length;if(w)for(var b=0;b<w;b+=2){var C=e[_[b]][_[b+1]].subscribe(o),S=h.length;h.push(o,C),l&&l.push(i,r.index,S,-(S+1))}}}(o,i,i[ce],a,t,e,!!n,r),Zo}function Qo(t,e,n,r){try{return!1!==n(r)}catch(i){return ao(t,i),!1}}function Ko(t,e,n,r,i){return function n(o){if(o===Function)return r;var a=2&t.flags?je(t.index,e):e;0==(32&e[2])&&Xi(a);for(var u=Qo(e,0,r,o),s=n.__ngNextListenerFn__;s;)u=Qo(e,0,s,o)&&u,s=s.__ngNextListenerFn__;return i&&!1===u&&(o.preventDefault(),o.returnValue=!1),u}}function Jo(t,e,n){return $o(t,"",e,"",n),Jo}function $o(t,e,n,r,i){var o=He(),a=Fo(o,e,n,r);return a!==pi&&Ui(Le(),ln(),o,t,a,o[ce],i,!1),$o}function Yo(t,e,n,r,i){for(var o=t[n+1],a=null===e,u=r?_i(o):wi(o),s=!1;0!==u&&(!1===s||a);){var l=t[u+1];Xo(t[u],e)&&(s=!0,t[u+1]=r?Ci(l):ki(l)),u=r?_i(l):wi(l)}s&&(t[n+1]=r?ki(o):Ci(o))}function Xo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&er(t,e)>=0}function ta(t,e){return function(t,e,n,r){var i=He(),o=Le(),a=function(t){var e=Fe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();o.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[un()],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(o)&&null===e&&!a&&(e=!1),function(t,e,n,r,i,o){var a=e.classBindings,u=_i(a),s=wi(a);t[r]=n;var l,c=!1;if(Array.isArray(n)){var h=n;(null===(l=h[1])||er(h,l)>0)&&(c=!0)}else l=n;if(i)if(0!==s){var f=_i(t[u+1]);t[r+1]=mi(f,u),0!==f&&(t[f+1]=bi(t[f+1],r)),t[u+1]=function(t,e){return 131071&t|e<<17}(t[u+1],r)}else t[r+1]=mi(u,0),0!==u&&(t[u+1]=bi(t[u+1],r)),u=r;else t[r+1]=mi(s,0),0===u?u=r:t[s+1]=bi(t[s+1],r),s=r;c&&(t[r+1]=ki(t[r+1])),Yo(t,l,r,!0),Yo(t,l,r,!1),function(t,e,n,r,i){var o=t.residualClasses;null!=o&&"string"==typeof e&&er(o,e)>=0&&(n[r+1]=Ci(n[r+1]))}(e,l,t,r),a=mi(u,s),e.classBindings=a}(i,o,e=function(t,e,n,r){var i=function(t){var e=Fe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=e.residualClasses;if(null===i)0===e.classBindings&&(n=na(n=ea(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=ea(i,t,e,n,r),null===o){var u=function(t,e,n){var r=e.classBindings;if(0!==wi(r))return t[_i(r)]}(t,e);void 0!==u&&Array.isArray(u)&&function(t,e,n,r){t[_i(e.classBindings)]=r}(t,e,0,u=na(u=ea(null,t,e,u[1],r),e.attrs,r))}else o=function(t,e,n){for(var r,i=e.directiveEnd,o=1+e.directiveStylingLast;o<i;o++)r=na(r,t[o].hostAttrs,true);return na(r,e.attrs,true)}(t,e)}return void 0!==o&&(e.residualClasses=o),n}(i,o,e,r),n,a)}}(o,t,a,true),e!==pi&&Uo(i,a,e)&&function(t,e,n,r,i,o,a,u){if(3&e.type){var s=t.data,l=s[u+1];ia(function(t){return 1==(1&t)}(l)?ra(s,e,n,i,wi(l),a):void 0)||(ia(o)||function(t){return 2==(2&t)}(l)&&(o=ra(s,null,n,i,u,a)),function(t,e,n,r,i){var o=Ae(t);i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,Re(un(),n),i,o))}}(o,o.data[un()],i,i[ce],t,i[a+1]=function(t,e){return null==t||"object"==typeof t&&(t=vt(kr(t))),t}(e),true,a)}(t,e),ta}function ea(t,e,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u<a&&(r=na(r,(o=e[u]).hostAttrs,i),o!==t);)u++;return null!==t&&(n.directiveStylingLast=u),r}function na(t,e,n){var r=n?1:2,i=-1;if(null!==e)for(var o=0;o<e.length;o++){var a=e[o];"number"==typeof a?i=a:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Xn(t,a,!!n||e[++o]))}return void 0===t?null:t}function ra(t,e,n,r,i,o){for(var a,u=null===e;i>0;){var s=t[i],l=Array.isArray(s),c=l?s[1]:s,h=null===c,f=n[i+1];f===pi&&(f=h?Wt:void 0);var d=h?tr(f,r):c===r?f:void 0;if(l&&!ia(d)&&(d=tr(s,r)),ia(d)&&(a=d,u))return a;var v=t[i+1];i=u?_i(v):wi(v)}if(null!==e){var p=o?e.residualClasses:e.residualStyles;null!=p&&(a=tr(p,r))}return a}function ia(t){return void 0!==t}function oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),r=Le(),i=t+20,o=r.firstCreatePass?xi(r,i,1,e,null):r.data[i],a=n[i]=function(t,e){return Ae(t)?t.createText(e):t.createTextNode(e)}(n[ce],e);Kr(r,n,a,o),qe(o,!1)}function aa(t){return ua("",t,""),aa}function ua(t,e,n){var r=He(),i=Fo(r,t,e,n);return i!==pi&&function(t,e,n){var r=Re(e,t);!function(t,e,n){Ae(t)?t.setValue(e,n):e.textContent=n}(t[ce],r,n)}(r,un(),i),ua}var sa=void 0,la=["en",[["a","p"],["AM","PM"],sa],[["AM","PM"],sa,sa],[["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"]],sa,[["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"]],sa,[["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}",sa,"{1} 'at' {0}",sa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ca={};function ha(t){return t in ca||(ca[t]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[t]),ca[t]}var fa=((fa=fa||{})[fa.LocaleId=0]="LocaleId",fa[fa.DayPeriodsFormat=1]="DayPeriodsFormat",fa[fa.DayPeriodsStandalone=2]="DayPeriodsStandalone",fa[fa.DaysFormat=3]="DaysFormat",fa[fa.DaysStandalone=4]="DaysStandalone",fa[fa.MonthsFormat=5]="MonthsFormat",fa[fa.MonthsStandalone=6]="MonthsStandalone",fa[fa.Eras=7]="Eras",fa[fa.FirstDayOfWeek=8]="FirstDayOfWeek",fa[fa.WeekendRange=9]="WeekendRange",fa[fa.DateFormat=10]="DateFormat",fa[fa.TimeFormat=11]="TimeFormat",fa[fa.DateTimeFormat=12]="DateTimeFormat",fa[fa.NumberSymbols=13]="NumberSymbols",fa[fa.NumberFormats=14]="NumberFormats",fa[fa.CurrencyCode=15]="CurrencyCode",fa[fa.CurrencySymbol=16]="CurrencySymbol",fa[fa.CurrencyName=17]="CurrencyName",fa[fa.Currencies=18]="Currencies",fa[fa.Directionality=19]="Directionality",fa[fa.PluralCase=20]="PluralCase",fa[fa.ExtraData=21]="ExtraData",fa),da="en-US";function va(t){(function(t,e){null==t&&function(t,e,n,r){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(e,t)})(t,"Expected localeId to be defined"),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function pa(t,e,n,r,i){if(t=mt(t),Array.isArray(t))for(var o=0;o<t.length;o++)pa(t[o],e,n,r,i);else{var a=Le(),u=He(),s=Co(t)?t:mt(t.provide),l=ko(t),c=ze(),h=1048575&c.providerIndexes,f=c.directiveStart,d=c.providerIndexes>>20;if(Co(t)||!t.multi){var v=new yn(l,i,Mo),p=ma(s,e,i?h:h+d,f);-1===p?(Pn(Tn(c,u),a,s),ya(a,t,e.length),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(v),u.push(v)):(n[p]=v,u[p]=v)}else{var y=ma(s,e,h+d,f),g=ma(s,e,h,h+d),m=y>=0&&n[y],_=g>=0&&n[g];if(i&&!_||!i&&!m){Pn(Tn(c,u),a,s);var k=function(t,e,n,r,i){var o=new yn(t,n,Mo);return o.multi=[],o.index=e,o.componentProviders=0,ga(o,i,r&&!n),o}(i?ka:_a,n.length,i,r,l);!i&&_&&(n[g].providerFactory=k),ya(a,t,e.length,0),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(k),u.push(k)}else ya(a,t,y>-1?y:g,ga(n[i?g:y],l,!i&&r));!i&&r&&_&&n[g].componentProviders++}}}function ya(t,e,n,r){var i=Co(e);if(i||function(t){return!!t.useClass}(e)){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var u=a.indexOf(n);-1===u?a.push(n,[r,o]):a[u+1].push(r,o)}else a.push(n,o)}}}function ga(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ma(t,e,n,r){for(var i=n;i<r;i++)if(e[i]===t)return i;return-1}function _a(t,e,n,r){return wa(this.multi,[])}function ka(t,e,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,u=Mn(n,n[1],this.providerFactory.index,r);wa(o,i=u.slice(0,a));for(var s=a;s<u.length;s++)i.push(u[s])}else wa(o,i=[]);return i}function wa(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function ba(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=Le();if(r.firstCreatePass){var i=ye(t);pa(n,r.data,r.blueprint,i,!0),pa(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}var Ca=function t(){y(this,t)},Sa=function t(){y(this,t)};function Ea(){}function xa(t,e){return new Ta(Ie(t,e))}Sa.NULL=new(function(){function t(){y(this,t)}return m(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(vt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}());var Aa=function(){return xa(ze(),He())},Ta=function(){var t=function t(e){y(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Aa,t}(),Oa=function t(){y(this,t)},Ra=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=function(){return Ia()},t}(),Ia=function(){var t=He(),e=je(ze().index,t);return function(t){return t[ce]}(he(e)?e:t)},Pa=function(){var t=function t(){y(this,t)};return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return null}}),t}(),ja=new function t(e){y(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}("12.2.3"),Va=function(){function t(){y(this,t)}return m(t,[{key:"supports",value:function(t){return Do(t)}},{key:"create",value:function(t){return new Na(t)}}]),t}(),Da=function(t,e){return e},Na=function(){function t(e){y(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Da}return m(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Ha(n,r,i)?e:n,a=Ha(o,r,i),u=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var s=a-r,l=u-r;if(s!=l){for(var c=0;c<s;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;l<=f&&f<s&&(i[c]=h+1)}i[o.previousIndex]=l-s}}a!==u&&t(o,a,u)}}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachMovedItem",value:function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"forEachIdentityChange",value:function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!Do(t))throw new Error("Error trying to diff '".concat(vt(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var u=0;u<this.length;u++)r=t[u],i=this._trackByFn(u,r),null!==o&&Object.is(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,u)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,u),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r,i=t[jo()]();!(r=i.next()).done;)e(r.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&Object.is(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),Object.is(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):t=this._addAfter(new Ua(e,n),i,r),t}},{key:"_verifyReinsertion",value:function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}},{key:"_truncate",value:function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_moveAfter",value:function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_addAfter",value:function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ma),this._linkedRecords.put(t),t.currentIndex=n,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}},{key:"_addToMoves",value:function(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ma),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}},{key:"_addIdentityChange",value:function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}]),t}(),Ua=function t(e,n){y(this,t),this.item=e,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},Fa=function(){function t(){y(this,t),this._head=null,this._tail=null}return m(t,[{key:"add",value:function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}},{key:"get",value:function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}},{key:"remove",value:function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}]),t}(),Ma=function(){function t(){y(this,t),this.map=new Map}return m(t,[{key:"put",value:function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}},{key:"get",value:function(t,e){var n=this.map.get(t);return n?n.get(t,e):null}},{key:"remove",value:function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),t}();function Ha(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var La=function(){function t(){y(this,t)}return m(t,[{key:"supports",value:function(t){return t instanceof Map||No(t)}},{key:"create",value:function(){return new za}}]),t}(),za=function(){function t(){y(this,t),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return m(t,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachChangedItem",value:function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||No(t)))throw new Error("Error trying to diff '".concat(vt(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}},{key:"_getOrCreateRecordForKey",value:function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Ba(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})}}]),t}(),Ba=function t(e){y(this,t),this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function qa(){return new Ga([new Va])}var Ga=function(){var t=function(){function t(e){y(this,t),this.factories=e}return m(t,[{key:"find",value:function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat(function(t){return t.name||typeof t}(t),"'"))}}],[{key:"create",value:function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){return t.create(e,n||qa())},deps:[[t,new mr,new gr]]}}}]),t}();return t.\u0275prov=St({token:t,providedIn:"root",factory:qa}),t}();function Wa(){return new Za([new La])}var Za=function(){var t=function(){function t(e){y(this,t),this.factories=e}return m(t,[{key:"find",value:function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"'"))}}],[{key:"create",value:function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){return t.create(e,n||Wa())},deps:[[t,new mr,new gr]]}}}]),t}();return t.\u0275prov=St({token:t,providedIn:"root",factory:Wa}),t}();function Qa(t,e,n,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=e[n.index];if(null!==a&&i.push(Oe(a)),fe(a))for(var u=10;u<a.length;u++){var s=a[u],l=s[1].firstChild;null!==l&&Qa(s[1],s,l,i)}var c=n.type;if(8&c)Qa(t,e,n.child,i);else if(32&c)for(var h=Vr(n,e),f=void 0;f=h();)i.push(f);else if(16&c){var d=$r(e,n);if(Array.isArray(d))i.push.apply(i,r(d));else{var v=Dr(e[16]);Qa(v[1],v,d,i,!0)}}n=o?n.projectionNext:n.next}return i}var Ka=function(){function t(e,n){y(this,t),this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return m(t,[{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return Qa(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(t){this._lView[8]=t}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var t=this._lView[3];if(fe(t)){var e=t[8],n=e?e.indexOf(this):-1;n>-1&&(zr(t,n),Yn(e,n))}this._attachedToViewContainer=!1}Br(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){!function(t,e,n,r){var i=io(e);i.push(r)}(this._lView[1],this._lView,0,t)}},{key:"markForCheck",value:function(){Xi(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){to(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){Ze(!0);try{to(t,e,n)}finally{Ze(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(t,e){ti(t,e,e[ce],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),Ja=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this,t))._view=t,r}return m(n,[{key:"detectChanges",value:function(){eo(this._view)}},{key:"checkNoChanges",value:function(){!function(t){Ze(!0);try{eo(t)}finally{Ze(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Ka),$a=function(t){return function(t,e,n){if(ve(t)&&!n){var r=je(t.index,e);return new Ka(r,r)}return 47&t.type?new Ka(e[16],e):null}(ze(),He(),16==(16&t))},Ya=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=$a,t}(),Xa=[new La],tu=new Ga([new Va]),eu=new Za(Xa),nu=function(){return function(t,e){return 4&t.type?new iu(e,t,xa(t,e)):null}(ze(),He())},ru=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=nu,t}(),iu=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=r,o.elementRef=i,o}return m(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Ei(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Ti(e,n,t),new Ka(n)}}]),n}(ru),ou=function t(){y(this,t)},au=function t(){y(this,t)},uu=function(){return function(t,e){var n,r=e[t.index];if(fe(r))n=r;else{var i;if(8&t.type)i=Oe(r);else{var o=e[ce];i=o.createComment("");var a=Ie(t,e);Gr(o,Qr(o,a),i,function(t,e){return Ae(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=Qi(r,e,i,t),Yi(e,n)}return new lu(n,t,e)}(ze(),He())},su=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=uu,t}(),lu=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=r,o._hostLView=i,o}return m(n,[{key:"element",get:function(){return xa(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new zn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=In(this._hostTNode,this._hostLView);if(bn(t)){var e=Sn(t,this._hostLView),n=Cn(t);return new zn(e[1].data[n+8],e)}return new zn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=cu(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(ou,null);a&&(i=a)}var u=t.create(o,r,void 0,i);return this.insert(u.hostView,e),u}},{key:"insert",value:function(t,e){var r=t._lView,i=r[1];if(function(t){return fe(t[3])}(r)){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=r[3],u=new n(a,a[6],a[3]);u.detach(u.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],$n(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;var a=e[17];null!==a&&n!==a&&function(t,e){var n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(a,e);var u=e[19];null!==u&&u.insertView(t),e[2]|=128}(i,r,l,s);var c=Yr(s,l),h=r[ce],f=Qr(h,l[7]);return null!==f&&function(t,e,n,r,i,o){r[0]=i,r[6]=e,ti(t,r,n,1,i,o)}(i,l[6],h,r,f,c),t.attachToViewContainerRef(),$n(hu(l),s,t),t}},{key:"move",value:function(t,e){return this.insert(t,e)}},{key:"indexOf",value:function(t){var e=cu(this._lContainer);return null!==e?e.indexOf(t):-1}},{key:"remove",value:function(t){var e=this._adjustIndex(t,-1),n=zr(this._lContainer,e);n&&(Yn(hu(this._lContainer),e),Br(n[1],n))}},{key:"detach",value:function(t){var e=this._adjustIndex(t,-1),n=zr(this._lContainer,e);return n&&null!=Yn(hu(this._lContainer),e)?new Ka(n):null}},{key:"_adjustIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(su);function cu(t){return t[8]}function hu(t){return t[8]||(t[8]=[])}var fu={},du=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this)).ngModule=t,r}return m(n,[{key:"resolveComponentFactory",value:function(t){var e=se(t);return new yu(e,this.ngModule)}}]),n}(Sa);function vu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var pu=new Zn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ir}}),yu=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=function(t){return t.map(vi).join(",")}(t.selectors),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return m(n,[{key:"inputs",get:function(){return vu(this.componentDef.inputs)}},{key:"outputs",get:function(){return vu(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,fu,i);return o!==fu||r===fu?o:e.get(n,r,i)}}}(t,r.injector):t,u=a.get(Oa,Te),s=a.get(Pa,null),l=u.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Ae(t))return t.selectRootElement(e,n===Mt.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Hr(u.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Ir,clean:ro,playerHandler:null,flags:0},v=Di(0,null,null,1,0,null,null,null,null,null),p=Ei(null,v,d,f,null,null,u,l,s,a);tn(p);try{var y=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var u=xi(a,20,2,"#host",null),s=u.mergedAttrs=e.hostAttrs;null!==s&&(so(u,s,!0),null!==t&&(gn(i,t,s),null!==u.classes&&ri(i,t,u.classes),null!==u.styles&&ni(i,t,u.styles)));var l=r.createRenderer(t,e),c=Ei(n,Vi(e),null,e.onPush?64:16,n[20],u,r,l,null,null);return a.firstCreatePass&&(Pn(Tn(u,n),a,e.type),Li(a,u),Bi(u,n.length,1)),Yi(n,c),n[20]=c}(h,this.componentDef,p,u,l);if(h)if(n)gn(l,h,["ng-version",ja.full]);else{var g=function(t){for(var e=[],n=[],r=1,i=2;r<t.length;){var o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!ci(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),m=g.attrs,_=g.classes;m&&gn(l,h,m),_&&_.length>0&&ri(l,h,_.join(" "))}if(o=Pe(v,20),void 0!==e)for(var k=o.projection=[],w=0;w<this.ngContentSelectors.length;w++){var b=e[w];k.push(null!=b?Array.from(b):null)}i=function(t,e,n,r,i){var o=n[1],a=function(t,e,n){var r=ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),qi(t,r,e,Ai(t,e,1,null),n));var i=Mn(e,t,r.directiveStart,r);xr(i,e);var o=Ie(r,e);return o&&xr(o,e),i}(o,n,e);if(r.components.push(a),t[8]=a,i&&i.forEach(function(t){return t(a,e)}),e.contentQueries){var u=ze();e.contentQueries(1,a,u.directiveStart)}var s=ze();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(sn(s.index),Mi(n[1],s,0,s.directiveStart,s.directiveEnd,e),Hi(e,a)),a}(y,this.componentDef,p,d,[xo]),Ti(v,p,null)}finally{an()}return new gu(this.componentType,i,xa(o,p),p,o)}}]),n}(Ca),gu=function(t){l(n,t);var e=h(n);function n(t,r,i,o,a){var u;return y(this,n),(u=e.call(this)).location=i,u._rootLView=o,u._tNode=a,u.instance=r,u.hostView=u.changeDetectorRef=new Ja(o),u.componentType=t,u}return m(n,[{key:"injector",get:function(){return new zn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(t){this.hostView.onDestroy(t)}}]),n}(function(){return function t(){y(this,t)}}()),mu=new Map,_u=function(t){l(n,t);var e=h(n);function n(t,r){var i;y(this,n),(i=e.call(this))._parent=r,i._bootstrapComponents=[],i.injector=d(i),i.destroyCbs=[],i.componentFactoryResolver=new du(d(i));var o=le(t),a=function(t){return t[$t]||null}(t);return a&&va(a),i._bootstrapComponents=Pr(o.bootstrap),i._r3Injector=go(t,r,[{provide:ou,useValue:d(i)},{provide:Sa,useValue:i.componentFactoryResolver}],vt(t)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(t),i}return m(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Eo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt.Default;return t===Eo||t===ou||t===co?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(ou),ku=function(t){l(r,t);var e=h(r);function r(t){var i;return y(this,r),(i=e.call(this)).moduleType=t,null!==le(t)&&function(t){var e=new Set;!function t(r){var i=le(r,!0),o=i.id;null!==o&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(vt(e)," vs ").concat(vt(e.name)))}(o,mu.get(o),r),mu.set(o,r));var a,u=n(Pr(i.imports));try{for(u.s();!(a=u.n()).done;){var s=a.value;e.has(s)||(e.add(s),t(s))}}catch(l){u.e(l)}finally{u.f()}}(t)}(t),i}return m(r,[{key:"create",value:function(t){return new _u(this.moduleType,t)}}]),r}(au);function wu(t,e,n){var r=t+20,i=He(),o=function(t,e){return t[e]}(i,r);return function(t,e){return Vo.isWrapped(e)&&(e=Vo.unwrap(e),t[Fe.lFrame.bindingIndex]=pi),e}(i,function(t,e){return t[1].data[e].pure}(i,r)?function(t,e,n,r,i,o){var a=e+n;return Uo(t,a,i)?function(t,e,n){return t[e]=n}(t,a+1,o?r.call(o,i):r(i)):function(t,e){var n=t[e];return n===pi?void 0:n}(t,a+1)}(i,function(){var t=Fe.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,o.transform,n,o):o.transform(n))}function bu(t){return function(e){setTimeout(t,void 0,e)}}var Cu=function(t){l(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y(this,n),(t=e.call(this)).__isAsync=r,t}return m(n,[{key:"emit",value:function(t){s(p(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var i,o,a,u=t,l=e||function(){return null},c=r;if(t&&"object"==typeof t){var h=t;u=null===(i=h.next)||void 0===i?void 0:i.bind(h),l=null===(o=h.error)||void 0===o?void 0:o.bind(h),c=null===(a=h.complete)||void 0===a?void 0:a.bind(h)}this.__isAsync&&(l=bu(l),u&&(u=bu(u)),c&&(c=bu(c)));var f=s(p(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return t instanceof x&&t.add(f),f}}]),n}(F);Symbol;var Su=new Zn("Application Initializer"),Eu=function(){var t=function(){function t(e){var n=this;y(this,t),this.appInits=e,this.resolve=Ea,this.reject=Ea,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,e){n.resolve=t,n.reject=e})}return m(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=function(n){var r=t.appInits[n]();if(Go(r))e.push(r);else if(Wo(r)){var i=new Promise(function(t,e){r.subscribe({complete:t,error:e})});e.push(i)}},i=0;i<this.appInits.length;i++)r(i);Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Su,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),xu=new Zn("AppId"),Au={provide:xu,useFactory:function(){return"".concat(Tu()).concat(Tu()).concat(Tu())},deps:[]};function Tu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Ou=new Zn("Platform Initializer"),Ru=new Zn("Platform ID"),Iu=new Zn("appBootstrapListener"),Pu=function(){var t=function(){function t(){y(this,t)}return m(t,[{key:"log",value:function(t){console.log(t)}},{key:"warn",value:function(t){console.warn(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ju=new Zn("LocaleId"),Vu=new Zn("DefaultCurrencyCode"),Du=function t(e,n){y(this,t),this.ngModuleFactory=e,this.componentFactories=n},Nu=function(t){return new ku(t)},Uu=Nu,Fu=function(t){return Promise.resolve(Nu(t))},Mu=function(t){var e=Nu(t),n=Pr(le(t).declarations).reduce(function(t,e){var n=se(e);return n&&t.push(new yu(n)),t},[]);return new Du(e,n)},Hu=Mu,Lu=function(t){return Promise.resolve(Mu(t))},zu=function(){var t=function(){function t(){y(this,t),this.compileModuleSync=Uu,this.compileModuleAsync=Fu,this.compileModuleAndAllComponentsSync=Hu,this.compileModuleAndAllComponentsAsync=Lu}return m(t,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(t){}},{key:"getModuleId",value:function(t){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Bu=Promise.resolve(0);function qu(t){"undefined"==typeof Zone?Bu.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var Gu=function(){function t(e){var n=e.enableLongStackTrace,r=void 0!==n&&n,i=e.shouldCoalesceEventChangeDetection,o=void 0!==i&&i,a=e.shouldCoalesceRunChangeDetection,u=void 0!==a&&a;if(y(this,t),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cu(!1),this.onMicrotaskEmpty=new Cu(!1),this.onStable=new Cu(!1),this.onError=new Cu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!u&&o,s.shouldCoalesceRunChangeDetection=u,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){var t=qt.requestAnimationFrame,e=qt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){var e=function(){!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qt,function(){t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){t.lastRequestAnimationFrameId=-1,Qu(t),t.isCheckStableRunning=!0,Zu(t),t.isCheckStableRunning=!1},void 0,function(){},function(){})),t.fakeTopEventTask.invoke()}),Qu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(n,r,i,o,a,u){try{return Ku(t),n.invokeTask(i,o,a,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Ju(t)}},onInvoke:function(n,r,i,o,a,u,s){try{return Ku(t),n.invoke(i,o,a,u,s)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ju(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Qu(t),Zu(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}(s)}return m(t,[{key:"run",value:function(t,e,n){return this._inner.run(t,e,n)}},{key:"runTask",value:function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Wu,Ea,Ea);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(t,e,n){return this._inner.runGuarded(t,e,n)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),t}(),Wu={};function Zu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Qu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ku(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ju(t){t._nesting--,Zu(t)}var $u,Yu=function(){function t(){y(this,t),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cu,this.onMicrotaskEmpty=new Cu,this.onStable=new Cu,this.onError=new Cu}return m(t,[{key:"run",value:function(t,e,n){return t.apply(e,n)}},{key:"runGuarded",value:function(t,e,n){return t.apply(e,n)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,e,n,r){return t.apply(e,n)}}]),t}(),Xu=function(){var t=function(){function t(e){var n=this;y(this,t),this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return m(t,[{key:"_watchAngularEvents",value:function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Gu.assertNotInAngularZone(),qu(function(){t._isZoneStable=!0,t._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 t=this;if(this.isStable())qu(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]}},{key:"addCallback",value:function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Gu))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ts=function(){var t=function(){function t(){y(this,t),this._applications=new Map,es.addToWindow(this)}return m(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||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(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return es.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),es=new(function(){function t(){y(this,t)}return m(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),ns=!0,rs=!1,is=new Zn("AllowMultipleToken"),os=function t(e,n){y(this,t),this.name=e,this.token=n};function as(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(e),i=new Zn(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=us();if(!o||o.injector.get(is,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:fo,useValue:"platform"});!function(t){if($u&&!$u.destroyed&&!$u.injector.get(is,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");$u=t.get(ss);var e=t.get(Ou,null);e&&e.forEach(function(t){return t()})}(Eo.create({providers:a,name:r}))}return function(t){var e=us();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function us(){return $u&&!$u.destroyed?$u:null}var ss=function(){var t=function(){function t(e){y(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n=this,r=function(t,e){return"noop"===t?new Yu:("zone.js"===t?void 0:t)||new Gu({enableLongStackTrace:(rs=!0,ns),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)})}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Gu,useValue:r}];return r.run(function(){var o=Eo.create({providers:i,parent:n.injector,name:t.moduleType.name}),a=t.create(o),u=a.injector.get(Rr,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.runOutsideAngular(function(){var t=r.onError.subscribe({next:function(t){u.handleError(t)}});a.onDestroy(function(){hs(n._modules,a),t.unsubscribe()})}),function(t,r,i){try{var o=((u=a.injector.get(Eu)).runInitializers(),u.donePromise.then(function(){return va(a.injector.get(ju,da)||da),n._moduleDoBootstrap(a),a}));return Go(o)?o.catch(function(e){throw r.runOutsideAngular(function(){return t.handleError(e)}),e}):o}catch(e){throw r.runOutsideAngular(function(){return t.handleError(e)}),e}var u}(u,r)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=ls({},n);return function(t,e,n){var r=new ku(n);return Promise.resolve(r)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,r)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(cs);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(vt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Eo))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function ls(t,e){return Array.isArray(e)?e.reduce(ls,t):Object.assign(Object.assign({},t),e)}var cs=function(){var t=function(){function t(e,n,r,i,o){var a=this;y(this,t),this._zone=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new j(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),s=new j(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){Gu.assertNotInAngularZone(),qu(function(){!a._stable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks&&(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Gu.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Number.POSITIVE_INFINITY,i=null,o=e[e.length-1];return H(o)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===i&&1===e.length&&e[0]instanceof j?e[0]:rt(r)(it(e,i))}(u,s.pipe(function(t){return ot()(function(t,e){return function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,lt);return r.source=e,r.subjectFactory=n,r}}(ht)(t))}))}return m(t,[{key:"bootstrap",value:function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Ca?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(ou),o=n.create(Eo.NULL,[],e||n.selector,i),a=o.location.nativeElement,u=o.injector.get(Xu,null),s=u&&o.injector.get(ts);return u&&s&&s.registerApplication(a,u),o.onDestroy(function(){r.detachView(o.hostView),hs(r.components,o),s&&s.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,r=n(this._views);try{for(r.s();!(e=r.n()).done;){var i;e.value.detectChanges()}}catch(o){r.e(o)}finally{r.f()}}catch(i){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;hs(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Iu,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Gu),hr(Eo),hr(Rr),hr(Sa),hr(Eu))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function hs(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var fs=function t(){y(this,t)},ds=function t(){y(this,t)},vs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ps=function(){var t=function(){function t(e,n){y(this,t),this._compiler=e,this._config=n||vs}return m(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var n=this,r=e(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),c(8255)(i).then(function(t){return t[o]}).then(function(t){return ys(t,i,o)}).then(function(t){return n._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var n=e(t.split("#"),2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),c(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return ys(t,r,i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(zu),hr(ds,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function ys(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var gs=as(null,"core",[{provide:Ru,useValue:"unknown"},{provide:ss,deps:[Eo]},{provide:ts,deps:[]},{provide:Pu,deps:[]}]),ms=[{provide:cs,useClass:cs,deps:[Gu,Eo,Rr,Sa,Eu]},{provide:pu,deps:[Gu],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Eu,useClass:Eu,deps:[[new gr,Su]]},{provide:zu,useClass:zu,deps:[]},Au,{provide:Ga,useFactory:function(){return tu},deps:[]},{provide:Za,useFactory:function(){return eu},deps:[]},{provide:ju,useFactory:function(t){return va(t=t||"undefined"!=typeof $localize&&$localize.locale||da),t},deps:[[new yr(ju),new gr,new mr]]},{provide:Vu,useValue:"USD"}],_s=function(){var t=function t(e){y(this,t)};return t.\u0275fac=function(e){return new(e||t)(hr(cs))},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({providers:ms}),t}(),ks=null;function ws(){return ks}var bs=new Zn("DocumentToken"),Cs=function(){var t=function(){function t(){y(this,t)}return m(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:Ss,token:t,providedIn:"platform"}),t}();function Ss(){return hr(xs)}var Es=new Zn("Location Initialized"),xs=function(){var t=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this))._doc=t,r._init(),r}return m(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return ws().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=ws().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=ws().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){As()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){As()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),n}(Cs);return t.\u0275fac=function(e){return new(e||t)(hr(bs))},t.\u0275prov=St({factory:Ts,token:t,providedIn:"platform"}),t}();function As(){return!!window.history.pushState}function Ts(){return new xs(hr(bs))}function Os(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Rs(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Is(t){return t&&"?"!==t[0]?"?"+t:t}var Ps=function(){var t=function(){function t(){y(this,t)}return m(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:js,token:t,providedIn:"root"}),t}();function js(t){var e=hr(bs).location;return new Ds(hr(Cs),e&&e.origin||"")}var Vs=new Zn("appBaseHref"),Ds=function(){var t=function(t){l(n,t);var e=h(n);function n(t,r){var i;if(y(this,n),(i=e.call(this))._platformLocation=t,i._removeListenerFns=[],null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,f(i)}return m(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return Os(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+Is(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Is(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Is(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(Ps);return t.\u0275fac=function(e){return new(e||t)(hr(Cs),hr(Vs,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Ns=function(){var t=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",i._removeListenerFns=[],null!=r&&(i._baseHref=r),i}return m(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=Os(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Is(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Is(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(Ps);return t.\u0275fac=function(e){return new(e||t)(hr(Cs),hr(Vs,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Us=function(){var t=function(){function t(e,n){var r=this;y(this,t),this._subject=new Cu,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Rs(Ms(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return m(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+Is(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Ms(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Is(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Is(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Ps),hr(Cs))},t.normalizeQueryParams=Is,t.joinWithSlash=Os,t.stripTrailingSlash=Rs,t.\u0275prov=St({factory:Fs,token:t,providedIn:"root"}),t}();function Fs(){return new Us(hr(Ps),hr(Cs))}function Ms(t){return t.replace(/\/index.html$/,"")}var Hs=((Hs=Hs||{})[Hs.Zero=0]="Zero",Hs[Hs.One=1]="One",Hs[Hs.Two=2]="Two",Hs[Hs.Few=3]="Few",Hs[Hs.Many=4]="Many",Hs[Hs.Other=5]="Other",Hs),Ls=function t(){y(this,t)},zs=function(){var t=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this)).locale=t,r}return m(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=ha(e);if(n)return n;var r=e.split("-")[0];if(n=ha(r))return n;if("en"===r)return la;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[fa.PluralCase]}(e||this.locale)(t)){case Hs.Zero:return"zero";case Hs.One:return"one";case Hs.Two:return"two";case Hs.Few:return"few";case Hs.Many:return"many";default:return"other"}}}]),n}(Ls);return t.\u0275fac=function(e){return new(e||t)(hr(ju))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Bs(t,r){r=encodeURIComponent(r);var i,o=n(t.split(";"));try{for(o.s();!(i=o.n()).done;){var a=i.value,u=a.indexOf("="),s=e(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),l=s[0],c=s[1];if(l.trim()===r)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var qs=function(){function t(e,n,r,i){y(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return m(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Gs=function(){var t=function(){function t(e,n,r){y(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat(function(t){return t.name||typeof t}(t),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new qs(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Ws(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=e._viewContainer.get(r);e._viewContainer.move(u,i);var s=new Ws(t,u);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);a.context.index=i,a.context.count=o,a.context.ngForOf=this._ngForOf}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})}},{key:"_perViewChange",value:function(t,e){t.context.$implicit=e.item}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Mo(su),Mo(ru),Mo(Ga))},t.\u0275dir=ue({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t}(),Ws=function t(e,n){y(this,t),this.record=e,this.view=n},Zs=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({providers:[{provide:Ls,useClass:zs}]}),t}(),Qs=function(){var t=function t(){y(this,t)};return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new Ks(hr(bs),window)}}),t}(),Ks=function(){function t(e,n){y(this,t),this.document=e,this.window=n,this.offset=function(){return[0,0]}}return m(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow))for(var r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;i;){var o=i.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}i=r.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=Js(this.window.history)||Js(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function Js(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var $s,Ys=function t(){y(this,t)},Xs=function(t){l(n,t);var e=h(n);function n(){return y(this,n),e.apply(this,arguments)}return m(n,[{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(tl=tl||document.querySelector("base"))?tl.getAttribute("href"):null;return null==e?null:function(t){($s=$s||document.createElement("a")).setAttribute("href",t);var e=$s.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){tl=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return Bs(document.cookie,t)}}],[{key:"makeCurrent",value:function(){!function(t){ks||(ks=t)}(new n)}}]),n}(function(t){l(n,t);var e=h(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return n}(function(){return function t(){y(this,t)}}())),tl=null,el=new Zn("TRANSITION_ID"),nl=[{provide:Su,useFactory:function(t,e,n){return function(){n.get(Eu).donePromise.then(function(){for(var n=ws(),r=e.querySelectorAll('style[ng-transition="'.concat(t,'"]')),i=0;i<r.length;i++)n.remove(r[i])})}},deps:[el,bs,Eo],multi:!0}],rl=function(){function t(){y(this,t)}return m(t,[{key:"addToWindow",value:function(t){qt.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},qt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},qt.getAllAngularRootElements=function(){return t.getAllRootElements()},qt.frameworkStabilizers||(qt.frameworkStabilizers=[]),qt.frameworkStabilizers.push(function(t){var e=qt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?ws().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){!function(t){es=t}(new t)}}]),t}(),il=function(){var t=function(){function t(){y(this,t)}return m(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ol=new Zn("EventManagerPlugins"),al=function(){var t=function(){function t(e,n){var r=this;y(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=r}),this._plugins=e.slice().reverse()}return m(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event ".concat(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(ol),hr(Gu))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ul=function(){function t(e){y(this,t),this._doc=e}return m(t,[{key:"addGlobalEventListener",value:function(t,e,n){var r=ws().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(e));return this.addEventListener(r,e,n)}}]),t}(),sl=function(){var t=function(){function t(){y(this,t),this._stylesSet=new Set}return m(t,[{key:"addStyles",value:function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(t){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ll=function(){var t=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this))._doc=t,r._hostNodes=new Map,r._hostNodes.set(t.head,[]),r}return m(n,[{key:"_addStylesToHost",value:function(t,e,n){var r=this;t.forEach(function(t){var i=r._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}},{key:"addHost",value:function(t){var e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}},{key:"removeHost",value:function(t){var e=this._hostNodes.get(t);e&&e.forEach(cl),this._hostNodes.delete(t)}},{key:"onStylesAdded",value:function(t){var e=this;this._hostNodes.forEach(function(n,r){e._addStylesToHost(t,r,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(t){return t.forEach(cl)})}}]),n}(sl);return t.\u0275fac=function(e){return new(e||t)(hr(bs))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function cl(t){ws().remove(t)}var hl={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/"},fl=/%COMP%/g;function dl(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?dl(t,i,n):(i=i.replace(fl,t),n.push(i))}return n}function vl(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var pl=function(){var t=function(){function t(e,n,r){y(this,t),this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new yl(e)}return m(t,[{key:"createRenderer",value:function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Mt.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new gl(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case 1:case Mt.ShadowDom:return new ml(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=dl(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(al),hr(ll),hr(xu))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),yl=function(){function t(e){y(this,t),this.eventManager=e,this.data=Object.create(null)}return m(t,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,e){return e?document.createElementNS(hl[e]||e,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,e){t.appendChild(e)}},{key:"insertBefore",value:function(t,e,n){t&&t.insertBefore(e,n)}},{key:"removeChild",value:function(t,e){t&&t.removeChild(e)}},{key:"selectRootElement",value:function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'.concat(t,'" did not match any elements'));return e||(n.textContent=""),n}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,e,n,r){if(r){e=r+":"+e;var i=hl[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}},{key:"removeAttribute",value:function(t,e,n){if(n){var r=hl[n];r?t.removeAttributeNS(r,e):t.removeAttribute("".concat(n,":").concat(e))}else t.removeAttribute(e)}},{key:"addClass",value:function(t,e){t.classList.add(e)}},{key:"removeClass",value:function(t,e){t.classList.remove(e)}},{key:"setStyle",value:function(t,e,n,r){r&(jr.DashCase|jr.Important)?t.style.setProperty(e,n,r&jr.Important?"important":""):t.style[e]=n}},{key:"removeStyle",value:function(t,e,n){n&jr.DashCase?t.style.removeProperty(e):t.style[e]=""}},{key:"setProperty",value:function(t,e,n){t[e]=n}},{key:"setValue",value:function(t,e){t.nodeValue=e}},{key:"listen",value:function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,vl(n)):this.eventManager.addEventListener(t,e,vl(n))}}]),t}(),gl=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;y(this,n),(a=e.call(this,t)).component=i;var u=dl(o+"-"+i.id,i.styles,[]);return r.addStyles(u),a.contentAttr=function(t){return"_ngcontent-%COMP%".replace(fl,t)}(o+"-"+i.id),a.hostAttr=function(t){return"_nghost-%COMP%".replace(fl,t)}(o+"-"+i.id),a}return m(n,[{key:"applyToHost",value:function(t){s(p(n.prototype),"setAttribute",this).call(this,t,this.hostAttr,"")}},{key:"createElement",value:function(t,e){var r=s(p(n.prototype),"createElement",this).call(this,t,e);return s(p(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(yl),ml=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;y(this,n),(a=e.call(this,t)).sharedStylesHost=r,a.hostEl=i,a.shadowRoot=i.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var u=dl(o.id,o.styles,[]),s=0;s<u.length;s++){var l=document.createElement("style");l.textContent=u[s],a.shadowRoot.appendChild(l)}return a}return m(n,[{key:"nodeOrShadowRoot",value:function(t){return t===this.hostEl?this.shadowRoot:t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(t,e){return s(p(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"insertBefore",value:function(t,e,r){return s(p(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(t),e,r)}},{key:"removeChild",value:function(t,e){return s(p(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"parentNode",value:function(t){return this.nodeOrShadowRoot(s(p(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(t)))}}]),n}(yl),_l=function(){var t=function(t){l(n,t);var e=h(n);function n(t){return y(this,n),e.call(this,t)}return m(n,[{key:"supports",value:function(t){return!0}},{key:"addEventListener",value:function(t,e,n){var r=this;return t.addEventListener(e,n,!1),function(){return r.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){return t.removeEventListener(e,n)}}]),n}(ul);return t.\u0275fac=function(e){return new(e||t)(hr(bs))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),kl=["alt","control","meta","shift"],wl={"\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"},bl={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"},Cl={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Sl=function(){var t=function(t){l(n,t);var e=h(n);function n(t){return y(this,n),e.call(this,t)}return m(n,[{key:"supports",value:function(t){return null!=n.parseEventName(t)}},{key:"addEventListener",value:function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ws().onAndCancel(t,i.domEventName,o)})}}],[{key:"parseEventName",value:function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(kl.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&bl.hasOwnProperty(e)&&(e=bl[e]))}return wl[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),kl.forEach(function(r){r!=n&&Cl[r](t)&&(e+=r+".")}),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(ul);return t.\u0275fac=function(e){return new(e||t)(hr(bs))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),El=as(gs,"browser",[{provide:Ru,useValue:"browser"},{provide:Ou,useValue:function(){Xs.makeCurrent(),rl.init()},multi:!0},{provide:bs,useFactory:function(){return function(t){Se=t}(document),document},deps:[]}]),xl=[[],{provide:fo,useValue:"root"},{provide:Rr,useFactory:function(){return new Rr},deps:[]},{provide:ol,useClass:_l,multi:!0,deps:[bs,Gu,Ru]},{provide:ol,useClass:Sl,multi:!0,deps:[bs]},[],{provide:pl,useClass:pl,deps:[al,ll,xu]},{provide:Oa,useExisting:pl},{provide:sl,useExisting:ll},{provide:ll,useClass:ll,deps:[bs]},{provide:Xu,useClass:Xu,deps:[Gu]},{provide:al,useClass:al,deps:[ol,Gu]},{provide:Ys,useClass:il,deps:[]},[]],Al=function(){var t=function(){function t(e){if(y(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:xu,useValue:e.appId},{provide:el,useExisting:xu},nl]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(t,12))},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({providers:xl,imports:[Zs,_s]}),t}();function Tl(t,e){return new j(function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,u=function(u){var s=J(t[u]),l=!1;n.add(s.subscribe({next:function(t){l||(l=!0,a++),i[u]=t},error:function(t){return n.error(t)},complete:function(){(++o===r||!l)&&(a===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},s=0;s<r;s++)u(s);else n.complete()})}"undefined"!=typeof window&&window;var Ol=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return m(t,[{key:"setProperty",value:function(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"setDisabledState",value:function(t){this.setProperty("disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Mo(Ra),Mo(Ta))},t.\u0275dir=ue({type:t}),t}(),Rl=function(){var t,e=function(t){l(n,t);var e=h(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(Ol);return e.\u0275fac=function(n){return(t||(t=Bn(e)))(n||e)},e.\u0275dir=ue({type:e,features:[Ao]}),e}(),Il=new Zn("NgValueAccessor"),Pl={provide:Il,useExisting:gt(function(){return Vl}),multi:!0},jl=new Zn("CompositionEventMode"),Vl=function(){var t=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r))._compositionMode=i,o._composing=!1,null==o._compositionMode&&(o._compositionMode=!function(){var t=ws()?ws().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}()),o}return m(n,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),n}(Ol);return t.\u0275fac=function(e){return new(e||t)(Mo(Ra),Mo(Ta),Mo(jl,8))},t.\u0275dir=ue({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Zo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[ba([Pl]),Ao]}),t}(),Dl=new Zn("NgValidators"),Nl=new Zn("NgAsyncValidators");function Ul(t){return null!=t}function Fl(t){var e=Go(t)?J(t):t;return Wo(e),e}function Ml(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Hl(t,e){return e.map(function(e){return e(t)})}function Ll(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function zl(t){return null!=t?function(t){if(!t)return null;var e=t.filter(Ul);return 0==e.length?null:function(t){return Ml(Hl(t,e))}}(Ll(t)):null}function Bl(t){return null!=t?function(t){if(!t)return null;var e=t.filter(Ul);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===e.length){var i=e[0];if(b(i))return Tl(i,null);if(C(i)&&Object.getPrototypeOf(i)===Object.prototype){var o=Object.keys(i);return Tl(o.map(function(t){return i[t]}),o)}}if("function"==typeof e[e.length-1]){var a=e.pop();return Tl(e=1===e.length&&b(e[0])?e[0]:e,null).pipe(L(function(t){return a.apply(void 0,r(t))}))}return Tl(e,null)}(Hl(t,e).map(Fl)).pipe(L(Ml))}}(Ll(t)):null}function ql(t,e){return null===t?[e]:Array.isArray(t)?[].concat(r(t),[e]):[t,e]}function Gl(t){return t?Array.isArray(t)?t:[t]:[]}function Wl(t,e){return Array.isArray(t)?t.includes(e):t===e}function Zl(t,e){var n=Gl(e);return Gl(t).forEach(function(t){Wl(n,t)||n.push(t)}),n}function Ql(t,e){return Gl(e).filter(function(e){return!Wl(t,e)})}var Kl=function(){var t=function(){function t(){y(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return m(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=zl(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Bl(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t}),t}(),Jl=function(){var t,e=function(t){l(n,t);var e=h(n);function n(){return y(this,n),e.apply(this,arguments)}return m(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Kl);return e.\u0275fac=function(n){return(t||(t=Bn(e)))(n||e)},e.\u0275dir=ue({type:e,features:[Ao]}),e}(),$l=function(t){l(n,t);var e=h(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(Kl),Yl=function(){function t(e){y(this,t),this._cd=e}return m(t,[{key:"is",value:function(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}]),t}(),Xl=function(){var t=function(t){l(n,t);var e=h(n);function n(t){return y(this,n),e.call(this,t)}return n}(Yl);return t.\u0275fac=function(e){return new(e||t)(Mo($l,2))},t.\u0275dir=ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Ao]}),t}(),tc=function(){var t=function(t){l(n,t);var e=h(n);function n(t){return y(this,n),e.call(this,t)}return n}(Yl);return t.\u0275fac=function(e){return new(e||t)(Mo(Jl,10))},t.\u0275dir=ue({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[Ao]}),t}();function ec(t,e){rc(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ic(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&ic(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)}function nc(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function rc(t,e){var n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(ql(n,e.validator)):"function"==typeof n&&t.setValidators([n]);var r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(ql(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);var i=function(){return t.updateValueAndValidity()};nc(e._rawValidators,i),nc(e._rawAsyncValidators,i)}function ic(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function oc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ac="VALID",uc="INVALID",sc="PENDING",lc="DISABLED";function cc(t){return(vc(t)?t.validators:t)||null}function hc(t){return Array.isArray(t)?zl(t):t||null}function fc(t,e){return(vc(e)?e.asyncValidators:t)||null}function dc(t){return Array.isArray(t)?Bl(t):t||null}function vc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var pc=function(){function t(e,n){y(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=hc(this._rawValidators),this._composedAsyncValidatorFn=dc(this._rawAsyncValidators)}return m(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===ac}},{key:"invalid",get:function(){return this.status===uc}},{key:"pending",get:function(){return this.status==sc}},{key:"disabled",get:function(){return this.status===lc}},{key:"enabled",get:function(){return this.status!==lc}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=hc(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=dc(t)}},{key:"addValidators",value:function(t){this.setValidators(Zl(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Zl(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Ql(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Ql(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return Wl(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return Wl(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=sc,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=lc,this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=ac,this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ac||this.status===sc)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?lc:ac}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=sc,this._hasOwnPendingAsyncValidator=!0;var n=Fl(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;var r=t;return e.forEach(function(t){r=r instanceof gc?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof mc&&r.at(t)||null}),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Cu,this.statusChanges=new Cu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?lc:this.errors?uc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(sc)?sc:this._anyControlsHaveStatus(uc)?uc:ac}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){vc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),yc=function(t){l(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return y(this,n),(t=e.call(this,cc(i),fc(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return m(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){oc(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){oc(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(pc),gc=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,cc(r),fc(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return m(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof yc?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var r=e.controls[n];r&&t(r,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e<n.length;e++){var r=n[e],i=this.controls[r];if(this.contains(r)&&t(i))return!0}return!1}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(pc),mc=function(t){l(r,t);var e=h(r);function r(t,n,i){var o;return y(this,r),(o=e.call(this,cc(n),fc(i,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return m(r,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof yc?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=n(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(r){e.e(r)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),r}(pc),_c={provide:Jl,useExisting:gt(function(){return wc})},kc=Promise.resolve(null),wc=function(){var t=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new Cu,i.form=new gc({},zl(t),Bl(r)),i}return m(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;kc.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ec(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;kc.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),oc(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;kc.then(function(){var n=e._findContainer(t.path),r=new gc({});(function(t,e){rc(t,e)})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;kc.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;kc.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(Jl);return t.\u0275fac=function(e){return new(e||t)(Mo(Dl,10),Mo(Nl,10))},t.\u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Zo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ba([_c]),Ao]}),t}(),bc={provide:$l,useExisting:gt(function(){return Sc})},Cc=Promise.resolve(null),Sc=function(){var t=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this)).control=new yc,a._registered=!1,a.update=new Cu,a._parent=t,a._setValidators(r),a._setAsyncValidators(i),a.valueAccessor=function(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===Vl?n=t:function(t){return Object.getPrototypeOf(t.constructor)===Rl}(t)?r=t:i=t}),i||r||n||null):null;var n,r,i}(0,o),a}return m(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(t,e){return[].concat(r(e.path),[t])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ec(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;Cc.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Cc.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})}}]),n}($l);return t.\u0275fac=function(e){return new(e||t)(Mo(Jl,9),Mo(Dl,10),Mo(Nl,10),Mo(Il,10))},t.\u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ba([bc]),Ao,ke]}),t}(),Ec=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),xc=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({}),t}(),Ac=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({imports:[[xc]]}),t}(),Tc=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({imports:[Ac]}),t}();function Oc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[e.length-1];return H(r)?(e.pop(),K(e,r)):it(e)}var Rc=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this))._value=t,r}return m(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=s(p(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new D;return this._value}},{key:"next",value:function(t){s(p(n.prototype),"next",this).call(this,this._value=t)}}]),n}(F),Ic=function(t){l(n,t);var e=h(n);function n(){return y(this,n),e.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(O),Pc=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this)).parent=t,o.outerValue=r,o.outerIndex=i,o.index=0,o}return m(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(O);function jc(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Pc(t,n,r);if(!i.closed)return e instanceof j?e.subscribe(i):Q(e)(i)}var Vc={},Dc=function(){function t(e){y(this,t),this.resultSelector=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new Nc(t,this.resultSelector))}}]),t}(),Nc=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return m(n,[{key:"_next",value:function(t){this.values.push(Vc),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++)this.add(jc(this,t[n],void 0,n))}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,n){var r=this.values,i=this.toRespond?r[n]===Vc?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(Ic),Uc=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}();function Fc(){return rt(1)(Oc.apply(void 0,arguments))}var Mc=new j(function(t){return t.complete()});function Hc(t){return t?function(t){return new j(function(e){return t.schedule(function(){return e.complete()})})}(t):Mc}function Lc(t){return new j(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?J(n):Hc()).subscribe(e)})}function zc(t,e){return"function"==typeof e?function(n){return n.pipe(zc(function(n,r){return J(t(n,r)).pipe(L(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Bc(t))}}var Bc=function(){function t(e){y(this,t),this.project=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new qc(t,this.project))}}]),t}(),qc=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).project=r,i.index=0,i}return m(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}},{key:"_innerSub",value:function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new $(this),r=this.destination;r.add(n),this.innerSubscription=X(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;(!t||t.closed)&&s(p(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&s(p(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t){this.destination.next(t)}}]),n}(Y),Gc=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();function Wc(t){return function(e){return 0===t?Hc():e.lift(new Zc(t))}}var Zc=function(){function t(e){if(y(this,t),this.total=e,this.total<0)throw new Gc}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new Qc(t,this.total))}}]),t}(),Qc=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return m(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(O);function Kc(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Jc(t,e,n))}}var Jc=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new $c(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),$c=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return m(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}}]),n}(O);function Yc(t,e){return function(n){return n.lift(new Xc(t,e))}}var Xc=function(){function t(e,n){y(this,t),this.predicate=e,this.thisArg=n}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new th(t,this.predicate,this.thisArg))}}]),t}(),th=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t)).predicate=r,o.thisArg=i,o.count=0,o}return m(n,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}]),n}(O);function eh(t){return function(e){var n=new nh(t),r=e.lift(n);return n.caught=r}}var nh=function(){function t(e){y(this,t),this.selector=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new rh(t,this.selector,this.caught))}}]),t}(),rh=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return m(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void s(p(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new $(this);this.add(r);var i=X(e,r);i!==r&&this.add(i)}}}]),n}(Y);function ih(t,e){return tt(t,e,1)}function oh(t){return function(e){return 0===t?Hc():e.lift(new ah(t))}}var ah=function(){function t(e){if(y(this,t),this.total=e,this.total<0)throw new Gc}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new uh(t,this.total))}}]),t}(),uh=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.count=0,i}return m(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()}}]),n}(O);function sh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hh;return function(e){return e.lift(new lh(t))}}var lh=function(){function t(e){y(this,t),this.errorFactory=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new ch(t,this.errorFactory))}}]),t}(),ch=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return m(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(O);function hh(){return new Uc}function fh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new dh(t))}}var dh=function(){function t(e){y(this,t),this.defaultValue=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new vh(t,this.defaultValue))}}]),t}(),vh=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return m(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(O);function ph(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Yc(function(e,n){return t(e,n,r)}):P,Wc(1),n?fh(e):sh(function(){return new Uc}))}}function yh(){}function gh(t,e,n){return function(r){return r.lift(new mh(t,e,n))}}var mh=function(){function t(e,n,r){y(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new _h(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),_h=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t))._tapNext=yh,a._tapError=yh,a._tapComplete=yh,a._tapError=i||yh,a._tapComplete=o||yh,v(r)?(a._context=d(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||yh,a._tapError=r.error||yh,a._tapComplete=r.complete||yh),a}return m(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(O),kh=function(){function t(e){y(this,t),this.callback=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new wh(t,this.callback))}}]),t}(),wh=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).add(new x(r)),i}return n}(O),bh=function t(e,n){y(this,t),this.id=e,this.url=n},Ch=function(t){l(n,t);var e=h(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return y(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return m(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(bh),Sh=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return m(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(bh),Eh=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r)).reason=i,o}return m(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(bh),xh=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r)).error=i,o}return m(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(bh),Ah=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(bh),Th=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(bh),Oh=function(t){l(n,t);var e=h(n);function n(t,r,i,o,a){var u;return y(this,n),(u=e.call(this,t,r)).urlAfterRedirects=i,u.state=o,u.shouldActivate=a,u}return m(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(bh),Rh=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(bh),Ih=function(t){l(n,t);var e=h(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(bh),Ph=function(){function t(e){y(this,t),this.route=e}return m(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),jh=function(){function t(e){y(this,t),this.route=e}return m(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),Vh=function(){function t(e){y(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Dh=function(){function t(e){y(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Nh=function(){function t(e){y(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Uh=function(){function t(e){y(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Fh=function(){function t(e,n,r){y(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return m(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),Mh="primary",Hh=function(){function t(e){y(this,t),this.params=e||{}}return m(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Lh(t){return new Hh(t)}var zh="ngNavigationCancelingError";function Bh(t){var e=Error("NavigationCancelingError: "+t);return e[zh]=!0,e}function qh(t,e,n){var r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],u=t[o];if(a.startsWith(":"))i[a.substring(1)]=u;else if(a!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Gh(t,e){var n,r=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!Wh(t[n=r[o]],e[n]))return!1;return!0}function Wh(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;var n=r(t).sort(),i=r(e).sort();return n.every(function(t,e){return i[e]===t})}return t===e}function Zh(t){return Array.prototype.concat.apply([],t)}function Qh(t){return t.length>0?t[t.length-1]:null}function Kh(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Jh(t){return Wo(t)?t:Go(t)?J(Promise.resolve(t)):Oc(t)}var $h={exact:function t(e,n,r){if(!uf(e.segments,n.segments)||!nf(e.segments,n.segments,r)||e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children)if(!e.children[i]||!t(e.children[i],n.children[i],r))return!1;return!0},subset:tf},Yh={exact:function(t,e){return Gh(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Wh(t[n],e[n])})},ignored:function(){return!0}};function Xh(t,e,n){return $h[n.paths](t.root,e.root,n.matrixParams)&&Yh[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function tf(t,e,n){return ef(t,e,e.segments,n)}function ef(t,e,n,r){if(t.segments.length>n.length){var i=t.segments.slice(0,n.length);return!(!uf(i,n)||e.hasChildren()||!nf(i,n,r))}if(t.segments.length===n.length){if(!uf(t.segments,n)||!nf(t.segments,n,r))return!1;for(var o in e.children)if(!t.children[o]||!tf(t.children[o],e.children[o],r))return!1;return!0}var a=n.slice(0,t.segments.length),u=n.slice(t.segments.length);return!!(uf(t.segments,a)&&nf(t.segments,a,r)&&t.children[Mh])&&ef(t.children[Mh],e,u,r)}function nf(t,e,n){return e.every(function(e,r){return Yh[n](t[r].parameters,e.parameters)})}var rf=function(){function t(e,n,r){y(this,t),this.root=e,this.queryParams=n,this.fragment=r}return m(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Lh(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return cf.serialize(this)}}]),t}(),of=function(){function t(e,n){var r=this;y(this,t),this.segments=e,this.children=n,this.parent=null,Kh(n,function(t,e){return t.parent=r})}return m(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return hf(this)}}]),t}(),af=function(){function t(e,n){y(this,t),this.path=e,this.parameters=n}return m(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Lh(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return mf(this)}}]),t}();function uf(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var sf=function t(){y(this,t)},lf=function(){function t(){y(this,t)}return m(t,[{key:"parse",value:function(t){var e=new Cf(t);return new rf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){return"".concat("/".concat(ff(t.root,!0)),function(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(vf(e),"=").concat(vf(t))}).join("&"):"".concat(vf(e),"=").concat(vf(n))}).filter(function(t){return!!t});return e.length?"?".concat(e.join("&")):""}(t.queryParams)).concat("string"==typeof t.fragment?"#".concat(function(t){return encodeURI(t)}(t.fragment)):"")}}]),t}(),cf=new lf;function hf(t){return t.segments.map(function(t){return mf(t)}).join("/")}function ff(t,e){if(!t.hasChildren())return hf(t);if(e){var n=t.children[Mh]?ff(t.children[Mh],!1):"",r=[];return Kh(t.children,function(t,e){e!==Mh&&r.push("".concat(e,":").concat(ff(t,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(t,e){var n=[];return Kh(t.children,function(t,r){r===Mh&&(n=n.concat(e(t,r)))}),Kh(t.children,function(t,r){r!==Mh&&(n=n.concat(e(t,r)))}),n}(t,function(e,n){return n===Mh?[ff(t.children[Mh],!1)]:["".concat(n,":").concat(ff(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children[Mh]?"".concat(hf(t),"/").concat(i[0]):"".concat(hf(t),"/(").concat(i.join("//"),")")}function df(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vf(t){return df(t).replace(/%3B/gi,";")}function pf(t){return df(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yf(t){return decodeURIComponent(t)}function gf(t){return yf(t.replace(/\+/g,"%20"))}function mf(t){return"".concat(pf(t.path)).concat(function(t){return Object.keys(t).map(function(e){return";".concat(pf(e),"=").concat(pf(t[e]))}).join("")}(t.parameters))}var _f=/^[^\/()?;=#]+/;function kf(t){var e=t.match(_f);return e?e[0]:""}var wf=/^[^=?&#]+/,bf=/^[^?&#]+/,Cf=function(){function t(e){y(this,t),this.url=e,this.remaining=e}return m(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new of([],{}):new of([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Mh]=new of(t,e)),n}},{key:"parseSegment",value:function(){var t=kf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new af(yf(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=kf(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=kf(this.remaining);r&&(n=r,this.capture(n))}t[yf(e)]=yf(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(wf);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(bf);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=gf(e),o=gf(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=kf(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Mh);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Mh]:new of([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Sf=function(){function t(e){y(this,t),this._root=e}return m(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Ef(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=Ef(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=xf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return xf(t,this._root).map(function(t){return t.value})}}]),t}();function Ef(t,e){if(t===e.value)return e;var r,i=n(e.children);try{for(i.s();!(r=i.n()).done;){var o=Ef(t,r.value);if(o)return o}}catch(a){i.e(a)}finally{i.f()}return null}function xf(t,e){if(t===e.value)return[e];var r,i=n(e.children);try{for(i.s();!(r=i.n()).done;){var o=xf(t,r.value);if(o.length)return o.unshift(e),o}}catch(a){i.e(a)}finally{i.f()}return[]}var Af=function(){function t(e,n){y(this,t),this.value=e,this.children=n}return m(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Tf(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Of=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).snapshot=r,Df(d(i),t),i}return m(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Sf);function Rf(t,e){var n=function(t,e){var n=new jf([],{},{},"",{},Mh,e,null,t.root,-1,{});return new Vf("",new Af(n,[]))}(t,e),r=new Rc([new af("",{})]),i=new Rc({}),o=new Rc({}),a=new Rc({}),u=new Rc(""),s=new If(r,i,a,u,o,Mh,e,n.root);return s.snapshot=n.root,new Of(new Af(s,[]),n)}var If=function(){function t(e,n,r,i,o,a,u,s){y(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this._futureSnapshot=s}return m(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(L(function(t){return Lh(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(function(t){return Lh(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function Pf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var jf=function(){function t(e,n,r,i,o,a,u,s,l,c,h){y(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return m(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Lh(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Lh(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),Vf=function(t){l(n,t);var e=h(n);function n(t,r){var i;return y(this,n),(i=e.call(this,r)).url=t,Df(d(i),r),i}return m(n,[{key:"toString",value:function(){return Nf(this._root)}}]),n}(Sf);function Df(t,e){e.value._routerState=t,e.children.forEach(function(e){return Df(t,e)})}function Nf(t){var e=t.children.length>0?" { ".concat(t.children.map(Nf).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Uf(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Gh(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Gh(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!Gh(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Gh(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ff(t,e){return Gh(t.params,e.params)&&function(t,e){return uf(t,e)&&t.every(function(t,n){return Gh(t.parameters,e[n].parameters)})}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||Ff(t.parent,e.parent))}function Mf(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=e.value;var o=function(t,e,r){return e.children.map(function(e){var i,o=n(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.shouldReuseRoute(e.value,a.value.snapshot))return Mf(t,e,a)}}catch(u){o.e(u)}finally{o.f()}return Mf(t,e)})}(t,e,r);return new Af(i,o)}if(t.shouldAttach(e.value)){var a=t.retrieve(e.value);if(null!==a){var u=a.route;return Hf(e,u),u}}var s=function(t){return new If(new Rc(t.url),new Rc(t.params),new Rc(t.queryParams),new Rc(t.fragment),new Rc(t.data),t.outlet,t.component,t)}(e.value),l=e.children.map(function(e){return Mf(t,e)});return new Af(s,l)}function Hf(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Hf(t.children[n],e.children[n])}function Lf(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function zf(t){return"object"==typeof t&&null!=t&&t.outlets}function Bf(t,e,n,r,i){var o={};return r&&Kh(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new rf(n.root===t?e:qf(n.root,t,e),o,i)}function qf(t,e,n){var r={};return Kh(t.children,function(t,i){r[i]=t===e?n:qf(t,e,n)}),new of(t.segments,r)}var Gf=function(){function t(e,n,r){if(y(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Lf(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(zf);if(i&&i!==Qh(r))throw new Error("{outlets:{}} has to be the last command")}return m(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Wf=function t(e,n,r){y(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function Zf(t,e,n){if(t||(t=new of([],{})),0===t.segments.length&&t.hasChildren())return Qf(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],u=n[r];if(zf(u))break;var s="".concat(u),l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Yf(s,l,a))return o;r+=2}else{if(!Yf(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new of(t.segments.slice(0,r.pathIndex),{});return o.children[Mh]=new of(t.segments.slice(r.pathIndex),t.children),Qf(o,0,i)}return r.match&&0===i.length?new of(t.segments,{}):r.match&&!t.hasChildren()?Kf(t,e,n):r.match?Qf(t,0,i):Kf(t,e,n)}function Qf(e,n,r){if(0===r.length)return new of(e.segments,{});var i=function(e){return zf(e[0])?e[0].outlets:t({},Mh,e)}(r),o={};return Kh(i,function(t,r){"string"==typeof t&&(t=[t]),null!==t&&(o[r]=Zf(e.children[r],n,t))}),Kh(e.children,function(t,e){void 0===i[e]&&(o[e]=t)}),new of(e.segments,o)}function Kf(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){var o=n[i];if(zf(o)){var a=Jf(o.outlets);return new of(r,a)}if(0===i&&Lf(n[0]))r.push(new af(t.segments[e].path,$f(n[0]))),i++;else{var u=zf(o)?o.outlets[Mh]:"".concat(o),s=i<n.length-1?n[i+1]:null;u&&s&&Lf(s)?(r.push(new af(u,$f(s))),i+=2):(r.push(new af(u,{})),i++)}}return new of(r,{})}function Jf(t){var e={};return Kh(t,function(t,n){"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Kf(new of([],{}),0,t))}),e}function $f(t){var e={};return Kh(t,function(t,n){return e[n]="".concat(t)}),e}function Yf(t,e,n){return t==n.path&&Gh(e,n.parameters)}var Xf=function(){function t(e,n,r,i){y(this,t),this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i}return m(t,[{key:"activate",value:function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Uf(this.futureState.root),this.activateChildRoutes(e,n,t)}},{key:"deactivateChildRoutes",value:function(t,e,n){var r=this,i=Tf(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),Kh(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})}},{key:"deactivateRoutes",value:function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){for(var n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,i=Tf(t),o=0,a=Object.keys(i);o<a.length;o++){var u=a[o];this.deactivateRouteAndItsChildren(i[u],r)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(t,e,n){var r=this,i=Tf(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new Uh(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Dh(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,n){var r=t.value,i=e?e.value:null;if(Uf(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var u=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(u.contexts),a.attachRef=u.componentRef,a.route=u.route.value,a.outlet&&a.outlet.attach(u.componentRef,u.route.value),td(u.route)}else{var s=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),l=s?s.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=l,a.outlet&&a.outlet.activateWith(r,l),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,n)}}]),t}();function td(t){Uf(t.value),t.children.forEach(td)}var ed=function t(e,n){y(this,t),this.routes=e,this.module=n};function nd(t){return"function"==typeof t}function rd(t){return t instanceof rf}var id=Symbol("INITIAL_VALUE");function od(){return zc(function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i;return H(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&b(e[0])&&(e=e[0]),it(e,i).lift(new Dc(r))}(t.map(function(t){return t.pipe(Wc(1),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[e.length-1];return H(r)?(e.pop(),function(t){return Fc(e,t,r)}):function(t){return Fc(e,t)}}(id))})).pipe(Kc(function(t,e){var n=!1;return e.reduce(function(t,r,i){return t!==id?t:(r===id&&(n=!0),n||!1!==r&&i!==e.length-1&&!rd(r)?t:r)},t)},id),Yc(function(t){return t!==id}),L(function(t){return rd(t)?t:!0===t}),Wc(1))})}var ad=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&qo(0,"router-outlet")},directives:function(){return[tv]},encapsulation:2}),t}();function ud(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<t.length;n++){var r=t[n];sd(r,ld(e,r))}}function sd(t,e){t.children&&ud(t.children,e)}function ld(t,e){return e?t||e.path?t&&!e.path?"".concat(t,"/"):!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}function cd(t){var e=t.children&&t.children.map(cd),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Mh&&(n.component=ad),n}function hd(t){return t.outlet||Mh}function fd(t,e){var n=t.filter(function(t){return hd(t)===e});return n.push.apply(n,r(t.filter(function(t){return hd(t)!==e}))),n}var dd={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function vd(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},dd):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(e.matcher||qh)(n,t,e);if(!i)return Object.assign({},dd);var o={};Kh(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function pd(t,e,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(r.length>0&&function(t,e,n){return n.some(function(n){return yd(t,e,n)&&hd(n)!==Mh})}(t,r,i)){var a=new of(e,function(t,e,r,i){var o={};o[Mh]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var a,u=n(r);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(""===s.path&&hd(s)!==Mh){var l=new of([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,o[hd(s)]=l}}}catch(c){u.e(c)}finally{u.f()}return o}(t,e,i,new of(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function(t,e,n){return n.some(function(n){return yd(t,e,n)})}(t,r,i)){var u=new of(t.segments,function(t,e,r,i,o,a){var u,s={},l=n(i);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(yd(t,r,c)&&!o[hd(c)]){var h=new of([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[hd(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),s)}(t,e,r,i,t.children,o));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:r}}var s=new of(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}function yd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function gd(t,e,n,r){return!!(hd(t)===r||r!==Mh&&yd(e,n,t))&&("**"===t.path||vd(e,t,n).matched)}function md(t,e,n){return 0===e.length&&!t.children[n]}var _d=function t(e){y(this,t),this.segmentGroup=e||null},kd=function t(e){y(this,t),this.urlTree=e};function wd(t){return new j(function(e){return e.error(new _d(t))})}function bd(t){return new j(function(e){return e.error(new kd(t))})}function Cd(t){return new j(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var Sd=function(){function e(t,n,r,i,o){y(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(ou)}return m(e,[{key:"apply",value:function(){var t=this,e=pd(this.urlTree.root,[],[],this.config).segmentGroup,n=new of(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Mh).pipe(L(function(e){return t.createUrlTree(Ed(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(eh(function(e){if(e instanceof kd)return t.allowRedirects=!1,t.match(e.urlTree);throw e instanceof _d?t.noMatchError(e):e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Mh).pipe(L(function(n){return e.createUrlTree(Ed(n),t.queryParams,t.fragment)})).pipe(eh(function(t){throw t instanceof _d?e.noMatchError(t):t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,n,r){var i=e.segments.length>0?new of([],t({},Mh,e)):e;return new rf(i,n,r)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(function(t){return new of([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o<a.length;o++){var u=a[o];"primary"===u?i.unshift(u):i.push(u)}return J(i).pipe(ih(function(i){var o=n.children[i],a=fd(e,i);return r.expandSegmentGroup(t,a,o,i).pipe(L(function(t){return{segment:t,outlet:i}}))}),Kc(function(t,e){return t[e.outlet]=e.segment,t},{}),function(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Yc(function(e,n){return t(e,n,r)}):P,oh(1),n?fh(e):sh(function(){return new Uc}))}}())}},{key:"expandSegment",value:function(t,e,n,r,i,o){var a=this;return J(n).pipe(ih(function(u){return a.expandSegmentAgainstRoute(t,e,n,u,r,i,o).pipe(eh(function(t){if(t instanceof _d)return Oc(null);throw t}))}),ph(function(t){return!!t}),eh(function(t,n){if(t instanceof Uc||"EmptyError"===t.name){if(md(e,r,i))return Oc(new of([],{}));throw new _d(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return gd(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):wd(e):wd(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?bd(o):this.lineralizeSegments(n,o).pipe(tt(function(n){var o=new of(n,{});return i.expandSegment(t,o,e,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,u=vd(e,r,i),s=u.matched,l=u.consumedSegments,c=u.lastChild,h=u.positionalParamSegments;if(!s)return wd(e);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?bd(f):this.lineralizeSegments(r,f).pipe(tt(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Oc(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(L(function(t){return n._loadedConfig=t,new of(r,{})})):Oc(new of(r,{}));var a=vd(e,n,r),u=a.matched,s=a.consumedSegments,l=a.lastChild;if(!u)return wd(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(tt(function(t){var r=t.module,a=t.routes,u=pd(e,s,c,a),l=u.segmentGroup,h=u.slicedSegments,f=new of(l.segments,l.children);if(0===h.length&&f.hasChildren())return o.expandChildren(r,a,f).pipe(L(function(t){return new of(s,t)}));if(0===a.length&&0===h.length)return Oc(new of(s,{}));var d=hd(n)===i;return o.expandSegment(r,f,a,h,d?Mh:i,!0).pipe(L(function(t){return new of(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Oc(new ed(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Oc(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(tt(function(n){return n?r.configLoader.load(t.injector,e).pipe(L(function(t){return e._loadedConfig=t,t})):function(t){return new j(function(e){return e.error(Bh("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Oc(new ed([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;return i&&0!==i.length?Oc(i.map(function(r){var i,o=t.get(r);if(function(t){return t&&nd(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!nd(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Jh(i)})).pipe(od(),gh(function(t){if(rd(t)){var e=Bh('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),L(function(t){return!0===t})):Oc(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Oc(n);if(r.numberOfChildren>1||!r.children[Mh])return Cd(t.redirectTo);r=r.children[Mh]}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new rf(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Kh(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return Kh(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new of(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var r,i=0,o=n(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(u){o.e(u)}finally{o.f()}return t}}]),e}();function Ed(t){for(var e={},n=0,r=Object.keys(t.children);n<r.length;n++){var i=r[n],o=Ed(t.children[i]);(o.segments.length>0||o.hasChildren())&&(e[i]=o)}return function(t){if(1===t.numberOfChildren&&t.children[Mh]){var e=t.children[Mh];return new of(t.segments.concat(e.segments),e.children)}return t}(new of(t.segments,e))}var xd=function t(e){y(this,t),this.path=e,this.route=this.path[this.path.length-1]},Ad=function t(e,n){y(this,t),this.component=e,this.route=n};function Td(t,e,n){var r=t._root;return Rd(r,e?e._root:null,n,[r.value])}function Od(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Rd(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Tf(e);return t.children.forEach(function(t){(function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var s=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!uf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!uf(t.url,e.url)||!Gh(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ff(t,e)||!Gh(t.queryParams,e.queryParams);case"paramsChange":default:return!Ff(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new xd(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Rd(t,e,o.component?u?u.children:null:n,r,i),s&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new Ad(u.outlet.component,a))}else a&&Id(e,u,i),i.canActivateChecks.push(new xd(r)),Rd(t,null,o.component?u?u.children:null:n,r,i)})(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),Kh(o,function(t,e){return Id(t,n.getContext(e),i)}),i}function Id(t,e,n){var r=Tf(t),i=t.value;Kh(r,function(t,r){Id(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Ad(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var Pd=function t(){y(this,t)};function jd(t){return new j(function(e){return e.error(t)})}var Vd=function(){function t(e,n,r,i,o,a){y(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return m(t,[{key:"recognize",value:function(){var t=pd(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Mh);if(null===e)return null;var n=new jf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Mh,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Af(n,e),i=new Vf(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=Pf(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,o=Object.keys(e.children);i<o.length;i++){var a=o[i],u=e.children[a],s=fd(t,a),l=this.processSegmentGroup(s,u,a);if(null===l)return null;n.push.apply(n,r(l))}var c=Dd(n);return function(t){t.sort(function(t,e){return t.value.outlet===Mh?-1:e.value.outlet===Mh?1:t.value.outlet.localeCompare(e.value.outlet)})}(c),c}},{key:"processSegment",value:function(t,e,r,i){var o,a=n(t);try{for(a.s();!(o=a.n()).done;){var u=o.value,s=this.processSegmentAgainstRoute(u,e,r,i);if(null!==s)return s}}catch(l){a.e(l)}finally{a.f()}return md(e,r,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(t,e,n,r){if(t.redirectTo||!gd(t,e,n,r))return null;var i,o=[],a=[];if("**"===t.path){var u=n.length>0?Qh(n).parameters:{};i=new jf(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fd(t),hd(t),t.component,t,Nd(e),Ud(e)+n.length,Md(t))}else{var s=vd(e,t,n);if(!s.matched)return null;o=s.consumedSegments,a=n.slice(s.lastChild),i=new jf(o,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fd(t),hd(t),t.component,t,Nd(e),Ud(e)+o.length,Md(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=pd(e,o,a,l.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return null===d?null:[new Af(i,d)]}if(0===l.length&&0===f.length)return[new Af(i,[])];var v=hd(t)===r,p=this.processSegment(l,h,f,v?Mh:r);return null===p?null:[new Af(i,p)]}}]),t}();function Dd(t){var e,i=[],o=new Set,a=n(t);try{var u=function(){var t,n=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(n))return i.push(n),"continue";var a=i.find(function(t){return n.value.routeConfig===t.value.routeConfig});void 0!==a?((t=a.children).push.apply(t,r(n.children)),o.add(a)):i.push(n)};for(a.s();!(e=a.n()).done;)u()}catch(f){a.e(f)}finally{a.f()}var s,l=n(o);try{for(l.s();!(s=l.n()).done;){var c=s.value,h=Dd(c.children);i.push(new Af(c.value,h))}}catch(f){l.e(f)}finally{l.f()}return i.filter(function(t){return!o.has(t)})}function Nd(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Ud(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Fd(t){return t.data||{}}function Md(t){return t.resolve||{}}function Hd(t){return zc(function(e){var n=t(e);return n?J(n).pipe(L(function(){return e})):Oc(e)})}var Ld=function(t){l(n,t);var e=h(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(function(){function t(){y(this,t)}return m(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),zd=new Zn("ROUTES"),Bd=function(){function t(e,n,r,i){y(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return m(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren).pipe(L(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new ed(Zh(i.injector.get(zd,void 0,Vt.Self|Vt.Optional)).map(cd),i)}),eh(function(t){throw e._loader$=void 0,t}));return e._loader$=new st(r,function(){return new F}).pipe(ot()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?J(this.loader.load(t)):Jh(t()).pipe(tt(function(t){return t instanceof au?Oc(t):J(e.compiler.compileModuleAsync(t))}))}}]),t}(),qd=function t(){y(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Gd,this.attachRef=null},Gd=function(){function t(){y(this,t),this.contexts=new Map}return m(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new qd,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Wd=function(){function t(){y(this,t)}return m(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Zd(t){throw t}function Qd(t,e,n){return e.parse("/")}function Kd(t,e){return Oc(null)}var Jd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$d={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Yd=function(){var t=function(){function t(e,n,r,i,o,a,u,s){var l=this;y(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new F,this.errorHandler=Zd,this.malformedUriErrorHandler=Qd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Kd,afterPreactivation:Kd},this.urlHandlingStrategy=new Wd,this.routeReuseStrategy=new Ld,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(ou),this.console=o.get(Pu);var c=o.get(Gu);this.isNgZoneEnabled=c instanceof Gu&&Gu.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=new rf(new of([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Bd(a,u,function(t){return l.triggerEvent(new Ph(t))},function(t){return l.triggerEvent(new jh(t))}),this.routerState=Rf(this.currentUrlTree,this.rootComponentType),this.transitions=new Rc({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return m(t,[{key:"browserPageId",get:function(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}},{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Yc(function(t){return 0!==t.id}),L(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),zc(function(t){var r=!1,i=!1;return Oc(t).pipe(gh(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),zc(function(t){var r=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString(),o=("reload"===e.onSameUrlNavigation||r)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Xd(t.source)&&(e.browserUrlTree=t.rawUrl),o)return Oc(t).pipe(zc(function(t){var r=e.transitions.getValue();return n.next(new Ch(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Mc:Promise.resolve(t)}),function(t,e,n,r){return zc(function(i){return function(t,e,n,r,i){return new Sd(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(L(function(t){return Object.assign(Object.assign({},i),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),gh(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,r,o,a){return tt(function(r){return function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new Vd(t,e,n,r,o,a).recognize();return null===u?jd(new Pd):Oc(u)}catch(i){return jd(i)}}(t,n,r.urlAfterRedirects,(u=r.urlAfterRedirects,e.serializeUrl(u)),o,a).pipe(L(function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})}));var u})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),gh(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var r=new Ah(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(r&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var a=t.id,u=t.extractedUrl,s=t.source,l=t.restoredState,c=t.extras,h=new Ch(a,e.serializeUrl(u),s,l);n.next(h);var f=Rf(u,e.rootComponentType).snapshot;return Oc(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:u,extras:Object.assign(Object.assign({},c),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Mc}),Hd(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,u=a.skipLocationChange,s=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),gh(function(t){var n=new Th(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),L(function(t){return Object.assign(Object.assign({},t),{guards:Td(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return tt(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===a.length?Oc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return J(t).pipe(tt(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Oc(o.map(function(o){var a,u=Od(o,e,i);if(function(t){return t&&nd(t.canDeactivate)}(u))a=Jh(u.canDeactivate(t,e,n,r));else{if(!nd(u))throw new Error("Invalid CanDeactivate guard");a=Jh(u(t,e,n,r))}return a.pipe(ph())})).pipe(od()):Oc(!0)}(t.component,t.route,n,e,r)}),ph(function(t){return!0!==t},!0))}(u,r,i,t).pipe(tt(function(n){return n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,r){return J(e).pipe(ih(function(e){return Fc(function(t,e){return null!==t&&e&&e(new Vh(t)),Oc(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Nh(t)),Oc(!0)}(e.route,r),function(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Lc(function(){return Oc(e.guards.map(function(i){var o,a=Od(i,e.node,n);if(function(t){return t&&nd(t.canActivateChild)}(a))o=Jh(a.canActivateChild(r,t));else{if(!nd(a))throw new Error("Invalid CanActivateChild guard");o=Jh(a(r,t))}return o.pipe(ph())})).pipe(od())})});return Oc(i).pipe(od())}(t,e.path,n),function(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Oc(r.map(function(r){return Lc(function(){var i,o=Od(r,e,n);if(function(t){return t&&nd(t.canActivate)}(o))i=Jh(o.canActivate(e,t));else{if(!nd(o))throw new Error("Invalid CanActivate guard");i=Jh(o(e,t))}return i.pipe(ph())})})).pipe(od()):Oc(!0)}(t,e.route,n))}),ph(function(t){return!0!==t},!0))}(r,a,t,e):Oc(n)}),L(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),gh(function(t){if(rd(t.guardsResult)){var n=Bh('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var r=new Oh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),Yc(function(t){return!!t.guardsResult||(e.restoreHistory(t),e.cancelNavigationTransition(t,""),!1)}),Hd(function(t){if(t.guards.canActivateChecks.length)return Oc(t).pipe(gh(function(t){var n=new Rh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),zc(function(t){var n=!1;return Oc(t).pipe(function(t,e){return tt(function(n){var r=n.targetSnapshot,i=n.guards.canActivateChecks;if(!i.length)return Oc(n);var o=0;return J(i).pipe(ih(function(n){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Oc({});var o={};return J(i).pipe(tt(function(i){return function(t,e,n,r){var i=Od(t,e,r);return Jh(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(gh(function(t){o[i]=t}))}),oh(1),tt(function(){return Object.keys(o).length===i.length?Oc(o):Mc}))}(t._resolve,t,e,r).pipe(L(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Pf(t,n).resolve),null}))}(n.route,r,t,e)}),gh(function(){return o++}),oh(1),tt(function(t){return o===i.length?Oc(n):Mc}))})}(e.paramsInheritanceStrategy,e.ngModule.injector),gh({next:function(){return n=!0},complete:function(){n||(e.restoreHistory(t),e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),gh(function(t){var n=new Ih(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Hd(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,u=a.skipLocationChange,s=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),L(function(t){var n=function(t,e,n){var r=Mf(t,e._root,n?n._root:void 0);return new Of(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})}),gh(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),function(t,e,n){return L(function(r){return new Xf(e,r.targetRouterState,r.currentRouterState,n).activate(t),r})}(e.rootContexts,e.routeReuseStrategy,function(t){return e.triggerEvent(t)}),gh({next:function(){r=!0},complete:function(){r=!0}}),function(t){return function(e){return e.lift(new kh(t))}}(function(){if(!r&&!i){var n="Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId);"replace"===e.canceledNavigationResolution?(e.restoreHistory(t),e.cancelNavigationTransition(t,n)):e.cancelNavigationTransition(t,n)}e.currentNavigation=null}),eh(function(r){if(i=!0,function(t){return t&&t[zh]}(r)){var o=rd(r.url);o||(e.navigated=!0,e.restoreHistory(t,!0));var a=new Eh(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(a),o?setTimeout(function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||Xd(t.source)};e.scheduleNavigation(n,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.restoreHistory(t,!0);var u=new xh(t.id,e.serializeUrl(t.extractedUrl),r);n.next(u);try{t.resolve(e.errorHandler(r))}catch(a){t.reject(a)}}return Mc}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){ud(t),this.config=t.map(cd),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.queryParamsHandling,u=e.preserveFragment,s=n||this.routerState.root,l=u?this.currentUrlTree.fragment:o,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,o){if(0===n.length)return Bf(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Gf(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Kh(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),[].concat(r(t),[{outlets:a}])}if(i.segmentPath)return[].concat(r(t),[i.segmentPath])}return"string"!=typeof i?[].concat(r(t),[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[].concat(r(t),[i])},[]);return new Gf(n,e,i)}(n);if(a.toRoot())return Bf(e.root,new of([],{}),e,i,o);var u=function(t,e,n){if(t.isAbsolute)return new Wf(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new Wf(r,r===e.root,0)}var i=Lf(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Wf(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),s=u.processChildren?Qf(u.segmentGroup,u.index,a.commands):Zf(u.segmentGroup,u.index,a.commands);return Bf(u.segmentGroup,s,e,i,o)}(s,this.currentUrlTree,t,c,null!=l?l:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=rd(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){var n;if(n=!0===e?Object.assign({},Jd):!1===e?Object.assign({},$d):e,rd(t))return Xh(this.currentUrlTree,t,n);var r=this.parseUrl(t);return Xh(this.currentUrlTree,r,n)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!=r&&(e[n]=r),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.currentPageId=e.targetPageId,t.events.next(new Sh(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,r,i){var o,a;if(this.disposed)return Promise.resolve(!1);var u,s,l,c=this.getTransition(),h=Xd(e)&&c&&!Xd(c.source),f=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===t.toString();if(h&&f)return Promise.resolve(!0);i?(u=i.resolve,s=i.reject,l=i.promise):l=new Promise(function(t,e){u=t,s=e});var d,v=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),d=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(a=this.browserPageId)&&void 0!==a?a:0)+1):d=0,this.setTransition({id:v,targetPageId:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:s,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e){var n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}},{key:"restoreHistory",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var i=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(e=this.currentNavigation)||void 0===e?void 0:e.finalUrl)||0===i?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(t,e){var n=new Eh(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}},{key:"generateNgRouterState",value:function(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Kn),hr(sf),hr(Gd),hr(Us),hr(Eo),hr(fs),hr(zu),hr(void 0))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Xd(t){return"imperative"!==t}var tv=function(){var t=function(){function t(e,n,r,i,o){y(this,t),this.parentContexts=e,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Cu,this.deactivateEvents=new Cu,this.name=i||Mh,e.onChildOutletCreated(this.name,this)}return m(t,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value:function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new ev(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Mo(Gd),Mo(su),Mo(Sa),function(t,e){var n=t.attrs;if(n)for(var r=n.length,i=0;i<r;){var o=n[i];if(mn(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===e)return n[i+1];i+=2}}return null}(ze(),"name"),Mo(Ya))},t.\u0275dir=ue({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t}(),ev=function(){function t(e,n,r){y(this,t),this.route=e,this.childContexts=n,this.parent=r}return m(t,[{key:"get",value:function(t,e){return t===If?this.route:t===Gd?this.childContexts:this.parent.get(t,e)}}]),t}(),nv=function t(){y(this,t)},rv=function(){function t(){y(this,t)}return m(t,[{key:"preload",value:function(t,e){return Oc(null)}}]),t}(),iv=function(){var t=function(){function t(e,n,r,i,o){y(this,t),this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=new Bd(n,r,function(t){return e.triggerEvent(new Ph(t))},function(t){return e.triggerEvent(new jh(t))})}return m(t,[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(Yc(function(t){return t instanceof Sh}),ih(function(){return t.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var t=this.injector.get(ou);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var r,i=[],o=n(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var u=a._loadedConfig;i.push(this.processRoutes(u.module,u.routes))}else a.loadChildren&&!a.canLoad?i.push(this.preloadConfig(t,a)):a.children&&i.push(this.processRoutes(t,a.children))}}catch(s){o.e(s)}finally{o.f()}return J(i).pipe(rt(),L(function(t){}))}},{key:"preloadConfig",value:function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){return(e._loadedConfig?Oc(e._loadedConfig):n.loader.load(t.injector,e)).pipe(tt(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Yd),hr(fs),hr(zu),hr(Eo),hr(nv))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ov=function(){var t=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return m(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Ch?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sh&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Fh&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Fh(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Yd),hr(Qs),hr(void 0))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),av=new Zn("ROUTER_CONFIGURATION"),uv=new Zn("ROUTER_FORROOT_GUARD"),sv=[Us,{provide:sf,useClass:lf},{provide:Yd,useFactory:function(t,e,n,r,i,o,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Yd(null,t,e,n,r,i,o,Zh(a));return s&&(c.urlHandlingStrategy=s),l&&(c.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(u,c),u.enableTracing&&c.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[sf,Gd,Us,Eo,fs,zu,zd,av,[function(){return function t(){y(this,t)}}(),new gr],[function(){return function t(){y(this,t)}}(),new gr]]},Gd,{provide:If,useFactory:function(t){return t.routerState.root},deps:[Yd]},{provide:fs,useClass:ps},iv,rv,function(){function t(){y(this,t)}return m(t,[{key:"preload",value:function(t,e){return e().pipe(eh(function(){return Oc(null)}))}}]),t}(),{provide:av,useValue:{enableTracing:!1}}];function lv(){return new os("Router",Yd)}var cv=function(){var t=function(){function t(e,n){y(this,t)}return m(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[sv,vv(e),{provide:uv,useFactory:dv,deps:[[Yd,new gr,new mr]]},{provide:av,useValue:n||{}},{provide:Ps,useFactory:fv,deps:[Cs,[new yr(Vs),new gr],av]},{provide:ov,useFactory:hv,deps:[Yd,Qs,av]},{provide:nv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:rv},{provide:os,multi:!0,useFactory:lv},[pv,{provide:Su,multi:!0,useFactory:yv,deps:[pv]},{provide:mv,useFactory:gv,deps:[pv]},{provide:Iu,multi:!0,useExisting:mv}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[vv(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(uv,8),hr(Yd,8))},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({}),t}();function hv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ov(t,e,n)}function fv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Ns(t,e):new Ds(t,e)}function dv(t){return"guarded"}function vv(t){return[{provide:Qn,multi:!0,useValue:t},{provide:zd,multi:!0,useValue:t}]}var pv=function(){var t=function(){function t(e){y(this,t),this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new F}return m(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Es,Promise.resolve(null)).then(function(){if(t.destroyed)return Promise.resolve(!0);var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Yd),i=t.injector.get(av);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return t.initNavigation?Oc(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(av),n=this.injector.get(iv),r=this.injector.get(ov),i=this.injector.get(Yd),o=this.injector.get(cs);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Eo))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function yv(t){return t.appInitializer.bind(t)}function gv(t){return t.bootstrapListener.bind(t)}var mv=new Zn("Router Initializer"),_v=[],kv=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({imports:[[cv.forRoot(_v)],cv]}),t}(),wv=function t(e,n,r,i,o,a,u){y(this,t),this.name=e,this.followers=n,this.following=r,this.public_repos=i,this.url=o,this.avatar_url=a,this.login=u},bv=function t(e,n,r,i,o){y(this,t),this.name=e,this.html_url=n,this.description=r,this.language=i,this.created_at=o},Cv=function t(){y(this,t)},Sv=function t(){y(this,t)},Ev=function(){function t(e){var n=this;y(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))})}:this.headers=new Map}return m(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,r(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),xv=function(){function t(){y(this,t)}return m(t,[{key:"encodeKey",value:function(t){return Ov(t)}},{key:"encodeValue",value:function(t){return Ov(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),Av=/%(\d[a-f0-9])/gi,Tv={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ov(t){return encodeURIComponent(t).replace(Av,function(t,e){var n;return null!==(n=Tv[e])&&void 0!==n?n:t})}function Rv(t){return"".concat(t)}var Iv=function(){function t(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(y(this,t),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new xv,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){var r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var i=t.indexOf("="),o=e(-1==i?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,i)),n.decodeValue(t.slice(i+1))],2),a=o[0],u=o[1],s=r.get(a)||[];s.push(u),r.set(a,s)}),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(t){var e=r.fromObject[t];n.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return m(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var r=t[n];Array.isArray(r)?r.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(Rv(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(Rv(e.value));-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),Pv=function(){function t(){y(this,t),this.map=new Map}return m(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function jv(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Vv(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Dv(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Nv=function(){function t(e,n,r,i){var o;if(y(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ev),this.context||(this.context=new Pv),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u<n.length-1?"&":"")+a}}else this.params=new Iv,this.urlWithParams=n}return m(t,[{key:"serializeBody",value:function(){return null===this.body?null:jv(this.body)||Vv(this.body)||Dv(this.body)||function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Iv?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||Dv(this.body)?null:Vv(this.body)?this.body.type||null:jv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Iv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,u=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,s=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},c)),new t(r,i,a,{params:c,headers:l,context:h,reportProgress:s,responseType:o,withCredentials:u})}}]),t}(),Uv=((Uv=Uv||{})[Uv.Sent=0]="Sent",Uv[Uv.UploadProgress=1]="UploadProgress",Uv[Uv.ResponseHeader=2]="ResponseHeader",Uv[Uv.DownloadProgress=3]="DownloadProgress",Uv[Uv.Response=4]="Response",Uv[Uv.User=5]="User",Uv),Fv=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";y(this,t),this.headers=e.headers||new Ev,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Mv=function(t){l(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,r)).type=Uv.ResponseHeader,t}return m(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Fv),Hv=function(t){l(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,r)).type=Uv.Response,t.body=void 0!==r.body?r.body:null,t}return m(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Fv),Lv=function(t){l(n,t);var e=h(n);function n(t){var r;return y(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(Fv);function zv(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Bv=function(){var t=function(){function t(e){y(this,t),this.handler=e}return m(t,[{key:"request",value:function(t,e){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof Nv?n=t:(r=a.headers instanceof Ev?a.headers:new Ev(a.headers),a.params&&(i=a.params instanceof Iv?a.params:new Iv({fromObject:a.params})),n=new Nv(t,e,void 0!==a.body?a.body:null,{headers:r,context:a.context,params:i,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var u=Oc(n).pipe(ih(function(t){return o.handler.handle(t)}));if(t instanceof Nv||"events"===a.observe)return u;var s=u.pipe(Yc(function(t){return t instanceof Hv}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(L(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(L(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(L(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(L(function(t){return t.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Iv).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,zv(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,zv(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,zv(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Cv))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),qv=function(){function t(e,n){y(this,t),this.next=e,this.interceptor=n}return m(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Gv=new Zn("HTTP_INTERCEPTORS"),Wv=function(){var t=function(){function t(){y(this,t)}return m(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Zv=/^\)\]\}',?\n/,Qv=function(){var t=function(){function t(e){y(this,t),this.xhrFactory=e}return m(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),u=null,s=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new Ev(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new Mv({headers:i,status:e,statusText:n,url:o})},l=function(){var e=s(),i=e.headers,o=e.status,a=e.statusText,u=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(Zv,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new Hv({body:l,headers:i,status:o,statusText:a,url:u||void 0})),n.complete()):n.error(new Lv({error:l,headers:i,status:o,statusText:a,url:u||void 0}))},c=function(t){var e=s().url,i=new Lv({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(s()),h=!0);var i={type:Uv.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&!!r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:Uv.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:Uv.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Ys))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Kv=new Zn("XSRF_COOKIE_NAME"),Jv=new Zn("XSRF_HEADER_NAME"),$v=function t(){y(this,t)},Yv=function(){var t=function(){function t(e,n,r){y(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return m(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Bs(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(bs),hr(Ru),hr(Kv))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Xv=function(){var t=function(){function t(e,n){y(this,t),this.tokenService=e,this.headerName=n}return m(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null!==r&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr($v),hr(Jv))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),tp=function(){var t=function(){function t(e,n){y(this,t),this.backend=e,this.injector=n,this.chain=null}return m(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Gv,[]);this.chain=e.reduceRight(function(t,e){return new qv(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Sv),hr(Eo))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),ep=function(){var t=function(){function t(){y(this,t)}return m(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Xv,useClass:Wv}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:Kv,useValue:e.cookieName}:[],e.headerName?{provide:Jv,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({providers:[Xv,{provide:Gv,useExisting:Xv,multi:!0},{provide:$v,useClass:Yv},{provide:Kv,useValue:"XSRF-TOKEN"},{provide:Jv,useValue:"X-XSRF-TOKEN"}]}),t}(),np=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=Et({providers:[Bv,{provide:Cv,useClass:tp},Qv,{provide:Sv,useExisting:Qv}],imports:[[ep.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),rp=function(){var t=function(){function t(e){y(this,t),this.http=e,this.user=new wv("",0,0,0,"","",""),this.repos=new bv("","","","",new Date)}return m(t,[{key:"getProfile",value:function(t){var e=this,n="https://api.github.com/users/"+t+"?client_id=your client id&client_secret=your client secret";return new Promise(function(t,r){e.http.get(n).toPromise().then(function(n){e.user=n,t()},function(t){e.user.name="We couldn\u2019t find any users matching the name given",r(t)})})}},{key:"getRepo",value:function(t){var e=this,n="https://api.github.com/users/"+t+"/repos?order=created&sort=asc?client_id=your client id&client_secret=your client secret";return new Promise(function(t,r){e.http.get(n).toPromise().then(function(n){e.repos=n,console.log(e.repos),t()},function(t){e.repos.name="We couldn\u2019t find any repositories matching the name given",r(t)})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Bv))},t.\u0275prov=St({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),ip=function(){var t=function(){function t(){y(this,t),this.searchResult=new Cu}return m(t,[{key:"searchUser",value:function(){this.searchResult.emit(this.userQuery)}},{key:"ngOnInit",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-search"]],outputs:{searchResult:"searchResult"},decls:6,vars:1,consts:[[1,"container","w-50","mt-5"],[1,"input-group"],["type","search","name","userQuery","placeholder","Search","aria-label","Search","aria-describedby","search-addon",1,"form-control","rounded",3,"ngModel","ngModelChange"],["type","button",1,"btn","btn-danger",3,"click"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"form"),zo(2,"div",1),zo(3,"input",2),Zo("ngModelChange",function(t){return e.userQuery=t}),Bo(),zo(4,"button",3),Zo("click",function(){return e.searchUser()}),oa(5,"search"),Bo(),Bo(),Bo(),Bo()),2&t&&(yi(3),Ho("ngModel",e.userQuery))},directives:[Ec,tc,wc,Vl,Xl,Sc],styles:[""]}),t}(),op=function(){var t=function(){function t(){y(this,t)}return m(t,[{key:"transform",value:function(t){if(t){var e=Math.floor((+new Date-+new Date(t))/1e3);if(e<29)return"Just now";var n,r=[{name:"year",time:31536e3},{name:"month",time:2592e3},{name:"week",time:604800},{name:"day",time:86400},{name:"hour",time:3600},{name:"minute",time:60},{name:"second",time:1}];for(var i in r)if((n=Math.floor(e/r[i].time))>0)return 1===n?n+" "+r[i].name+" ago":n+" "+r[i].name+"s ago"}return t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=function(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}({name:"dateCount",type:t,pure:!0}),t}();function ap(t,e){if(1&t&&(zo(0,"div",13),zo(1,"div",14),zo(2,"div",15),zo(3,"h4"),zo(4,"a",16),oa(5),Bo(),Bo(),Bo(),zo(6,"div",17),zo(7,"p",18),oa(8),Bo(),Bo(),zo(9,"div",19),zo(10,"div",4),zo(11,"div",20),zo(12,"small"),oa(13),Bo(),Bo(),zo(14,"div",20),zo(15,"small"),oa(16),function(t,e){var n,r=Le();r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new kt("302","The pipe '".concat(t,"' could not be found!"))}("dateCount",r.pipeRegistry),r.data[37]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(37,n.onDestroy)):n=r.data[37];var i=n.factory||(n.factory=me(n.type)),o=Dt(Mo);try{var a=xn(!1),u=i();xn(a),function(t,e,n,r){37>=t.data.length&&(t.data[37]=null,t.blueprint[37]=null),e[37]=r}(r,He(),0,u)}finally{Dt(o)}}(),Bo(),Bo(),Bo(),Bo(),Bo(),qo(18,"hr"),Bo()),2&t){var n=e.$implicit;yi(4),Jo("href",n.html_url,Sr),yi(1),aa(n.name),yi(3),ua("",n.description," "),yi(5),ua("Language: ",n.language,""),yi(3),ua("Created: ",wu(17,5,n.created_at),"")}}var up=function(){var t=function(){function t(e){y(this,t),this.userService=e}return m(t,[{key:"searchUser",value:function(t){var e=this;this.userService.getProfile(t).then(function(t){e.user=e.userService.user},function(t){console.log(t)}),this.userService.getRepo(t).then(function(t){e.repos=e.userService.repos},function(t){console.log(t)})}},{key:"ngOnInit",value:function(){this.searchUser("Emmanuel687")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Mo(rp))},t.\u0275cmp=ee({type:t,selectors:[["app-user"]],decls:23,vars:6,consts:[[1,"container"],[3,"searchResult"],[1,"row","mt-5"],[1,"col-md-5"],[1,"row"],["alt","Avatar",1,"rounded-circle","img-fluid",3,"src"],[1,"row","mb-5"],[1,"mt-5","mb-4"],[1,"col-md-2"],[1,"col-md-7"],[1,"mb-5"],[1,"row","repo"],["class","mb-4 col-md-6",4,"ngFor","ngForOf"],[1,"mb-4","col-md-6"],[1,"card","text-dark","h-100"],[1,"text-muted","mt-3"],[3,"href"],[1,"card-body"],[1,"card-text"],[1,"text-muted","mb-3"],[1,"col-md-6"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"app-search",1),Zo("searchResult",function(t){return e.searchUser(t)}),Bo(),zo(2,"div",2),zo(3,"div",3),zo(4,"div",4),qo(5,"img",5),Bo(),zo(6,"div",6),zo(7,"h2",7),oa(8),Bo(),zo(9,"div",8),zo(10,"p"),oa(11),Bo(),Bo(),zo(12,"div",8),zo(13,"p"),oa(14),Bo(),Bo(),zo(15,"div",8),zo(16,"p"),oa(17),Bo(),Bo(),Bo(),Bo(),zo(18,"div",9),zo(19,"h1",10),oa(20,"Repositories"),Bo(),zo(21,"div",11),function(t,e,n,r,i,o,a,u){var s=He(),l=Le(),c=l.firstCreatePass?function(t,e,n,r,i,o,a,u,s){var l=e.consts,c=xi(e,42,4,"div",De(l,12));Fi(e,n,c,De(l,undefined)),cn(e,c);var h=c.tViews=Di(2,c,r,19,7,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,c),h.queries=e.queries.embeddedTView(c)),c}(0,l,s,e):l.data[42];qe(c,!1);var h=s[ce].createComment("");Kr(l,s,h,c),xr(h,s),Yi(s,s[42]=Qi(h,s,h,c)),pe(c)&&Pi(l,s,c)}(0,ap),Bo(),Bo(),Bo(),Bo()),2&t&&(yi(5),Jo("src",e.user.avatar_url,Sr),yi(3),aa(e.user.name),yi(3),ua("Followers: ",e.user.followers,""),yi(3),ua("Following: ",e.user.following,""),yi(3),ua("Repositories: ",e.user.public_repos,""),yi(5),Ho("ngForOf",e.repos))},directives:[ip,Gs],pipes:[op],styles:["img[_ngcontent-%COMP%]{height:236px;width:304px}a[_ngcontent-%COMP%]{text-decoration:none;color:#fb5ad8}a[_ngcontent-%COMP%]:hover{color:#fb0}"]}),t}(),sp=function(){var t=function t(){y(this,t),this.title="GitHub"};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-root"]],decls:5,vars:1,consts:[[1,"container","p-3"],[1,"text-center"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"h1",1),oa(2),Bo(),qo(3,"app-user"),qo(4,"router-outlet"),Bo()),2&t&&(yi(2),ua(" ",e.title," "))},directives:[up,tv],styles:[""]}),t}(),lp=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t,bootstrap:[sp]}),t.\u0275inj=Et({providers:[rp],imports:[[Al,kv,np,Tc]]}),t}();(function(){if(rs)throw new Error("Cannot enable prod mode after platform setup.");ns=!1})(),El().bootstrapModule(lp).catch(function(t){return console.error(t)})}},function(t){t(t.s=7587)}])}();