(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"6Ksf":function(e,t){e.exports=""},A3xY:function(e,t){e.exports=".logo {\r\n\theight: 50px;\r\n\twidth: 50px;\r\n}"},HKwt:function(e,t){e.exports="<p>\n  Error-page reached.\n  Something went wrong.\n</p>\n"},"Jyj+":function(e,t){e.exports="<p>\n  home works!\n</p>\n"},RV7M:function(e,t){e.exports=""},Ym6z:function(e,t){e.exports='\n<div class="row">\n  \x3c!--<div class="col-4"></div> \x3c!-- Pomjeri anketu u sredinu --\x3e\n  <div class="col-4 mx-auto">\n  \n\t<h1>Anketa za lekciju {{ lekcija }}</h1>\n\t<br><br>\n\t<form [formGroup]="anketaForm" (ngSubmit)="onSubmit()">\n\n\t  <div class="form-group" *ngFor="let kategorija of anketa | keyvalue; let i=index">\n\t\t<label [for]="kategorija.key">{{(kategorija.value | keyvalue)[1].value}}</label>\n\t\t<div class="radio" *ngFor="let odgovor of (kategorija.value | keyvalue)[0].value; let j=index">\n\t\t  <label>\n\t\t\t<input type="radio" [id]="kategorija.key" [value]="j" [formControlName] = "kategorija.key">\n\t\t\t{{odgovor}}\n\t\t  </label>\n\t\t</div>\n\t\t<br>\n\t  </div>\n\n\t  <div class="form-group">\n\t\t<label for="komentar">Komentar</label><br>\n\t\t<textarea class="form-control z-depth-1" id="komentar" [formControlName]="\'komentar\'" name="komentar" rows="6">\n\t\t</textarea>\n\t  </div>\n\n\t  <button type="submit" class="btn btn-primary" [disabled]="!anketaForm.valid">Spremi</button>\n\n\t</form>\n\n  </div>\n</div>\n'},Z7Oa:function(e,t){e.exports="<p>\n  Form submitted successfully\n</p>\n"},bmSb:function(e,t){e.exports=""},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},"nH/3":function(e,t){e.exports='\x3c!--The content below is only a placeholder and can be replaced.--\x3e\n<br>\n\n<div class="row">\n\t<div class="col-4" align="right">\n\t\t<img class="logo" src="assets/images/logo.jpeg" alt="makoto logo">\n\t</div>\n\t<div class="col-4">\n\t\t<h1>\n\t\t\tWelcome to {{ title }}!\n\t\t</h1>\n\t</div>\n</div>\n\n\n<router-outlet></router-outlet>\n\n<br><br>'},oc07:function(e,t){e.exports=""},zUnb:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}var h=Array.isArray||function(e){return e&&"number"==typeof e.length};function f(e){return null!=e&&"object"==typeof e}function d(e){return"function"==typeof e}var v,m={e:{}};function y(){try{return v.apply(this,arguments)}catch(e){return m.e=e,m}}function g(e){return v=e,y}function _(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e,this}_.prototype=Object.create(Error.prototype);var w=_,b=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(d(i))g(i).call(this)===m&&(t=!0,e=e||(m.e instanceof w?E(m.e.errors):[m.e]));if(h(o))for(s=-1,a=o.length;++s<a;){var u=o[s];if(f(u))if(g(u.unsubscribe).call(u)===m){t=!0,e=e||[];var c=m.e;c instanceof w?e=e.concat(E(c.errors)):e.push(c)}}if(t)throw new w(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function E(e){return e.reduce(function(e,t){return e.concat(t instanceof w?t.errors:t)},[])}var C=!1,x={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;C=e},get useDeprecatedSynchronousErrorHandling(){return C}};function S(e){setTimeout(function(){throw e})}var A={closed:!0,next:function(e){},error:function(e){if(x.useDeprecatedSynchronousErrorHandling)throw e;S(e)},complete:function(){}},T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),D=function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=A;break;case 1:if(!n){o.destination=A;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new P(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new P(o,n,r,i)}return o}return i(t,e),t.prototype[T]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this._parentSubscription=null,this},t}(b),P=function(e){function t(t,n,r,i){var o,s=e.call(this)||this;s._parentSubscriber=t;var a=s;return d(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==A&&(d((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=r,s._complete=i,s}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;x.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=x.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):S(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;S(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};x.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),x.useDeprecatedSynchronousErrorHandling)throw n;S(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!x.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return x.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(S(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(D);var N="function"==typeof Symbol&&Symbol.observable||"@@observable";function M(){}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O(e)}function O(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:M}var I=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof D)return e;if(e[T])return e[T]()}return e||t||n?new D(e,t,n):new D(A)}(e,t,n);if(r?r.call(i,this.source):i.add(this.source||x.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),x.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){x.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof D?r:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=F(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:O(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=F(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function F(e){if(e||(e=x.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function R(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}R.prototype=Object.create(Error.prototype);var j=R,L=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(b),V=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(D),B=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[T]=function(){return new V(this)},t.prototype.lift=function(e){var t=new U(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new j;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new j;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new j;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new j;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new j;return this.hasError?(e.error(this.thrownError),b.EMPTY):this.isStopped?(e.complete(),b.EMPTY):(this.observers.push(e),new L(this,e))},t.prototype.asObservable=function(){var e=new I;return e.source=this,e},t.create=function(e,t){return new U(e,t)},t}(I),U=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):b.EMPTY},t}(B);function H(e){return e&&"function"==typeof e.schedule}var q=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(D),z=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},W=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,S),t}};function G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var K=G(),Q=function(e){return function(t){for(var n=e[K]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}},$=function(e){return function(t){var n=e[N]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},Z=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Y(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var X=function(e){if(e instanceof I)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[N])return $(e);if(Z(e))return z(e);if(Y(e))return W(e);if(e&&"function"==typeof e[K])return Q(e);var t=f(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function J(e,t,n,r,i){if(void 0===i&&(i=new q(e,n,r)),!i.closed)return X(t)(i)}var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(D);function te(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ne(e,t))}}var ne=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new re(e,this.project,this.thisArg))},e}(),re=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return i(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(D);function ie(e,t){return new I(t?function(n){var r=new b,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:z(e))}function oe(e,t){if(!t)return e instanceof I?e:new I(X(e));if(null!=e){if(function(e){return e&&"function"==typeof e[N]}(e))return function(e,t){return new I(t?function(n){var r=new b;return r.add(t.schedule(function(){var i=e[N]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r}:$(e))}(e,t);if(Y(e))return function(e,t){return new I(t?function(n){var r=new b;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r}:W(e))}(e,t);if(Z(e))return ie(e,t);if(function(e){return e&&"function"==typeof e[K]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new I(t?function(n){var r,i=new b;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[K](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i}:Q(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function se(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(se(function(n,r){return oe(e(n,r)).pipe(te(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ae(e,n))})}var ae=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new ue(e,this.project,this.concurrent))},e}(),ue=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new q(this,void 0,void 0);this.destination.add(r),J(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(ee);function ce(e){return e}function le(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),se(ce,e)}function pe(){return function(e){return e.lift(new he(e))}}var he=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new fe(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),fe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(D),de=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new b).add(this.source.subscribe(new me(this.getSubject(),this))),e.closed?(this._connection=null,e=b.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return pe()(this)},t}(I).prototype,ve={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:de._subscribe},_isComplete:{value:de._isComplete,writable:!0},getSubject:{value:de.getSubject},connect:{value:de.connect},refCount:{value:de.refCount}},me=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(V);var ye=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}();function ge(){return new B}function _e(){return function(e){return pe()((t=ge,function(e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new ye(r,n));var i=Object.create(e,ve);return i.source=e,i.subjectFactory=r,i})(e));var t,n}}function we(e){for(var t in e)if(e[t]===we)return t;throw Error("Could not find renamed property on target object.")}function be(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}var Ee=we({ngComponentDef:we}),Ce=(we({ngDirectiveDef:we}),we({ngInjectableDef:we})),xe=we({ngInjectorDef:we}),Se=(we({ngPipeDef:we}),we({ngModuleDef:we})),Ae=we({ngBaseDef:we}),Te=we({__NG_ELEMENT_ID__:we});function De(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Ne(e){return e.hasOwnProperty(Ce)?e[Ce]:null}function Me(e){return e.hasOwnProperty(xe)?e[xe]:null}var ke=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?De({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),Oe="__annotations__",Ie="__parameters__",Fe="__prop__metadata__";function Re(e,t,n,r,i){var o=je(t);function s(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof s)return o.call.apply(o,p([this],t)),this;var a=new((e=s).bind.apply(e,p([void 0],t)));return function(e){return i&&i.apply(void 0,p([e],t)),(e.hasOwnProperty(Oe)?e[Oe]:Object.defineProperty(e,Oe,{value:[]})[Oe]).push(a),r&&r(e),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}function je(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,p(t));for(var i in r)this[i]=r[i]}}}function Le(e,t,n){var r=je(t);function i(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=new((e=i).bind.apply(e,p([void 0],t)));return s.annotation=o,s;function s(e,t,n){for(var r=e.hasOwnProperty(Ie)?e[Ie]:Object.defineProperty(e,Ie,{value:[]})[Ie];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}function Ve(e,t,n,r){var i=je(t);function o(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof o)return i.apply(this,t),this;var s=new((e=o).bind.apply(e,p([void 0],t)));return function(e,n){var i=e.constructor,o=i.hasOwnProperty(Fe)?i[Fe]:Object.defineProperty(i,Fe,{value:{}})[Fe];o[n]=o.hasOwnProperty(n)&&o[n]||[],o[n].unshift(s),r&&r.apply(void 0,p([e,n],t))}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}var Be,Ue,He=new ke("AnalyzeForEntryComponents"),qe=Le("Attribute",function(e){return{attributeName:e}}),ze=function(){return function(){}}(),We=Ve("ContentChildren",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},ze);Ve("ContentChild",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},ze),Ve("ViewChildren",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},ze),Ve("ViewChild",function(e,t){return o({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},ze);!function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(Be||(Be={})),function(e){e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed"}(Ue||(Ue={}));var Ge="undefined"!=typeof window&&window,Ke="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qe="undefined"!=typeof global&&global||Ge||Ke,$e=Promise.resolve(0),Ze=null;function Ye(){if(!Ze){var e=Qe.Symbol;if(e&&e.iterator)Ze=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ze=r)}}return Ze}function Xe(e){"undefined"==typeof Zone?$e.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function Je(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function et(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(et).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function tt(e){return e.__forward_ref__=tt,e.toString=function(){return et(this())},e}function nt(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===tt?e():e}var rt=Le("Inject",function(e){return{token:e}}),it=Le("Optional"),ot=Le("Self"),st=Le("SkipSelf"),at=Le("Host"),ut="__source",ct=new Object,lt=ct,pt=new ke("INJECTOR"),ht=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=ct),t===ct)throw new Error("NullInjectorError: No provider for "+et(e)+"!");return t},e}(),ft=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new Ct(e,t):new Ct(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=ct,e.NULL=new ht,e.ngInjectableDef=De({providedIn:"any",factory:function(){return Nt(pt)}}),e}(),dt=function(e){return e},vt=[],mt=dt,yt=function(){return Array.prototype.slice.call(arguments)},gt=we({provide:String,useValue:we}),_t="ngTempTokenPath",wt=ft.NULL,bt=/\n/gm,Et="\u0275",Ct=function(){function e(e,t,n){void 0===t&&(t=wt),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(ft,{token:ft,fn:dt,deps:vt,value:this,useNew:!1}),r.set(pt,{token:pt,fn:dt,deps:vt,value:this,useNew:!1}),function e(t,n){if(n)if((n=nt(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Tt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Tt("Unexpected provider",n);var i=nt(n.provide),o=function(e){var t=function(e){var t=vt,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var i=6,o=nt(n[r]);if(o instanceof Array)for(var s=0,a=o;s<a.length;s++){var u=a[s];u instanceof it||u==it?i|=1:u instanceof st||u==st?i&=-3:u instanceof ot||u==ot?i&=-5:o=u instanceof rt?u.token:nt(u)}t.push({token:o,options:i})}}else if(e.useExisting){var o=nt(e.useExisting);t=[{token:o,options:6}]}else if(!(n||gt in e))throw Tt("'deps' required",e);return t}(e),n=dt,r=vt,i=!1,o=nt(e.provide);if(gt in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=nt(e.useClass);else{if("function"!=typeof o)throw Tt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=o}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var s=t.get(i);if(s){if(s.fn!==yt)throw xt(i)}else t.set(i,s={token:n.provide,deps:[],useNew:!1,fn:yt,value:vt});i=n,s.deps.push({token:i,options:6})}var a=t.get(i);if(a&&a.fn==yt)throw xt(i);t.set(i,o)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=0);var r=this._records.get(e);try{return St(e,r,this._records,this.parent,t,n)}catch(o){var i=o[_t];throw e[ut]&&i.unshift(e[ut]),o.message=At("\n"+o.message,i,this.source),o.ngTokenPath=i,o[_t]=null,o}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(et(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function xt(e){return Tt("Cannot mix multi providers and regular providers",e)}function St(e,t,n,r,i,o){try{return function(e,t,n,r,i,o){var s,a;if(!t||4&o)2&o||(a=r.get(e,i,0));else{if((a=t.value)==mt)throw Error(Et+"Circular dependency");if(a===vt){t.value=mt;var u=void 0,c=t.useNew,l=t.fn,h=t.deps,f=vt;if(h.length){f=[];for(var d=0;d<h.length;d++){var v=h[d],m=v.options,y=2&m?n.get(v.token):void 0;f.push(St(v.token,y,n,y||4&m?r:wt,1&m?null:ft.THROW_IF_NOT_FOUND,0))}}t.value=a=c?new((s=l).bind.apply(s,p([void 0],f))):l.apply(u,f)}}return a}(e,t,n,r,i,o)}catch(s){throw s instanceof Error||(s=new Error(s)),(s[_t]=s[_t]||[]).unshift(e),t&&t.value==mt&&(t.value=vt),s}}function At(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Et?e.substr(2):e;var r=et(t);if(t instanceof Array)r=t.map(et).join(" -> ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):et(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(bt,"\n  ")}function Tt(e,t){return new Error(At(e,t))}var Dt=void 0;function Pt(e){var t=Dt;return Dt=e,t}function Nt(e,t){if(void 0===t&&(t=0),void 0===Dt)throw new Error("inject() must be called from an injection context");if(null===Dt){var n=Ne(e);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+et(e)+"]")}return Dt.get(e,8&t?null:void 0,t)}function Mt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,s=0;s<r.length;s++){var a=r[s];a instanceof it||"Optional"===a.ngMetadataName?o|=8:a instanceof st||"SkipSelf"===a.ngMetadataName?o|=4:a instanceof ot||"Self"===a.ngMetadataName?o|=2:i=a instanceof rt?a.token:a}t.push(Nt(i,o))}else t.push(Nt(r))}return t}var kt=Function;function Ot(e){return"function"==typeof e}var It=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Ft=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Rt=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,jt=function(){function e(e){this._reflect=e||Qe.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,p([void 0],t)))}},e.prototype._zipTypesAndAnnotations=function(e,t){var n;n=void 0===e?new Array(t.length):new Array(e.length);for(var r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n},e.prototype._ownParameters=function(e,t){var n=e.toString();if(It.exec(n)||Ft.exec(n)&&!Rt.exec(n))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var r=e.ctorParameters;if(r&&r!==t.ctorParameters){var i="function"==typeof r?r():r,o=i.map(function(e){return e&&e.type}),s=i.map(function(e){return e&&Lt(e.decorators)});return this._zipTypesAndAnnotations(o,s)}var a=e.hasOwnProperty(Ie)&&e[Ie],u=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return u||a?this._zipTypesAndAnnotations(u,a):new Array(e.length).fill(void 0)},e.prototype.parameters=function(e){if(!Ot(e))return[];var t=Vt(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]},e.prototype._ownAnnotations=function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?Lt(e.decorators):e.hasOwnProperty(Oe)?e[Oe]:null},e.prototype.annotations=function(e){if(!Ot(e))return[];var t=Vt(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)},e.prototype._ownPropMetadata=function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var r=e.propDecorators,i={};return Object.keys(r).forEach(function(e){i[e]=Lt(r[e])}),i}return e.hasOwnProperty(Fe)?e[Fe]:null},e.prototype.propMetadata=function(e){if(!Ot(e))return{};var t=Vt(e),n={};if(t!==Object){var r=this.propMetadata(t);Object.keys(r).forEach(function(e){n[e]=r[e]})}var i=this._ownPropMetadata(e,t);return i&&Object.keys(i).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,p(n[e])),t.push.apply(t,p(i[e])),n[e]=t}),n},e.prototype.hasLifecycleHook=function(e,t){return e instanceof kt&&t in e.prototype},e.prototype.guards=function(e){return{}},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){return new Function("o","args","if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n        return o."+e+".apply(o, args);")},e.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+et(e)},e.prototype.resourceUri=function(e){return"./"+et(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return r},e.prototype.resolveEnum=function(e,t){return e[t]},e}();function Lt(e){return e?e.map(function(e){var t=e.type.annotationCls,n=e.args?e.args:[];return new(t.bind.apply(t,p([void 0],n)))}):[]}function Vt(e){var t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}var Bt;new Set;!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Bt||(Bt={}));var Ut;function Ht(e){return e[Ee]||null}function qt(e){return e[Se]||null}!function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.Injector=2]="Injector"}(Ut||(Ut={}));var zt="__ngContext__",Wt=17,Gt=0,Kt=1,Qt=2,$t=3,Zt=4,Yt=5,Xt=6,Jt=7,en=8,tn=9,nn=10,rn=11,on=12,sn=14,an=16;function un(e,t){var n=pn(e),r=pn(t);return n&&r?function(e,t,n){var r=e[Ye()](),i=t[Ye()]();for(;;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(e,t,un):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||Je(e,t)}var cn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),ln=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function pn(e){return!!hn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ye()in e)}function hn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var fn=0,dn=1,vn=6,mn=7;function yn(e){for(;Array.isArray(e);)e=e[Yt];return e}function gn(e,t){return yn(t[e.index])}function _n(e,t){return t[Gt].data[e+Wt]}function wn(e,t){var n=t[e];return n.length>=Wt?n:n[Yt]}function bn(e){return 0!=(16384&e.flags)}function En(e){return Array.isArray(e)&&"number"==typeof e[fn]}function Cn(e){return e[zt]}function xn(e){var t=Cn(e);return t?Array.isArray(t)?t:t.lViewData:null}function Sn(e){var t,n=Cn(e);if(n){if(Array.isArray(n)){var r=n,i=void 0,o=void 0,s=void 0;if((t=e)&&t.constructor&&t.constructor.ngComponentDef){if(-1==(i=Mn(r,e)))throw new Error("The provided component was not found in the application");o=e}else if(function(e){return e&&e.constructor&&e.constructor.ngDirectiveDef}(e)){if(-1==(i=function(e,t){var n=e[Gt].firstChild;for(;n;){for(var r=kn(n),i=On(n,r),o=r;o<i;o++)if(e[o]===t)return n.index;n=Nn(n)}return-1}(r,e)))throw new Error("The provided directive was not found in the application");s=function(e,t,n){var r=t[Gt].data[e],i=kn(r),o=On(r,i);!n&&4096&r.flags&&i++;return t.slice(i,o)}(i,r,!1)}else if(-1==(i=Pn(r,e)))return null;var a=Cn(d=yn(r[i])),u=a&&!Array.isArray(a)?a:An(r,i,d);if(o&&void 0===u.component&&(u.component=o,Dn(u.component,u)),s&&void 0===u.directives){u.directives=s;for(var c=0;c<s.length;c++)Dn(s[c],u)}Dn(u.native,u),n=u}}else for(var l=e,p=l;p=p.parentNode;){var h=Cn(p);if(h){r=void 0;if(!(r=Array.isArray(h)?h:h.lViewData))return null;var f=Pn(r,l);if(f>=0){var d;Dn(d=yn(r[f]),u=An(r,f,d)),n=u;break}}}return n||null}function An(e,t,n){return{lViewData:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Tn(e){var t,n=Cn(e);if(Array.isArray(n)){var r=Mn(n,e);(i=An(n,r,(t=wn(r,n))[Yt])).component=e,Dn(e,i),Dn(i.native,i)}else{var i;t=wn((i=n).nodeIndex,i.lViewData)}return t}function Dn(e,t){e[zt]=t}function Pn(e,t){for(var n=e[Gt].firstChild;n;){if(gn(n,e)===t)return n.index;n=Nn(n)}return-1}function Nn(e){return e.child?e.child:e.next?e.next:e.parent&&e.parent.next||null}function Mn(e,t){var n=e[Gt].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(wn(i,e)[tn]===t)return i}else if(wn(Wt,e)[tn]===t)return Wt;return-1}function kn(e){return e.flags>>15}function On(e,t){var n=4095&e.flags;return n?t+n:-1}function In(e,t,n,r){t&&(r.initHooks||(r.initHooks=[])).push(e,t),n&&((r.initHooks||(r.initHooks=[])).push(e,n),(r.checkHooks||(r.checkHooks=[])).push(e,n))}function Fn(e,t){if(t.firstTemplatePass)for(var n=e>>15,r=n+(4095&e),i=n;i<r;i++){var o=t.data[i];Rn(o,t,i),jn(o,t,i),Ln(o,t,i)}}function Rn(e,t,n){e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked))}function jn(e,t,n){e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked))}function Ln(e,t,n){null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}function Vn(e,t,n){16&e[Kt]&&(Bn(e,t.initHooks,t.checkHooks,n),e[Kt]&=-17)}function Bn(e,t,n,r){var i=r?t:n;i&&Un(e,i)}function Un(e,t){for(var n=0;n<t.length;n+=2)t[n+1].call(e[t[n]])}var Hn,qn=8,zn=8,Wn=9,Gn="ngProjectAs";function Kn(e){return!!e.listen}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Hn||(Hn={}));var Qn={createRenderer:function(e,t){return document}};function $n(e,t){if(-1===e.index){var n=t[sn];return n>-1?t[Qt][n]:null}return t[Qt][e.parent.index]}var Zn=[];function Yn(e,t,n,r,i){for(var o=e[Gt].node,s=-1,a=e,u=o.child;u;){var c=null;if(3===u.type){Jn(t,n,r,gn(u,a),i);var l=a[u.index];En(l)&&Jn(t,n,r,l[vn],i)}else if(0===u.type){var p=a[u.index];Jn(t,n,r,p[vn],i),r&&(p[mn]=r),p[dn].length&&(c=(a=p[dn][0])[Gt].node,i=p[vn])}else if(1===u.type){var h=Xn(a),f=h[Xt].projection[u.projection];Zn[++s]=u,Zn[++s]=a,f&&(c=(a=h[Qt])[Gt].data[f.index])}else c=u.child;if(null===c)for(null===u.next&&8192&u.flags&&(a=Zn[s--],u=Zn[s--]),c=u.next;!c;){if(null===(u=u.parent||a[Gt].node)||u===o)return null;0===u.type&&(i=(a=a[Qt])[u.index][vn]),c=2===u.type&&a[$t]?(a=a[$t])[Gt].node:u.next}u=c}}function Xn(e){for(var t=e[Xt];t&&2===t.type;)t=(e=e[Qt])[Xt];return e}function Jn(e,t,n,r,i){0===e?Kn(t)?t.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===e?Kn(t)?t.removeChild(n,r):n.removeChild(r):2===e&&t.destroyNode(r)}function er(e,t,n,r,i){var o=t[dn];r>0&&(o[r-1][$t]=e),r<o.length?(e[$t]=o[r],o.splice(r,0,e)):(o.push(e),e[$t]=null),i>-1&&(e[sn]=i,e[Qt]=n),e[Zt]&&e[Zt].insertView(r),e[Kt]|=8}function tr(e){var t=e[Gt].childIndex;return-1===t?null:e[t]}function nr(e){var t=e[rn];Kn(t)&&t.destroyNode&&Yn(e,2,t,null),function(e){if(-1===e[Gt].childIndex)return ir(e);for(var t=tr(e);t;){var n=null;if(t.length>=Wt){var r=t;r[Gt].childIndex>-1&&(n=tr(r))}else{var i=t;i[dn].length&&(n=i[dn][0])}if(null==n){for(;t&&!t[$t]&&t!==e;)ir(t),t=rr(t,e);ir(t||e),n=t&&t[$t]}t=n}}(e),e[Kt]|=32}function rr(e,t){var n;return e.length>=Wt&&(n=e[Xt])&&2===n.type?$n(n,e):e[Qt]===t?null:e[Qt]}function ir(e){if(e.length>=Wt){var t=e;!function(e){var t=e[Gt].cleanup;if(null!=t){for(var n=0;n<t.length-1;n+=2)if("string"==typeof t[n]){var r=yn(e[t[n+1]]),i=e[en][t[n+2]];r.removeEventListener(t[n],i,t[n+3]),n+=2}else if("number"==typeof t[n]){var o=e[en][t[n]];o()}else{var s=e[en][t[n+1]];t[n].call(s)}e[en]=null}}(t),function(e){var t,n=e[Gt];null!=n&&null!=(t=n.destroyHooks)&&Un(e,t)}(t),(r=(n=t)[Gt]&&n[Gt].pipeDestroyHooks)&&Un(n,r),-1===t[Gt].id&&Kn(t[rn])&&t[rn].destroy()}var n,r}(function(){function e(){this._players=[]}e.prototype.flushPlayers=function(){for(var e=0;e<this._players.length;e++){var t=this._players[e];t.parent||0!==t.state||t.play()}this._players.length=0},e.prototype.queuePlayer=function(e){this._players.push(e)}})();!function(){function e(e,t,n){this._element=t,this._type=n,this._values={},this._dirty=!1,this._factory=e}e.prototype.setValue=function(e,t){this._values[e]!==t&&(this._values[e]=t,this._dirty=!0)},e.prototype.buildPlayer=function(e){if(this._dirty){var t=this._factory.fn(this._element,this._type,this._values,e||null);return this._values={},this._dirty=!1,t}}}();var or,sr,ar,ur,cr,lr,pr,hr,fr=Promise.resolve(null),dr="__CIRCULAR__";function vr(){return or}function mr(){return sr}function yr(){return hr&&hr[on]}function gr(){return hr}function _r(e){return e[en]||(e[en]=[])}function wr(e){return e[Gt].cleanup||(e[Gt].cleanup=[])}var br=!1,Er=!0,Cr=-1;function xr(e,t){var n=hr;return cr=e&&e[Gt],pr=e&&1==(1&e[Kt]),Er=e&&cr.firstTemplatePass,Cr=e&&cr.bindingStartIndex,or=e&&e[rn],ar=t,ur=!0,hr=e,n&&(n[Zt]=lr),lr=e&&e[Zt],n}function Sr(e,t){t||(br||Bn(hr,cr.viewHooks,cr.viewCheckHooks,pr),hr[Kt]&=-6),hr[Kt]|=16,hr[Jt]=cr.bindingStartIndex,xr(e,null)}function Ar(){Tr();var e=Er;cr.firstTemplatePass=Er=!1,br||Vn(hr,cr,pr),function(e){for(var t=tr(e);null!==t;t=t[$t])if(t.length<Wt&&-1===t[fn])for(var n=t,r=0;r<n[dn].length;r++){var i=n[dn][r];Ir(i,i[Gt],i[tn],2)}}(hr),function(e){if(null!=e.contentQueries)for(var t=0;t<e.contentQueries.length;t+=2){var n=e.contentQueries[t],r=e.data[n];r.contentQueriesRefresh(n-Wt,e.contentQueries[t+1])}}(cr),br||Bn(hr,cr.contentHooks,cr.contentCheckHooks,pr),function(e,t){if(null!=e)for(var n=0;n<e.length;n++)Zr(e[n],t)}(cr.components,e)}function Tr(){if(cr.expandoInstructions){Cr=hr[Jt]=cr.expandoStartIndex;for(var e=-1,t=-1,n=0;n<cr.expandoInstructions.length;n++){var r=cr.expandoInstructions[n];"number"==typeof r?r<=0?(t=-r,"number"==typeof hr[Cr]&&(Cr+=Wn),e=Cr):Cr+=r:(hr[Jt]=Cr,r(e-Wt,t),e++)}}}function Dr(){br||(Vn(hr,cr,pr),Bn(hr,cr.contentHooks,cr.contentCheckHooks,pr))}function Pr(e,t,n,r,i){var o=t.blueprint.slice();return o[Kt]=25|r,o[Qt]=o[an]=hr,o[tn]=n,o[nn]=hr?hr[nn]:null,o[rn]=e,o[on]=i||null,o}function Nr(e,t,n,r,i){var o=e+Wt;hr[o]=n;var s=cr.data[o];return null==s&&(s=cr.data[o]=Kr(t,o,r,i,null),ar&&(!ur||null!=ar.child||null===s.parent&&2!==ar.type?ur||(ar.next=s):ar.child=s)),null==cr.firstChild&&3===t&&(cr.firstChild=s),ar=s,ur=!0,s}function Mr(e,t){return null==t[Gt].node&&(t[Gt].node=Kr(2,e,null,null,null)),ur=!0,ar=t[Xt]=t[Gt].node}function kr(e){var t=e[Gt];t.firstTemplatePass&&(t.expandoStartIndex++,t.blueprint.push(null),e.push(null))}function Or(){ur=!1,ar=null,0,!0}function Ir(e,t,n,r){var i,o=ur,s=ar;if(64&e[Kt])ei(e[tn]);else try{ur=!0,ar=null,i=xr(e,e[Xt]),Lr(),t.template(r,n),2&r?Ar():e[Gt].firstTemplatePass=Er=!1}finally{Sr(i,1==(1&r)),ur=o,ar=s}}function Fr(e,t,n){var r=xr(e,e[Xt]);try{sr.begin&&sr.begin(),n?(Lr(),n(Rr(e),t),Ar()):(Dr(),Tr(),Zr(Wt,!1))}finally{sr.end&&sr.end(),Sr(r)}}function Rr(e){return 1&e[Kt]?3:2}var jr=null;function Lr(){jr=null}function Vr(e,t){var n=t||or;return Kn(n)?n.createElement(e,jr):null===jr?n.createElement(e):n.createElementNS(jr,e)}function Br(e){for(var t=0;t<e;t++)hr.push(ii),cr.blueprint.push(ii),cr.data.push(null)}function Ur(e,t,n){if(null===n[t]){n[t]=dr;var r=e.factory();return Qr(n[t]=hr.length,r,e)}return n[t]===dr&&function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(e.type),null}function Hr(e,t,n,r,i,o){return e.ngPrivateData||(e.ngPrivateData=qr(-1,e,t,n,r,i,o))}function qr(e,t,n,r,i,o,s){var a=Wt+n,u=a+r,c=function(e,t){var n=new Array(t).fill(null,0,e).fill(ii,e);return n[sn]=-1,n[Jt]=e,n}(a,u);return c[Gt]={id:e,blueprint:c,template:t,viewQuery:s,node:null,data:c.slice(),childIndex:-1,bindingStartIndex:a,expandoStartIndex:u,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,currentMatches:null,firstChild:null}}function zr(e,t){for(var n=Kn(or),r=0;r<t.length;){var i=t[r];if(1===i)break;if(i===Gn)r+=2;else if(0===i){var o=t[r+1],s=t[r+2],a=t[r+3];n?or.setAttribute(e,s,a,o):e.setAttributeNS(o,s,a),r+=4}else{a=t[r+1];n?or.setAttribute(e,i,a):e.setAttribute(i,a),r+=2}}}function Wr(e,t){sr=e;var n=e.createRenderer(null,null),r="string"==typeof t?Kn(n)?n.selectRootElement(t):n.querySelector(t):t;return r}function Gr(e,t){_r(e).push(t),e[Gt].firstTemplatePass&&wr(e).push(e[en].length-1,null)}function Kr(e,t,n,r,i){var o=ur?ar:ar&&ar.parent,s=o&&hr&&o!==hr[Xt]?o:null;return{type:e,index:t,injectorIndex:s?s.injectorIndex:-1,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:s,detached:null,stylingTemplate:null,projection:null}}function Qr(e,t,n){var r=$r(e,t,n,gn(ar,hr));n.template&&(wn(ar.index,hr)[tn]=t);return Er&&In(e,n.onInit,n.doCheck,cr),ar&&ar.attrs&&function(e,t,n,r){var i=r.initialInputs;(void 0===i||e>=i.length)&&(i=function(e,t,n){var r=n.initialInputs||(n.initialInputs=[]);r[e]=null;var i=n.attrs,o=0;for(;o<i.length;){var s=i[o];if(1===s)break;if(0!==s){var a=t[s],u=i[o+1];if(void 0!==a){var c=r[e]||(r[e]=[]);c.push(a,u)}o+=2}else o+=4}return r}(e,n,r));var o=i[e];if(o)for(var s=0;s<o.length;s+=2)t[o[s]]=o[s+1]}(e,r,n.inputs,ar),n.contentQueries&&n.contentQueries(),r}function $r(e,t,n,r){if(Dn(t,hr),r&&Dn(r,hr),hr[e]=t,Er){var i=ar.flags;0===i?ar.flags=e<<15|4096&i|1:ar.flags++,cr.data.push(n),cr.blueprint.push(null),n.hostBindings&&(s=n,cr.expandoInstructions.push(s.hostBindings,s.hostVars))}else{var o=n.diPublic;o&&o(n)}var s;return null!=n.attributes&&3==ar.type&&zr(r,n.attributes),t}function Zr(e,t){var n=wn(e,hr);Yr(n)&&6&n[Kt]&&(t&&function(e){for(var t=e[Gt],n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),ri(n,n[tn]))}function Yr(e){return 8==(8&e[Kt])}function Xr(e){for(var t=e;t&&!(64&t[Kt]);)t[Kt]|=4,t=t[Qt];t[Kt]|=4,Jr(t[tn],1)}function Jr(e,t){var n,r=0===e.flags;(e.flags|=t,r&&e.clean==fr)&&(e.clean=new Promise(function(e){return n=e}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,ei(e)),2&e.flags){e.flags&=-3;var t=e.playerHandler;t&&t.flushPlayers()}e.clean=fr,n(null)}))}function ei(e){for(var t=0;t<e.components.length;t++){var n=e.components[t];Fr(xn(n),n)}}function ti(e){ri(Tn(e),e)}function ni(e){ei(e[tn])}function ri(e,t){var n=e[Gt],r=xr(e,e[Xt]),i=n.template,o=n.viewQuery;try{Lr(),function(e,t,n){e&&1&t&&e(1,n)}(o,e[Kt],t),i(Rr(e),t),Ar(),function(e,t){e&&e(2,t)}(o,t)}finally{Sr(r)}}var ii={};var oi=fr,si=[0,1];function ai(e,t,n,r,i){Or();var o=n[Gt],s=Pr(r,Hr(t.template,t.consts,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery),null,t.onPush?4:2,i),a=Nr(0,3,e,null,null);return o.firstTemplatePass&&(o.expandoInstructions=si.slice(),t.diPublic&&t.diPublic(t),a.flags=n.length<<15|4096),s[Yt]=n[Wt],s[Xt]=a,n[Wt]=s}function ui(e,t,n,r,i,o){var s=$r(r.length,n.factory(),n,e);return i.components.push(s),t[tn]=s,o&&o.forEach(function(e){return e(s,n)}),r[Gt].firstTemplatePass&&Br(n.hostVars),Tr(),s}function ci(e,t){return{components:[],scheduler:e,clean:oi,playerHandler:t||null,flags:0}}function li(e,t){var n=xn(e)[Gt],r=n.data.length-1;In(r,t.onInit,t.doCheck,n),Fn(r<<15|1,n)}var pi=255;function hi(e,t){var n=di(e,t);if(-1!==n)return n;var r=t[Gt];r.firstTemplatePass&&(e.injectorIndex=t.length,fi(r.data,e),fi(t,null),fi(r.blueprint,null));var i=vi(e,t),o=32767&i,s=mi(i,t),a=s[Gt].data,u=e.injectorIndex;if(-1!==i)for(var c=0;c<zn;c++){var l=o+c;t[u+c]=s[l]|a[l]}return t[u+zn]=i,u}function fi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function di(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+zn]?-1:e.injectorIndex}function vi(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[Xt],r=1;n&&-1===n.injectorIndex;)n=(t=t[an])[Xt],r++;return n?n.injectorIndex|r<<15:-1}function mi(e,t){for(var n=e>>15,r=t;n>0;)r=r[an],n--;return r}function yi(e,t,n,r){void 0===r&&(r=0);var i=function(e){var t=e[Te];return"number"==typeof t?t&pi:t}(n);if("function"==typeof i)return i();if(null!=i){var o=di(e,t),s=o,a=t,u=-1;for((4&r||-1===s)&&(bi(r,u=-1===s?vi(e,t):a[s+zn])?s=-1:(s=32767&u,a=mi(u,a)));-1!==s;){for(;-1!==s&&!wi(i,s,a[Gt].data);){if(bi(r,u=a[s+zn])){s=-1;break}if(!wi(i,s,a)){s=-1;break}s=32767&u,a=mi(u,a)}if(-1===s)break;var c=void 0;if(c=_i(s,a,n))return c;if(s===o&&t===a&&(c=gi(n,a[Gt])))return c;s=32767&u,a=mi(u,a)}}var l=Pt(t[nn]);try{return Nt(n,r)}finally{Pt(l)}}function gi(e,t){var n=t.currentMatches;if(n)for(var r=0;r<n.length;r+=2){var i=n[r];if(i.type===e)return Ur(i,r+1,n)}return null}function _i(e,t,n){var r=t[Gt].data[e+qn].flags,i=4095&r;if(0!==i)for(var o=r>>15,s=o+i,a=t[Gt].data,u=o;u<s;u++){var c=a[u];if(c.type===n&&c.diPublic)return t[u]}return null}function wi(e,t,n){var r=1<<e,i=64&e,o=32&e;return!!((128&e?i?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:i?o?n[t+3]:n[t+2]:o?n[t+1]:n[t])&r)}function bi(e,t){return 2&e||1&e&&t>>15>0}var Ei=function(){function e(e,t){this._tNode=e,this._hostView=t,this._injectorIndex=hi(e,t)}return e.prototype.get=function(e){var t,n;return t=this._tNode,n=this._hostView,ar=t,hr=n,yi(this._tNode,this._hostView,e)},e}();var Ci=function(){return function(){}}(),xi=function(){return function(){}}();function Si(e){var t=Error("No component factory found for "+et(e)+". Did you add it to @NgModule.entryComponents?");return t[Di]=e,t}var Ai,Ti,Di="ngComponent",Pi=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw Si(e)},e}(),Ni=function(){function e(){}return e.NULL=new Pi,e}(),Mi=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var i=e[r];this._factories.set(i.componentType,i)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Si(e);return new ki(t,this._ngModule)},e}(),ki=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return i(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(xi),Oi=function(){return function(){}}(),Ii=function(){return function(){}}(),Fi=function(){function e(e,t,n){this._context=t,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=e}return Object.defineProperty(e.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 32==(32&this._view[Kt])},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewContainerRef&&Yr(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),nr(this._view)},e.prototype.onDestroy=function(e){Gr(this._view,e)},e.prototype.markForCheck=function(){Xr(this._view)},e.prototype.detach=function(){this._view[Kt]&=-9},e.prototype.reattach=function(){this._view[Kt]|=8},e.prototype.detectChanges=function(){var e=mr();e.begin&&e.begin(),ti(this.context),e.end&&e.end()},e.prototype.checkNoChanges=function(){!function(e){br=!0;try{ti(e)}finally{br=!1}}(this.context)},e.prototype.attachToViewContainerRef=function(e){this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null},e.prototype.attachToAppRef=function(e){this._appRef=e},e.prototype._lookUpContext=function(){return this._context=this._view[Qt][this._componentIndex]},e}(),Ri=function(e){function t(t){var n=e.call(this,t,null,-1)||this;return n._view=t,n}return i(t,e),t.prototype.detectChanges=function(){ni(this._view)},t.prototype.checkNoChanges=function(){!function(e){br=!0;try{ni(e)}finally{br=!1}}(this._view)},t}(Fi);function ji(e,t,n){return Ai||(Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(e)),new Ai(gn(t,n))}function Li(e,t,n,r){Ti||(Ti=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a._declarationParentView=t,a.elementRef=n,a._tView=r,a._renderer=i,a._queries=o,a._injectorIndex=s,a}return i(t,e),t.prototype.createEmbeddedView=function(e,t,n,r,i){var o=function(e,t,n,r,i,o){var s=ur,a=ar;ur=!0,ar=null;var u=Pr(r,e,t,2,yr());return u[an]=n,i&&(u[Zt]=i.createView()),Mr(-1,u),e.firstTemplatePass&&(e.node.injectorIndex=o),ur=s,ar=a,u}(this._tView,e,this._declarationParentView,this._renderer,this._queries,this._injectorIndex);t&&er(o,t,r,i,n.index),Ir(o,this._tView,e,1);var s=new Fi(o,e,-1);return s._tViewNode=o[Xt],s},t}(e));var o=r[n.index];return new Ti(r,ji(t,n,r),n.tViews,vr(),o[Zt],n.injectorIndex)}function Vi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var Bi,Ui=Vi,Hi=Vi,qi=Vi,zi=Vi,Wi=Vi,Gi=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return Ui(e)},e}(),Ki=(function(){}(),function(){}(),function(){return function(){}}()),Qi=(new ke("Renderer2Interceptor"),function(){}(),function(){return function(){}}());!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Bi||(Bi={}));var $i=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Wi()},e}(),Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.resolveComponentFactory=function(e){var t=Ht(e);return new to(t)},t}(Ni);function Yi(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({propName:r,templateName:n})}return t}var Xi=new ke("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return ci(Nt(Ji))}}),Ji=new ke("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return"undefined"!=typeof requestAnimationFrame&&"undefined"!=typeof window?requestAnimationFrame.bind(window):setTimeout}}),eo=new ke("WRAP_RENDERER_FACTORY2"),to=function(e){function t(t){var n=e.call(this)||this;return n.componentDef=t,n.componentType=t.type,n.selector=t.selectors[0][0],n.ngContentSelectors=[],n}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return Yi(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return Yi(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){var i,o=void 0===n;r?i=r.injector.get(eo,function(e){return e})(r.injector.get(Qi)):i=Qn;var s=o?Vr(this.selector,i.createRenderer(null,this.componentDef)):Wr(i,n),a=(this.componentDef.selectors[0][0],this.componentDef.onPush?68:66),u=r&&!o?r.injector.get(Xi):ci(requestAnimationFrame.bind(window)),c=i.createRenderer(s,this.componentDef),l=Pr(c,qr(-1,null,1,0,null,null,null),u,a);l[nn]=r&&r.injector||null;var p,h,f=xr(l,null);try{i.begin&&i.begin();var d=ai(s,this.componentDef,l,c);if(h=_n(0,l),t)for(var v=0,m=h.projection=[],y=0;y<t.length;y++){for(var g=t[y],_=null,w=null,b=0;b<g.length;b++){kr(l);var E=Nr(++v,3,g[b],null,null);w?w.next=E:_=E,w=E}m.push(_)}p=ui(s,d,this.componentDef,l,u,[li]),Ir(d,d[Gt],p,1),d[Kt]&=-2}finally{xr(f,null),i.end&&i.end()}var C=new no(this.componentType,p,l,e,ji(Gi,h,l));return o&&(C.hostView._tViewNode.child=h),C},t}(xi),no=(new Zi,function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s.location=o,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new Ri(r),s.hostView._tViewNode=Mr(-1,r),s.injector=i,s.componentType=t,s}return i(t,e),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(Ci));var ro=new ke("The presence of this token marks an injector as being the root injector."),io={},oo={},so=[],ao=void 0;function uo(){return void 0===ao&&(ao=new ht),ao}var co=function(){function e(e,t,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,ho([e],function(e){return r.processInjectorType(e,new Set)}),t&&ho(t,function(e){return r.processProvider(e)}),this.records.set(pt,po(void 0,this)),this.isRootInjector=this.records.has(ro),this.injectorDefTypes.forEach(function(e){return r.get(e)})}return e.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},e.prototype.get=function(e,t,n){void 0===t&&(t=lt),void 0===n&&(n=0),this.assertNotDestroyed();var r,i=Pt(this);try{if(!(4&n)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof ke)&&Ne(e);s&&this.injectableDefInScope(s)&&(o=lo(e),this.records.set(e,o))}if(void 0!==o)return this.hydrate(e,o)}2&n?uo():this.parent;return this.parent.get(e,t)}finally{Pt(i)}},e.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},e.prototype.processInjectorType=function(e,t){var n=this,r=Me(e=nt(e)),i=null==r&&e.ngModule||void 0,o=void 0===i?e:i,s=void 0!==i&&e.providers||so;if(void 0!==i&&(r=Me(i)),null!=r){if(t.has(o))throw new Error("Circular dependency: type "+et(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,po(r.factory)),null!=r.imports){t.add(o);try{ho(r.imports,function(e){return n.processInjectorType(e,t)})}finally{t.delete(o)}}null!=r.providers&&ho(r.providers,function(e){return n.processProvider(e)}),ho(s,function(e){return n.processProvider(e)})}},e.prototype.processProvider=function(e){var t=fo(e=nt(e))?e:nt(e.provide),n=function(e){var t=nt(e),n=io,r=void 0;if(fo(e))return lo(e);if(t=nt(e.provide),function(e){return gt in e}(e))n=e.useValue;else if(function(e){return!!e.useExisting}(e))r=function(){return Nt(e.useExisting)};else if(function(e){return!!e.useFactory}(e))r=function(){return e.useFactory.apply(e,p(Mt(e.deps||[])))};else{var i=e.useClass||t;if(!function(e){return!!e.deps}(e))return lo(i);r=function(){return new(i.bind.apply(i,p([void 0],Mt(e.deps))))}}return po(r,n)}(e);if(fo(e)||!0!==e.multi){var r=this.records.get(t);if(r&&void 0!==r.multi)throw new Error("Mixed multi-provider for "+et(t))}else{var i=this.records.get(t);if(i){if(void 0===i.multi)throw new Error("Mixed multi-provider for "+t+".")}else(i=po(void 0,io,!0)).factory=function(){return Mt(i.multi)},this.records.set(t,i);t=e,i.multi.push(e)}this.records.set(t,n)},e.prototype.hydrate=function(e,t){if(t.value===oo)throw new Error("Circular dep for "+et(e));var n;return t.value===io&&(t.value=oo,t.value=t.factory()),"object"==typeof t.value&&t.value&&("object"==typeof(n=t.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy)&&this.onDestroy.add(t.value),t.value},e.prototype.injectableDefInScope=function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||"root"===e.providedIn&&this.isRootInjector:this.injectorDefTypes.has(e.providedIn))},e}();function lo(e){var t=Ne(e);if(null===t){if(e instanceof ke)throw new Error("Token "+et(e)+" is missing an ngInjectableDef definition.");return po(function(){return new e})}return po(t.factory)}function po(e,t,n){return void 0===t&&(t=io),void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function ho(e,t){e.forEach(function(e){return Array.isArray(e)?ho(e,t):t(e)})}function fo(e){return"function"==typeof e}var vo={provide:Ni,useFactory:function(){return new Zi},deps:[]},mo=function(e){function t(t,n){var r=e.call(this)||this;r._bootstrapComponents=[],r.destroyCbs=[];var i=qt(t);r._bootstrapComponents=i.bootstrap;var o=[vo,{provide:Oi,useValue:r}];return r.injector=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),t=t||uo(),new co(e,n,t)}(t,n,o),r.instance=r.injector.get(t),r.componentFactoryResolver=new Zi,r}return i(t,e),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(Oi);!function(e){function t(t){var n=e.call(this)||this;return n.moduleType=t,n}i(t,e),t.prototype.create=function(e){return new mo(this.moduleType,e)}}(Ii);var yo=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return i(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var i,o=function(e){return null},s=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,i,o,s);return t instanceof b&&t.add(a),a},t}(B),go=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Hi(e,Gi)},e}();!function(){function e(e,t,n){this.parent=e,this.shallow=t,this.deep=n}e.prototype.track=function(e,t,n,r){n?this.deep=Po(this.deep,e,t,null!=r?r:null):this.shallow=Po(this.shallow,e,t,null!=r?r:null)},e.prototype.clone=function(){return new e(this,null,this.deep)},e.prototype.container=function(){var t=_o(this.shallow),n=_o(this.deep);return t||n?new e(this,t,n):null},e.prototype.createView=function(){var t=wo(this.shallow),n=wo(this.deep);return t||n?new e(this,t,n):null},e.prototype.insertView=function(e){bo(e,this.shallow),bo(e,this.deep)},e.prototype.addNode=function(e){return Ao(this.deep,e),bn(e)?(Ao(this.shallow,e),e.parent&&bn(e.parent)&&Ao(this.parent.shallow,e),this.parent):(function(e){return null===e.parent||bn(e.parent)}(e)&&Ao(this.shallow,e),this)},e.prototype.removeView=function(){Eo(this.shallow),Eo(this.deep)}}();function _o(e){for(var t=null;e;){var n=[];e.values.push(n),t={next:t,list:e.list,predicate:e.predicate,values:n,containerValues:null},e=e.next}return t}function wo(e){for(var t=null;e;){t={next:t,list:e.list,predicate:e.predicate,values:[],containerValues:e.values},e=e.next}return t}function bo(e,t){for(;t;)t.containerValues.splice(e,0,t.values),t=t.next}function Eo(e){for(;e;){var t=e.containerValues,n=t.indexOf(e.values),r=t.splice(n,1);r[0].length&&e.list.setDirty(),e=e.next}}function Co(e,t){var n=e.localNames;if(n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function xo(e,t,n){var r=n[Te];if("function"==typeof r)return r();var i=function(e,t,n){var r=t[Gt].data;if(r)for(var i=e.flags,o=i>>15,s=o+(4095&i),a=o;a<s;a++){var u=r[a];if(u.type===n&&u.diPublic)return a}return null}(e,t,n);return null!==i?t[i]:null}function So(e,t){return 3===e.type||4===e.type?ji(Gi,e,t):0===e.type?Li(go,Gi,e,t):null}function Ao(e,t){for(var n=gr();e;){var r=e.predicate,i=r.type;if(i)null!==(u=xo(t,n,r.read||i))&&To(e,u);else for(var o=r.selector,s=0;s<o.length;s++){var a=Co(t,o[s]);if(null!==a){var u=null;null!==(u=r.read?xo(t,n,r.read):a>-1?n[a]:So(t,n))&&To(e,u)}}e=e.next}}function To(e,t){e.values.push(t),e.list.setDirty()}function Do(e,t){var n=Array.isArray(e);return{type:n?null:e,selector:n?e:null,read:t}}function Po(e,t,n,r){return{next:e,list:t,predicate:Do(n,r),values:t._valuesTree,containerValues:null}}!function(){function e(){this.dirty=!0,this.changes=new yo,this._values=[],this._valuesTree=[]}Object.defineProperty(e.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){var e=this._values;return e.length?e[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){var e=this._values;return e.length?e[e.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._values.map(e)},e.prototype.filter=function(e){return this._values.filter(e)},e.prototype.find=function(e){return this._values.find(e)},e.prototype.reduce=function(e,t){return this._values.reduce(e,t)},e.prototype.forEach=function(e){this._values.forEach(e)},e.prototype.some=function(e){return this._values.some(e)},e.prototype.toArray=function(){return this._values.slice(0)},e.prototype[Ye()]=function(){return this._values[Ye()]()},e.prototype.toString=function(){return this._values.toString()},e.prototype.reset=function(e){this._values=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];Array.isArray(r)?r.length>0?(e=r.concat(e.slice(n+1)),n=0):n++:(t.push(r),n++)}return t}(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()}}();var No=!0,Mo=!1;function ko(){return Mo=!0,No}var Oo=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement=this.getInertBodyElement_DOMParser:this.getInertBodyElement=this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},e}();var Io=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Fo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ro(e){return(e=String(e)).match(Io)||e.match(Fo)?e:(ko()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function jo(e){var t,n,r={};try{for(var i=c(e.split(",")),o=i.next();!o.done;o=i.next()){r[o.value]=!0}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Lo(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=c(n),s=o.next();!s.done;s=o.next()){var a=s.value;for(var u in a)a.hasOwnProperty(u)&&(i[u]=!0)}}catch(l){e={error:l}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i}var Vo,Bo,Uo=jo("area,br,col,hr,img,wbr"),Ho=jo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qo=jo("rp,rt"),zo=Lo(qo,Ho),Wo=Lo(Ho,jo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Go=Lo(qo,jo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ko=Lo(Uo,Wo,Go,zo),Qo=jo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$o=jo("srcset"),Zo=jo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yo=Lo(Qo,$o,Zo),Xo=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(t.nodeType===Node.ELEMENT_NODE?this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var n=this.checkClobberedElement(t,t.nextSibling);if(n){t=n;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t=e.nodeName.toLowerCase();if(Ko.hasOwnProperty(t)){this.buf.push("<"),this.buf.push(t);for(var n,r=e.attributes,i=0;i<r.length;i++){var o=r.item(i),s=o.name,a=s.toLowerCase();if(Yo.hasOwnProperty(a)){var u=o.value;Qo[a]&&(u=Ro(u)),$o[a]&&(n=u,u=(n=String(n)).split(",").map(function(e){return Ro(e.trim())}).join(", ")),this.buf.push(" ",s,'="',ts(u),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Ko.hasOwnProperty(t)&&!Uo.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(ts(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Jo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,es=/([^\#-~ |!])/g;function ts(e){return e.replace(/&/g,"&amp;").replace(Jo,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(es,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ns(e,t){var n=null;try{Vo=Vo||new Oo(e);var r=t?String(t):"";n=Vo.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Vo.getInertBodyElement(r)}while(r!==o);var s=new Xo,a=s.sanitizeChildren(rs(n)||n);return ko()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var u=rs(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function rs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(Bo||(Bo={}));var is=function(){return function(){}}(),os=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ss=/^url\(([^)]+)\)$/;function as(e){if(!(e=String(e).trim()))return"";var t=e.match(ss);return t&&Ro(t[1])===t[1]||e.match(os)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(ko()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}we({provide:String,useValue:we});function us(){}var cs=us,ls=us,ps=function(e,t){t&&void 0!==t.providedIn&&!Ne(e)&&(e.ngInjectableDef=De({providedIn:t.providedIn,factory:ms(e,t)}))},hs=function(e,t){var n=t&&t.imports||[];t&&t.exports&&(n=p(n,[t.exports]));e.ngInjectorDef=Pe({factory:ms(e,{useClass:e}),providers:t&&t.providers,imports:n})},fs=us;var ds=we({provide:String,useValue:we}),vs=[];function ms(e,t){if(!t){var n=(u=new jt).parameters(e);return function(){return new(e.bind.apply(e,p([void 0],Mt(n))))}}if(ds in t){var r=t;return function(){return r.useValue}}if(t.useExisting){var i=t;return function(){return Nt(i.useExisting)}}if(t.useFactory){var o=t;return function(){return o.useFactory.apply(o,p(Mt(o.deps||vs)))}}if(t.useClass){var s=t,a=t.deps;if(!a){var u=new jt;a=u.parameters(e)}return function(){var e;return new((e=s.useClass).bind.apply(e,p([void 0],Mt(a))))}}var c=t.deps;if(!c){u=new jt;c=u.parameters(e)}return function(){return new(e.bind.apply(e,p([void 0],Mt(c))))}}var ys=Re("Directive",function(e){return void 0===e&&(e={}),e},void 0,void 0,function(e,t){return ls(e,t)}),gs=Re("Component",function(e){return void 0===e&&(e={}),o({changeDetection:Be.Default},e)},ys,void 0,function(e,t){return cs(e,t)}),_s=Re("Pipe",function(e){return o({pure:!0},e)},void 0,void 0,function(e,t){return fs(e,t)}),ws=function(e){return function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=t.constructor;o.hasOwnProperty(Ae)||function(e){var t=e.constructor,n=t.ngBaseDef,r=t.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(be(r.inputs,n.inputs),be(r.outputs,n.outputs),be(r.declaredInputs,n.declaredInputs))}(t);var s=o.ngBaseDef;e(s)[n]=r[0]}},bs=Ve("Input",function(e){return{bindingPropertyName:e}},void 0,ws(function(e){return e.inputs||{}})),Es=Ve("Output",function(e){return{bindingPropertyName:e}},void 0,ws(function(e){return e.outputs||{}})),Cs=Ve("HostBinding",function(e){return{hostPropertyName:e}}),xs=Ve("HostListener",function(e,t){return{eventName:e,args:t}}),Ss=Re("NgModule",function(e){return e},void 0,void 0,function(e,t){return hs(e,t)}),As=function(){return function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}(),Ts=new As("7.0.4"),Ds=Re("Injectable",void 0,void 0,void 0,function(e,t){return ps(e,t)}),Ps="ngDebugContext",Ns="ngOriginalError",Ms="ngErrorLogger";function ks(e){return e[Ps]}function Os(e){return e[Ns]}function Is(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,p(t))}var Fs=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ms]||Is}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?ks(e)?ks(e):this._findContext(Os(e)):null},e.prototype._findOriginalError=function(e){for(var t=Os(e);t&&Os(t);)t=Os(t);return t},e}();function Rs(e){return e.length>1?" ("+function(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return et(e.token)}).join(" -> ")+")":""}function js(e,t,n,r){var i=[t],o=n(i),s=r?function(e,t){var n=e+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[Ns]=t,r}(o,r):Error(o);return s.addKey=Ls,s.keys=i,s.injectors=[e],s.constructResolvingMessage=n,s[Ns]=r,s}function Ls(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Vs(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];o&&0!=o.length?n.push(o.map(et).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+et(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+et(e)+"' is decorated with Injectable.")}var Bs=function(){function e(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=et(this.token)}return e.get=function(e){return Us.get(nt(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return Us.numberOfKeys},enumerable:!0,configurable:!0}),e}(),Us=new(function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof Bs)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new Bs(e,Bs.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}()),Hs=new(function(){function e(e){this.reflectionCapabilities=e}return e.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},e.prototype.factory=function(e){return this.reflectionCapabilities.factory(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.getter=function(e){return this.reflectionCapabilities.getter(e)},e.prototype.setter=function(e){return this.reflectionCapabilities.setter(e)},e.prototype.method=function(e){return this.reflectionCapabilities.method(e)},e.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},e.prototype.resourceUri=function(e){return this.reflectionCapabilities.resourceUri(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)},e.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},e}())(new jt),qs=function(){function e(e,t,n){this.key=e,this.optional=t,this.visibility=n}return e.fromKey=function(t){return new e(t,!1,null)},e}(),zs=[],Ws=function(){return function(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}(),Gs=function(){return function(e,t){this.factory=e,this.dependencies=t}}();function Ks(e){var t,n;if(e.useClass){var r=nt(e.useClass);t=Hs.factory(r),n=Zs(r)}else e.useExisting?(t=function(e){return e},n=[qs.fromKey(Bs.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return Ys(e,t,n)})}return Zs(e)}(e.useFactory,e.deps)):(t=function(){return e.useValue},n=zs);return new Gs(t,n)}function Qs(e){return new Ws(Bs.get(e.provide),[Ks(e)],e.multi||!1)}function $s(e){var t=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else t.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new Ws(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,s)}}return t}(function e(t,n){t.forEach(function(t){if(t instanceof kt)n.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)n.push(t);else{if(!(t instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t);e(t,n)}});return n}(e,[]).map(Qs),new Map);return Array.from(t.values())}function Zs(e){var t=Hs.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw Vs(e,t);return t.map(function(n){return Ys(e,n,t)})}function Ys(e,t,n){var r=null,i=!1;if(!Array.isArray(t))return Xs(t instanceof rt?t.token:t,i,null);for(var o=null,s=0;s<t.length;++s){var a=t[s];a instanceof kt?r=a:a instanceof rt?r=a.token:a instanceof it?i=!0:a instanceof ot||a instanceof st?o=a:a instanceof ke&&(r=a)}if(null!=(r=nt(r)))return Xs(r,i,o);throw Vs(e,n)}function Xs(e,t,n){return new qs(Bs.get(e),t,n)}var Js=new Object,ea=function(){function e(){}return e.resolve=function(e){return $s(e)},e.resolveAndCreate=function(t,n){var r=e.resolve(t);return e.fromResolvedProviders(r,n)},e.fromResolvedProviders=function(e,t){return new ta(e,t)},e}(),ta=function(){function e(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;var n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=Js}return e.prototype.get=function(e,t){return void 0===t&&(t=lt),this._getByKey(Bs.get(e),null,t)},e.prototype.resolveAndCreateChild=function(e){var t=ea.resolve(e);return this.createChildFromResolved(t)},e.prototype.createChildFromResolved=function(t){var n=new e(t);return n.parent=this,n},e.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(ea.resolve([e])[0])},e.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},e.prototype.getProviderAtIndex=function(e){if(e<0||e>=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw t=this,n=e.key,js(t,n,function(e){return"Cannot instantiate cyclic dependency!"+Rs(e)});var t,n;return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])},e.prototype._instantiate=function(e,t){var n,r,i,o,s,a=this,u=t.factory;try{n=t.dependencies.map(function(e){return a._getByReflectiveDependency(e)})}catch(c){throw c.addKey&&c.addKey(this,e.key),c}try{r=u.apply(void 0,p(n))}catch(c){throw i=this,o=c,c.stack,s=e.key,js(i,s,function(e){var t=et(e[0].token);return o.message+": Error during instantiation of "+t+"!"+Rs(e)+"."},o)}return r},e.prototype._getByReflectiveDependency=function(e){return this._getByKey(e.key,e.visibility,e.optional?null:lt)},e.prototype._getByKey=function(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof ot?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)},e.prototype._getObjByKeyId=function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Js&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Js},e.prototype._throwOrNull=function(e,t){if(t!==lt)return t;throw function(e,t){return js(e,t,function(e){return"No provider for "+et(e[0].token)+"!"+Rs(e)})}(this,e)},e.prototype._getByKeySelf=function(e,t){var n=this._getObjByKeyId(e.id);return n!==Js?n:this._throwOrNull(e,t)},e.prototype._getByKeyDefault=function(t,n,r){var i;for(i=r instanceof st?this.parent:this;i instanceof e;){var o=i,s=o._getObjByKeyId(t.id);if(s!==Js)return s;i=o.parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)},Object.defineProperty(e.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(e,t){for(var n=new Array(e._providers.length),r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.displayName},e.INJECTOR_KEY=Bs.get(ft),e}();function na(e){return!!e&&"function"==typeof e.then}function ra(e){return!!e&&"function"==typeof e.subscribe}var ia=new ke("Application Initializer"),oa=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();na(i)&&t.push(i)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e=s([Ds(),a(0,rt(ia)),a(0,it()),u("design:paramtypes",[Array])],e)}(),sa=new ke("AppId");var aa={provide:sa,useFactory:function(){return""+ua()+ua()+ua()},deps:[]};function ua(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ca=new ke("Platform Initializer"),la=new ke("Platform ID"),pa=new ke("appBootstrapListener"),ha=new ke("Application Packages Root URL"),fa=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e=s([Ds()],e)}();function da(){throw new Error("Runtime compiler is not loaded")}var va,ma,ya=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw da()},e.prototype.compileModuleAsync=function(e){throw da()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw da()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw da()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e=s([Ds()],e)}(),ga=new ke("compilerOptions"),_a=function(){return function(){}}();var wa,ba=!(!(wa=Qe.wtf)||!(va=wa.trace)||(ma=va.events,0));function Ea(e,t){return null}var Ca=ba?function(e,t){return void 0===t&&(t=null),ma.createScope(e,t)}:function(e,t){return Ea},xa=ba?function(e,t){return va.leaveScope(e,t),t}:function(e,t){return t},Sa=function(){function e(e){var t=e.enableLongStackTrace,n=void 0!==t&&t;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yo(!1),this.onMicrotaskEmpty=new yo(!1),this.onStable=new yo(!1),this.onError=new yo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var r;this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(r=this)._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,o,s){try{return Pa(r),e.invokeTask(n,i,o,s)}finally{Na(r)}},onInvoke:function(e,t,n,i,o,s,a){try{return Pa(r),e.invoke(n,i,o,s,a)}finally{Na(r)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(r.hasPendingMicrotasks=i.microTask,Da(r)):"macroTask"==i.change&&(r.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),r.runOutsideAngular(function(){return r.onError.emit(i)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Ta,Aa,Aa);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Aa(){}var Ta={};function Da(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Pa(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Na(e){e._nesting--,Da(e)}var Ma=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yo,this.onMicrotaskEmpty=new yo,this.onStable=new yo,this.onError=new yo}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),ka=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),e.run(function(){t.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Sa.assertNotInAngularZone(),Xe(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())Xe(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]},e.prototype.addCallback=function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e=s([Ds(),u("design:paramtypes",[Sa])],e)}(),Oa=function(){function e(){this._applications=new Map,Fa.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Fa.findTestabilityInTree(this,e,t)},e=s([Ds(),u("design:paramtypes",[])],e)}();var Ia,Fa=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Ra=function(e,t,n){return e.get(_a).createCompiler([t]).compileModuleAsync(n)};var ja=new ke("AllowMultipleToken"),La=function(){return function(e,t){this.name=e,this.token=t}}();function Va(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new ke(r);return function(t){void 0===t&&(t=[]);var o=Ba();if(!o||o.injector.get(ja,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(Ia&&!Ia.destroyed&&!Ia.injector.get(ja,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ia=e.get(Ua);var t=e.get(ca,null);t&&t.forEach(function(e){return e()})}(ft.create({providers:s,name:r}))}return function(e){var t=Ba();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Ba(){return Ia&&!Ia.destroyed?Ia:null}var Ua=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n=this,r=function(e){var t;t="noop"===e?new Ma:("zone.js"===e?void 0:e)||new Sa({enableLongStackTrace:ko()});return t}(t?t.ngZone:void 0),i=[{provide:Sa,useValue:r}];return r.run(function(){var t=ft.create({providers:i,parent:n.injector,name:e.moduleType.name}),o=e.create(t),s=o.injector.get(Fs,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return za(n._modules,o)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,n){try{var r=n();return na(r)?r.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):r}catch(i){throw t.runOutsideAngular(function(){return e.handleError(i)}),i}}(s,r,function(){var e=o.injector.get(oa);return e.runInitializers(),e.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Ha({},t);return Ra(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(qa);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+et(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e=s([Ds(),u("design:paramtypes",[ft])],e)}();function Ha(e,t){return e=Array.isArray(t)?t.reduce(Ha,e):o({},e,t)}var qa=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ko(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new I(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new I(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Sa.assertNotInAngularZone(),Xe(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Sa.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return H(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof I?e[0]:le(n)(ie(e,r))}(a,u.pipe(_e()))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof xi?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof ki?null:this._injector.get(Oi),o=t||n.selector,s=n.create(ft.NULL,[],o,i);s.onDestroy(function(){r._unloadComponent(s)});var a=s.injector.get(ka,null);return a&&s.injector.get(Oa).registerApplication(s.location.nativeElement,a),this._loadComponent(s),ko()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},e.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,xa(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;za(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(pa,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),za(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ca("ApplicationRef#tick()"),e=t=s([Ds(),u("design:paramtypes",[Sa,fa,ft,Fs,Ni,oa])],e)}();function za(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Wa=function(){return function(){}}(),Ga=new Map;function Ka(e,t){var n=Ga.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);Ga.set(e,t)}var Qa=function(){function e(){this.dirty=!0,this._results=[],this.changes=new yo,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[Ye()]=function(){return this._results[Ye()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}();var $a=function(){return function(){}}(),Za={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ya=function(){function e(e,t){this._compiler=e,this._config=t||Za}return e.prototype.load=function(e){return this._compiler instanceof ya?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=l(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(e){return e[o]}).then(function(e){return Xa(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=l(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return Xa(e,r,i)})},e=s([Ds(),a(1,it()),u("design:paramtypes",[ya,$a])],e)}();function Xa(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Ja=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return zi(e,Gi)},e}(),eu=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return qi()},e}(),tu=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}i(t,e)}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(eu)),function(){return function(e,t){this.name=e,this.callback=t}}()),nu=function(){function e(e,t,n){this.nativeNode=e,this._debugContext=n,this.listeners=[],this.parent=null,t&&t instanceof ru&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),ru=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return i(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,p([i+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof ru&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof ru&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof ru&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(nu);var iu=new Map;function ou(e){return iu.get(e)||null}function su(e){iu.set(e.nativeNode,e)}var au=function(){function e(){}return e.prototype.supports=function(e){return pn(e)},e.prototype.create=function(e){return new cu(e)},e}(),uu=function(e,t){return t},cu=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||uu}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<fu(n,r,i)?t:n,s=fu(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&e(o,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!pn(e))throw new Error("Error trying to diff '"+et(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)r=e[a],i=this._trackByFn(a,r),null!==o&&Je(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),Je(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[Ye()](),i=void 0;!(i=r.next()).done;)t(i.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&Je(o.trackById,i)?(s&&(o=t._verifyReinsertion(o,e,i,n)),Je(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Je(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Je(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new lu(t,n),i,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new hu),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},e}(),lu=function(){return function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),pu=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Je(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),hu=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new pu,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function fu(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var du=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||hn(e)},e.prototype.create=function(){return new vu},e}(),vu=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||hn(e)))throw new Error("Error trying to diff '"+et(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new mu(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){Je(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),mu=function(){return function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),yu=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new st,new it]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e.ngInjectableDef=De({providedIn:"root",factory:function(){return new e([new au])}}),e}();var gu,_u=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new st,new it]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),wu=[new du],bu=[new au],Eu=new yu(bu),Cu=new _u(wu),xu=Va(null,"core",[{provide:la,useValue:"unknown"},{provide:Ua,deps:[ft]},{provide:Oa,deps:[]},{provide:fa,deps:[]}]),Su=new ke("LocaleId"),Au=new ke("Translations"),Tu=new ke("TranslationsFormat");!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(gu||(gu={}));var Du=[{provide:qa,useClass:qa,deps:[Sa,fa,ft,Fs,Ni,oa]},{provide:oa,useClass:oa,deps:[[new it,ia]]},{provide:ya,useClass:ya,deps:[]},aa,{provide:yu,useFactory:function(){return Eu},deps:[]},{provide:_u,useFactory:function(){return Cu},deps:[]},{provide:Su,useFactory:function(e){return e||"en-US"},deps:[[new rt(Su),new it,new st]]}],Pu=function(){function e(e){}return e=s([Ss({providers:Du}),u("design:paramtypes",[qa])],e)}();function Nu(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Mu(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function ku(e,t){return e.nodes[t]}function Ou(e,t){return e.nodes[t]}function Iu(e,t){return e.nodes[t]}function Fu(e,t){return e.nodes[t]}function Ru(e,t){return e.nodes[t]}var ju={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Lu(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Vu(n,t),n}(i,e)}function Vu(e,t){e[Ps]=t,e[Ms]=t.logError.bind(t)}function Bu(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Uu=function(){},Hu=new Map;function qu(e){var t=Hu.get(e);return t||(t=et(e)+"_"+Hu.size,Hu.set(e,t)),t}function zu(e,t,n,r){if(cn.isWrapped(r)){r=cn.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=cn.unwrap(e.oldValues[i]);e.oldValues[i]=new cn(o)}return r}var Wu="$$undefined",Gu="$$empty";function Ku(e){return{id:Wu,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Qu=0;function $u(e,t,n,r){var i=e.oldValues;return!(!(2&e.state)&&Je(i[t.bindingIndex+n],r))}function Zu(e,t,n,r){return!!$u(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Yu(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!un(i,r)){var o=t.bindings[n].name;throw Lu(ju.createDebugContext(e,t.nodeIndex),o+": "+i,o+": "+r,0!=(1&e.state))}}function Xu(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Ju(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ec(e,t,n,r){try{return Xu(33554432&e.def.nodes[t].flags?Ou(e,t).componentView:e),ju.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function tc(e){return e.parent?Ou(e.parent,e.parentNodeDef.nodeIndex):null}function nc(e){return e.parent?e.parentNodeDef.parent:null}function rc(e,t){switch(201347067&t.flags){case 1:return Ou(e,t.nodeIndex).renderElement;case 2:return ku(e,t.nodeIndex).renderText}}function ic(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function oc(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function sc(e){return 1<<e%32}function ac(e){var t={},n=0,r={};return e&&e.forEach(function(e){var i=l(e,2),o=i[0],s=i[1];"number"==typeof o?(t[o]=s,n|=sc(o)):r[o]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function uc(e,t){return e.map(function(e){var n,r,i;return Array.isArray(e)?(i=(n=l(e,2))[0],r=n[1]):(i=0,r=e),r&&("function"==typeof r||"object"==typeof r)&&t&&Object.defineProperty(r,ut,{value:t,configurable:!0}),{flags:i,token:r,tokenKey:qu(r)}})}function cc(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Bt.Native?Ou(e,n.renderParent.nodeIndex).renderElement:void 0:t}var lc=new WeakMap;function pc(e){var t=lc.get(e);return t||((t=e(function(){return Uu})).factory=e,lc.set(e,t)),t}function hc(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(rc(e,e.def.lastRenderRootNode))),fc(e,t,0,e.def.nodes.length-1,n,r,i)}function fc(e,t,n,r,i,o,s){for(var a=n;a<=r;a++){var u=e.def.nodes[a];11&u.flags&&vc(e,u,t,i,o,s),a+=u.childCount}}function dc(e,t,n,r,i,o){for(var s=e;s&&!ic(s);)s=s.parent;for(var a=s.parent,u=nc(s),c=u.nodeIndex+1,l=u.nodeIndex+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===t&&vc(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var f=e.root.projectableNodes[t];if(f)for(p=0;p<f.length;p++)mc(e,f[p],n,r,i,o)}}function vc(e,t,n,r,i,o){if(8&t.flags)dc(e,t.ngContent.index,n,r,i,o);else{var s=rc(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags){if(16&t.bindingFlags&&mc(e,s,n,r,i,o),32&t.bindingFlags)mc(Ou(e,t.nodeIndex).componentView,s,n,r,i,o)}else mc(e,s,n,r,i,o);if(16777216&t.flags)for(var a=Ou(e,t.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)hc(a[u],n,r,i,o);1&t.flags&&!t.element.name&&fc(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function mc(e,t,n,r,i,o){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,i);break;case 3:s.removeChild(r,t);break;case 0:o.push(t)}}var yc=/^:([^:]+):(.+)$/;function gc(e){if(":"===e[0]){var t=e.match(yc);return[t[1],t[2]]}return["",e]}function _c(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function wc(e,t){for(var n="",r=0;r<2*e;r+=2)n=n+t[r]+Ec(t[r+1]);return n+t[2*e]}function bc(e,t,n,r,i,o,s,a,u,c,l,p,h,f,d,v,m,y,g,_){switch(e){case 1:return t+Ec(n)+r;case 2:return t+Ec(n)+r+Ec(i)+o;case 3:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a;case 4:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a+Ec(u)+c;case 5:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a+Ec(u)+c+Ec(l)+p;case 6:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a+Ec(u)+c+Ec(l)+p+Ec(h)+f;case 7:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a+Ec(u)+c+Ec(l)+p+Ec(h)+f+Ec(d)+v;case 8:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a+Ec(u)+c+Ec(l)+p+Ec(h)+f+Ec(d)+v+Ec(m)+y;case 9:return t+Ec(n)+r+Ec(i)+o+Ec(s)+a+Ec(u)+c+Ec(l)+p+Ec(h)+f+Ec(d)+v+Ec(m)+y+Ec(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Ec(e){return null!=e?e.toString():""}var Cc=[],xc={};function Sc(e,t,n,r,i,o){e|=1;var s=ac(t),a=s.matchedQueries,u=s.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?pc(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Uu},provider:null,text:null,query:null,ngContent:null}}function Ac(e,t,n,r,i,o,s,a,u,c,p,h){var f;void 0===s&&(s=[]),c||(c=Uu);var d=ac(n),v=d.matchedQueries,m=d.references,y=d.matchedQueryIds,g=null,_=null;o&&(g=(f=l(gc(o),2))[0],_=f[1]),a=a||[];for(var w=new Array(a.length),b=0;b<a.length;b++){var E=l(a[b],3),C=E[0],x=E[1],S=E[2],A=l(gc(x),2),T=A[0],D=A[1],P=void 0,N=void 0;switch(15&C){case 4:N=S;break;case 1:case 8:P=S}w[b]={flags:C,ns:T,name:D,nonMinifiedName:D,securityContext:P,suffix:N}}u=u||[];var M=new Array(u.length);for(b=0;b<u.length;b++){var k=l(u[b],2),O=k[0],I=k[1];M[b]={type:0,target:O,eventName:I,propName:null}}var F=(s=s||[]).map(function(e){var t=l(e,2),n=t[0],r=t[1],i=l(gc(n),2);return[i[0],i[1],r]});return h=function(e){if(e&&e.id===Wu){var t=null!=e.encapsulation&&e.encapsulation!==Bt.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Qu++:Gu}return e&&e.id===Gu&&(e=null),e||null}(h),p&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:v,matchedQueryIds:y,references:m,ngContentIndex:r,childCount:i,bindings:w,bindingFlags:_c(w),outputs:M,element:{ns:g,name:_,attrs:F,template:null,componentProvider:null,componentView:p||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Uu},provider:null,text:null,query:null,ngContent:null}}function Tc(e,t,n){var r,i=n.element,o=e.root.selectorOrNode,s=e.renderer;if(e.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=cc(e,t,n);a&&s.appendChild(a,r)}else{var u=!!i.componentRendererType&&i.componentRendererType.encapsulation===Bt.ShadowDom;r=s.selectRootElement(o,u)}if(i.attrs)for(var c=0;c<i.attrs.length;c++){var p=l(i.attrs[c],3),h=p[0],f=p[1],d=p[2];s.setAttribute(r,f,d,h)}return r}function Dc(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Pc(e,n.nodeIndex,(l=o.target,p=o.eventName,l?l+":"+p:p)),a=o.target,u=e;"component"===o.target&&(a=null,u=t);var c=u.renderer.listen(a||r,o.eventName,s);e.disposables[n.outputIndex+i]=c}var l,p}function Pc(e,t,n){return function(r){return ec(e,t,n,r)}}function Nc(e,t,n,r){if(!Zu(e,t,n,r))return!1;var i=t.bindings[n],o=Ou(e,t.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=e.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(e,i,s,i.ns,a,r);break;case 2:!function(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,i){var o=e.root.sanitizer.sanitize(Bo.STYLE,i);if(null!=o){o=o.toString();var s=t.suffix;null!=s&&(o+=s)}else o=null;var a=e.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(e,i,s,a,r);break;case 8:!function(e,t,n,r,i){var o=t.securityContext,s=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,s,a,r)}return!0}var Mc=new Object,kc=qu(ft),Oc=qu(pt),Ic=qu(Oi);function Fc(e,t,n,r){return n=nt(n),{index:-1,deps:uc(r,et(t)),flags:e,token:t,value:n}}function Rc(e){for(var t={},n=[],r=!1,i=0;i<e.length;i++){var o=e[i];o.token===ro&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,t[qu(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function jc(e,t,n){void 0===n&&(n=ft.THROW_IF_NOT_FOUND);var r,i,o=Pt(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var s=t.tokenKey;switch(s){case kc:case Oc:case Ic:return e}var a=e._def.providersByKey[s],u=void 0;if(a){var c=e._providers[a.index];return void 0===c&&(c=e._providers[a.index]=Lc(e,a)),c===Mc?void 0:c}if((u=Ne(t.token))&&(r=e,null!=(i=u).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(r,i.providedIn)||"root"===i.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:l,token:t.token},e._providers[l]=Mc,e._providers[l]=Lc(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Pt(o)}}function Lc(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(jc(e,n[0]));case 2:return new t(jc(e,n[0]),jc(e,n[1]));case 3:return new t(jc(e,n[0]),jc(e,n[1]),jc(e,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=jc(e,n[o]);return new(t.bind.apply(t,p([void 0],i)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(jc(e,n[0]));case 2:return t(jc(e,n[0]),jc(e,n[1]));case 3:return t(jc(e,n[0]),jc(e,n[1]),jc(e,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=jc(e,n[o]);return t.apply(void 0,p(i))}}(e,t.value,t.deps);break;case 2048:n=jc(e,t.deps[0]);break;case 256:n=t.value}return n===Mc||null==n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Mc:n}function Vc(e,t,n,r){var i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,qc(i,n,r),function(e,t){var n=tc(t);if(!n||n===e||16&t.state)return;t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]);r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;var n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),ju.dirtyParentQueries(r),Uc(t,n>0?i[n-1]:null,r)}function Bc(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,zc(n,t),ju.dirtyParentQueries(r),Hc(r),r}function Uc(e,t,n){var r=t?rc(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);hc(n,2,i,o,void 0)}function Hc(e){hc(e,3,null,null,void 0)}function qc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zc(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Wc=new Object;function Gc(e,t,n,r,i,o){return new Kc(e,t,n,r,i,o)}var Kc=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t){var r=t[n];e.push({propName:n,templateName:r})}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs){var n=this._outputs[t];e.push({propName:t,templateName:n})}return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=pc(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=ju.createRootView(e,t||[],n,i,r,Wc),a=Iu(s,o).instance;return n&&s.renderer.setAttribute(Ou(s,0).renderElement,"ng-version",Ts.full),new Qc(s,new Xc(s),a)},t}(xi),Qc=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Gi(Ou(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new nl(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Ci);function $c(e,t,n){return new Zc(e,t,n)}var Zc=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Gi(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new nl(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=nc(e),e=e.parent;return e?new nl(e,t):new nl(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Bc(this._data,e);ju.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Xc(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof ki||(i=o.get(Oi));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e,r=n._view;return Vc(this._view,this._data,t,r),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(e._view);return n=this._data,r=a,i=t,o=n.viewContainer._embeddedViews,s=o[r],zc(o,r),null==i&&(i=o.length),qc(o,i,s),ju.dirtyParentQueries(s),Hc(s),Uc(n,i>0?o[i-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Bc(this._data,e);t&&ju.destroyView(t)},e.prototype.detach=function(e){var t=Bc(this._data,e);return t?new Xc(t):null},e}();function Yc(e){return new Xc(e)}var Xc=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return hc(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Xu(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{ju.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){ju.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ju.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Hc(this._view),ju.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Jc(e,t){return new el(e,t)}var el=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return i(t,e),t.prototype.createEmbeddedView=function(e){return new Xc(ju.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Gi(Ou(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(go);function tl(e,t){return new nl(e,t)}var nl=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=ft.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return ju.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:qu(e)},t)},e}();function rl(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ou(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return ku(e,n.nodeIndex).renderText;if(20240&n.flags)return Iu(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function il(e){return new ol(e.renderer)}var ol=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=l(gc(t),2),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=l(gc(t),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(e,o,n,i):this.delegate.removeAttribute(e,o,i)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function sl(e,t,n,r){return new al(e,t,n,r)}var al=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Lc(e,i))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=ft.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),jc(this,{token:e,tokenKey:qu(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Ni)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+et(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=e._providers[i];if(o&&o!==Mc){var s=o.ngOnDestroy;"function"!=typeof s||r.has(o)||(s.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),ul=qu(Ki),cl=qu($i),ll=qu(Gi),pl=qu(Ja),hl=qu(go),fl=qu(eu),dl=qu(ft),vl=qu(pt);function ml(e,t,n,r,i,o,s,a){var u=[];if(s)for(var c in s){var p=l(s[c],2),h=p[0],f=p[1];u[h]={flags:8,name:c,nonMinifiedName:f,ns:null,securityContext:null,suffix:null}}var d=[];if(a)for(var v in a)d.push({type:1,propName:v,target:null,eventName:a[v]});return _l(e,t|=16384,n,r,i,i,o,u,d)}function yl(e,t,n){return _l(-1,e|=16,null,0,t,t,n)}function gl(e,t,n,r,i){return _l(-1,e,t,0,n,r,i)}function _l(e,t,n,r,i,o,s,a,u){var c=ac(n),l=c.matchedQueries,p=c.references,h=c.matchedQueryIds;u||(u=[]),a||(a=[]),o=nt(o);var f=uc(s,et(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:_c(a),outputs:u,element:null,provider:{token:i,value:o,deps:f},text:null,query:null,ngContent:null}}function wl(e,t){return xl(e,t)}function bl(e,t){for(var n=e;n.parent&&!ic(n);)n=n.parent;return Sl(n.parent,nc(n),!0,t.provider.value,t.provider.deps)}function El(e,t){var n=(32768&t.flags)>0,r=Sl(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i<t.outputs.length;i++){var o=t.outputs[i],s=r[o.propName];if(!ra(s))throw new Error("@Output "+o.propName+" not initialized in '"+r.constructor.name+"'.");var a=s.subscribe(Cl(e,t.parent.nodeIndex,o.eventName));e.disposables[t.outputIndex+i]=a.unsubscribe.bind(a)}return r}function Cl(e,t,n){return function(r){return ec(e,t,n,r)}}function xl(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Sl(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Dl(e,t,n,i[0]));case 2:return r(Dl(e,t,n,i[0]),Dl(e,t,n,i[1]));case 3:return r(Dl(e,t,n,i[0]),Dl(e,t,n,i[1]),Dl(e,t,n,i[2]));default:for(var s=Array(o),a=0;a<o;a++)s[a]=Dl(e,t,n,i[a]);return r.apply(void 0,p(s))}}(e,t.parent,n,r.value,r.deps);case 2048:return Dl(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Sl(e,t,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Dl(e,t,n,i[0]));case 2:return new r(Dl(e,t,n,i[0]),Dl(e,t,n,i[1]));case 3:return new r(Dl(e,t,n,i[0]),Dl(e,t,n,i[1]),Dl(e,t,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=Dl(e,t,n,i[a]);return new(r.bind.apply(r,p([void 0],s)))}}var Al,Tl={};function Dl(e,t,n,r,i){if(void 0===i&&(i=ft.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var s=r.tokenKey;s===fl&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var a=e;a;){if(t)switch(s){case ul:return il(Pl(a,t,n));case cl:return Pl(a,t,n).renderer;case ll:return new Gi(Ou(a,t.nodeIndex).renderElement);case pl:return Ou(a,t.nodeIndex).viewContainer;case hl:if(t.element.template)return Ou(a,t.nodeIndex).template;break;case fl:return Yc(Pl(a,t,n));case dl:case vl:return tl(a,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[s];if(u){var c=Iu(a,u.nodeIndex);return c||(c={instance:xl(a,u)},a.nodes[u.nodeIndex]=c),c.instance}}n=ic(a),t=nc(a),a=a.parent,4&r.flags&&(a=null)}var l=o.root.injector.get(r.token,Tl);return l!==Tl||i===Tl?l:o.root.ngModule.injector.get(r.token,i)}function Pl(e,t,n){var r;if(n)r=Ou(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!ic(r);)r=r.parent;return r}function Nl(e,t,n,r,i,o){if(32768&n.flags){var s=Ou(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(t.instance[a]=i,524288&n.flags){o=o||{};var u=cn.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new ln(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function Ml(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&t&&Ol(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=kl(e,s,t,r)),s=s.parent}}function kl(e,t,n,r){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var o=e.def.nodes[i];o.flags&n&&Ol(e,i,o.flags&n,r++),i+=o.childCount}return r}function Ol(e,t,n,r){var i=Iu(e,t);if(i){var o=i.instance;o&&(ju.setCurrentNode(e,t),1048576&n&&Mu(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Mu(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Il(e,t,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:sc(t),bindings:r},ngContent:null}}function Fl(e){for(var t=e.def.nodeMatchedQueries;e.parent&&oc(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++){67108864&(o=e.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&t)===o.query.filterId&&Ru(e,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}}if(134217728&e.def.nodeFlags)for(i=0;i<e.def.nodes.length;i++){var o;134217728&(o=e.def.nodes[i]).flags&&536870912&o.flags&&Ru(e,i).setDirty(),i+=o.childCount}}function Rl(e,t){var n=Ru(e,t.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&t.flags){var o=t.parent.parent;i=jl(e,o.nodeIndex,o.nodeIndex+o.childCount,t.query,[]),r=Iu(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=jl(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);for(var s=t.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function jl(e,t,n,r,i){for(var o=t;o<=n;o++){var s=e.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Ll(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Ou(e,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(jl(e,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=tc(p);h&&h===u&&jl(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];jl(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Ll(e,t,n){if(null!=n)switch(n){case 1:return Ou(e,t.nodeIndex).renderElement;case 0:return new Gi(Ou(e,t.nodeIndex).renderElement);case 2:return Ou(e,t.nodeIndex).template;case 3:return Ou(e,t.nodeIndex).viewContainer;case 4:return Iu(e,t.nodeIndex).instance}}function Vl(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Bl(e,t,n){var r=cc(e,t,n);r&&dc(e,n.ngContent.index,1,r,null,void 0)}function Ul(e,t){return zl(128,e,new Array(t+1))}function Hl(e,t){return zl(32,e,new Array(t))}function ql(e,t){for(var n=Object.keys(t),r=n.length,i=new Array(r),o=0;o<r;o++){var s=n[o];i[t[s]]=s}return zl(64,e,i)}function zl(e,t,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:_c(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Wl(e,t,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Gl(e,t,n){var r,i=e.renderer;r=i.createText(n.text.prefix);var o=cc(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function Kl(e,t){return(null!=e?e.toString():"")+t.suffix}function Ql(e,t,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=null,p=!1,h=!1,f=null,d=0;d<t.length;d++){var v=t[d];if(v.nodeIndex=d,v.parent=c,v.bindingIndex=i,v.outputIndex=o,v.renderParent=l,s|=v.flags,u|=v.matchedQueryIds,v.element){var m=v.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,p=!1,h=!1,v.element.template&&(u|=v.element.template.nodeMatchedQueries)}if(Zl(c,v,t.length),i+=v.bindings.length,o+=v.outputs.length,!l&&3&v.flags&&(f=v),20224&v.flags){p||(p=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var y=0!=(8192&v.flags),g=0!=(32768&v.flags);!y||g?c.element.publicProviders[qu(v.provider.token)]=v:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[qu(v.provider.token)]=v),g&&(c.element.componentProvider=v)}if(c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):a|=v.flags,v.childCount>0)c=v,$l(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),l=(c=_)&&$l(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Uu,updateRenderer:r||Uu,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:f}}function $l(e){return 0!=(1&e.flags)&&null===e.element.name}function Zl(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Yl(e,t,n,r){var i=ep(e.root,e.renderer,e,t,n);return tp(i,e.component,r),np(i),i}function Xl(e,t,n){var r=ep(e,e.renderer,null,null,t);return tp(r,n,n),np(r),r}function Jl(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,ep(e.root,i,e,t.element.componentProvider,n)}function ep(e,t,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function tp(e,t,n){e.component=t,e.context=n}function np(e){var t;if(ic(e)){var n=e.parentNodeDef;t=Ou(e.parent,n.parent.nodeIndex).renderElement}for(var r=e.def,i=e.nodes,o=0;o<r.nodes.length;o++){var s=r.nodes[o];ju.setCurrentNode(e,o);var a=void 0;switch(201347067&s.flags){case 1:var u=Tc(e,t,s),c=void 0;if(33554432&s.flags){var l=pc(s.element.componentView);c=ju.createComponentView(e,s,l,u)}Dc(e,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Jc(e,s):void 0},16777216&s.flags&&(a.viewContainer=$c(e,s,a));break;case 2:a=Gl(e,t,s);break;case 512:case 1024:case 2048:case 256:if(!((a=i[o])||4096&s.flags))a={instance:wl(e,s)};break;case 16:a={instance:bl(e,s)};break;case 16384:if(!(a=i[o]))a={instance:El(e,s)};if(32768&s.flags)tp(Ou(e,s.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new Qa;break;case 8:Bl(e,t,s),a=void 0}i[o]=a}lp(e,Al.CreateViewNodes),dp(e,201326592,268435456,0)}function rp(e){sp(e),ju.updateDirectives(e,1),pp(e,Al.CheckNoChanges),ju.updateRenderer(e,1),lp(e,Al.CheckNoChanges),e.state&=-97}function ip(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Nu(e,0,256),sp(e),ju.updateDirectives(e,0),pp(e,Al.CheckAndUpdate),dp(e,67108864,536870912,0);var t=Nu(e,256,512);Ml(e,2097152|(t?1048576:0)),ju.updateRenderer(e,0),lp(e,Al.CheckAndUpdate),dp(e,134217728,536870912,0),Ml(e,8388608|((t=Nu(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Nu(e,768,1024)}function op(e,t,n,r,i,o,s,a,u,c,l,h,f){return 0===n?function(e,t,n,r,i,o,s,a,u,c,l,p){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,s,a,u,c,l,p){var h=t.bindings.length,f=!1;return h>0&&Nc(e,t,0,n)&&(f=!0),h>1&&Nc(e,t,1,r)&&(f=!0),h>2&&Nc(e,t,2,i)&&(f=!0),h>3&&Nc(e,t,3,o)&&(f=!0),h>4&&Nc(e,t,4,s)&&(f=!0),h>5&&Nc(e,t,5,a)&&(f=!0),h>6&&Nc(e,t,6,u)&&(f=!0),h>7&&Nc(e,t,7,c)&&(f=!0),h>8&&Nc(e,t,8,l)&&(f=!0),h>9&&Nc(e,t,9,p)&&(f=!0),f}(e,t,n,r,i,o,s,a,u,c,l,p);case 2:return function(e,t,n,r,i,o,s,a,u,c,l,p){var h=!1,f=t.bindings,d=f.length;if(d>0&&Zu(e,t,0,n)&&(h=!0),d>1&&Zu(e,t,1,r)&&(h=!0),d>2&&Zu(e,t,2,i)&&(h=!0),d>3&&Zu(e,t,3,o)&&(h=!0),d>4&&Zu(e,t,4,s)&&(h=!0),d>5&&Zu(e,t,5,a)&&(h=!0),d>6&&Zu(e,t,6,u)&&(h=!0),d>7&&Zu(e,t,7,c)&&(h=!0),d>8&&Zu(e,t,8,l)&&(h=!0),d>9&&Zu(e,t,9,p)&&(h=!0),h){var v=t.text.prefix;d>0&&(v+=Kl(n,f[0])),d>1&&(v+=Kl(r,f[1])),d>2&&(v+=Kl(i,f[2])),d>3&&(v+=Kl(o,f[3])),d>4&&(v+=Kl(s,f[4])),d>5&&(v+=Kl(a,f[5])),d>6&&(v+=Kl(u,f[6])),d>7&&(v+=Kl(c,f[7])),d>8&&(v+=Kl(l,f[8])),d>9&&(v+=Kl(p,f[9]));var m=ku(e,t.nodeIndex).renderText;e.renderer.setValue(m,v)}return h}(e,t,n,r,i,o,s,a,u,c,l,p);case 16384:return function(e,t,n,r,i,o,s,a,u,c,l,p){var h=Iu(e,t.nodeIndex),f=h.instance,d=!1,v=void 0,m=t.bindings.length;return m>0&&$u(e,t,0,n)&&(d=!0,v=Nl(e,h,t,0,n,v)),m>1&&$u(e,t,1,r)&&(d=!0,v=Nl(e,h,t,1,r,v)),m>2&&$u(e,t,2,i)&&(d=!0,v=Nl(e,h,t,2,i,v)),m>3&&$u(e,t,3,o)&&(d=!0,v=Nl(e,h,t,3,o,v)),m>4&&$u(e,t,4,s)&&(d=!0,v=Nl(e,h,t,4,s,v)),m>5&&$u(e,t,5,a)&&(d=!0,v=Nl(e,h,t,5,a,v)),m>6&&$u(e,t,6,u)&&(d=!0,v=Nl(e,h,t,6,u,v)),m>7&&$u(e,t,7,c)&&(d=!0,v=Nl(e,h,t,7,c,v)),m>8&&$u(e,t,8,l)&&(d=!0,v=Nl(e,h,t,8,l,v)),m>9&&$u(e,t,9,p)&&(d=!0,v=Nl(e,h,t,9,p,v)),v&&f.ngOnChanges(v),65536&t.flags&&Mu(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),d}(e,t,n,r,i,o,s,a,u,c,l,p);case 32:case 64:case 128:return function(e,t,n,r,i,o,s,a,u,c,l,p){var h=t.bindings,f=!1,d=h.length;if(d>0&&Zu(e,t,0,n)&&(f=!0),d>1&&Zu(e,t,1,r)&&(f=!0),d>2&&Zu(e,t,2,i)&&(f=!0),d>3&&Zu(e,t,3,o)&&(f=!0),d>4&&Zu(e,t,4,s)&&(f=!0),d>5&&Zu(e,t,5,a)&&(f=!0),d>6&&Zu(e,t,6,u)&&(f=!0),d>7&&Zu(e,t,7,c)&&(f=!0),d>8&&Zu(e,t,8,l)&&(f=!0),d>9&&Zu(e,t,9,p)&&(f=!0),f){var v=Fu(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(h.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=i),d>3&&(m[3]=o),d>4&&(m[4]=s),d>5&&(m[5]=a),d>6&&(m[6]=u),d>7&&(m[7]=c),d>8&&(m[8]=l),d>9&&(m[9]=p);break;case 64:m={},d>0&&(m[h[0].name]=n),d>1&&(m[h[1].name]=r),d>2&&(m[h[2].name]=i),d>3&&(m[h[3].name]=o),d>4&&(m[h[4].name]=s),d>5&&(m[h[5].name]=a),d>6&&(m[h[6].name]=u),d>7&&(m[h[7].name]=c),d>8&&(m[h[8].name]=l),d>9&&(m[h[9].name]=p);break;case 128:var y=n;switch(d){case 1:m=y.transform(n);break;case 2:m=y.transform(r);break;case 3:m=y.transform(r,i);break;case 4:m=y.transform(r,i,o);break;case 5:m=y.transform(r,i,o,s);break;case 6:m=y.transform(r,i,o,s,a);break;case 7:m=y.transform(r,i,o,s,a,u);break;case 8:m=y.transform(r,i,o,s,a,u,c);break;case 9:m=y.transform(r,i,o,s,a,u,c,l);break;case 10:m=y.transform(r,i,o,s,a,u,c,l,p)}}v.value=m}return f}(e,t,n,r,i,o,s,a,u,c,l,p);default:throw"unreachable"}}(e,t,r,i,o,s,a,u,c,l,h,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i<n.length;i++)Nc(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Zu(e,t,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=Kl(n[o],r[o]);s=t.text.prefix+s;var a=ku(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return i}(e,t,n);case 16384:return function(e,t,n){for(var r=Iu(e,t.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)$u(e,t,a,n[a])&&(o=!0,s=Nl(e,r,t,a,n[a],s));return s&&i.ngOnChanges(s),65536&t.flags&&Mu(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Zu(e,t,o,n[o])&&(i=!0);if(i){var s=Fu(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,p(c))}s.value=a}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function sp(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var i=Ou(e,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Ju(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function ap(e,t,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function(e,t,n,r,i,o,s,a,u,c,l,p){var h=t.bindings.length;h>0&&Yu(e,t,0,n);h>1&&Yu(e,t,1,r);h>2&&Yu(e,t,2,i);h>3&&Yu(e,t,3,o);h>4&&Yu(e,t,4,s);h>5&&Yu(e,t,5,a);h>6&&Yu(e,t,6,u);h>7&&Yu(e,t,7,c);h>8&&Yu(e,t,8,l);h>9&&Yu(e,t,9,p)}(e,t,r,i,o,s,a,u,c,l,p,h):function(e,t,n){for(var r=0;r<n.length;r++)Yu(e,t,r,n[r])}(e,t,r),!1}function up(e,t){if(Ru(e,t.nodeIndex).dirty)throw Lu(ju.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function cp(e){if(!(128&e.state)){if(pp(e,Al.Destroy),lp(e,Al.Destroy),Ml(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=tc(e);if(t){var n=t.template._projectedViews;n&&(zc(n,n.indexOf(e)),ju.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(Ou(e,n).renderElement):2&r.flags?e.renderer.destroyNode(ku(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Ru(e,n).destroy()}}(e),ic(e)&&e.renderer.destroy(),e.state|=128}}function lp(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?hp(Ou(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function pp(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Ou(e,r).viewContainer._embeddedViews,s=0;s<o.length;s++)hp(o[s],t);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function hp(e,t){var n=e.state;switch(t){case Al.CheckNoChanges:0==(128&n)&&(12==(12&n)?rp(e):64&n&&fp(e,Al.CheckNoChangesProjectedViews));break;case Al.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?rp(e):64&n&&fp(e,t));break;case Al.CheckAndUpdate:0==(128&n)&&(12==(12&n)?ip(e):64&n&&fp(e,Al.CheckAndUpdateProjectedViews));break;case Al.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?ip(e):64&n&&fp(e,t));break;case Al.Destroy:cp(e);break;case Al.CreateViewNodes:np(e)}}function fp(e,t){pp(e,t),lp(e,t)}function dp(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var s=e.def.nodes[o];if(s.flags&t&&s.flags&n)switch(ju.setCurrentNode(e,s.nodeIndex),r){case 0:Rl(e,s);break;case 1:up(e,s)}s.childFlags&t&&s.childFlags&n||(o+=s.childCount)}}!function(e){e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy"}(Al||(Al={}));var vp=!1;function mp(){if(!vp){vp=!0;var e=ko()?{setCurrentNode:Vp,createRootView:gp,createEmbeddedView:wp,createComponentView:bp,createNgModuleRef:Ep,overrideProvider:Np,overrideComponentView:Mp,clearOverrides:kp,checkAndUpdateView:Rp,checkNoChangesView:jp,destroyView:Lp,createDebugContext:function(e,t){return new Zp(e,t)},handleEvent:Bp,updateDirectives:Up,updateRenderer:Hp}:{setCurrentNode:function(){},createRootView:yp,createEmbeddedView:Yl,createComponentView:Jl,createNgModuleRef:sl,overrideProvider:Uu,overrideComponentView:Uu,clearOverrides:Uu,checkAndUpdateView:ip,checkNoChangesView:rp,destroyView:cp,createDebugContext:function(e,t){return new Zp(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Ip:Fp,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Ip:Fp,e)}};ju.setCurrentNode=e.setCurrentNode,ju.createRootView=e.createRootView,ju.createEmbeddedView=e.createEmbeddedView,ju.createComponentView=e.createComponentView,ju.createNgModuleRef=e.createNgModuleRef,ju.overrideProvider=e.overrideProvider,ju.overrideComponentView=e.overrideComponentView,ju.clearOverrides=e.clearOverrides,ju.checkAndUpdateView=e.checkAndUpdateView,ju.checkNoChangesView=e.checkNoChangesView,ju.destroyView=e.destroyView,ju.resolveDep=Dl,ju.createDebugContext=e.createDebugContext,ju.handleEvent=e.handleEvent,ju.updateDirectives=e.updateDirectives,ju.updateRenderer=e.updateRenderer,ju.dirtyParentQueries=Fl}}function yp(e,t,n,r,i,o){var s=i.injector.get(Qi);return Xl(_p(e,i,s,t,n),r,o)}function gp(e,t,n,r,i,o){var s=i.injector.get(Qi),a=_p(e,i,new eh(s),t,n),u=Op(r);return Xp(Cp.create,Xl,null,[a,u,o])}function _p(e,t,n,r,i){var o=t.injector.get(is),s=t.injector.get(Fs),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function wp(e,t,n,r){var i=Op(n);return Xp(Cp.create,Yl,null,[e,t,i,r])}function bp(e,t,n,r){var i=Pp.get(t.element.componentProvider.provider.token);return n=i||Op(n),Xp(Cp.create,Jl,null,[e,t,n,r])}function Ep(e,t,n,r){return sl(e,t,n,function(e){var t=function(e){var t=!1,n=!1;if(0===Tp.size)return{hasOverrides:t,hasDeprecatedOverrides:n};return e.providers.forEach(function(e){var r=Tp.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(function(e){Dp.forEach(function(r,i){Ne(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n}}(e),n=t.hasOverrides,r=t.hasDeprecatedOverrides;if(!n)return e;return function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];r&&(n.flags|=4096);var i=Tp.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=uc(i.deps),n.value=i.value)}if(Dp.size>0){var o=new Set(e.modules);Dp.forEach(function(t,n){if(o.has(Ne(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:uc(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[qu(n)]=i}})}}(e=e.factory(function(){return Uu})),e}(r))}var Cp,xp,Sp,Ap,Tp=new Map,Dp=new Map,Pp=new Map;function Np(e){var t;Tp.set(e.token,e),"function"==typeof e.token&&(t=Ne(e.token))&&"function"==typeof t.providedIn&&Dp.set(e.token,e)}function Mp(e,t){var n=pc(t.viewDefFactory),r=pc(n.nodes[0].element.componentView);Pp.set(e,r)}function kp(){Tp.clear(),Dp.clear(),Pp.clear()}function Op(e){if(0===Tp.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Tp.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Uu});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Tp.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=uc(o.deps),i.value=o.value)}}}}function Ip(e,t,n,r,i,o,s,a,u,c,l,p,h){var f=e.def.nodes[t];return op(e,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Fu(e,t).value:void 0}function Fp(e,t,n,r,i,o,s,a,u,c,l,p,h){var f=e.def.nodes[t];return ap(e,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Fu(e,t).value:void 0}function Rp(e){return Xp(Cp.detectChanges,ip,null,[e])}function jp(e){return Xp(Cp.checkNoChanges,rp,null,[e])}function Lp(e){return Xp(Cp.destroy,cp,null,[e])}function Vp(e,t){Sp=e,Ap=t}function Bp(e,t,n,r){return Vp(e,t),Xp(Cp.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Up(e,t){if(128&e.state)throw Bu(Cp[xp]);return Vp(e,Qp(e,0)),e.def.updateDirectives(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.def.nodes[n];0===t?qp(e,s,r,i):zp(e,s,r,i);16384&s.flags&&Vp(e,Qp(e,n));return 224&s.flags?Fu(e,s.nodeIndex).value:void 0},e)}function Hp(e,t){if(128&e.state)throw Bu(Cp[xp]);return Vp(e,$p(e,0)),e.def.updateRenderer(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.def.nodes[n];0===t?qp(e,s,r,i):zp(e,s,r,i);3&s.flags&&Vp(e,$p(e,n));return 224&s.flags?Fu(e,s.nodeIndex).value:void 0},e)}function qp(e,t,n,r){if(op.apply(void 0,p([e,t,n],r))){var i=1===n?r[0]:r;if(16384&t.flags){for(var o={},s=0;s<t.bindings.length;s++){var a=t.bindings[s],u=i[s];8&a.flags&&(o[Wp(a.nonMinifiedName)]=Kp(u))}var c=t.parent,l=Ou(e,c.nodeIndex).renderElement;if(c.element.name)for(var h in o){null!=(u=o[h])?e.renderer.setAttribute(l,h,u):e.renderer.removeAttribute(l,h)}else e.renderer.setValue(l,"bindings="+JSON.stringify(o,null,2))}}}function zp(e,t,n,r){ap.apply(void 0,p([e,t,n],r))}function Wp(e){var t;return t=e.replace(/[$@]/g,"_"),"ng-reflect-"+(e=t.replace(Gp,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()}))}!function(e){e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent"}(Cp||(Cp={}));var Gp=/([A-Z])/g;function Kp(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Qp(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function $p(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Zp=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=nc(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return Ou(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return tl(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){Yp(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&Yp(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!ic(e);)e=e.parent;if(e.parent)return Ou(e.parent,nc(e).nodeIndex);return null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?rc(this.view,this.nodeDef):rc(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var o=function(e,t){for(var n=-1,r=0;r<=t;r++){var i=e.nodes[r];3&i.flags&&n++}return n}(t,n),s=-1;t.factory(function(){var t;return++s===o?(t=e.error).bind.apply(t,p([e],r)):Uu}),s<o&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,p(r)))},e}();function Yp(e,t,n){for(var r in t.references)n[r]=Ll(e,t,t.references[r])}function Xp(e,t,n,r){var i=xp,o=Sp,s=Ap;try{xp=e;var a=t.apply(n,r);return Sp=o,Ap=s,xp=i,a}catch(u){if(ks(u)||!Sp)throw u;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Vu(e,t),e}(u,Jp())}}function Jp(){return Sp?new Zp(Sp,Ap):null}var eh=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new th(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),th=function(){function e(e){this.delegate=e,this.debugContextFactory=Jp,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){!function(e){iu.delete(e.nativeNode)}(ou(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var i=new ru(n,null,r);i.name=e,su(i)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&su(new nu(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&su(new nu(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=ou(e),r=ou(t);n&&r&&n instanceof ru&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=ou(e),i=ou(t),o=ou(n);r&&i&&r instanceof ru&&r.insertBefore(o,i),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=ou(e),r=ou(t);n&&r&&n instanceof ru&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=Jp()||null;return r&&su(new ru(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var i=ou(e);if(i&&i instanceof ru){var o=r?r+":"+t:t;i.attributes[o]=n}this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=ou(e);if(r&&r instanceof ru){var i=n?n+":"+t:t;r.attributes[i]=null}this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=ou(e);n&&n instanceof ru&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=ou(e);n&&n instanceof ru&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var i=ou(e);i&&i instanceof ru&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=ou(e);r&&r instanceof ru&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=ou(e);r&&r instanceof ru&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=ou(e);r&&r.listeners.push(new tu(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function nh(e,t,n){return new rh(e,t,n)}var rh=function(e){function t(t,n,r){var i=e.call(this)||this;return i.moduleType=t,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return i(t,e),t.prototype.create=function(e){mp();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(pc(this._ngModuleDefFactory));return ju.createNgModuleRef(this.moduleType,e||ft.NULL,this._bootstrapComponents,t)},t}(Ii);function ih(e){var t=Sn(e);if(!t)throw new Error("Invalid ng target");return t}function oh(e){var t=ih(e);return void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[Gt].data[t];if(n&&n.localNames){for(var r={},i=0;i<n.localNames.length;i+=2){var o=n.localNames[i],s=n.localNames[i+1];r[o]=-1===s?gn(n,e):e[s]}return r}return null}(t.lViewData,t.nodeIndex)),t.localRefs||{}}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}i(t,e),t.prototype.createRenderer=function(t,n){var r=e.prototype.createRenderer.call(this,t,n);return r.debugContextFactory=function(e){return new ah(e)},r}}(eh);var sh,ah=function(){function e(e){this._nativeNode=e}return Object.defineProperty(e.prototype,"nodeIndex",{get:function(){return ih(this._nativeNode).nodeIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return ih(this._nativeNode).lViewData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return e=this._nativeNode,t=ih(e),n=t.lViewData[Gt].data[t.nodeIndex],new Ei(n,t.lViewData);var e,t,n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return e=this._nativeNode,4096&(t=ih(e)).lViewData[Gt].data[t.nodeIndex].flags?wn(t.nodeIndex,t.lViewData)[tn]:null;var e,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=ih(this._nativeNode),t=e.lViewData[Gt].data[e.nodeIndex],n=4095&t.flags;if(n>0){var r=t.flags>>15,i=r+n;return this.view[Gt].data.slice(r,i).map(function(e){return e.type})}return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return oh(this._nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,p(t))},e}();function uh(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function ch(e){return"ng-container"===uh(e)[1]}function lh(e){return"ng-content"===uh(e)[1]}function ph(e){return"ng-template"===uh(e)[1]}function hh(e){return null===e?null:uh(e)[0]}function fh(e,t){return e?":"+e+":"+t:t}!function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(sh||(sh={}));var dh={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"&",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\xc5",aring:"\xe5",asymp:"\u2248",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",brvbar:"\xa6",bull:"\u2022",cap:"\u2229",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\xa9",crarr:"\u21b5",cup:"\u222a",curren:"\xa4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\xb0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:">",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",image:"\u2111",infin:"\u221e",int:"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\xbf",isin:"\u2208",Iuml:"\xcf",iuml:"\xef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"<",macr:"\xaf",mdash:"\u2014",micro:"\xb5",middot:"\xb7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\xa0",ndash:"\u2013",ne:"\u2260",ni:"\u220b",not:"\xac",notin:"\u2209",nsub:"\u2284",Ntilde:"\xd1",ntilde:"\xf1",Nu:"\u039d",nu:"\u03bd",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",OElig:"\u0152",oelig:"\u0153",Ograve:"\xd2",ograve:"\xf2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\xb1",pound:"\xa3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\xae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\xa7",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supe:"\u2287",szlig:"\xdf",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",trade:"\u2122",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\xdc",uuml:"\xfc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"},vh="\ue500";dh.ngsp=vh;var mh,yh,gh=function(){function e(e){var t=void 0===e?{}:e,n=t.closedByChildren,r=t.requiredParents,i=t.implicitNamespacePrefix,o=t.contentType,s=void 0===o?sh.PARSABLE_DATA:o,a=t.closedByParent,u=void 0!==a&&a,c=t.isVoid,l=void 0!==c&&c,p=t.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(e){return f.closedByChildren[e]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(e){return f.requiredParents[e]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return e.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return!("template"===t||"ng-template"===e)&&1!=this.requiredParents[t]},e.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},e}();function _h(e){return yh||(mh=new gh,yh={base:new gh({isVoid:!0}),meta:new gh({isVoid:!0}),area:new gh({isVoid:!0}),embed:new gh({isVoid:!0}),link:new gh({isVoid:!0}),img:new gh({isVoid:!0}),input:new gh({isVoid:!0}),param:new gh({isVoid:!0}),hr:new gh({isVoid:!0}),br:new gh({isVoid:!0}),source:new gh({isVoid:!0}),track:new gh({isVoid:!0}),wbr:new gh({isVoid:!0}),p:new gh({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new gh({closedByChildren:["tbody","tfoot"]}),tbody:new gh({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new gh({closedByChildren:["tbody"],closedByParent:!0}),tr:new gh({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new gh({closedByChildren:["td","th"],closedByParent:!0}),th:new gh({closedByChildren:["td","th"],closedByParent:!0}),col:new gh({requiredParents:["colgroup"],isVoid:!0}),svg:new gh({implicitNamespacePrefix:"svg"}),math:new gh({implicitNamespacePrefix:"math"}),li:new gh({closedByChildren:["li"],closedByParent:!0}),dt:new gh({closedByChildren:["dt","dd"]}),dd:new gh({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new gh({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new gh({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new gh({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new gh({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new gh({closedByChildren:["optgroup"],closedByParent:!0}),option:new gh({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new gh({ignoreFirstLf:!0}),listing:new gh({ignoreFirstLf:!0}),style:new gh({contentType:sh.RAW_TEXT}),script:new gh({contentType:sh.RAW_TEXT}),title:new gh({contentType:sh.ESCAPABLE_RAW_TEXT}),textarea:new gh({contentType:sh.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),yh[e.toLowerCase()]||mh}var wh,bh,Eh=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Ch=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,s=o,a=!1;for(Eh.lastIndex=0;n=Eh.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new e,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"")}return _h(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t<this.attrs.length;t+=2){var n=this.attrs[t],r=this.attrs[t+1];e+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}(),xh=function(){function e(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new Sh(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,o=e.classNames,s=e.attrs,a=new Ah(e,t,n);i&&((c=0===s.length&&0===o.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i));if(o)for(var u=0;u<o.length;u++){var c=0===s.length&&u===o.length-1,l=o[u];c?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(u=0;u<s.length;u+=2){c=u===s.length-2;var p=s[u],h=s[u+1];if(c){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,m=v.get(p);m||(m=new Map,v.set(p,m)),r=this._addPartial(m,h)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,o=e.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,c,e,t)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",e,t)||n),n=this._matchPartial(p,c,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),Sh=function(){return function(e){this.selectors=e,this.alreadyMatched=!1}}(),Ah=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!xh.createNotMatcher(this.notSelectors).match(e,null));return!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),Th=Xh("Inject",function(e){return{token:e}}),Dh=Xh("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),Ph=Xh("Attribute",function(e){return{attributeName:e}}),Nh=Xh("ContentChildren",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),Mh=Xh("ContentChild",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),kh=Xh("ViewChildren",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),Oh=Xh("ViewChild",function(e,t){return o({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),Ih=Xh("Directive",function(e){return void 0===e&&(e={}),e});!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(wh||(wh={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(bh||(bh={}));var Fh,Rh,jh=Xh("Component",function(e){return void 0===e&&(e={}),o({changeDetection:bh.Default},e)}),Lh=Xh("Pipe",function(e){return o({pure:!0},e)}),Vh=Xh("Input",function(e){return{bindingPropertyName:e}}),Bh=Xh("Output",function(e){return{bindingPropertyName:e}}),Uh=Xh("HostBinding",function(e){return{hostPropertyName:e}}),Hh=Xh("HostListener",function(e,t){return{eventName:e,args:t}}),qh=Xh("NgModule",function(e){return e}),zh=Xh("Injectable",function(e){return void 0===e&&(e={}),e}),Wh={name:"custom-elements"},Gh={name:"no-errors-schema"},Kh=Xh("Optional"),Qh=Xh("Self"),$h=Xh("SkipSelf"),Zh=Xh("Host"),Yh=Function;function Xh(e,t){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t?t.apply(void 0,p(n)):{};return o({ngMetadataName:e},i)};return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}function Jh(e){var t=function(e){var t=e.classNames&&e.classNames.length?p([8],e.classNames):[];return p([e.element&&"*"!==e.element?e.element:""],e.attrs,t)}(e),n=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(function(e){return n=(t=e).classNames&&t.classNames.length?p([8],t.classNames):[],t.element?p([5,t.element],t.attrs,n):t.attrs.length?p([3],t.attrs,n):t.classNames&&t.classNames.length?p([9],t.classNames):[];var t,n}):[];return t.concat.apply(t,p(n))}function ef(e){return Ch.parse(e).map(Jh)}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(Fh||(Fh={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(Rh||(Rh={}));var tf;!function(e){e[e.Const=0]="Const"}(tf||(tf={}));var nf,rf=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}();!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(nf||(nf={}));var of,sf=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return i(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(rf),af=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,n)||this;return i.value=t,i.typeParams=r,i}return i(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(rf),uf=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.of=t,r}return i(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(rf),cf=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.valueType=t||null,r}return i(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(rf),lf=new sf(nf.Dynamic),pf=new sf(nf.Inferred),hf=new sf(nf.Bool),ff=(new sf(nf.Int),new sf(nf.Number)),df=(new sf(nf.String),new sf(nf.Function),new sf(nf.None));function vf(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function mf(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!e[r].isEquivalent(t[r]))return!1;return!0}!function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals"}(of||(of={}));var yf,gf=function(){function e(e,t){this.type=e||null,this.sourceSpan=t||null}return e.prototype.prop=function(e,t){return new Bf(this,e,null,t)},e.prototype.key=function(e,t,n){return new Uf(this,e,t,n)},e.prototype.callMethod=function(e,t,n){return new Tf(this,e,t,null,n)},e.prototype.callFn=function(e,t){return new Df(this,e,null,t)},e.prototype.instantiate=function(e,t,n){return new Pf(this,e,t,n)},e.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new Of(this,e,t,null,n)},e.prototype.equals=function(e,t){return new Vf(of.Equals,this,e,null,t)},e.prototype.notEquals=function(e,t){return new Vf(of.NotEquals,this,e,null,t)},e.prototype.identical=function(e,t){return new Vf(of.Identical,this,e,null,t)},e.prototype.notIdentical=function(e,t){return new Vf(of.NotIdentical,this,e,null,t)},e.prototype.minus=function(e,t){return new Vf(of.Minus,this,e,null,t)},e.prototype.plus=function(e,t){return new Vf(of.Plus,this,e,null,t)},e.prototype.divide=function(e,t){return new Vf(of.Divide,this,e,null,t)},e.prototype.multiply=function(e,t){return new Vf(of.Multiply,this,e,null,t)},e.prototype.modulo=function(e,t){return new Vf(of.Modulo,this,e,null,t)},e.prototype.and=function(e,t){return new Vf(of.And,this,e,null,t)},e.prototype.bitwiseAnd=function(e,t,n){return void 0===n&&(n=!0),new Vf(of.BitwiseAnd,this,e,null,t,n)},e.prototype.or=function(e,t){return new Vf(of.Or,this,e,null,t)},e.prototype.lower=function(e,t){return new Vf(of.Lower,this,e,null,t)},e.prototype.lowerEquals=function(e,t){return new Vf(of.LowerEquals,this,e,null,t)},e.prototype.bigger=function(e,t){return new Vf(of.Bigger,this,e,null,t)},e.prototype.biggerEquals=function(e,t){return new Vf(of.BiggerEquals,this,e,null,t)},e.prototype.isBlank=function(e){return this.equals(Kf,e)},e.prototype.cast=function(e,t){return new Rf(this,e,t)},e.prototype.toStmt=function(){return new Yf(this,null)},e}();!function(e){e[e.This=0]="This",e[e.Super=1]="Super",e[e.CatchError=2]="CatchError",e[e.CatchStack=3]="CatchStack"}(yf||(yf={}));var _f,wf=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return"string"==typeof t?(i.name=t,i.builtin=null):(i.name=null,i.builtin=t),i}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.builtin===e.builtin},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},t.prototype.set=function(e){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Cf(this.name,e,null,this.sourceSpan)},t}(gf),bf=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.expr=t,i}return i(t,e),t.prototype.visitExpression=function(e,t){return e.visitTypeofExpr(this,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&e.expr.isEquivalent(this.expr)},t.prototype.isConstant=function(){return this.expr.isConstant()},t}(gf),Ef=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.node=t,i}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.node===e.node},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWrappedNodeExpr(this,t)},t}(gf),Cf=function(e){function t(t,n,r,i){var o=e.call(this,r||n.type,i)||this;return o.name=t,o.value=n,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return new $f(this.name,this.value,e,t,this.sourceSpan)},t.prototype.toConstDecl=function(){return this.toDeclStmt(pf,[Af.Final])},t}(gf),xf=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.index=n,s.value=r,s}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},t}(gf),Sf=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.name=n,s.value=r,s}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},t}(gf);!function(e){e[e.ConcatArray=0]="ConcatArray",e[e.SubscribeObservable=1]="SubscribeObservable",e[e.Bind=2]="Bind"}(_f||(_f={}));var Af,Tf=function(e){function t(t,n,r,i,o){var s=e.call(this,i,o)||this;return s.receiver=t,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.builtin===e.builtin&&mf(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(gf),Df=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.fn=t,o.args=n,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&mf(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(gf),Pf=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.classExpr=t,o.args=n,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&mf(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(gf),Nf=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value===e.value},t.prototype.isConstant=function(){return!0},t.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},t}(gf),Mf=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,i)||this;return o.value=t,o.typeParams=r,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},t}(gf),kf=function(){return function(e,t,n){this.moduleName=e,this.name=t,this.runtime=n}}(),Of=function(e){function t(t,n,r,i,o){void 0===r&&(r=null);var s=e.call(this,i||n.type,o)||this;return s.condition=t,s.falseCase=r,s.trueCase=n,s}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&vf(this.falseCase,e.falseCase)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(gf),If=function(e){function t(t,n){var r=e.call(this,hf,n)||this;return r.condition=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},t}(gf),Ff=function(e){function t(t,n){var r=e.call(this,t.type,n)||this;return r.condition=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitAssertNotNullExpr(this,t)},t}(gf),Rf=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},t}(gf),jf=function(){function e(e,t){void 0===t&&(t=null),this.name=e,this.type=t}return e.prototype.isEquivalent=function(e){return this.name===e.name},e}(),Lf=function(e){function t(t,n,r,i,o){var s=e.call(this,r,i)||this;return s.params=t,s.statements=n,s.name=o,s}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&mf(this.params,e.params)&&mf(this.statements,e.statements)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new Zf(e,this.params,this.statements,this.type,t,this.sourceSpan)},t}(gf),Vf=function(e){function t(t,n,r,i,o,s){void 0===s&&(s=!0);var a=e.call(this,i||n.type,o)||this;return a.operator=t,a.rhs=r,a.parens=s,a.lhs=n,a}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},t}(gf),Bf=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.name=n,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},t.prototype.set=function(e){return new Sf(this.receiver,this.name,e,null,this.sourceSpan)},t}(gf),Uf=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.index=n,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},t.prototype.set=function(e){return new xf(this.receiver,this.index,e,null,this.sourceSpan)},t}(gf),Hf=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i}return i(t,e),t.prototype.isConstant=function(){return this.entries.every(function(e){return e.isConstant()})},t.prototype.isEquivalent=function(e){return e instanceof t&&mf(this.entries,e.entries)},t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(gf),qf=function(){function e(e,t,n){this.key=e,this.value=t,this.quoted=n}return e.prototype.isEquivalent=function(e){return this.key===e.key&&this.value.isEquivalent(e.value)},e}(),zf=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i.valueType=null,n&&(i.valueType=n.valueType),i}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&mf(this.entries,e.entries)},t.prototype.isConstant=function(){return this.entries.every(function(e){return e.value.isConstant()})},t.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},t}(gf),Wf=function(e){function t(t,n){var r=e.call(this,t[t.length-1].type,n)||this;return r.parts=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&mf(this.parts,e.parts)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCommaExpr(this,t)},t}(gf),Gf=(new wf(yf.This,null,null),new wf(yf.Super,null,null),new wf(yf.CatchError,null,null),new wf(yf.CatchStack,null,null),new Nf(null,null,null)),Kf=new Nf(null,pf,null);!function(e){e[e.Final=0]="Final",e[e.Private=1]="Private",e[e.Exported=2]="Exported",e[e.Static=3]="Static"}(Af||(Af={}));var Qf=function(){function e(e,t){this.modifiers=e||[],this.sourceSpan=t||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),$f=function(e){function t(t,n,r,i,o){void 0===i&&(i=null);var s=e.call(this,i,o)||this;return s.name=t,s.value=n,s.type=r||n&&n.type||null,s}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)},t.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},t}(Qf),Zf=function(e){function t(t,n,r,i,o,s){void 0===o&&(o=null);var a=e.call(this,o,s)||this;return a.name=t,a.params=n,a.statements=r,a.type=i||null,a}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&mf(this.params,e.params)&&mf(this.statements,e.statements)},t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(Qf),Yf=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.expr=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.expr.isEquivalent(e.expr)},t.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},t}(Qf),Xf=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.value=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},t}(Qf),Jf=function(){function e(e,t){this.modifiers=t,t||(this.modifiers=[]),this.type=e||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),ed=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,r)||this;return o.name=t,o.initializer=i,o}return i(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name},t}(Jf),td=function(e){function t(t,n,r,i,o){void 0===o&&(o=null);var s=e.call(this,i,o)||this;return s.name=t,s.params=n,s.body=r,s}return i(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&mf(this.body,e.body)},t}(Jf),nd=function(e){function t(t,n,r,i){void 0===i&&(i=null);var o=e.call(this,r,i)||this;return o.name=t,o.body=n,o}return i(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&mf(this.body,e.body)},t}(Jf),rd=function(e){function t(t,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=e.call(this,a,u)||this;return c.name=t,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&vf(this.parent,e.parent)&&mf(this.fields,e.fields)&&mf(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&mf(this.methods,e.methods)},t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(Qf),id=function(e){function t(t,n,r,i){void 0===r&&(r=[]);var o=e.call(this,null,i)||this;return o.condition=t,o.trueCase=n,o.falseCase=r,o}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&mf(this.trueCase,e.trueCase)&&mf(this.falseCase,e.falseCase)},t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(Qf),od=(function(e){function t(t,n,r){void 0===n&&(n=!1);var i=e.call(this,null,r)||this;return i.comment=t,i.multiline=n,i}i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t},t.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)}}(Qf),function(e){function t(t,n){void 0===t&&(t=[]);var r=e.call(this,null,n)||this;return r.tags=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.toString()===e.toString()},t.prototype.visitStatement=function(e,t){return e.visitJSDocCommentStmt(this,t)},t.prototype.toString=function(){return function(e){var t,n;if(0===e.length)return"";var r="*\n";try{for(var i=c(e),o=i.next();!o.done;o=i.next()){var s=o.value;r+=" *",r+=xd(s).replace(/\n/g,"\n * "),r+="\n"}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r+=" "}(this.tags)},t}(Qf)),sd=function(e){function t(t,n,r){var i=e.call(this,null,r)||this;return i.bodyStmts=t,i.catchStmts=n,i}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&mf(this.bodyStmts,e.bodyStmts)&&mf(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(Qf),ad=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.error=t,r}return i(t,e),t.prototype.isEquivalent=function(e){return e instanceof sd&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(Qf),ud=function(){function e(){}return e.prototype.transformExpr=function(e,t){return e},e.prototype.transformStmt=function(e,t){return e},e.prototype.visitReadVarExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitTypeofExpr=function(e,t){return this.transformExpr(new bf(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new Cf(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new xf(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWritePropExpr=function(e,t){return this.transformExpr(new Sf(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeMethodExpr=function(e,t){var n=e.builtin||e.name;return this.transformExpr(new Tf(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return this.transformExpr(new Df(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInstantiateExpr=function(e,t){return this.transformExpr(new Pf(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitExternalExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitConditionalExpr=function(e,t){return this.transformExpr(new Of(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitNotExpr=function(e,t){return this.transformExpr(new If(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new Ff(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new Rf(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new Lf(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new Vf(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitReadPropExpr=function(e,t){return this.transformExpr(new Bf(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new Uf(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.transformExpr(new Hf(this.visitAllExpressions(e.entries,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.map(function(e){return new qf(e.key,e.value.visitExpression(n,t),e.quoted)}),i=new cf(e.valueType,null);return this.transformExpr(new zf(r,i,e.sourceSpan),t)},e.prototype.visitCommaExpr=function(e,t){return this.transformExpr(new Wf(this.visitAllExpressions(e.parts,t),e.sourceSpan),t)},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value&&e.value.visitExpression(this,t);return this.transformStmt(new $f(e.name,n,e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.transformStmt(new Zf(e.name,e.params,this.visitAllStatements(e.statements,t),e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitExpressionStmt=function(e,t){return this.transformStmt(new Yf(e.expr.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitReturnStmt=function(e,t){return this.transformStmt(new Xf(e.value.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitDeclareClassStmt=function(e,t){var n=this,r=e.parent.visitExpression(this,t),i=e.getters.map(function(e){return new nd(e.name,n.visitAllStatements(e.body,t),e.type,e.modifiers)}),o=e.constructorMethod&&new td(e.constructorMethod.name,e.constructorMethod.params,this.visitAllStatements(e.constructorMethod.body,t),e.constructorMethod.type,e.constructorMethod.modifiers),s=e.methods.map(function(e){return new td(e.name,e.params,n.visitAllStatements(e.body,t),e.type,e.modifiers)});return this.transformStmt(new rd(e.name,r,e.fields,i,o,s,e.modifiers,e.sourceSpan),t)},e.prototype.visitIfStmt=function(e,t){return this.transformStmt(new id(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e.sourceSpan),t)},e.prototype.visitTryCatchStmt=function(e,t){return this.transformStmt(new sd(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan),t)},e.prototype.visitThrowStmt=function(e,t){return this.transformStmt(new ad(e.error.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitJSDocCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitAllStatements=function(e,t){var n=this;return e.map(function(e){return e.visitStatement(n,t)})},e}(),cd=function(){function e(){}return e.prototype.visitType=function(e,t){return e},e.prototype.visitExpression=function(e,t){return e.type&&e.type.visitType(this,t),e},e.prototype.visitBuiltinType=function(e,t){return this.visitType(e,t)},e.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach(function(e){return n.visitType(e,t)}),this.visitType(e,t)},e.prototype.visitArrayType=function(e,t){return this.visitType(e,t)},e.prototype.visitMapType=function(e,t){return this.visitType(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return e},e.prototype.visitTypeofExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitReadVarExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitLiteralExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitExternalExpr=function(e,t){var n=this;return e.typeParams&&e.typeParams.forEach(function(e){return e.visitType(n,t)}),this.visitExpression(e,t)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitFunctionExpr=function(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return e.entries.forEach(function(e){return e.value.visitExpression(n,t)}),this.visitExpression(e,t)},e.prototype.visitCommaExpr=function(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)},e.prototype.visitAllExpressions=function(e,t){var n=this;e.forEach(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},e.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareClassStmt=function(e,t){var n=this;return e.parent.visitExpression(this,t),e.getters.forEach(function(e){return n.visitAllStatements(e.body,t)}),e.constructorMethod&&this.visitAllStatements(e.constructorMethod.body,t),e.methods.forEach(function(e){return n.visitAllStatements(e.body,t)}),e},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},e.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},e.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitJSDocCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function ld(e){var t=new pd;return t.visitAllStatements(e,null),t.varNames}var pd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.varNames=new Set,t}return i(t,e),t.prototype.visitDeclareFunctionStmt=function(e,t){return e},t.prototype.visitDeclareClassStmt=function(e,t){return e},t.prototype.visitReadVarExpr=function(e,t){return e.name&&this.varNames.add(e.name),null},t}(cd);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.externalReferences=[],t}i(t,e),t.prototype.visitExternalExpr=function(t,n){return this.externalReferences.push(t.value),e.prototype.visitExternalExpr.call(this,t,n)}}(cd);function hd(e,t){if(!t)return e;var n=new dd(t);return e.visitStatement(n,null)}function fd(e,t){if(!t)return e;var n=new dd(t);return e.visitExpression(n,null)}var dd=function(e){function t(t){var n=e.call(this)||this;return n.sourceSpan=t,n}return i(t,e),t.prototype._clone=function(e){var t=Object.create(e.constructor.prototype);for(var n in e)t[n]=e[n];return t},t.prototype.transformExpr=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t.prototype.transformStmt=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t}(ud);function vd(e,t,n){return new wf(e,t,n)}function md(e,t,n){return void 0===t&&(t=null),new Mf(e,null,t,n)}function yd(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),null!=e?gd(md(e,t,null),n):null}function gd(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new af(e,t,n)}function _d(e,t,n){return new Hf(e,t,n)}function wd(e,t){return void 0===t&&(t=null),new zf(e.map(function(e){return new qf(e.key,e.value,e.quoted)}),t,null)}function bd(e,t,n,r,i){return new Lf(e,t,n,r,i)}function Ed(e,t,n){return new id(e,t,n)}function Cd(e,t,n){return new Nf(e,t,n)}function xd(e){var t="";if(e.tagName&&(t+=" @"+e.tagName),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}var Sd="|",Ad="@@",Td="i18n",Dd="i18n-",Pd="\ufffd";function Nd(e){var t,n,r,i,o;if(e){var s=e.indexOf(Ad),a=e.indexOf(Sd),u=void 0;u=(t=l(s>-1?[e.slice(0,s),e.slice(s+2)]:[e,""],2))[0],r=t[1],i=(n=l(a>-1?[u.slice(0,a),u.slice(a+1)]:["",u],2))[0],o=n[1]}return{id:r,meaning:i,description:o}}function Md(e,t){return void 0===t&&(t=0),""+Pd+e+(t>0?":"+t:"")+Pd}function kd(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,o=0;o<i;o++)r+=""+e[o]+Md(t+o,n);return r+=e[i]}var Od=function(){function e(e,t,n,r,i){void 0===r&&(r=0),this.index=e,this.templateIndex=t,this.ref=n,this.level=r,this.uniqueIdGen=i,this.content="",this.bindings=new Set,this.uniqueIdGen=i||function(e){void 0===e&&(e=0);var t=e;return function(){return t++}}(),this.id=this.uniqueIdGen()}return e.prototype.wrap=function(e,t,n,r){return Md(""+(r?"/":"")+e+t,n)},e.prototype.append=function(e){this.content+=e},e.prototype.genTemplatePattern=function(e,t){return Md("tmpl:"+e+":"+t)},e.prototype.getId=function(){return this.id},e.prototype.getRef=function(){return this.ref},e.prototype.getIndex=function(){return this.index},e.prototype.getContent=function(){return this.content},e.prototype.getTemplateIndex=function(){return this.templateIndex},e.prototype.getBindings=function(){return this.bindings},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.isRoot=function(){return 0===this.level},e.prototype.isResolved=function(){return!new RegExp(this.genTemplatePattern("\\d+","\\d+")).test(this.content)},e.prototype.appendText=function(e){this.append(e.trim())},e.prototype.appendTemplate=function(e){this.append(this.genTemplatePattern(this.id,e))},e.prototype.appendElement=function(e,t){this.append(this.wrap("#",e,this.id,t))},e.prototype.forkChildContext=function(t,n){return new e(t,n,this.ref,this.level+1,this.uniqueIdGen)},e.prototype.reconcileChildContext=function(e){var t=e.getId(),n=e.getContent(),r=e.getTemplateIndex(),i=new RegExp(this.genTemplatePattern(this.id,r)),o=""+this.wrap("*",r,t)+n+this.wrap("*",r,t,!0);this.content=this.content.replace(i,o)},e}(),Id=/-+([a-z0-9])/g;function Fd(e,t){return Rd(e,":",t)}function Rd(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function jd(e,t,n){return Array.isArray(e)?t.visitArray(e,n):"object"==typeof(r=e)&&null!==r&&Object.getPrototypeOf(r)===$d?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n);var r}function Ld(e){return null!=e}function Vd(e){return void 0===e?null:e}var Bd=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return jd(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=jd(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),Ud=function(e){if(Jd(e))throw new Error("Illegal state: value cannot be a promise");return e},Hd=function(e,t){return Jd(e)?e.then(t):t(e)},qd=function(e){return e.some(Jd)?Promise.all(e):e};function zd(e){throw new Error("Internal Error: "+e)}function Wd(e,t){var n=Error(e);return n[Gd]=!0,t&&(n[Kd]=t),n}var Gd="ngSyntaxError",Kd="ngParseErrors";function Qd(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var $d=Object.getPrototypeOf({});function Zd(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function Yd(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(Yd).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Xd(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function Jd(e){return!!e&&"function"==typeof e.then}var ev=function(){return function(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}(),tv="undefined"!=typeof window&&window,nv="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,rv="undefined"!=typeof global&&global||tv||nv,iv={},ov=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return i(t,e),t.prototype.visitExpression=function(e,t){return t===iv?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)},t.prototype.isConstant=function(){return!0},t.prototype.fixup=function(e){this.resolved=e,this.shared=!0},t}(gf),sv=function(){function e(){this.statements=[],this.translations=new Map,this.deferredTranslations=new Map,this.literals=new Map,this.literalFactories=new Map,this.injectorDefinitions=new Map,this.directiveDefinitions=new Map,this.componentDefinitions=new Map,this.pipeDefinitions=new Map,this.nextNameIndex=0}return e.prototype.getConstLiteral=function(e,t){if(e instanceof Nf||e instanceof ov)return e;var n=this.keyOf(e),r=this.literals.get(n),i=!1;if(r||(r=new ov(e),this.literals.set(n,r),i=!0),!i&&!r.shared||i&&t){var o=this.freshName();this.statements.push(vd(o).set(e).toDeclStmt(pf,[Af.Final])),r.fixup(vd(o))}return r},e.prototype.getDeferredTranslationConst=function(e){var t=this.statements.push(new Yf(Gf))-1,n=vd(this.freshTranslationName(e));return this.deferredTranslations.set(n,t),n},e.prototype.setDeferredTranslationConst=function(e,t){var n=this.deferredTranslations.get(e);this.statements[n]=this.getTranslationDeclStmt(e,t)},e.prototype.getTranslationDeclStmt=function(e,t){var n=vd("goog.getMsg").callFn([Cd(t)]);return e.set(n).toDeclStmt(pf,[Af.Final])},e.prototype.appendTranslationMeta=function(e){var t=function(e){var t=[];if(e.id||e.description){var n=e.id?"[BACKUP_MESSAGE_ID:"+e.id+"] "+e.description:e.description;t.push({tagName:"desc",text:n.trim()})}e.meaning&&t.push({tagName:"meaning",text:e.meaning});return 0==t.length?null:new od(t)}("string"==typeof e?Nd(e):e);t&&this.statements.push(t)},e.prototype.getTranslation=function(e,t,n){var r=Nd(t),i=r.meaning?e+"\0\0"+r.meaning:e,o=this.translations.get(i);if(o)return o;var s=vd(this.freshTranslationName(n));return this.appendTranslationMeta(r),this.statements.push(this.getTranslationDeclStmt(s,e)),this.translations.set(i,s),s},e.prototype.getDefinition=function(e,t,n,r){void 0===r&&(r=!1);var i=this.definitionsOf(t),o=i.get(e),s=!1;if(!o){var a=this.propertyNameOf(t);o=new ov(n.importExpr(e).prop(a)),i.set(e,o),s=!0}if(!s&&!o.shared||s&&r){var u=this.freshName();this.statements.push(vd(u).set(o.resolved).toDeclStmt(pf,[Af.Final])),o.fixup(vd(u))}return o},e.prototype.getLiteralFactory=function(e){if(e instanceof Hf){var t=e.entries.map(function(e){return e.isConstant()?e:Cd(null)}),n=this.keyOf(_d(t));return this._getLiteralFactory(n,e.entries,function(e){return _d(e)})}var r=wd(e.entries.map(function(e){return{key:e.key,value:e.value.isConstant()?e.value:Cd(null),quoted:e.quoted}}));n=this.keyOf(r);return this._getLiteralFactory(n,e.entries.map(function(e){return e.value}),function(t){return wd(t.map(function(t,n){return{key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}}))})},e.prototype._getLiteralFactory=function(e,t,n){var r=this,i=this.literalFactories.get(e),o=t.filter(function(e){return!e.isConstant()});if(!i){var s=t.map(function(e,t){return e.isConstant()?r.getConstLiteral(e,!0):vd("a"+t)}),a=bd(s.filter(cv).map(function(e){return new jf(e.name,lf)}),[new Xf(n(s))],pf),u=this.freshName();this.statements.push(vd(u).set(a).toDeclStmt(pf,[Af.Final])),i=vd(u),this.literalFactories.set(e,i)}return{literalFactory:i,literalFactoryArguments:o}},e.prototype.uniqueName=function(e){return""+e+this.nextNameIndex++},e.prototype.definitionsOf=function(e){switch(e){case 2:return this.componentDefinitions;case 1:return this.directiveDefinitions;case 0:return this.injectorDefinitions;case 3:return this.pipeDefinitions}return zd("Unknown definition kind "+e),this.componentDefinitions},e.prototype.propertyNameOf=function(e){switch(e){case 2:return"ngComponentDef";case 1:return"ngDirectiveDef";case 0:return"ngInjectorDef";case 3:return"ngPipeDef"}return zd("Unknown definition kind "+e),"<unknown>"},e.prototype.freshName=function(){return this.uniqueName("_c")},e.prototype.freshTranslationName=function(e){return this.uniqueName("MSG_"+e).toUpperCase()},e.prototype.keyOf=function(e){return e.visitExpression(new av,iv)},e}(),av=function(){function e(){this.visitWrappedNodeExpr=uv,this.visitWriteVarExpr=uv,this.visitWriteKeyExpr=uv,this.visitWritePropExpr=uv,this.visitInvokeMethodExpr=uv,this.visitInvokeFunctionExpr=uv,this.visitInstantiateExpr=uv,this.visitConditionalExpr=uv,this.visitNotExpr=uv,this.visitAssertNotNullExpr=uv,this.visitCastExpr=uv,this.visitFunctionExpr=uv,this.visitBinaryOperatorExpr=uv,this.visitReadPropExpr=uv,this.visitReadKeyExpr=uv,this.visitCommaExpr=uv}return e.prototype.visitLiteralExpr=function(e){return""+("string"==typeof e.value?'"'+e.value+'"':e.value)},e.prototype.visitLiteralArrayExpr=function(e,t){var n=this;return"["+e.entries.map(function(e){return e.visitExpression(n,t)}).join(",")+"]"},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return"{"+e.entries.map(function(e){return function(e){var t=e.quoted?'"':"";return""+t+e.key+t}(e)+":"+e.value.visitExpression(n,t)}).join(",")},e.prototype.visitExternalExpr=function(e){return e.value.moduleName?"EX:"+e.value.moduleName+":"+e.value.name:"EX:"+e.value.runtime.name},e.prototype.visitReadVarExpr=function(e){return"VAR:"+e.name},e.prototype.visitTypeofExpr=function(e,t){return"TYPEOF:"+e.expr.visitExpression(this,t)},e}();function uv(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function cv(e){return e instanceof wf}var lv="@angular/core",pv=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:lv},e.ElementRef={name:"ElementRef",moduleName:lv},e.NgModuleRef={name:"NgModuleRef",moduleName:lv},e.ViewContainerRef={name:"ViewContainerRef",moduleName:lv},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:lv},e.QueryList={name:"QueryList",moduleName:lv},e.TemplateRef={name:"TemplateRef",moduleName:lv},e.Renderer2={name:"Renderer2",moduleName:lv},e.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:lv},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:lv},e.ComponentFactory={name:"ComponentFactory",moduleName:lv},e.ComponentRef={name:"ComponentRef",moduleName:lv},e.NgModuleFactory={name:"NgModuleFactory",moduleName:lv},e.createModuleFactory={name:"\u0275cmf",moduleName:lv},e.moduleDef={name:"\u0275mod",moduleName:lv},e.moduleProviderDef={name:"\u0275mpd",moduleName:lv},e.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:lv},e.inject={name:"inject",moduleName:lv},e.INJECTOR={name:"INJECTOR",moduleName:lv},e.Injector={name:"Injector",moduleName:lv},e.defineInjectable={name:"defineInjectable",moduleName:lv},e.InjectableDef={name:"\u0275InjectableDef",moduleName:lv},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:lv},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:lv},e.SecurityContext={name:"SecurityContext",moduleName:lv},e.LOCALE_ID={name:"LOCALE_ID",moduleName:lv},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:lv},e.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:lv},e.interpolate={name:"\u0275interpolate",moduleName:lv},e.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:lv},e.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:lv},e.Renderer={name:"Renderer",moduleName:lv},e.viewDef={name:"\u0275vid",moduleName:lv},e.elementDef={name:"\u0275eld",moduleName:lv},e.anchorDef={name:"\u0275and",moduleName:lv},e.textDef={name:"\u0275ted",moduleName:lv},e.directiveDef={name:"\u0275did",moduleName:lv},e.providerDef={name:"\u0275prd",moduleName:lv},e.queryDef={name:"\u0275qud",moduleName:lv},e.pureArrayDef={name:"\u0275pad",moduleName:lv},e.pureObjectDef={name:"\u0275pod",moduleName:lv},e.purePipeDef={name:"\u0275ppd",moduleName:lv},e.pipeDef={name:"\u0275pid",moduleName:lv},e.nodeValue={name:"\u0275nov",moduleName:lv},e.ngContentDef={name:"\u0275ncd",moduleName:lv},e.unwrapValue={name:"\u0275unv",moduleName:lv},e.createRendererType2={name:"\u0275crt",moduleName:lv},e.RendererType2={name:"RendererType2",moduleName:lv},e.ViewDefinition={name:"\u0275ViewDefinition",moduleName:lv},e.createComponentFactory={name:"\u0275ccf",moduleName:lv},e}();function hv(e){return{identifier:{reference:e}}}function fv(e,t){return hv(e.resolveExternalReference(t))}var dv=function(){function e(e,t,n){this.filePath=e,this.name=t,this.members=n}return e.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},e}(),vv=function(){function e(){this.cache=new Map}return e.prototype.get=function(e,t,n){var r='"'+e+'".'+t+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new dv(e,t,n),this.cache.set(r,i)),i},e}(),mv=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function yv(e){return e.replace(/\W/g,"_")}var gv,_v=0;function wv(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof dv)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Yd(t);return n.indexOf("(")>=0?(n="anonymous_"+_v++,t.__anonymousType=n):n=yv(n),n}function bv(e){var t=e.reference;return t instanceof dv?t.filePath:"./"+Yd(t)}function Ev(e,t){return"View_"+wv({reference:e})+"_"+t}function Cv(e){return"RenderType_"+wv({reference:e})}function xv(e){return wv({reference:e})+"NgFactory"}function Sv(e){return null!=e.value?yv(e.value):wv(e.identifier)}function Av(e){return null!=e.identifier?e.identifier.reference:e.value}!function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(gv||(gv={}));var Tv=function(){return function(e){var t=void 0===e?{}:e,n=t.moduleUrl,r=t.styles,i=t.styleUrls;this.moduleUrl=n||null,this.styles=Ov(r),this.styleUrls=Ov(i)}}(),Dv=function(){function e(e){var t=e.encapsulation,n=e.template,r=e.templateUrl,i=e.htmlAst,o=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,l=e.interpolation,p=e.isInline,h=e.preserveWhitespaces;if(this.encapsulation=t,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=Ov(o),this.styleUrls=Ov(s),this.externalStylesheets=Ov(a),this.animations=u?Fv(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p,this.preserveWhitespaces=h}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}},e}(),Pv=function(){function e(e){var t=e.isHost,n=e.type,r=e.isComponent,i=e.selector,o=e.exportAs,s=e.changeDetection,a=e.inputs,u=e.outputs,c=e.hostListeners,l=e.hostProperties,p=e.hostAttributes,h=e.providers,f=e.viewProviders,d=e.queries,v=e.guards,m=e.viewQueries,y=e.entryComponents,g=e.template,_=e.componentViewType,w=e.rendererType,b=e.componentFactory;this.isHost=!!t,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=Ov(h),this.viewProviders=Ov(f),this.queries=Ov(d),this.guards=v,this.viewQueries=Ov(m),this.entryComponents=Ov(y),this.template=g,this.componentViewType=_,this.rendererType=w,this.componentFactory=b}return e.create=function(t){var n=t.isHost,r=t.type,i=t.isComponent,o=t.selector,s=t.exportAs,a=t.changeDetection,u=t.inputs,c=t.outputs,l=t.host,p=t.providers,h=t.viewProviders,f=t.queries,d=t.guards,v=t.viewQueries,m=t.entryComponents,y=t.template,g=t.componentViewType,_=t.rendererType,w=t.componentFactory,b={},E={},C={};null!=l&&Object.keys(l).forEach(function(e){var t=l[e],n=e.match(mv);null===n?C[e]=t:null!=n[1]?E[n[1]]=t:null!=n[2]&&(b[n[2]]=t)});var x={};null!=u&&u.forEach(function(e){var t=Fd(e,[e,e]);x[t[0]]=t[1]});var S={};return null!=c&&c.forEach(function(e){var t=Fd(e,[e,e]);S[t[0]]=t[1]}),new e({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:x,outputs:S,hostListeners:b,hostProperties:E,hostAttributes:C,providers:p,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:w})},e.prototype.toSummary=function(){return{summaryKind:gv.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},e}(),Nv=function(){function e(e){var t=e.type,n=e.name,r=e.pure;this.type=t,this.name=n,this.pure=!!r}return e.prototype.toSummary=function(){return{summaryKind:gv.Pipe,type:this.type,name:this.name,pure:this.pure}},e}(),Mv=(function(){}(),function(){function e(e){var t=e.type,n=e.providers,r=e.declaredDirectives,i=e.exportedDirectives,o=e.declaredPipes,s=e.exportedPipes,a=e.entryComponents,u=e.bootstrapComponents,c=e.importedModules,l=e.exportedModules,p=e.schemas,h=e.transitiveModule,f=e.id;this.type=t||null,this.declaredDirectives=Ov(r),this.exportedDirectives=Ov(i),this.declaredPipes=Ov(o),this.exportedPipes=Ov(s),this.providers=Ov(n),this.entryComponents=Ov(a),this.bootstrapComponents=Ov(u),this.importedModules=Ov(c),this.exportedModules=Ov(l),this.schemas=Ov(p),this.id=f||null,this.transitiveModule=h||null}return e.prototype.toSummary=function(){var e=this.transitiveModule;return{summaryKind:gv.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}},e}()),kv=function(){function e(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return e.prototype.addProvider=function(e,t){this.providers.push({provider:e,module:t})},e.prototype.addDirective=function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))},e.prototype.addExportedDirective=function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))},e.prototype.addPipe=function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))},e.prototype.addExportedPipe=function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))},e.prototype.addModule=function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))},e.prototype.addEntryComponent=function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))},e}();function Ov(e){return e||[]}var Iv=function(){return function(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}}();function Fv(e){return e.reduce(function(e,t){var n=Array.isArray(t)?Fv(t):t;return e.concat(n)},[])}function Rv(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function jv(e,t,n){var r;return r=n.isInline?t.type.reference instanceof dv?t.type.reference.filePath+"."+t.type.reference.name+".html":wv(e)+"/"+wv(t.type)+".html":n.templateUrl,t.type.reference instanceof dv?r:Rv(r)}var Lv="@angular/core",Vv=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"\u0275namespaceHTML",moduleName:Lv},e.namespaceMathML={name:"\u0275namespaceMathML",moduleName:Lv},e.namespaceSVG={name:"\u0275namespaceSVG",moduleName:Lv},e.element={name:"\u0275element",moduleName:Lv},e.elementStart={name:"\u0275elementStart",moduleName:Lv},e.elementEnd={name:"\u0275elementEnd",moduleName:Lv},e.elementProperty={name:"\u0275elementProperty",moduleName:Lv},e.elementAttribute={name:"\u0275elementAttribute",moduleName:Lv},e.elementClassProp={name:"\u0275elementClassProp",moduleName:Lv},e.elementContainerStart={name:"\u0275EC",moduleName:Lv},e.elementContainerEnd={name:"\u0275eC",moduleName:Lv},e.elementStyling={name:"\u0275elementStyling",moduleName:Lv},e.elementStylingMap={name:"\u0275elementStylingMap",moduleName:Lv},e.elementStyleProp={name:"\u0275elementStyleProp",moduleName:Lv},e.elementStylingApply={name:"\u0275elementStylingApply",moduleName:Lv},e.containerCreate={name:"\u0275container",moduleName:Lv},e.nextContext={name:"\u0275nextContext",moduleName:Lv},e.templateCreate={name:"\u0275template",moduleName:Lv},e.text={name:"\u0275text",moduleName:Lv},e.textBinding={name:"\u0275textBinding",moduleName:Lv},e.bind={name:"\u0275bind",moduleName:Lv},e.enableBindings={name:"\u0275enableBindings",moduleName:Lv},e.disableBindings={name:"\u0275disableBindings",moduleName:Lv},e.getCurrentView={name:"\u0275getCurrentView",moduleName:Lv},e.restoreView={name:"\u0275restoreView",moduleName:Lv},e.interpolation1={name:"\u0275interpolation1",moduleName:Lv},e.interpolation2={name:"\u0275interpolation2",moduleName:Lv},e.interpolation3={name:"\u0275interpolation3",moduleName:Lv},e.interpolation4={name:"\u0275interpolation4",moduleName:Lv},e.interpolation5={name:"\u0275interpolation5",moduleName:Lv},e.interpolation6={name:"\u0275interpolation6",moduleName:Lv},e.interpolation7={name:"\u0275interpolation7",moduleName:Lv},e.interpolation8={name:"\u0275interpolation8",moduleName:Lv},e.interpolationV={name:"\u0275interpolationV",moduleName:Lv},e.pureFunction0={name:"\u0275pureFunction0",moduleName:Lv},e.pureFunction1={name:"\u0275pureFunction1",moduleName:Lv},e.pureFunction2={name:"\u0275pureFunction2",moduleName:Lv},e.pureFunction3={name:"\u0275pureFunction3",moduleName:Lv},e.pureFunction4={name:"\u0275pureFunction4",moduleName:Lv},e.pureFunction5={name:"\u0275pureFunction5",moduleName:Lv},e.pureFunction6={name:"\u0275pureFunction6",moduleName:Lv},e.pureFunction7={name:"\u0275pureFunction7",moduleName:Lv},e.pureFunction8={name:"\u0275pureFunction8",moduleName:Lv},e.pureFunctionV={name:"\u0275pureFunctionV",moduleName:Lv},e.pipeBind1={name:"\u0275pipeBind1",moduleName:Lv},e.pipeBind2={name:"\u0275pipeBind2",moduleName:Lv},e.pipeBind3={name:"\u0275pipeBind3",moduleName:Lv},e.pipeBind4={name:"\u0275pipeBind4",moduleName:Lv},e.pipeBindV={name:"\u0275pipeBindV",moduleName:Lv},e.i18nAttribute={name:"\u0275i18nAttribute",moduleName:Lv},e.i18nExp={name:"\u0275i18nExp",moduleName:Lv},e.i18nStart={name:"\u0275i18nStart",moduleName:Lv},e.i18nEnd={name:"\u0275i18nEnd",moduleName:Lv},e.i18nApply={name:"\u0275i18nApply",moduleName:Lv},e.load={name:"\u0275load",moduleName:Lv},e.loadQueryList={name:"\u0275loadQueryList",moduleName:Lv},e.pipe={name:"\u0275pipe",moduleName:Lv},e.projection={name:"\u0275projection",moduleName:Lv},e.projectionDef={name:"\u0275projectionDef",moduleName:Lv},e.reference={name:"\u0275reference",moduleName:Lv},e.inject={name:"inject",moduleName:Lv},e.injectAttribute={name:"\u0275injectAttribute",moduleName:Lv},e.directiveInject={name:"\u0275directiveInject",moduleName:Lv},e.templateRefExtractor={name:"\u0275templateRefExtractor",moduleName:Lv},e.defineBase={name:"\u0275defineBase",moduleName:Lv},e.BaseDef={name:"\u0275BaseDef",moduleName:Lv},e.defineComponent={name:"\u0275defineComponent",moduleName:Lv},e.ComponentDefWithMeta={name:"\u0275ComponentDefWithMeta",moduleName:Lv},e.defineDirective={name:"\u0275defineDirective",moduleName:Lv},e.DirectiveDefWithMeta={name:"\u0275DirectiveDefWithMeta",moduleName:Lv},e.InjectorDef={name:"\u0275InjectorDef",moduleName:Lv},e.defineInjector={name:"defineInjector",moduleName:Lv},e.NgModuleDefWithMeta={name:"\u0275NgModuleDefWithMeta",moduleName:Lv},e.defineNgModule={name:"\u0275defineNgModule",moduleName:Lv},e.PipeDefWithMeta={name:"\u0275PipeDefWithMeta",moduleName:Lv},e.definePipe={name:"\u0275definePipe",moduleName:Lv},e.query={name:"\u0275query",moduleName:Lv},e.queryRefresh={name:"\u0275queryRefresh",moduleName:Lv},e.registerContentQuery={name:"\u0275registerContentQuery",moduleName:Lv},e.NgOnChangesFeature={name:"\u0275NgOnChangesFeature",moduleName:Lv},e.InheritDefinitionFeature={name:"\u0275InheritDefinitionFeature",moduleName:Lv},e.PublicFeature={name:"\u0275PublicFeature",moduleName:Lv},e.listener={name:"\u0275listener",moduleName:Lv},e.getFactoryOf={name:"\u0275getFactoryOf",moduleName:Lv},e.getInheritedFactory={name:"\u0275getInheritedFactory",moduleName:Lv},e.sanitizeHtml={name:"\u0275sanitizeHtml",moduleName:Lv},e.sanitizeStyle={name:"\u0275sanitizeStyle",moduleName:Lv},e.defaultStyleSanitizer={name:"\u0275defaultStyleSanitizer",moduleName:Lv},e.sanitizeResourceUrl={name:"\u0275sanitizeResourceUrl",moduleName:Lv},e.sanitizeScript={name:"\u0275sanitizeScript",moduleName:Lv},e.sanitizeUrl={name:"\u0275sanitizeUrl",moduleName:Lv},e}(),Bv="_t",Uv="ctx",Hv="rf";function qv(e,t){var n=null;return function(){return n||(e.push(new $f(Bv,void 0,lf)),n=vd(t)),n}}function zv(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}function Wv(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+void 0)}function Gv(e){return Array.isArray(e)?_d(e.map(Gv)):Cd(e,pf)}function Kv(e){return Object.getOwnPropertyNames(e).length>0?function(e,t){void 0===t&&(t=!1);return wd(Object.getOwnPropertyNames(e).map(function(n){return{key:n,quoted:t,value:Gv(e[n])}}))}(e):null}function Qv(e){for(;(t=e[e.length-1])instanceof Nf&&null===t.value;)e.pop();var t;return e}var $v,Zv,Yv=function(){function e(){this.values=[]}return e.prototype.set=function(e,t){t&&this.values.push({key:e,value:t,quoted:!1})},e.prototype.toLiteralMap=function(){return wd(this.values)},e}();function Xv(e){var t={};return e.attributes.forEach(function(e){var n;(n=e.name)===Td||n.startsWith(Dd)||(t[e.name]=e.value)}),e.inputs.forEach(function(e){t[e.name]=""}),e.outputs.forEach(function(e){t[e.name]=""}),t}function Jv(e){var t=vd("t"),n=[],r=nm(e)?t:new Vf(of.Or,t,e.type),i=null;if(null!==e.deps)i=new Pf(r,em(e.deps,e.injectFn));else{var o=vd("\u0275"+e.name+"_BaseFactory"),s=md(Vv.getInheritedFactory),a=o.set(s.callFn([e.type])).toDeclStmt(pf,[Af.Exported,Af.Final]);n.push(a),i=o.callFn([r])}var u=i,c=[],l=null;function h(e){var n=vd("r");return c.push(n.set(Gf).toDeclStmt()),c.push(Ed(t,[n.set(u).toStmt()],[n.set(e).toStmt()])),n}if(nm(e)&&e.delegateType===$v.Factory){var f=vd("\u0275"+e.name+"_BaseFactory"),d=md(Vv.getFactoryOf);if(e.delegate.isEquivalent(e.type))throw new Error("Illegal state: compiling factory that delegates to itself");var v=f.set(d.callFn([e.delegate])).toDeclStmt(pf,[Af.Exported,Af.Final]);n.push(v),l=h(f.callFn([]))}else if(nm(e)){var m=em(e.delegateDeps,e.injectFn);l=h(new(e.delegateType===$v.Class?Pf:Df)(e.delegate,m))}else l=function(e){return void 0!==e.expression}(e)?h(e.expression):i;return{factory:bd([new jf("t",lf)],p(c,[new Xf(l)]),pf,void 0,e.name+"_Factory"),statements:n}}function em(e,t){return e.map(function(e){return function(e,t){switch(e.resolved){case Zv.Token:case Zv.Injector:var n=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0),r=e.token;e.resolved===Zv.Injector&&(r=md(pv.INJECTOR));var i=[r];return(0!==n||e.optional)&&i.push(Cd(n)),md(t).callFn(i);case Zv.Attribute:return md(Vv.injectAttribute).callFn([e.token]);default:return zv("Unknown R3ResolvedDependencyType: "+Zv[e.resolved])}}(e,t)})}function tm(e,t,n){var r,i,o=n.resolveExternalReference(pv.Injector),s=[];try{for(var a=c(e.diDeps),u=a.next();!u.done;u=a.next()){var l=u.value;if(l.token){var p=Av(l.token),h=Zv.Token;p===o?h=Zv.Injector:l.isAttribute&&(h=Zv.Attribute);var f=p instanceof dv?t.importExpr(p):Cd(p);s.push({token:f,resolved:h,host:!!l.isHost,optional:!!l.isOptional,self:!!l.isSelf,skipSelf:!!l.isSkipSelf})}else zv("dependency without a token")}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return s}function nm(e){return void 0!==e.delegateType}function rm(e){return wd(Object.keys(e).map(function(t){return{key:t,value:e[t],quoted:!1}}))}function im(e,t){if(Array.isArray(e))return _d(e.map(function(e){return im(e,t)}));if(e instanceof dv)return t.importExpr(e);if(null==e)return Cd(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function om(e,t){var n=null;if(t>0){n=[];for(var r=0;r<t;r++)n.push(lf)}return gd(e,null,n)}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory"}($v||($v={})),function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.Injector=2]="Injector"}(Zv||(Zv={}));var sm=function(){function e(e){void 0===e&&(e=null),this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return e.prototype.addSource=function(e,t){return void 0===t&&(t=null),this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this},e.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},e.prototype.addMapping=function(e,t,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error('Unknown source file "'+t+'"');if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(e.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){var e=this;if(!this.hasMappings)return null;var t=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){t.set(i,o),n.push(i),r.push(e.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(e){o=0,i+=e.map(function(e){var n=am(e.col0-o);return o=e.col0,null!=e.sourceUrl&&(n+=am(t.get(e.sourceUrl)-s),s=t.get(e.sourceUrl),n+=am(e.sourceLine0-a),a=e.sourceLine0,n+=am(e.sourceCol0-u),u=e.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},e.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(e){var t="";e=Zd(e);for(var n=0;n<e.length;){var r=e.charCodeAt(n++),i=e.charCodeAt(n++),o=e.charCodeAt(n++);t+=cm(r>>2),t+=cm((3&r)<<4|(isNaN(i)?0:i>>4)),t+=isNaN(i)?"=":cm((15&i)<<2|o>>6),t+=isNaN(i)||isNaN(o)?"=":cm(63&o)}return t}(JSON.stringify(this,null,0)):""},e}();function am(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=cm(n)}while(e>0);return t}var um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function cm(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return um[e]}var lm=/'|\\|\n|\r|\$/g,pm=/^[$A-Z_][0-9A-Z_$]*$/i,hm="  ",fm=vd("error",null,null),dm=vd("stack",null,null),vm=function(){return function(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),mm=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new vm(e)]}return e.createRoot=function(){return new e(0)},Object.defineProperty(e.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),e.prototype.println=function(e,t){void 0===t&&(t=""),this.print(e||null,t,!0)},e.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},e.prototype.lineLength=function(){return this._currentLine.indent*hm.length+this._currentLine.partsLength},e.prototype.print=function(e,t,n){void 0===n&&(n=!1),t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new vm(this._indent))},e.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},e.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.pushClass=function(e){this._classes.push(e)},e.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(e.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.toSource=function(){return this.sourceLines.map(function(e){return e.parts.length>0?_m(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new sm(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;o<t;o++)n.addLine(),i();return this.sourceLines.forEach(function(e,t){n.addLine();for(var o=e.srcSpans,s=e.parts,a=e.indent*hm.length,u=0;u<o.length&&!o[u];)a+=s[u].length,u++;for(u<o.length&&0===t&&0===a?r=!0:i();u<o.length;){var c=o[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<o.length&&(c===o[u]||!o[u]);)a+=s[u].length,u++}}),n},e.prototype.setPreambleLineCount=function(e){return this._preambleLineCount=e},e.prototype.spanOf=function(e,t){var n=this._lines[e-this._preambleLineCount];if(n)for(var r=t-_m(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(e.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),e}(),ym=function(){function e(e){this._escapeDollarInStrings=e}return e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitIfStmt=function(e,t){t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");var n=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null},e.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitCommentStmt=function(e,t){return e.multiline?t.println(e,"/* "+e.comment+" */"):e.comment.split("\n").forEach(function(n){t.println(e,"// "+n)}),null},e.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},e.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return null!=e.builtin&&null==(n=this.getBuiltinMethodName(e.builtin))?null:(t.print(e,"."+n+"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case yf.Super:n="super";break;case yf.This:n="this";break;case yf.CatchError:n=fm.name;break;case yf.CatchStack:n=dm.name;break;default:throw new Error("Unknown builtin variable "+e.builtin)}return t.print(e,n),null},e.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},e.prototype.visitLiteralExpr=function(e,t){var n=e.value;return"string"==typeof n?t.print(e,gm(n,this._escapeDollarInStrings)):t.print(e,""+n),null},e.prototype.visitConditionalExpr=function(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null},e.prototype.visitNotExpr=function(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n;switch(e.operator){case of.Equals:n="==";break;case of.Identical:n="===";break;case of.NotEquals:n="!=";break;case of.NotIdentical:n="!==";break;case of.And:n="&&";break;case of.BitwiseAnd:n="&";break;case of.Or:n="||";break;case of.Plus:n="+";break;case of.Minus:n="-";break;case of.Divide:n="/";break;case of.Multiply:n="*";break;case of.Modulo:n="%";break;case of.Lower:n="<";break;case of.LowerEquals:n="<=";break;case of.Bigger:n=">";break;case of.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+e.operator)}return e.parens&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e," "+n+" "),e.rhs.visitExpression(this,t),e.parens&&t.print(e,")"),null},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null},e.prototype.visitLiteralArrayExpr=function(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return t.print(e,"{"),this.visitAllObjects(function(r){t.print(e,gm(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,t)},e.entries,t,","),t.print(e,"}"),null},e.prototype.visitCommaExpr=function(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null},e.prototype.visitAllExpressions=function(e,t,n){var r=this;this.visitAllObjects(function(e){return e.visitExpression(r,t)},e,t,n)},e.prototype.visitAllObjects=function(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[o]);i&&(n.decIndent(),n.decIndent())},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function gm(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(lm,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]});return n||!pm.test(r)?"'"+r+"'":r}function _m(e){for(var t="",n=0;n<e;n++)t+=hm;return t}function wm(e,t,n,r){var i=new bm(n),o=mm.createRoot();return i.visitAllStatements(t,o),i.createReturnStmt(o),function(e,t,n,r){var i=t.toSource()+"\n//# sourceURL="+e,o=[],s=[];for(var a in n)o.push(a),s.push(n[a]);if(r){var u=(new(Function.bind.apply(Function,p([void 0],o.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;i+="\n"+t.toSourceMapGenerator(e,c).toJsComment()}return(new(Function.bind.apply(Function,p([void 0],o.concat(i))))).apply(void 0,p(s))}(e,o,i.getArgs(),r)}var bm=function(e){function t(t){var n=e.call(this)||this;return n.reflector=t,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return i(t,e),t.prototype.createReturnStmt=function(e){new Xf(new zf(this._evalExportedVars.map(function(e){return new qf(e,vd(e),!1)}))).visitStatement(this,e)},t.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},t.prototype.visitExternalExpr=function(e,t){return this._emitReferenceToExternal(e,this.reflector.resolveExternalReference(e.value),t),null},t.prototype.visitWrappedNodeExpr=function(e,t){return this._emitReferenceToExternal(e,e.node,t),null},t.prototype.visitDeclareVarStmt=function(t,n){return t.hasModifier(Af.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareVarStmt.call(this,t,n)},t.prototype.visitDeclareFunctionStmt=function(t,n){return t.hasModifier(Af.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareFunctionStmt.call(this,t,n)},t.prototype.visitDeclareClassStmt=function(t,n){return t.hasModifier(Af.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareClassStmt.call(this,t,n)},t.prototype._emitReferenceToExternal=function(e,t,n){var r=this._evalArgValues.indexOf(t);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(t);var i=wv({reference:t})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(e,this._evalArgNames[r])},t}(function(e){function t(){return e.call(this,!1)||this}return i(t,e),t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},t.prototype._visitClassConstructor=function(e,t){t.print(e,"function "+e.name+"("),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},t.prototype._visitClassGetter=function(e,t,n){n.println(e,"Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")},t.prototype._visitClassMethod=function(e,t,n){n.print(e,e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},t.prototype.visitReadVarExpr=function(t,n){if(t.builtin===yf.This)n.print(t,"self");else{if(t.builtin===yf.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}return null},t.prototype.visitDeclareVarStmt=function(e,t){return t.print(e,"var "+e.name),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=t.fn;return r instanceof wf&&r.builtin===yf.Super?(n.currentClass.parent.visitExpression(this,n),n.print(t,".call(this"),t.args.length>0&&(n.print(t,", "),this.visitAllExpressions(t.args,n,",")),n.print(t,")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),null},t.prototype.visitFunctionExpr=function(e,t){return t.print(e,"function"+(e.name?" "+e.name:"")+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,"} catch ("+fm.name+") {"),t.incIndent();var n=[dm.set(fm.prop("stack")).toDeclStmt(null,[Af.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(null,e.name)},e,t,",")},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case _f.ConcatArray:t="concat";break;case _f.SubscribeObservable:t="subscribe";break;case _f.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(ym)),Em=function(){function e(e){this.context=e}return e.prototype.resolveExternalReference=function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to "+e.moduleName+", only references to @angular/core are supported.");if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '"+e.name+"'.");return this.context[e.name]},e.prototype.parameters=function(e){throw new Error("Not implemented.")},e.prototype.annotations=function(e){throw new Error("Not implemented.")},e.prototype.shallowAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.tryAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.propMetadata=function(e){throw new Error("Not implemented.")},e.prototype.hasLifecycleHook=function(e,t){throw new Error("Not implemented.")},e.prototype.guards=function(e){throw new Error("Not implemented.")},e.prototype.componentModuleUrl=function(e,t){throw new Error("Not implemented.")},e}();function Cm(e,t,n,r){return wm(n,p(r,[new $f("$def",e,void 0,[Af.Exported])]),new Em(t),!1).$def}function xm(e,t,n){var r,i=wv(t.type),o=t.rawImports?[t.rawImports]:[],s=t.rawExports?[t.rawExports]:[],a=(r={factory:n.factoryFor({type:t.type,symbol:t.type.reference},e),providers:im(t.rawProviders,e),imports:im(p(o,s),e)},wd(Object.keys(r).map(function(e){return{key:e,quoted:!1,value:r[e]}}))),u=md(Vv.defineInjector).callFn([a]);e.statements.push(new rd(i,null,[new ed("ngInjectorDef",pf,[Af.Static],u)],[],new td(null,[],[]),[]))}function Sm(e){var t=e.map(function(e){return t=e.type,new bf(t);var t});return e.length>0?gd(_d(t)):df}function Am(e){var t=[];t.push({key:"name",value:Cd(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=Jv({name:e.name,type:e.type,deps:e.deps,injectFn:Vv.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:Cd(e.pure),quoted:!1}),{expression:md(Vv.definePipe).callFn([wd(t)]),type:new af(md(Vv.PipeDefWithMeta,[new af(e.type),new af(new Nf(e.pipeName))])),statements:n.statements}}var Tm=function(){return function(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r}}(),Dm=function(){return function(e,t){this.start=e,this.end=t}}(),Pm=function(){function e(e){this.span=e}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),Nm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},t.prototype.toString=function(){return"Quote"},t}(Pm),Mm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(Pm),km=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Pm),Om=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Pm),Im=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Pm),Fm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Pm),Rm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.value=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Pm),jm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Pm),Lm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.obj=n,i.key=r,i}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Pm),Vm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.obj=n,o.key=r,o.value=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Pm),Bm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.exp=n,o.name=r,o.args=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Pm),Um=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Pm),Hm=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Pm),qm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keys=n,i.values=r,i}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Pm),zm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.strings=n,i.expressions=r,i}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Pm),Wm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.operation=n,o.left=r,o.right=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Pm),Gm=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Pm),Km=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(Pm),Qm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(Pm),$m=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(Pm),Zm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.target=n,i.args=r,i}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(Pm),Ym=function(e){function t(t,n,r,i){var o=e.call(this,new Dm(0,null==n?0:n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=i,o}return i(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(Pm),Xm=function(){return function(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i}}(),Jm=(function(){function e(){}e.prototype.visitBinary=function(e,t){},e.prototype.visitChain=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitLiteralArray=function(e,t){},e.prototype.visitLiteralMap=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitPipe=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitQuote=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){}}(),function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this),e.right.visit(this),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this),this.visitAll(e.args,t),null},e.prototype.visitImplicitReceiver=function(e,t){return null},e.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this),e.key.visit(this),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},e.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){return null},e.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this),null},e.prototype.visitNonNullAssert=function(e,t){return e.expression.visit(this),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this),e.value.visit(this),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitAll=function(e,t){var n=this;return e.forEach(function(e){return e.visit(n,t)}),null},e.prototype.visitQuote=function(e,t){return null},e}()),ey=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new zm(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new Um(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new Fm(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new Rm(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new jm(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new Qm(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new $m(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new Zm(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new Hm(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new qm(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new Wm(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new Gm(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new Km(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new Im(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new Bm(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new Lm(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new Vm(e.span,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n].visit(this);return t},e.prototype.visitChain=function(e,t){return new Om(e.span,this.visitAll(e.expressions))},e.prototype.visitQuote=function(e,t){return new Nm(e.span,e.prefix,e.uninterpretedExpression,e.location)},e}(),ty=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new zm(e.span,e.strings,n):e},e.prototype.visitLiteralPrimitive=function(e,t){return e},e.prototype.visitPropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new Fm(e.span,n,e.name):e},e.prototype.visitPropertyWrite=function(e,t){var n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new Rm(e.span,n,e.name,r):e},e.prototype.visitSafePropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new jm(e.span,n,e.name):e},e.prototype.visitMethodCall=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new Qm(e.span,n,e.name,this.visitAll(e.args)):e},e.prototype.visitSafeMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new $m(e.span,n,e.name,r):e},e.prototype.visitFunctionCall=function(e,t){var n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new Zm(e.span,n,r):e},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Hm(e.span,n):e},e.prototype.visitLiteralMap=function(e,t){var n=this.visitAll(e.values);return n!==e.values?new qm(e.span,e.keys,n):e},e.prototype.visitBinary=function(e,t){var n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new Wm(e.span,e.operation,n,r):e},e.prototype.visitPrefixNot=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new Gm(e.span,n):e},e.prototype.visitNonNullAssert=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new Km(e.span,n):e},e.prototype.visitConditional=function(e,t){var n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!=i?new Im(e.span,n,r,i):e},e.prototype.visitPipe=function(e,t){var n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new Bm(e.span,n,e.name,r):e},e.prototype.visitKeyedRead=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this);return n!==e.obj||r!==e.key?new Lm(e.span,n,r):e},e.prototype.visitKeyedWrite=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.obj||r!==e.key||i!==e.value?new Vm(e.span,n,r,i):e},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=!1,r=0;r<e.length;++r){var i=e[r],o=i.visit(this);t[r]=o,n=n||o!==i}return n?t:e},e.prototype.visitChain=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Om(e.span,n):e},e.prototype.visitQuote=function(e,t){return e},e}();var ny,ry=function(){return function(e,t,n,r){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===ny.LITERAL_ATTR,this.isAnimation=this.type===ny.ANIMATION}}();!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(ny||(ny={}));var iy=function(){return function(e,t,n,r,i){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i}}(),oy=function(){return function(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}}(),sy=function(){return function(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}}(),ay=function(){function e(){}return e.event=vd("$event"),e}(),uy=function(){return function(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map(function(e){if(e instanceof $f&&e.name==t.name&&e.value instanceof Vf){var n=e.value.lhs;return new Xf(n.value)}return e})}}();function cy(e,t,n,r,i){e||(e=new by);var o=ly({createLiteralArrayConverter:function(e){return function(e){return _d(e)}},createLiteralMapConverter:function(e){return function(t){return wd(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}))}},createPipeConverter:function(e){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+e)}},n),s=new wy(e,t,r,i),a=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(o.visit(s,hy.Statement),a),function(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(my(t,r))}(s.temporaryCount,r,a);var u=a.length-1,c=null;if(u>=0){var l=function(e){if(e instanceof Yf)return e.expr;if(e instanceof Xf)return e.value;return null}(a[u]);l&&(c=function(e){return vd("pd_"+e)}(r),a[u]=c.set(l.cast(lf).notIdentical(Cd(!1))).toDeclStmt(null,[Af.Final]))}return new uy(a,c)}function ly(e,t){return function(e,t){var n=new _y(e);return t.visit(n)}(e,t)}var py,hy,fy=function(){return function(e,t){this.stmts=e,this.currValExpr=t}}();function dy(e,t,n,r,i,o){e||(e=new by);var s=function(e){return vd("currVal_"+e)}(r),a=[],u=new wy(e,t,r,o),c=n.visit(u,hy.Expression);if(u.temporaryCount)for(var l=0;l<u.temporaryCount;l++)a.push(my(r,l));else if(i==py.TrySimple)return new fy([],c);return a.push(s.set(c).toDeclStmt(lf,[Af.Final])),new fy(a,s)}function vy(e,t){return"tmp_"+e+"_"+t}function my(e,t){return new $f(vy(e,t),Gf)}function yy(e,t){if(e!==hy.Expression)throw new Error("Expected an expression, but saw "+t)}function gy(e,t){return e===hy.Statement?t.toStmt():t}!function(e){e[e.General=0]="General",e[e.TrySimple=1]="TrySimple"}(py||(py={})),function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(hy||(hy={}));var _y=function(e){function t(t){var n=e.call(this)||this;return n._converterFactory=t,n}return i(t,e),t.prototype.visitPipe=function(e,t){var n=this,r=p([e.exp],e.args).map(function(e){return e.visit(n,t)});return new Cy(e.span,r,this._converterFactory.createPipeConverter(e.name,r.length))},t.prototype.visitLiteralArray=function(e,t){var n=this,r=e.expressions.map(function(e){return e.visit(n,t)});return new Cy(e.span,r,this._converterFactory.createLiteralArrayConverter(e.expressions.length))},t.prototype.visitLiteralMap=function(e,t){var n=this,r=e.values.map(function(e){return e.visit(n,t)});return new Cy(e.span,r,this._converterFactory.createLiteralMapConverter(e.keys))},t}(ey),wy=function(){function e(e,t,n,r){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return e.prototype.visitBinary=function(e,t){var n;switch(e.operation){case"+":n=of.Plus;break;case"-":n=of.Minus;break;case"*":n=of.Multiply;break;case"/":n=of.Divide;break;case"%":n=of.Modulo;break;case"&&":n=of.And;break;case"||":n=of.Or;break;case"==":n=of.Equals;break;case"!=":n=of.NotEquals;break;case"===":n=of.Identical;break;case"!==":n=of.NotIdentical;break;case"<":n=of.Lower;break;case">":n=of.Bigger;break;case"<=":n=of.LowerEquals;break;case">=":n=of.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return gy(t,new Vf(n,this._visit(e.left,hy.Expression),this._visit(e.right,hy.Expression)))},e.prototype.visitChain=function(e,t){return function(e,t){if(e!==hy.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return gy(t,this._visit(e.condition,hy.Expression).conditional(this._visit(e.trueExp,hy.Expression),this._visit(e.falseExp,hy.Expression)))},e.prototype.visitPipe=function(e,t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+e.name)},e.prototype.visitFunctionCall=function(e,t){var n=this.visitAll(e.args,hy.Expression);return gy(t,e instanceof Cy?e.converter(n):this._visit(e.target,hy.Expression).callFn(n))},e.prototype.visitImplicitReceiver=function(e,t){return yy(t,e),this._implicitReceiver},e.prototype.visitInterpolation=function(e,t){yy(t,e);for(var n=[Cd(e.expressions.length)],r=0;r<e.strings.length-1;r++)n.push(Cd(e.strings[r])),n.push(this._visit(e.expressions[r],hy.Expression));return n.push(Cd(e.strings[e.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):e.expressions.length<=9?md(pv.inlineInterpolate).callFn(n):md(pv.interpolate).callFn([n[0],_d(n.slice(1))])},e.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):gy(t,this._visit(e.obj,hy.Expression).key(this._visit(e.key,hy.Expression)))},e.prototype.visitKeyedWrite=function(e,t){var n=this._visit(e.obj,hy.Expression),r=this._visit(e.key,hy.Expression),i=this._visit(e.value,hy.Expression);return gy(t,n.key(r).set(i))},e.prototype.visitLiteralArray=function(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")},e.prototype.visitLiteralMap=function(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")},e.prototype.visitLiteralPrimitive=function(e,t){var n=null===e.value||void 0===e.value||!0===e.value||!0===e.value?pf:void 0;return gy(t,Cd(e.value,n))},e.prototype._getLocal=function(e){return this._localResolver.getLocal(e)},e.prototype.visitMethodCall=function(e,t){if(e.receiver instanceof km&&"$any"==e.name){if(1!=(r=this.visitAll(e.args,hy.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(lf)}var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,hy.Expression),i=null,o=this._visit(e.receiver,hy.Expression);if(o===this._implicitReceiver){var s=this._getLocal(e.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(e.name,r)),gy(t,i)},e.prototype.visitPrefixNot=function(e,t){return gy(t,(n=this._visit(e.expression,hy.Expression),new If(n,r)));var n,r},e.prototype.visitNonNullAssert=function(e,t){return gy(t,(n=this._visit(e.expression,hy.Expression),new Ff(n,r)));var n,r},e.prototype.visitPropertyRead=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=null,i=this._visit(e.receiver,hy.Expression);return i===this._implicitReceiver&&(r=this._getLocal(e.name)),null==r&&(r=i.prop(e.name)),gy(t,r)},e.prototype.visitPropertyWrite=function(e,t){var n=this._visit(e.receiver,hy.Expression),r=null;if(n===this._implicitReceiver){var i=this._getLocal(e.name);if(i){if(!(i instanceof Bf))throw new Error("Cannot assign to a reference or variable!");r=i}}return null===r&&(r=n.prop(e.name)),gy(t,r.set(this._visit(e.value,hy.Expression)))},e.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitAll=function(e,t){var n=this;return e.map(function(e){return n._visit(e,t)})},e.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+e.uninterpretedExpression+" located at "+e.location)},e.prototype._visit=function(e,t){var n=this._resultMap.get(e);return n||(this._nodeMap.get(e)||e).visit(this,t)},e.prototype.convertSafeAccess=function(e,t,n){var r=this._visit(t.receiver,hy.Expression),i=void 0;this.needsTemporary(t.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(t.receiver,i));var o=r.isBlank();t instanceof $m?this._nodeMap.set(t,new Qm(t.span,t.receiver,t.name,t.args)):this._nodeMap.set(t,new Fm(t.span,t.receiver,t.name));var s=this._visit(e,hy.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),gy(n,o.conditional(Cd(null),s))},e.prototype.leftMostSafeNode=function(e){var t=this,n=function(e,n){return(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return n(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return n(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitNonNullAssert:function(e){return null},visitPropertyRead:function(e){return n(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return n(this,e.receiver)||e},visitSafePropertyRead:function(e){return n(this,e.receiver)||e}})},e.prototype.needsTemporary=function(e){var t=this,n=function(e,n){return n&&(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return n(this,e.left)||n(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return n(this,e.condition)||n(this,e.trueExp)||n(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return function(e,t){return t.some(function(t){return n(e,t)})}(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return n(this,e.expression)},visitNonNullAssert:function(e){return n(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},e.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new wf(vy(this.bindingId,e))},e.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=vy(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},e}();var by=function(){function e(){}return e.prototype.getLocal=function(e){return e===ay.event.name?ay.event:null},e}();var Ey,Cy=function(e){function t(t,n,r){var i=e.call(this,t,null,n)||this;return i.args=n,i.converter=r,i}return i(t,e),t}(Zm);!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(Ey||(Ey={}));var xy=[Ey.OnInit,Ey.OnDestroy,Ey.DoCheck,Ey.OnChanges,Ey.AfterContentInit,Ey.AfterContentChecked,Ey.AfterViewInit,Ey.AfterViewChecked];function Sy(e,t,n){return e.hasLifecycleHook(n,function(e){switch(e){case Ey.OnInit:return"ngOnInit";case Ey.OnDestroy:return"ngOnDestroy";case Ey.DoCheck:return"ngDoCheck";case Ey.OnChanges:return"ngOnChanges";case Ey.AfterContentInit:return"ngAfterContentInit";case Ey.AfterContentChecked:return"ngAfterContentChecked";case Ey.AfterViewInit:return"ngAfterViewInit";case Ey.AfterViewChecked:return"ngAfterViewChecked";default:var t=e;throw new Error("unexpected "+t)}}(t))}var Ay=0,Ty=9,Dy=10,Py=11,Ny=12,My=13,ky=32,Oy=34,Iy=36,Fy=39,Ry=43,jy=45,Ly=47,Vy=59,By=61,Uy=62,Hy=48,qy=57,zy=65,Wy=69,Gy=70,Ky=90,Qy=95,$y=97,Zy=101,Yy=102,Xy=110,Jy=114,eg=116,tg=118,ng=122,rg=123,ig=160,og=96;function sg(e){return e>=Ty&&e<=ky||e==ig}function ag(e){return Hy<=e&&e<=qy}function ug(e){return e>=$y&&e<=ng||e>=zy&&e<=Ky}var cg,lg=function(){function e(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}return e.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},e.prototype.moveBy=function(t){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&t<0;){if(i--,t++,(u=n.charCodeAt(i))==Dy){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Dy));s=a>0?i-a:i}else s--}for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,u==Dy?(o++,s=0):s++}return new e(this.file,i,o,s)},e.prototype.getContext=function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<e&&r>0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o<e&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},e}(),pg=function(){return function(e,t){this.content=e,this.url=t}}(),hg=function(){function e(e,t,n){void 0===n&&(n=null),this.start=e,this.end=t,this.details=n}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}();!function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(cg||(cg={}));var fg=function(){function e(e,t,n){void 0===n&&(n=cg.ERROR),this.span=e,this.msg=t,this.level=n}return e.prototype.contextualMessage=function(){var e=this.span.start.getContext(100,3);return e?this.msg+' ("'+e.before+"["+cg[this.level]+" ->]"+e.after+'")':this.msg},e.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},e}();function dg(e,t){var n=bv(t),r=null!=n?"in "+e+" "+wv(t)+" in "+n:"in "+e+" "+wv(t),i=new pg("",r);return new hg(new lg(i,-1,-1,-1),new lg(i,-1,-1,-1))}var vg=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,n){void 0===n&&(n="");var r=e.match(Ig)||[];return e=function(e){return e.replace(Og,"")}(e),e=this._insertDirectives(e),p([this._scopeCssText(e,t,n)],r).join("\n")},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return e.replace(yg,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[2]+"{"})},e.prototype._insertPolyfillRulesInCssText=function(e){return e.replace(gg,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0].replace(e[1],"").replace(e[2],"");return e[4]+n})},e.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(_g.lastIndex=0;null!==(t=_g.exec(e));){n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n"}return n},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,Cg,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,xg,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,n){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[2]){for(var r=e[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Sg,s,e[3]))}return i.join(",")}return Sg+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(wg)>-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(wg,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Tg.reduce(function(e,t){return e.replace(t," ")},e)},e.prototype._scopeSelectors=function(e,t,n){var r,i,o,s=this;return r=function(e){var r=e.selector,i=e.content;return"@"!=e.selector[0]?r=s._scopeSelector(e.selector,t,n,s.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=s._scopeSelectors(e.content,t,n)),new Bg(r,i)},i=function(e){for(var t=e.split(Rg),n=[],r=[],i=0,o=[],s=0;s<t.length;s++){var a=t[s];a==Lg&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Vg),o=[]),n.push(a)),a==jg&&i++}o.length>0&&(r.push(o.join("")),n.push(Vg));return new Ug(n.join(""),r)}(e),o=0,i.escapedString.replace(Fg,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[2],s="",a=e[4],u="";a&&a.startsWith("{"+Vg)&&(s=i.blocks[o++],a=a.substring(Vg.length+1),u="{");var c=r(new Bg(n,s));return""+e[1]+c.selector+e[3]+u+c.content+a})},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map(function(e){return e.trim().split(Dg)}).map(function(e){var o=l(e),s=o[0],a=o.slice(1);return p([function(e){return i._selectorNeedsScoping(e,t)?r?i._applyStrictSelectorScope(e,t,n):i._applySelectorScope(e,t,n):e}(s)],a).join(" ")}).join(", ")},e.prototype._selectorNeedsScoping=function(e,t){return!this._makeScopeMatcher(t).test(e)},e.prototype._makeScopeMatcher=function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Pg,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(Ng.lastIndex=0,Ng.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(Ag,function(e,t){return t.replace(/([^:]*)(:*)(.*)/,function(e,t,n,i){return t+r+n+i})}).replace(Ng,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,o="["+(t=t.replace(/\[is=([^\]]*)\]/g,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]}))+"]",s=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(Sg)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(Ng,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new mg(e),u="",c=0,l=/( |>|\+|~(?!=))\s*/g,p=!((e=a.content()).indexOf(Sg)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(c,r.index).trim();u+=((p=p||f.indexOf(Sg)>-1)?s(f):f)+" "+h+" ",c=l.lastIndex}var d=e.substring(c);return u+=(p=p||d.indexOf(Sg)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(kg,bg).replace(Mg,wg)},e}(),mg=function(){function e(e){var t=this;this.placeholders=[],this.index=0,e=e.replace(/(\[[^\]]*\])/g,function(e,n){var r="__ph-"+t.index+"__";return t.placeholders.push(n),t.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(e,n,r){var i="__ph-"+t.index+"__";return t.placeholders.push(r),t.index++,n+i})}return e.prototype.restore=function(e){var t=this;return e.replace(/__ph-(\d+)__/g,function(e,n){return t.placeholders[+n]})},e.prototype.content=function(){return this._content},e}(),yg=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,gg=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,_g=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,wg="-shadowcsshost",bg="-shadowcsscontext",Eg=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Cg=new RegExp("("+wg+Eg,"gim"),xg=new RegExp("("+bg+Eg,"gim"),Sg=wg+"-no-combinator",Ag=/-shadowcsshost-no-combinator([^\s]*)/,Tg=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Dg=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Pg="([>\\s~+[.,{:][\\s\\S]*)?$",Ng=/-shadowcsshost/gim,Mg=/:host/gim,kg=/:host-context/gim,Og=/\/\*\s*[\s\S]*?\*\//g;var Ig=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var Fg=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Rg=/([{}])/g,jg="{",Lg="}",Vg="%BLOCK%",Bg=function(){return function(e,t){this.selector=e,this.content=t}}();var Ug=function(){return function(e,t){this.escapedString=e,this.blocks=t}}();var Hg,qg="_nghost-%COMP%",zg="_ngcontent-%COMP%",Wg=function(){return function(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n}}(),Gg=function(){return function(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),Kg=function(){function e(e){this._urlResolver=e,this._shadowCss=new vg}return e.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new Tv({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:bv(t.type)}),this.needsStyleShim(t),!0)},e.prototype.compileStyles=function(e,t,n,r){return void 0===r&&(r=this.needsStyleShim(t)),this._compileStyles(e,t,n,r,!1)},e.prototype.needsStyleShim=function(e){return e.template.encapsulation===wh.Emulated},e.prototype._compileStyles=function(e,t,n,r,i){var o=this,s=n.styles.map(function(e){return Cd(o._shimIfNeeded(e,r))}),a=[];n.styleUrls.forEach(function(t){var n=s.length;s.push(null),a.push(new Wg(Qg(null),t,function(t){return s[n]=e.importExpr(t)}))});var u=Qg(i?t:null),c=vd(u).set(_d(s,new uf(lf,[tf.Const]))).toDeclStmt(null,i?[Af.Final]:[Af.Final,Af.Exported]);return e.statements.push(c),new Gg(e,u,a,r,n)},e.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,zg,qg):e},e}();function Qg(e){var t="styles";return e&&(t+="_"+wv(e.type)),t}!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(Hg||(Hg={}));var $g=["var","let","as","null","undefined","true","false","if","else","this"],Zg=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new t_(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),Yg=function(){function e(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return e.prototype.isCharacter=function(e){return this.type==Hg.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==Hg.Number},e.prototype.isString=function(){return this.type==Hg.String},e.prototype.isOperator=function(e){return this.type==Hg.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==Hg.Identifier},e.prototype.isKeyword=function(){return this.type==Hg.Keyword},e.prototype.isKeywordLet=function(){return this.type==Hg.Keyword&&"let"==this.strValue},e.prototype.isKeywordAs=function(){return this.type==Hg.Keyword&&"as"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==Hg.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==Hg.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==Hg.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==Hg.Keyword&&"false"==this.strValue},e.prototype.isKeywordThis=function(){return this.type==Hg.Keyword&&"this"==this.strValue},e.prototype.isError=function(){return this.type==Hg.Error},e.prototype.toNumber=function(){return this.type==Hg.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case Hg.Character:case Hg.Identifier:case Hg.Keyword:case Hg.Operator:case Hg.String:case Hg.Error:return this.strValue;case Hg.Number:return this.numValue.toString();default:return null}},e}();function Xg(e,t){return new Yg(e,Hg.Character,t,String.fromCharCode(t))}function Jg(e,t){return new Yg(e,Hg.Operator,0,t)}var e_=new Yg(-1,Hg.Character,0,""),t_=function(){function e(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return e.prototype.advance=function(){this.peek=++this.index>=this.length?Ay:this.input.charCodeAt(this.index)},e.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=ky;){if(++r>=t){n=Ay;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(n_(n))return this.scanIdentifier();if(ag(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),ag(this.peek)?this.scanNumber(i):Xg(i,46);case 40:case 41:case rg:case 125:case 91:case 93:case 44:case 58:case Vy:return this.scanCharacter(i,n);case Fy:case Oy:return this.scanString();case 35:case Ry:case jy:case 42:case Ly:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Uy:return this.scanComplexOperator(i,String.fromCharCode(n),By,"=");case 33:case By:return this.scanComplexOperator(i,String.fromCharCode(n),By,"=",By,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case ig:for(;sg(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},e.prototype.scanCharacter=function(e,t){return this.advance(),Xg(e,t)},e.prototype.scanOperator=function(e,t){return this.advance(),Jg(e,t)},e.prototype.scanComplexOperator=function(e,t,n,r,i,o){this.advance();var s=t;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Jg(e,s)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();r_(this.peek);)this.advance();var t,n=this.input.substring(e,this.index);return $g.indexOf(n)>-1?(t=n,new Yg(e,Hg.Keyword,0,t)):function(e,t){return new Yg(e,Hg.Identifier,0,t)}(e,n)},e.prototype.scanNumber=function(e){var t,n=this.index===e;for(this.advance();;){if(ag(this.peek));else if(46==this.peek)n=!1;else{if((t=this.peek)!=Zy&&t!=Wy)break;if(this.advance(),i_(this.peek)&&this.advance(),!ag(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r,i=this.input.substring(e,this.index),o=n?function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(i):parseFloat(i);return r=o,new Yg(e,Hg.Number,r,"")},e.prototype.scanString=function(){var e=this.index,t=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=t;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=o_(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Ay)return this.error("Unterminated quote",0);this.advance()}var u,c=i.substring(r,this.index);return this.advance(),u=n+c,new Yg(e,Hg.String,0,u)},e.prototype.error=function(e,t){var n=this.index+t;return function(e,t){return new Yg(e,Hg.Error,0,t)}(n,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}();function n_(e){return $y<=e&&e<=ng||zy<=e&&e<=Ky||e==Qy||e==Iy}function r_(e){return ug(e)||ag(e)||e==Qy||e==Iy}function i_(e){return e==jy||e==Ry}function o_(e){switch(e){case Xy:return Dy;case Yy:return Ny;case Jy:return My;case eg:return Ty;case tg:return Py;default:return e}}function s_(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '"+e+"' to be an array of strings.")}}var a_=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function u_(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '"+e+"' to be an array, [start, end].");if(null!=t){var n=t[0],r=t[1];a_.forEach(function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}var c_=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(u_("interpolation",t),new e(t[0],t[1])):l_},e}(),l_=new c_("{{","}}"),p_=function(){return function(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}(),h_=function(){return function(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}();function f_(e){var t=Qd(e.start)+"([\\s\\S]*?)"+Qd(e.end);return new RegExp(t,"g")}var d_=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=l_),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new v_(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new Ym(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=l_);var r=this._parseBindingAst(e,t,n);return new Ym(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=l_);var r=this._parseBindingAst(e,t,n),i=m_.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new Ym(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new Tm(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n){var r=this._parseQuote(e,t);if(null!=r)return r;this._checkNoInterpolation(e,t,n);var i=this._stripComments(e),o=this._lexer.tokenize(i);return new v_(e,t,o,i.length,!1,this.errors,e.length-i.length).parseChain()},e.prototype._parseQuote=function(e,t){if(null==e)return null;var n=e.indexOf(":");if(-1==n)return null;var r=e.substring(0,n).trim();if(!function(e){if(0==e.length)return!1;var t=new t_(e);if(!n_(t.peek))return!1;for(t.advance();t.peek!==Ay;){if(!r_(t.peek))return!1;t.advance()}return!0}(r))return null;var i=e.substring(n+1);return new Nm(new Dm(0,e.length),r,i,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);return new v_(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=l_);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),c=new v_(e,t,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new Ym(new zm(new Dm(0,null==e?0:e.length),r.strings,i),e,t,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=l_);var r=f_(n),i=e.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",t),s.push("$implict"),a.push(u))}return new p_(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t){return new Ym(new Um(new Dm(0,null==e?0:e.length),e),e,t,this.errors)},e.prototype._stripComments=function(e){var t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e},e.prototype._commentStart=function(e){for(var t,n=null,r=0;r<e.length-1;r++){var i=e.charCodeAt(r),o=e.charCodeAt(r+1);if(i===Ly&&o==Ly&&null==n)return r;n===i?n=null:null==n&&((t=i)===Fy||t===Oy||t===og)&&(n=i)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=f_(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i<t;i++)r+=i%2==0?e[i]:""+n.start+e[i]+n.end;return r.length},e}(),v_=function(){function e(e,t,n,r,i,o,s){this.input=e,this.location=t,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return e.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:e_},Object.defineProperty(e.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),e.prototype.span=function(e){return new Dm(e,this.inputIndex)},e.prototype.advance=function(){this.index++},e.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},e.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},e.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},e.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},e.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},e.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},e.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},e.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},e.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(e.push(n),this.optionalCharacter(Vy))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Vy););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new Mm(this.span(t)):1==e.length?e[0]:new Om(this.span(t),e)},e.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());e=new Bm(this.span(e.span.start),e,t,n)}while(this.optionalOperator("|"))}return e},e.prototype.parseExpression=function(){return this.parseConditional()},e.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(e,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Mm(this.span(e))}return new Im(this.span(e),t,n,r)}return t},e.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd();e=new Wm(this.span(e.span.start),"||",e,t)}return e},e.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality();e=new Wm(this.span(e.span.start),"&&",e,t)}return e},e.prototype.parseEquality=function(){for(var e=this.parseRelational();this.next.type==Hg.Operator;){var t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();e=new Wm(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseRelational=function(){for(var e=this.parseAdditive();this.next.type==Hg.Operator;){var t=this.next.strValue;switch(t){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();e=new Wm(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==Hg.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var n=this.parseMultiplicative();e=new Wm(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==Hg.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();e=new Wm(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parsePrefix=function(){if(this.next.type==Hg.Operator){var e=this.inputIndex,t=this.next.strValue,n=void 0;switch(t){case"+":return this.advance(),n=this.parsePrefix(),new Wm(this.span(e),"-",n,new Um(new Dm(e,e),0));case"-":return this.advance(),n=this.parsePrefix(),new Wm(this.span(e),t,new Um(new Dm(e,e),0),n);case"!":return this.advance(),n=this.parsePrefix(),new Gm(this.span(e),n)}}return this.parseCallChain()},e.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();e=new Vm(this.span(e.span.start),e,t,n)}else e=new Lm(this.span(e.span.start),e,t)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new Zm(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new Km(this.span(e.span.start),e)}},e.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new Um(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Um(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Um(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Um(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new km(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Hm(this.span(e),n)}if(this.next.isCharacter(rg))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new km(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Um(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Um(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Mm(this.span(e))):(this.error("Unexpected token "+this.next),new Mm(this.span(e)))},e.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},e.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(rg),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();e.push({key:i,quoted:r}),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new qm(this.span(n),e,t)},e.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return t?new $m(o,e,r,i):new Qm(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Mm(this.span(n))):new jm(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Mm(this.span(n));var s=this.parseConditional();return new Rm(this.span(n),e,r,s)}return new Fm(this.span(n),e,r)},e.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},e.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.optionalOperator("-"))&&(e+="-")}while(t);return e.toString()},e.prototype.parseTemplateBindings=function(e){var t=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;t?(i=o=e,t=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));var a=null,u=null;if(s)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),a=i,o=this.expectTemplateBindingKey(),s=!0;else if(this.next!==e_&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new Ym(l,p,this.location,this.errors)}if(n.push(new Xm(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new Xm(this.span(h),f,!0,o,null))}this.optionalCharacter(Vy)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new h_(n,[],this.errors)},e.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new Tm(e,this.input,this.locationText(t),this.location)),this.skip()},e.prototype.locationText=function(e){return void 0===e&&(e=null),null==e&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},e.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(Vy)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new Tm(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},e}(),m_=function(){function e(){this.errors=[]}return e.check=function(t){var n=new e;return t.visit(n),n.errors},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},e.prototype.visitBinary=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitPipe=function(e,t){this.errors.push("pipes")},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitAll=function(e){var t=this;return e.map(function(e){return e.visit(t)})},e.prototype.visitChain=function(e,t){},e.prototype.visitQuote=function(e,t){},e}(),y_=(function(){function e(e,t){void 0===t&&(t=-1),this.path=e,this.position=t}Object.defineProperty(e.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e.prototype.parentOf=function(e){return e&&this.path[this.path.indexOf(e)-1]},e.prototype.childOf=function(e){return this.path[this.path.indexOf(e)+1]},e.prototype.first=function(e){for(var t=this.path.length-1;t>=0;t--){var n=this.path[t];if(n instanceof e)return n}},e.prototype.push=function(e){this.path.push(e)},e.prototype.pop=function(){return this.path.pop()}}(),function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}()),g_=function(){function e(e,t,n,r,i){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),__=function(){function e(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},e}(),w_=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),b_=function(){function e(e,t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),E_=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},e}();function C_(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}var x_;!function(){function e(){}e.prototype.visitElement=function(e,t){this.visitChildren(t,function(t){t(e.attrs),t(e.children)})},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){return this.visitChildren(t,function(t){t(e.cases)})},e.prototype.visitExpansionCase=function(e,t){},e.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function(t){t&&n.push(C_(r,t,e))}),[].concat.apply([],n)}}();!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF"}(x_||(x_={}));var S_=function(){return function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n}}(),A_=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return i(t,e),t}(fg),T_=function(){return function(e,t){this.tokens=e,this.errors=t}}();var D_=/\r\n?/g;function P_(e){return'Unexpected character "'+(e===Ay?"EOF":String.fromCharCode(e))+'"'}function N_(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}var M_=function(){return function(e){this.error=e}}(),k_=function(){function e(e,t,n,r){void 0===r&&(r=l_),this._file=e,this._getTagDefinition=t,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=e.content,this._length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return e.replace(D_,"\n")},e.prototype.tokenize=function(){for(;this._peek!==Ay;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(jy)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Ly)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof M_))throw t;this.errors.push(t.error)}}return this._beginToken(x_.EOF),this._endToken([]),new T_(function(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==x_.TEXT&&i.type==x_.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if(j_(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(((e=this._peek)===By||ug(e)||ag(e))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var e;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._getLocation=function(){return new lg(this._file,this._index,this._line,this._column)},e.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new hg(e,t)},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){void 0===t&&(t=this._getLocation());var n=new S_(this._currentTokenType,e,new hg(this._currentTokenStart,t));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},e.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new A_(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new M_(n)},e.prototype._advance=function(){if(this._index>=this._length)throw this._createError(P_(Ay),this._getSpan());this._peek===Dy?(this._line++,this._column=0):this._peek!==Dy&&this._peek!==My&&this._column++,this._index++,this._peek=this._index>=this._length?Ay:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ay:this._input.charCodeAt(this._index+1)},e.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},e.prototype._attemptCharCodeCaseInsensitive=function(e){return t=this._peek,n=e,L_(t)==L_(n)&&(this._advance(),!0);var t,n},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(P_(this._peek),this._getSpan(t,t))},e.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(n),!1;return!0},e.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},e.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(P_(this._peek),this._getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(P_(this._peek),this._getSpan(n,n))},e.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},e.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},e.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(R_),this._peek!=Vy)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=dh[n];if(!r)throw this._createError(N_(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(F_),this._peek!=Vy)throw this._createError(P_(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(c){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(N_(u),this._getSpan(e))}},e.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?x_.ESCAPABLE_RAW_TEXT:x_.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(t)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(x_.COMMENT_START,e),this._requireCharCode(jy),this._endToken([]);var n=this._consumeRawText(!1,jy,function(){return t._attemptStr("->")});this._beginToken(x_.COMMENT_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(x_.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(x_.CDATA_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(x_.DOC_TYPE,e),this._attemptUntilChar(Uy),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},e.prototype._consumePrefixAndName=function(){for(var e,t,n=this._index,r=null;58!==this._peek&&!(((e=this._peek)<$y||ng<e)&&(e<zy||Ky<e)&&(e<Hy||e>qy));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(I_,this._index===t?1:0),[r,this._input.substring(t,this._index)]},e.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!ug(this._peek))throw this._createError(P_(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(e),n=(t=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(O_);this._peek!==Ly&&this._peek!==Uy;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(O_),this._attemptCharCode(By)&&(this._attemptCharCodeUntilFn(O_),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(O_);this._consumeTagOpenEnd()}catch(s){if(s instanceof M_)return this._restorePosition(r),this._beginToken(x_.TEXT,e),void this._endToken(["<"]);throw s}var o=this._getTagDefinition(t).contentType;o===sh.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===sh.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(Ly)&&(n._attemptCharCodeUntilFn(O_),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(O_),n._attemptCharCode(Uy)))});this._beginToken(x_.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(x_.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(x_.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(x_.ATTR_VALUE),this._peek===Fy||this._peek===Oy){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(I_,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(Ly)?x_.TAG_OPEN_END_VOID:x_.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Uy),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(x_.TAG_CLOSE,e),this._attemptCharCodeUntilFn(O_);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(O_),this._requireCharCode(Uy),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(x_.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(rg),this._endToken([]),this._expansionCaseStack.push(x_.EXPANSION_FORM_START),this._beginToken(x_.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(O_),this._beginToken(x_.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(O_)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(x_.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(rg).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(O_),this._beginToken(x_.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(rg),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(O_),this._expansionCaseStack.push(x_.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(x_.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(O_),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(x_.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(x_.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},e.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ay)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(j_(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},e.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},e.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},e.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},e.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===x_.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===x_.EXPANSION_FORM_START},e}();function O_(e){return!sg(e)||e===Ay}function I_(e){return sg(e)||e===Uy||e===Ly||e===Fy||e===Oy||e===By}function F_(e){return e==Vy||e==Ay||!function(e){return e>=$y&&e<=Yy||e>=zy&&e<=Gy||ag(e)}(e)}function R_(e){return e==Vy||e==Ay||!ug(e)}function j_(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==rg&&!r}function L_(e){return e>=$y&&e<=ng?e-$y+zy:e}var V_=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return i(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(fg),B_=function(){return function(e,t){this.rootNodes=e,this.errors=t}}(),U_=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=l_);var i=function(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=l_),new k_(new pg(e,t),n,r,i).tokenize()}(e,t,this.getTagDefinition,n,r),o=new H_(i.tokens,this.getTagDefinition).build();return new B_(o.rootNodes,i.errors.concat(o.errors))},e}(),H_=function(){function e(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return e.prototype.build=function(){for(;this._peek.type!==x_.EOF;)this._peek.type===x_.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===x_.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===x_.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===x_.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===x_.TEXT||this._peek.type===x_.RAW_TEXT||this._peek.type===x_.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===x_.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new B_(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},e.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(x_.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(x_.RAW_TEXT);this._advanceIf(x_.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new E_(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===x_.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===x_.EXPANSION_FORM_END){var o=new hg(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new g_(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(V_.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==x_.EXPANSION_CASE_EXP_START)return this._errors.push(V_.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new S_(x_.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new hg(t.sourceSpan.start,i.sourceSpan.end),a=new hg(n.sourceSpan.start,i.sourceSpan.end);return new __(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[x_.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==x_.EXPANSION_FORM_START&&this._peek.type!==x_.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===x_.EXPANSION_CASE_EXP_END){if(!q_(n,x_.EXPANSION_CASE_EXP_START))return this._errors.push(V_.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===x_.EXPANSION_FORM_END){if(!q_(n,x_.EXPANSION_FORM_START))return this._errors.push(V_.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===x_.EOF)return this._errors.push(V_.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new y_(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],n=e.parts[1],r=[];this._peek.type===x_.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===x_.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==hh(i)||s.isVoid||this._errors.push(V_.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===x_.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new hg(e.sourceSpan.start,a),c=new b_(i,r,[],u,u,void 0);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop();var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new b_(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid)this._errors.push(V_.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"'));else if(!this._popElement(t)){var n='Unexpected closing tag "'+t+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(V_.create(t,e.sourceSpan,n))}},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=fh(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===x_.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new w_(t,r,new hg(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!ch(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return null==e&&null==(e=this.getTagDefinition(t).implicitNamespacePrefix)&&null!=n&&(e=hh(n.name)),fh(e,t)},e}();function q_(e,t){return e.length>0&&e[e.length-1]===t}var z_=function(e){function t(){return e.call(this,_h)||this}return i(t,e),t.prototype.parse=function(t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=l_),e.prototype.parse.call(this,t,n,r,i)},t}(U_),W_="ngPreserveWhitespaces",G_=new Set(["pre","template","textarea","script","style"]),K_=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",Q_=new RegExp("[^"+K_+"]"),$_=new RegExp("["+K_+"]{2,}","g");function Z_(e){return e.replace(new RegExp(vh,"g")," ")}var Y_,X_=function(){function e(){}return e.prototype.visitElement=function(e,t){return G_.has(e.name)||e.attrs.some(function(e){return e.name===W_})?new b_(e.name,C_(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan):new b_(e.name,e.attrs,C_(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return e.name!==W_?e:null},e.prototype.visitText=function(e,t){return e.value.match(Q_)?new y_(Z_(e.value).replace($_," "),e.sourceSpan):null},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}();function J_(e){return new B_(C_(new X_,e.rootNodes),e.errors)}function ew(){return Y_||(Y_={},tw(Fh.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),tw(Fh.STYLE,["*|style"]),tw(Fh.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),tw(Fh.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Y_}function tw(e,t){var n,r;try{for(var i=c(t),o=i.next();!o.done;o=i.next()){var s=o.value;Y_[s.toLowerCase()]=e}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}var nw=function(){return function(){}}(),rw="boolean",iw="number",ow="string",sw="object",aw=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],uw={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},cw=function(e){function t(){var t=e.call(this)||this;return t._schema={},aw.forEach(function(e){var n={},r=l(e.split("|"),2),i=r[0],o=r[1].split(","),s=l(i.split("^"),2),a=s[0],u=s[1];a.split(",").forEach(function(e){return t._schema[e.toLowerCase()]=n});var c=u&&t._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(e){n[e]=c[e]}),o.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=rw;break;case"#":n[e.substring(1)]=iw;break;case"%":n[e.substring(1)]=sw;break;default:n[e]=ow}})}),t}return i(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return e.name===Gh.name}))return!0;if(e.indexOf("-")>-1){if(ch(e)||lh(e))return!1;if(n.some(function(e){return e.name===Wh.name}))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]},t.prototype.hasElement=function(e,t){if(t.some(function(e){return e.name===Gh.name}))return!0;if(e.indexOf("-")>-1){if(ch(e)||lh(e))return!0;if(t.some(function(e){return e.name===Wh.name}))return!0}return!!this._schema[e.toLowerCase()]},t.prototype.securityContext=function(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();var r=ew()[e+"|"+t];return r||((r=ew()["*|"+t])||Fh.NONE)},t.prototype.getMappedPropName=function(e){return uw[e]||e},t.prototype.getDefaultComponentElementName=function(){return"ng-component"},t.prototype.validateProperty=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=...\nIf '"+e+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},t.prototype.validateAttribute=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=..."}:{error:!1}},t.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},t.prototype.normalizeAnimationStyleProperty=function(e){return e.replace(Id,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})},t.prototype.normalizeAnimationStyleValue=function(e,t,n){var r="",i=n.toString().trim(),o=null;if(function(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+t+":"+n)}return{error:o,value:i+r}},t}(nw);var lw=function(){function e(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(e){return o.set(e.name,e)}),this.pipesByName=o}}return e.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},e.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.createDirectiveHostPropertyAsts=function(e,t,n){var r=this,i=this.createBoundHostProperties(e,n);return i&&i.map(function(e){return r.createBoundElementProperty(t,e)})},e.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var s=this._parseTemplateBindings(e,t,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new oy(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},e.prototype._parseTemplateBindings=function(e,t,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(e,t,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(e){e.expression&&r._checkPipes(e.expression,n)}),o.warnings.forEach(function(e){r._reportError(e,n,cg.WARNING)}),o.templateBindings}catch(s){return this._reportError(""+s,n),[]}},e.prototype.parseLiteralAttr=function(e,t,n,r,i){hw(e)?(e=e.substring(1),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,cg.ERROR),this._parseAnimation(e,t,n,r,i)):i.push(new ry(e,this._exprParser.wrapLiteralPrimitive(t,""),ny.LITERAL_ATTR,n))},e.prototype.parsePropertyBinding=function(e,t,n,r,i,o){var s=!1;e.startsWith("animate-")?(s=!0,e=e.substring("animate-".length)):hw(e)&&(s=!0,e=e.substring(1)),s?this._parseAnimation(e,t,r,i,o):this._parsePropertyAst(e,this._parseBinding(t,n,r),r,i,o)},e.prototype.parsePropertyInterpolation=function(e,t,n,r,i){var o=this.parseInterpolation(t,n);return!!o&&(this._parsePropertyAst(e,o,n,r,i),!0)},e.prototype._parsePropertyAst=function(e,t,n,r,i){r.push([e,t.source]),i.push(new ry(e,t,ny.DEFAULT,n))},e.prototype._parseAnimation=function(e,t,n,r,i){var o=this._parseBinding(t||"undefined",!1,n);r.push([e,o.source]),i.push(new ry(e,o,ny.ANIMATION,n))},e.prototype._parseBinding=function(e,t,n){var r=(n&&n.start||"(unknown)").toString();try{var i=t?this._exprParser.parseSimpleBinding(e,r,this._interpolationConfig):this._exprParser.parseBinding(e,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(o){return this._reportError(""+o,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},e.prototype.createBoundElementProperty=function(e,t){if(t.isAnimation)return new sy(t.name,4,Fh.NONE,t.expression,null,t.sourceSpan);var n=null,r=void 0,i=null,o=t.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,t.sourceSpan,!0),s=fw(this._schemaRegistry,e,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),c=i.substring(a+1);i=fh(u,c)}r=1}else"class"==o[0]?(i=o[1],r=2,s=[Fh.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=3,s=[Fh.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(t.name),s=fw(this._schemaRegistry,e,i,!1),r=0,this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)),new sy(i,r,s[0],t.expression,n,t.sourceSpan)},e.prototype.parseEvent=function(e,t,n,r,i){hw(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,i)):this._parseRegularEvent(e,t,n,r,i)},e.prototype._parseAnimationEvent=function(e,t,n,r){var i=Rd(e,".",[e,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(t,n);r.push(new iy(o,s,1,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},e.prototype._parseRegularEvent=function(e,t,n,r,i){var o=l(Fd(e,[null,e]),2),s=o[0],a=o[1],u=this._parseAction(t,n);r.push([e,u.source]),i.push(new iy(a,s,0,u,n))},e.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof Mm?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,t),r)}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype._reportError=function(e,t,n){void 0===n&&(n=cg.ERROR),this.errors.push(new fg(t,e,n))},e.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var i=c(e),o=i.next();!o.done;o=i.next()){var s=o.value;this._reportError(s.message,t)}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new pw;e.visit(r),r.pipes.forEach(function(e,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new hg(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}},e.prototype._validatePropertyOrAttributeName=function(e,t,n){var r=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,cg.ERROR)},e}(),pw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return i(t,e),t.prototype.visitPipe=function(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null},t}(Jm);function hw(e){return"@"==e[0]}function fw(e,t,n,r){var i=[];return Ch.parse(t).forEach(function(t){var o=t.element?[t.element]:e.allKnownElementNames(),s=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),a=o.filter(function(e){return!s.has(e)});i.push.apply(i,p(a.map(function(t){return e.securityContext(t,n,r)})))}),0===i.length?[Fh.NONE]:Array.from(new Set(i)).sort()}var dw=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),vw=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitBoundText(this)},e}(),mw=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e){return e.visitTextAttribute(this)},e}(),yw=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return e.fromBoundElementProperty=function(t){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),gw=function(){function e(e,t,n,r,i){this.name=e,this.handler=t,this.target=n,this.phase=r,this.sourceSpan=i}return e.fromParsedEvent=function(t){var n=0===t.type?t.targetOrPhase:null,r=1===t.type?t.targetOrPhase:null;return new e(t.name,t.handler,n,r,t.sourceSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),_w=function(){function e(e,t,n,r,i,o,s,a,u){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=s,this.startSourceSpan=a,this.endSourceSpan=u}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),ww=function(){function e(e,t,n,r,i,o,s,a,u){this.attributes=e,this.inputs=t,this.outputs=n,this.children=r,this.references=i,this.variables=o,this.sourceSpan=s,this.startSourceSpan=a,this.endSourceSpan=u}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),bw=function(){function e(e,t,n){this.selectorIndex=e,this.attributes=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitContent(this)},e}(),Ew=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),Cw=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitReference(this)},e}();function xw(e,t){var n,r,i,o,s=[];if(e.visit)try{for(var a=c(t),u=a.next();!u.done;u=a.next())var l=u.value,p=e.visit(l)||l.visit(e)}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}else try{for(var h=c(t),f=h.next();!f.done;f=h.next()){(p=(l=f.value).visit(e))&&s.push(p)}}catch(v){i={error:v}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return s}var Sw=function(){return function(e,t){this.style=e,this.styleUrls=t}}();function Aw(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Nw);return null===t||"package"==t[1]||"asset"==t[1]}var Tw,Dw=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Pw=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Nw=/^([^:\/?#]+):/,Mw="select",kw="link",Ow="rel",Iw="href",Fw="stylesheet",Rw="style",jw="script",Lw="ngNonBindable",Vw="ngProjectAs";function Bw(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==Mw?t=e.value:s==Iw?n=e.value:s==Ow?r=e.value:e.name==Lw?i=!0:e.name==Vw&&e.value.length>0&&(o=e.value)}),t=function(e){if(null===e||0===e.length)return"*";return e}(t);var s=e.name.toLowerCase(),a=Tw.OTHER;return lh(s)?a=Tw.NG_CONTENT:s==Rw?a=Tw.STYLE:s==jw?a=Tw.SCRIPT:s==kw&&r==Fw&&(a=Tw.STYLESHEET),new Uw(a,t,n,i,o)}!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Tw||(Tw={}));var Uw=function(){return function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}();var Hw=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function qw(e,t){var n=new zw(t),r=C_(n,e),i=t.errors.concat(n.errors),o=i.filter(function(e){return e.level===cg.ERROR});if(o.length>0)throw Wd("Template parse errors:\n"+o.join("\n"),o);return{nodes:r,errors:i,ngContentSelectors:n.ngContentSelectors,hasNgContent:n.hasNgContent}}var zw=function(){function e(e){this.bindingParser=e,this.errors=[],this.ngContentSelectors=[],this.hasNgContent=!1}return e.prototype.visitElement=function(e){var t,n,r=this,i=Bw(e);if(i.type===Tw.SCRIPT||i.type===Tw.STYLE)return null;if(i.type===Tw.STYLESHEET&&Aw(i.hrefAttr))return null;var o=ph(e.name),s=[],a=[],u=[],l=[],h=[],f=[],d=[],v=!1;try{for(var m=c(e.attrs),y=m.next();!y.done;y=m.next()){var g=y.value,_=!1,w=Gw(g.name),b=!1;if(w.startsWith("*")){v&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",g.sourceSpan),b=!0,v=!0;var E=g.value,C=w.substring("*".length),x=[];this.bindingParser.parseInlineTemplateBinding(C,E,g.sourceSpan,[],f,x),d.push.apply(d,p(x.map(function(e){return new Ew(e.name,e.value,e.sourceSpan)})))}else _=this.parseAttribute(o,g,[],s,a,u,l);_||b||h.push(this.visitAttribute(g))}}catch(M){t={error:M}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}var S,A=C_(i.nonBindable?Ww:this,e.children);if(i.type===Tw.NG_CONTENT){this.hasNgContent=!0,e.children&&!e.children.every(Qw)&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var T=i.selectAttr,D=e.attrs.map(function(e){return r.visitAttribute(e)}),P="*"===T?0:this.ngContentSelectors.push(T);S=new bw(P,D,e.sourceSpan)}else if(o){var N=this.extractAttributes(e.name,s);S=new ww(h,N.bound,a,A,l,u,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}else{N=this.extractAttributes(e.name,s);S=new _w(e.name,h,N.bound,a,A,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}if(v){N=this.extractAttributes("ng-template",f);S=new ww(N.literal,N.bound,[],[S],[],d,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return S},e.prototype.visitAttribute=function(e){return new mw(e.name,e.value,e.sourceSpan,e.valueSpan)},e.prototype.visitText=function(e){var t=Z_(e.value),n=this.bindingParser.parseInterpolation(t,e.sourceSpan);return n?new vw(n,e.sourceSpan):new dw(t,e.sourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e.prototype.extractAttributes=function(e,t){var n=this,r=[],i=[];return t.forEach(function(t){if(t.isLiteral)i.push(new mw(t.name,t.expression.source||"",t.sourceSpan));else{var o=n.bindingParser.createBoundElementProperty(e,t);r.push(yw.fromBoundElementProperty(o))}}),{bound:r,literal:i}},e.prototype.parseAttribute=function(e,t,n,r,i,o,s){var a=Gw(t.name),u=t.value,c=t.sourceSpan,l=a.match(Hw),p=!1;if(l){if(p=!0,null!=l[1])this.bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(e){var h=l[7];this.parseVariable(h,u,c,o)}else this.reportError('"let-" is only supported on ng-template elements.',c);else if(l[3]){h=l[7];this.parseReference(h,u,c,s)}else if(l[4]){var f=[];this.bindingParser.parseEvent(l[7],u,c,n,f),Kw(f,i)}else if(l[5])this.bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this.parseAssignmentEvent(l[7],u,c,n,i);else if(l[6])this.bindingParser.parseLiteralAttr(a,u,c,n,r);else if(l[8])this.bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this.parseAssignmentEvent(l[8],u,c,n,i);else if(l[9])this.bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r);else if(l[10]){f=[];this.bindingParser.parseEvent(l[10],u,c,n,f),Kw(f,i)}}else p=this.bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p},e.prototype.parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in variable names',n),r.push(new Ew(e,t,n))},e.prototype.parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in reference names',n),r.push(new Cw(e,t,n))},e.prototype.parseAssignmentEvent=function(e,t,n,r,i){var o=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r,o),Kw(o,i)},e.prototype.reportError=function(e,t,n){void 0===n&&(n=cg.ERROR),this.errors.push(new fg(t,e,n))},e}(),Ww=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=Bw(e);if(t.type===Tw.SCRIPT||t.type===Tw.STYLE||t.type===Tw.STYLESHEET)return null;var n=C_(this,e.children,null);return new _w(e.name,C_(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new mw(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e){return new dw(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function Gw(e){return/^data-/i.test(e)?e.substring(5):e}function Kw(e,t){t.push.apply(t,p(e.map(function(e){return gw.fromParsedEvent(e)})))}function Qw(e){return e instanceof y_&&0==e.value.trim().length}function $w(e){var t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){var n=e.substring(1,e.length-1);-1==n.indexOf("'")&&-1==n.indexOf('"')&&(e=n)}return e}function Zw(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}function Yw(e,t){return Ed(vd(Hv).bitwiseAnd(Cd(e),null,!1),t)}var Xw=function(){function e(e,t,n,r,i,o,s,a,u,c,l,p,h,f){void 0===n&&(n=0);var d=this;this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=o,this.templateName=s,this.viewQueries=a,this.directiveMatcher=u,this.directives=c,this.pipeTypeByName=l,this.pipes=p,this._namespace=h,this.relativeContextFilePath=f,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=zv,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this.visitReference=Wv,this.visitVariable=Wv,this.visitTextAttribute=Wv,this.visitBoundAttribute=Wv,this.visitBoundEvent=Wv,this._dataIndex=a.length,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=f.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Jw(e,function(){return d.allocateDataSlot()},function(e){return d.allocatePureFunctionSlots(e)},function(e,t,n,r){var i=l.get(e);i&&d.pipes.add(i),d._bindingScope.set(d.level,t,r),d.creationInstruction(null,Vv.pipe,[Cd(n),Cd(e)])})}return e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=vd(e.name+t);this._bindingScope.set(n,e.name,r,1,function(t,i){var o;if(t.bindingLevel===n)o=vd(Uv);else{var s=t.getSharedContextName(n);o=s||rb(i)}return[r.set(o.prop(e.value||"$implicit")).toConstDecl()]})},e.prototype.buildTemplateFunction=function(e,t,n,r){var i=this;if(void 0===n&&(n=!1),void 0===r&&(r=[]),this._namespace!==Vv.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(function(e){return i.registerContextVariables(e)}),n){var o=[];if(r.length>1){var s=r.map(function(e){return ef(e)}),a=this.constantPool.getConstLiteral(Gv(s),!0),u=this.constantPool.getConstLiteral(Gv(r),!0);o.push(a,u)}this.creationInstruction(null,Vv.projectionDef,o)}this.i18nContext&&this.i18nStart(),xw(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(e){return e()}),this.i18nContext&&this.i18nEnd();var c=this._creationCodeFns.map(function(e){return e()}),l=this._updateCodeFns.map(function(e){return e()}),h=this._bindingScope.viewSnapshotStatements(),f=this._bindingScope.variableDeclarations().concat(this._tempVariables),d=c.length>0?[Yw(1,h.concat(c))]:[],v=l.length>0?[Yw(2,f.concat(l))]:[];return bd([new jf(Hv,ff),new jf(Uv,null)],p(this._prefixCode,d,v),pf,null,this.templateName)},e.prototype.getLocal=function(e){return this._bindingScope.get(e)},e.prototype.i18nTranslate=function(e,t){return void 0===t&&(t=""),this.constantPool.getTranslation(e,t,this.fileBasedI18nSuffix)},e.prototype.i18nAppendTranslationMeta=function(e){void 0===e&&(e=""),this.constantPool.appendTranslationMeta(e)},e.prototype.i18nAllocateRef=function(){return this.constantPool.getDeferredTranslationConst(this.fileBasedI18nSuffix)},e.prototype.i18nUpdateRef=function(e){e.isRoot()&&e.isResolved()&&this.constantPool.setDeferredTranslationConst(e.getRef(),e.getContent())},e.prototype.i18nStart=function(e,t){void 0===e&&(e=null);var n=this.allocateDataSlot();if(this.i18nContext)this.i18n=this.i18nContext.forkChildContext(n,this.templateIndex);else{this.i18nAppendTranslationMeta(t);var r=this.i18nAllocateRef();this.i18n=new Od(n,this.templateIndex,r)}var i=[Cd(n),this.i18n.getRef()];this.i18n.getId()>0&&i.push(Cd(this.i18n.getId())),this.creationInstruction(e,Vv.i18nStart,i)},e.prototype.i18nEnd=function(e){var t=this;void 0===e&&(e=null),this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var n=this.i18n.getBindings();if(n.size){n.forEach(function(n){t.updateInstruction(e,Vv.i18nExp,[n])});var r=Cd(this.i18n.getIndex());this.updateInstruction(e,Vv.i18nApply,[r])}this.creationInstruction(e,Vv.i18nEnd),this.i18n=null},e.prototype.visitContent=function(e){var t=this.allocateDataSlot(),n=e.selectorIndex,r=[Cd(t)],i=[];e.attributes.forEach(function(e){var t=e.name;"select"!==t&&i.push(t,e.value)}),i.length>0?r.push(Cd(n),Gv(i)):0!==n&&r.push(Cd(n)),this.creationInstruction(e.sourceSpan,Vv.projection,r)},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return Vv.namespaceMathML;case"svg":return Vv.namespaceSVG;default:return Vv.namespaceHTML}},e.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},e.prototype.visitElement=function(e){var t,n,r=this,i=this.allocateDataSlot(),o=!1,s=!1,a={},u={},h="",f=l(uh(e.name),2),d=f[0],v=f[1],m=ch(e.name);try{for(var y=c(e.attributes),g=y.next();!g.done;g=y.next()){var _=g.value,w=_.name,b=_.value;if("ngNonBindable"===w)o=!0;else if(w===Td){if(this.i18n)throw new Error("Could not mark an element as translatable inside of a translatable section");s=!0,h=b}else w.startsWith(Dd)?u[w.slice(Dd.length)]=b:a[w]=b}}catch(ce){t={error:ce}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var E=[Cd(i)];m||E.push(Cd(v));var C=[],x=[],S=[],A=[],T=[],D=[],P=[];e.inputs.forEach(function(e){switch(e.type){case 0:"style"==e.name?A.splice(0,0,e):ub(e)?T.splice(0,0,e):u.hasOwnProperty(e.name)?P.push({name:e.name,value:e.value}):D.push(e);break;case 3:A.push(e);break;case 2:T.push(e);break;default:D.push(e)}});var N=0,M=0,k=null,O=null,I={},F={};Object.getOwnPropertyNames(a).forEach(function(e){var t=a[e];"style"==e?(k=function(e){for(var t={},n=0,r=0,i=0,o=0,s=0,a=null,u=!1;n<e.length;)switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:u=u||o>0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||o>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=Zw(e.substring(s,n-1).trim()),o=n);break;case 59:if(a&&o>0&&0===r&&0===i){var c=e.substring(o,n-1).trim();t[a]=u?$w(c):c,s=n,o=0,a=null,u=!1}}a&&o&&(c=e.substr(o).trim(),t[a]=u?$w(c):c);return t}(t),Object.keys(k).forEach(function(e){I[e]=N++})):"class"==e?(O={},t.split(/\s+/g).forEach(function(e){F[e]=M++,O[e]=!0})):u.hasOwnProperty(e)?P.push({name:e,value:t}):C.push(Cd(e),Cd(t))});for(var R=!1,j=0;j<A.length;j++){var L=A[j];0===j&&"style"===L.name?R=!0:I.hasOwnProperty(L.name)||(I[L.name]=N++)}for(j=0;j<T.length;j++){L=T[j];0===j&&ub(L)||I.hasOwnProperty(L.name)||(F[L.name]=M++)}var V=R;Object.keys(I).forEach(function(e){V=V||function(e){switch(e){case"background-image":case"background":case"border-image":case"filter":case"list-style":case"list-style-image":return!0}return!1}(e),x.push(Cd(e))}),k&&(x.push(Cd(1)),Object.keys(k).forEach(function(e){x.push(Cd(e));var t=k[e];x.push(Cd(t))})),Object.keys(F).forEach(function(e){S.push(Cd(e))}),O&&(S.push(Cd(1)),Object.keys(O).forEach(function(e){S.push(Cd(e)),S.push(Cd(!0))}));var B=x.length||A.length||S.length||T.length;C.push.apply(C,p(this.prepareSyntheticAndSelectOnlyAttrs(D,e.outputs))),E.push(this.toAttrsParam(C)),E.push(this.prepareRefsParameter(e.references));var U=this._namespace,H=this.getNamespaceInstruction(d);H!==U&&this.addNamespaceInstruction(H,e);var q=vd(Uv);this.i18n&&this.i18n.appendElement(i);var z=!B&&!m&&0===e.outputs.length&&0===P.length&&!(!s&&r.i18n?e.children.find(function(e){return!(e instanceof dw||e instanceof vw)}):e.children.length>0);if(z)this.creationInstruction(e.sourceSpan,Vv.element,Qv(E));else{if(this.creationInstruction(e.sourceSpan,m?Vv.elementContainerStart:Vv.elementStart,Qv(E)),o&&this.creationInstruction(e.sourceSpan,Vv.disableBindings),s&&this.i18nStart(e.sourceSpan,h),P.length){var W=!1,G=[];if(P.forEach(function(t){var n=t.name,i=t.value,o=u[n];if("string"==typeof i)G.push(Cd(n),r.i18nTranslate(i,o),Cd(0));else{var s=i.visit(r._valueConverter);if(s instanceof zm){var a=s.strings,c=s.expressions,l=kd(a);G.push(Cd(n),r.i18nTranslate(l,o),Cd(c.length)),c.forEach(function(t){W=!0;var n=r.convertExpressionBinding(q,t);r.updateInstruction(e.sourceSpan,Vv.i18nExp,[n])})}}}),G.length){var K=Cd(this.allocateDataSlot()),Q=this.constantPool.getConstLiteral(_d(G),!0);this.creationInstruction(e.sourceSpan,Vv.i18nAttribute,[K,Q]),W&&this.updateInstruction(e.sourceSpan,Vv.i18nApply,[K])}}if(B){var $=[];S.length?$.push(this.constantPool.getConstLiteral(_d(S),!0)):(x.length||V)&&$.push(Gf),x.length?$.push(this.constantPool.getConstLiteral(_d(x),!0)):V&&$.push(Gf),V&&$.push(md(Vv.defaultStyleSanitizer)),this.creationInstruction(null,Vv.elementStyling,$)}e.outputs.forEach(function(t){r.creationInstruction(t.sourceSpan,Vv.listener,r.prepareListenerParameter(e.name,t))})}if((A.length||T.length)&&B){var Z=Cd(i),Y=A[0],X=Y&&"style"==Y.name?Y:null,J=T[0],ee=J&&ub(J)?J:null,te=X||ee;te&&this.updateInstruction(te.sourceSpan,Vv.elementStylingMap,function(){var e=[Z];if(ee){var t=ee.value.visit(r._valueConverter);e.push(r.convertPropertyBinding(q,t,!0))}else X&&e.push(Gf);if(X){var n=X.value.visit(r._valueConverter);e.push(r.convertPropertyBinding(q,n,!0))}return e});var ne=null;if(A.length){for(j=X?1:0;j<A.length;j++){var re=(L=A[j]).name,ie=I[re],oe=(b=L.value.visit(this._valueConverter),[Z,Cd(ie),this.convertPropertyBinding(q,b,!0)]);null!=L.unit&&oe.push(Cd(L.unit)),this.updateInstruction(L.sourceSpan,Vv.elementStyleProp,oe)}ne=A[A.length-1]}if(T.length){j=ee?1:0;for(var se=function(){var e=T[j],t=[],n=cb(e,e.securityContext);n&&t.push(n);var i=e.name,o=F[i],s=e.value.visit(ae._valueConverter);ae.updateInstruction(e.sourceSpan,Vv.elementClassProp,function(){return p([Z,Cd(o),r.convertPropertyBinding(q,s,!0)],t)})},ae=this;j<T.length;j++)se();ne=T[T.length-1]}this.updateInstruction(ne.sourceSpan,Vv.elementStylingApply,[Z])}if(D.forEach(function(e){var t=function(e){switch(e){case 0:return Vv.elementProperty;case 2:return Vv.elementClassProp;case 1:case 4:return Vv.elementAttribute;default:return}}(e.type);if(4===e.type){var n=e.value.visit(r._valueConverter);if(n.name||n.value){var o=lb(e.name);r.updateInstruction(e.sourceSpan,Vv.elementAttribute,function(){return[Cd(i),Cd(o),r.convertPropertyBinding(q,n)]})}}else if(t){var s=[],a=cb(e,e.securityContext);a&&s.push(a);var u=e.value.visit(r._valueConverter);r.allocateBindingSlots(u),r.updateInstruction(e.sourceSpan,t,function(){return p([Cd(i),Cd(e.name),r.convertPropertyBinding(q,u)],s)})}else r._unsupported("binding type "+e.type)}),xw(this,e.children),!s&&this.i18n&&this.i18n.appendElement(i,!0),!z){var ue=e.endSourceSpan||e.sourceSpan;s&&this.i18nEnd(ue),o&&this.creationInstruction(ue,Vv.enableBindings),this.creationInstruction(ue,m?Vv.elementContainerEnd:Vv.elementEnd)}},e.prototype.visitTemplate=function(t){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(r);var i="";1===t.children.length&&t.children[0]instanceof _w&&(i=yv(t.children[0].name));var o=i?this.contextName+"_"+i:"",s=o?o+"_Template_"+r:"Template_"+r,a=[Cd(r),vd(s),Kf];this.matchDirectives("ng-template",t);var u=[];t.attributes.forEach(function(e){u.push(Gv(e.name),Gv(e.value))}),u.push.apply(u,p(this.prepareSyntheticAndSelectOnlyAttrs(t.inputs,t.outputs))),a.push(this.toAttrsParam(u)),t.references&&t.references.length&&(a.push(this.prepareRefsParameter(t.references)),a.push(md(Vv.templateRefExtractor)));var c=vd(Uv);t.inputs.forEach(function(e){var i=e.value.visit(n._valueConverter);n.allocateBindingSlots(i),n.updateInstruction(t.sourceSpan,Vv.elementProperty,function(){return[Cd(r),Cd(e.name),n.convertPropertyBinding(c,i)]})});var l=new e(this.constantPool,this._bindingScope,this.level+1,o,this.i18n,r,s,[],this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix);this._nestedTemplateFns.push(function(){var e=l.buildTemplateFunction(t.children,t.variables);n.constantPool.statements.push(e.toDeclStmt(s,null))}),this.creationInstruction(t.sourceSpan,Vv.templateCreate,function(){return a.splice(2,0,Cd(l.getConstCount()),Cd(l.getVarCount())),Qv(a)}),t.outputs.forEach(function(e){n.creationInstruction(e.sourceSpan,Vv.listener,n.prepareListenerParameter("ng_template",e))})},e.prototype.visitBoundText=function(e){var t=this;if(this.i18n){var n=e.value.visit(this._valueConverter);if(n instanceof zm){var r=n.strings,i=n.expressions,o=kd(r,this.i18n.getBindings().size,this.i18n.getId()),s=vd(Uv);i.forEach(function(e){var n=t.convertExpressionBinding(s,e);t.i18n.appendBinding(n)}),this.i18n.appendText(o)}}else{var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Vv.text,[Cd(a)]);var u=e.value.visit(this._valueConverter);this.allocateBindingSlots(u),this.updateInstruction(e.sourceSpan,Vv.textBinding,function(){return[Cd(a),t.convertPropertyBinding(vd(Uv),u)]})}},e.prototype.visitText=function(e){this.i18n?this.i18n.appendText(e.value):this.creationInstruction(e.sourceSpan,Vv.text,[Cd(this.allocateDataSlot()),Cd(e.value)])},e.prototype.allocateDataSlot=function(){return this._dataIndex++},e.prototype.getConstCount=function(){return this._dataIndex},e.prototype.getVarCount=function(){return this._pureFunctionSlots},e.prototype.bindingContext=function(){return""+this._bindingContext++},e.prototype.instructionFn=function(e,t,n,r){e.push(function(){var e=Array.isArray(r)?r:r();return nb(t,n,e).toStmt()})},e.prototype.creationInstruction=function(e,t,n){this.instructionFn(this._creationCodeFns,e,t,n||[])},e.prototype.updateInstruction=function(e,t,n){this.instructionFn(this._updateCodeFns,e,t,n||[])},e.prototype.allocatePureFunctionSlots=function(e){var t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t},e.prototype.allocateBindingSlots=function(e){this._bindingSlots+=e instanceof zm?e.expressions.length:1},e.prototype.convertExpressionBinding=function(e,t){var n=dy(this,e,t,this.bindingContext(),py.TrySimple).currValExpr;return md(Vv.bind).callFn([n])},e.prototype.convertPropertyBinding=function(e,t,n){var r,i=t instanceof zm?sb:function(){return zd("Unexpected interpolation")},o=dy(this,e,t,this.bindingContext(),py.TrySimple,i);(r=this._tempVariables).push.apply(r,p(o.stmts));var s=o.currValExpr;return t instanceof zm||n?s:md(Vv.bind).callFn([s])},e.prototype.matchDirectives=function(e,t){var n,r,i,o=this;if(this.directiveMatcher){var s=(n=e,r=Xv(t),(i=new Ch).setElement(n),Object.getOwnPropertyNames(r).forEach(function(e){var t=r[e];i.addAttribute(e,t),"class"===e.toLowerCase()&&t.trim().split(/\s+/g).forEach(function(e){return i.addClassName(e)})}),i);this.directiveMatcher.match(s,function(e,t){o.directives.add(t)})}},e.prototype.prepareSyntheticAndSelectOnlyAttrs=function(e,t){var n=[],r=[];if(e.length){var i=Gv("");e.forEach(function(e){4===e.type?n.push(Gv(lb(e.name)),i):r.push(e)})}return(r.length||t.length)&&(n.push(Cd(1)),r.forEach(function(e){return n.push(Gv(e.name))}),t.forEach(function(e){return n.push(Gv(e.name))})),n},e.prototype.toAttrsParam=function(e){return e.length>0?this.constantPool.getConstLiteral(_d(e),!0):Kf},e.prototype.prepareRefsParameter=function(e){var t=this;if(!e||0===e.length)return Kf;var n=Fv(e.map(function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=vd(r);return t._bindingScope.set(i,e.name,o,0,function(e,t){var r=t>0?[rb(t).toStmt()]:[],i=o.set(md(Vv.reference).callFn([Cd(n)]));return r.concat(i.toConstDecl())}),[e.name,e.value]}));return this.constantPool.getConstLiteral(Gv(n),!0)},e.prototype.prepareListenerParameter=function(e,t){var n=this,r=yv(t.name),i=yv(e),o=this.templateName+"_"+i+"_"+r+"_listener";return function(){var e=n._bindingScope.nestedScope(n._bindingScope.bindingLevel),r=cy(e,vd(Uv),t.handler,"b",function(){return zd("Unexpected interpolation")}),i=p(e.restoreViewStatement(),e.variableDeclarations(),r.render3Stmts),s=bd([new jf("$event",lf)],i,pf,null,o);return[Cd(t.name),s]}},e}(),Jw=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.constantPool=t,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o._pipeBindExprs=[],o}return i(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+e.args.length),o=new Fm(e.span,new km(e.span),r),s=function(e){var t=eb[e.length];return{identifier:t||Vv.pipeBindV,isVarLength:!t}}(e.args),a=s.identifier,u=s.isVarLength;this.definePipe(e.name,r,n,md(a));var c=p([e.exp],e.args),l=u?this.visitAll([new Hm(e.span,c)]):this.visitAll(c),h=new Zm(e.span,o,p([new Um(e.span,n),new Um(e.span,i)],l));return this._pipeBindExprs.push(h),h},t.prototype.updatePipeSlotOffsets=function(e){this._pipeBindExprs.forEach(function(t){t.args[1].value+=e})},t.prototype.visitLiteralArray=function(e,t){var n=this;return new Cy(e.span,this.visitAll(e.expressions),function(e){var t=_d(e);return e.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(t,!0):ib(n.constantPool,t,n.allocatePureFunctionSlots)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new Cy(e.span,this.visitAll(e.values),function(t){var r=wd(t.map(function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}}));return t.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(r,!0):ib(n.constantPool,r,n.allocatePureFunctionSlots)})},t}(ty),eb=[Vv.pipeBind1,Vv.pipeBind2,Vv.pipeBind3,Vv.pipeBind4];var tb=[Vv.pureFunction0,Vv.pureFunction1,Vv.pureFunction2,Vv.pureFunction3,Vv.pureFunction4,Vv.pureFunction5,Vv.pureFunction6,Vv.pureFunction7,Vv.pureFunction8];function nb(e,t,n){return md(t,null,e).callFn(n,e)}function rb(e){return md(Vv.nextContext).callFn(e>1?[Cd(e)]:[])}function ib(e,t,n){var r=e.getLiteralFactory(t),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length);o.length>0||zd("Expected arguments to a literal factory function");var a=function(e){var t=tb[e.length];return{identifier:t||Vv.pureFunctionV,isVarLength:!t}}(o),u=a.identifier,c=a.isVarLength,l=[Cd(s),i];return c?l.push(_d(o)):l.push.apply(l,p(o)),md(u).callFn(l)}var ob=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.bindingLevel=e,this.parent=t,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null}return Object.defineProperty(e,"ROOT_SCOPE",{get:function(){return e._ROOT_SCOPE||(e._ROOT_SCOPE=(new e).set(0,"$event",vd("$event"))),e._ROOT_SCOPE},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){var n=t.map.get(e);if(null!=n)return t!==this&&(n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority},this.map.set(e,n),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)},e.prototype.set=function(e,t,n,r,i){return void 0===r&&(r=0),!this.map.has(t)||zd("The name "+t+" is already defined in scope to be "+this.map.get(t)),this.map.set(t,{retrievalLevel:e,lhs:n,declare:!1,declareLocalCallback:i,priority:r}),this},e.prototype.getLocal=function(e){return this.get(e)},e.prototype.nestedScope=function(t){var n=new e(t,this);return t>0&&n.generateSharedContextVar(0),n},e.prototype.getSharedContextName=function(e){var t=this.map.get("$$shared_ctx$$"+e);return t&&t.declare?t.lhs:null},e.prototype.maybeGenerateSharedContextVar=function(e){if(1===e.priority){var t=this.map.get("$$shared_ctx$$"+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}},e.prototype.generateSharedContextVar=function(e){var t=vd(Uv+this.freshReferenceName());this.map.set("$$shared_ctx$$"+e,{retrievalLevel:e,lhs:t,declareLocalCallback:function(e,n){return[t.set(rb(n)).toConstDecl()]},declare:!1,priority:2})},e.prototype.getComponentProperty=function(e){var t=this.map.get("$$shared_ctx$$0");return t.declare=!0,this.maybeRestoreView(0),t.lhs.prop(e)},e.prototype.maybeRestoreView=function(e){this.isListenerScope()&&e<this.bindingLevel&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=vd(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)},e.prototype.restoreViewStatement=function(){return this.restoreViewVariable?[nb(null,Vv.restoreView,[this.restoreViewVariable]).toStmt()]:[]},e.prototype.viewSnapshotStatements=function(){var e=nb(null,Vv.getCurrentView,[]);return this.restoreViewVariable?[this.restoreViewVariable.set(e).toConstDecl()]:[]},e.prototype.isListenerScope=function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel},e.prototype.variableDeclarations=function(){var e=this,t=0;return Array.from(this.map.values()).filter(function(e){return e.declare}).sort(function(e,t){return t.retrievalLevel-e.retrievalLevel||t.priority-e.priority}).reduce(function(n,r){var i=e.bindingLevel-r.retrievalLevel,o=r.declareLocalCallback(e,i-t);return t=i,n.concat(o)},[])},e.prototype.freshReferenceName=function(){for(var e=this;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++},e}();function sb(e){switch((e=e.slice(1)).length){case 3:return md(Vv.interpolation1).callFn(e);case 5:return md(Vv.interpolation2).callFn(e);case 7:return md(Vv.interpolation3).callFn(e);case 9:return md(Vv.interpolation4).callFn(e);case 11:return md(Vv.interpolation5).callFn(e);case 13:return md(Vv.interpolation6).callFn(e);case 15:return md(Vv.interpolation7).callFn(e);case 17:return md(Vv.interpolation8).callFn(e)}return e.length>=19&&e.length%2==1||zd("Invalid interpolation argument length "+e.length),md(Vv.interpolationV).callFn([_d(e)])}function ab(){return new lw(new d_(new Zg),l_,new cw,null,[])}function ub(e){return"className"==e.name||"class"==e.name}function cb(e,t){switch(t){case Fh.HTML:return md(Vv.sanitizeHtml);case Fh.SCRIPT:return md(Vv.sanitizeScript);case Fh.STYLE:return 1===e.type?md(Vv.sanitizeStyle):null;case Fh.URL:return md(Vv.sanitizeUrl);case Fh.RESOURCE_URL:return md(Vv.sanitizeResourceUrl);default:return null}}function lb(e){return"@"+e}var pb=[];function hb(e,t,n){var r=new Yv;r.set("type",e.type),r.set("selectors",Gv(ef(e.selector)));var i=Jv({name:e.name,type:e.type,deps:e.deps,injectFn:Vv.directiveInject});r.set("factory",i.factory),r.set("contentQueries",function(e,t){if(e.queries.length){var n=e.queries.map(function(e){var n=gb(e,t,null);return md(Vv.registerContentQuery).callFn([n]).toStmt()}),r=e.name;return bd([],n,pf,null,r?r+"_ContentQueries":null)}return null}(e,t)),r.set("contentQueriesRefresh",function(e){if(e.queries.length>0){var t=[],n=e.name,r=[new jf("dirIndex",ff),new jf("queryStartIndex",ff)],i=vd("instance"),o=qv(t,Bv);return t.push(i.set(md(Vv.load).callFn([vd("dirIndex")])).toDeclStmt(pf,[Af.Final])),e.queries.forEach(function(e,n){var r=vd("queryStartIndex"),s=md(Vv.loadQueryList).callFn([n>0?r.plus(Cd(n)):r]),a=o().set(s),u=md(Vv.queryRefresh).callFn([a]),c=i.prop(e.propertyName).set(e.first?o().prop("first"):o()),l=u.and(c);t.push(l.toStmt())}),bd(r,t,pf,null,n?n+"_ContentQueriesRefresh":null)}return null}(e));var o=Object.keys(e.host.properties).length;r.set("hostBindings",function(e,t,n,r){var i,o,s,a,u=[],l=e.typeSourceSpan,h=function(e){return{hostAttributes:e.host.attributes,hostListeners:e.host.listeners,hostProperties:e.host.properties}}(e),f=t.createBoundHostProperties(h,l),d=md(Vv.load).callFn([vd("dirIndex")]);if(f){var v=new Jw(n,function(){return zd("Unexpected node")},r,function(){return zd("Unexpected pipe")});try{for(var m=c(f),y=m.next();!y.done;y=m.next()){var g=y.value,_=g.expression.visit(v),w=dy(null,d,_,"b",py.TrySimple,function(){return zd("Unexpected interpolation")});u.push.apply(u,p(w.stmts)),u.push(md(Vv.elementProperty).callFn([vd("elIndex"),Cd(g.name),md(Vv.bind).callFn([w.currValExpr])]).toStmt())}}catch(D){i={error:D}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}}var b=t.createDirectiveHostEventAsts(h,l);if(b)try{for(var E=c(b),C=E.next();!C.done;C=E.next()){var g=C.value,w=cy(null,d,g.handler,"b",function(){return zd("Unexpected interpolation")}),x=g.name&&yv(g.name),S=e.name,A=S&&x?S+"_"+x+"_HostBindingHandler":null,T=bd([new jf("$event",lf)],p(w.stmts,[new Xf(w.allowDefault)]),pf,null,A);u.push(md(Vv.listener).callFn([Cd(g.name),T]).toStmt())}}catch(P){s={error:P}}finally{try{C&&!C.done&&(a=E.return)&&a.call(E)}finally{if(s)throw s.error}}if(u.length>0){var S=e.name;return bd([new jf("dirIndex",ff),new jf("elIndex",ff)],u,pf,null,S?S+"_HostBindings":null)}return null}(e,n,t,function(e){var t=o;return o+=e,t})),o&&r.set("hostVars",Cd(o)),r.set("attributes",function(e){var t,n,r=[],i=e.host.attributes;try{for(var o=c(Object.getOwnPropertyNames(i)),s=o.next();!s.done;s=o.next()){var a=s.value,u=i[a];r.push(Cd(a),Cd(u))}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}if(r.length>0)return _d(r);return null}(e)),r.set("inputs",Kv(e.inputs)),r.set("outputs",Kv(e.outputs));var s=[];return s.push(md(Vv.PublicFeature)),e.usesInheritance&&s.push(md(Vv.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&s.push(md(Vv.NgOnChangesFeature)),s.length&&r.set("features",_d(s)),null!==e.exportAs&&r.set("exportAs",Cd(e.exportAs)),{definitionMap:r,statements:i.statements}}function fb(e,t,n){var r=hb(e,t,n),i=r.definitionMap,o=r.statements,s=md(Vv.defineDirective).callFn([i.toLiteralMap()]);(e.selector||"").replace(/\n/g,"");return{expression:s,type:bb(e,Vv.DirectiveDefWithMeta),statements:o}}function db(e,t,n){var r=hb(e,t,n),i=r.definitionMap,o=r.statements,s=e.selector&&Ch.parse(e.selector),a=s&&s[0];if(a){var u=a.getAttrs();u.length&&i.set("attrs",t.getConstLiteral(_d(u.map(function(e){return Cd(null!=e?e:void 0)})),!0))}var c=null;if(e.directives.size){var l=new xh;e.directives.forEach(function(e,t){l.addSelectables(Ch.parse(t),e)}),c=l}e.viewQueries.length&&i.set("viewQuery",function(e,t){for(var n=[],r=[],i=qv(r,Bv),o=0;o<e.viewQueries.length;o++){var s=e.viewQueries[o],a=gb(s,t,o);n.push(a.toStmt());var u=i(),c=md(Vv.load).callFn([Cd(o)]),l=md(Vv.queryRefresh).callFn([u.set(c)]),p=vd(Uv).prop(s.propertyName).set(s.first?u.prop("first"):u);r.push(l.and(p).toStmt())}var h=e.name?e.name+"_Query":null;return bd([new jf(Hv,ff),new jf(Uv,null)],[Yw(1,n),Yw(2,r)],pf,null,h)}(e,t));var p=e.name,h=p?p+"_Template":null,f=new Set,d=new Set,v=e.template,m=new Xw(t,ob.ROOT_SCOPE,0,p,null,null,h,e.viewQueries,c,f,e.pipes,d,Vv.namespaceHTML,e.template.relativeContextFilePath),y=m.buildTemplateFunction(v.nodes,[],v.hasNgContent,v.ngContentSelectors);if(i.set("consts",Cd(m.getConstCount())),i.set("vars",Cd(m.getVarCount())),i.set("template",y),f.size){var g=_d(Array.from(f));e.wrapDirectivesInClosure&&(g=bd([],[new Xf(g)])),i.set("directives",g)}if(d.size&&i.set("pipes",_d(Array.from(d))),e.styles&&e.styles.length){var _=(e.encapsulation==wh.Emulated?function(e,t,n){var r=new vg;return e.map(function(e){return r.shimCssText(e,t,n)})}(e.styles,zg,qg):e.styles).map(function(e){return Cd(e)});i.set("styles",_d(_))}null!==e.animations&&i.set("data",wd([{key:"animations",value:e.animations,quoted:!1}]));(e.selector||"").replace(/\n/g,"");return{expression:md(Vv.defineComponent).callFn([i.toLiteralMap()]),type:bb(e,Vv.ComponentDefWithMeta),statements:o}}function vb(e,t,n){var r=e.toSummary(),i=wv(e.type);return i||zd("Cannot resolver the name of "+e.type),{name:i,type:t.importExpr(e.type.reference),typeArgumentCount:0,typeSourceSpan:dg(e.isComponent?"Component":"Directive",e.type),selector:e.selector,deps:tm(e.type,t,n),queries:mb(e.queries,t),lifecycle:{usesOnChanges:e.type.lifecycleHooks.some(function(e){return e==Ey.OnChanges})},host:{attributes:e.hostAttributes,listeners:r.hostListeners,properties:r.hostProperties},inputs:e.inputs,outputs:e.outputs,usesInheritance:!1,exportAs:null,providers:null}}function mb(e,t){return e.map(function(e){var n=null;return e.read&&e.read.identifier&&(n=t.importExpr(e.read.identifier.reference)),{propertyName:e.propertyName,first:e.first,predicate:yb(e.selectors,t),descendants:e.descendants,read:n}})}function yb(e,t){if(e.length>1||1==e.length&&e[0].value){var n=e.map(function(e){return e.value});return n.some(function(e){return!e})&&zd("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(_d(n.map(function(e){return Cd(e)})))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return zd("Unexpected query form"),Gf}function gb(e,t,n){var r=function(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach(function(e){var t=e.split(",").map(function(e){return Cd(e.trim())});n.push.apply(n,p(t))}),t.getConstLiteral(_d(n),!0)}return e.predicate}(e,t),i=[Cd(n,pf),r,Cd(e.descendants)];return e.read&&i.push(e.read),md(Vv.query).callFn(i)}function _b(e){return gd(Cd(e))}function wb(e){return gd(wd(Object.keys(e).map(function(t){return{key:t,value:Cd(e[t]),quoted:!0}})))}function bb(e,t){var n,r=(e.selector||"").replace(/\n/g,"");return gd(md(t,[om(e.type,e.typeArgumentCount),_b(r),null!==e.exportAs?_b(e.exportAs):df,wb(e.inputs),wb(e.outputs),(n=e.queries.map(function(e){return e.propertyName}),n.length>0?gd(_d(n.map(function(e){return Cd(e)}))):df)]))}function Eb(e,t){var n=Array.from(e).map(function(e){var n=l(e,2),r=n[0],i=n[1];return[r,t.importExpr(i)]});return new Map(n)}var Cb=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;var xb=function(){function e(){this.R3ResolvedDependencyType=Zv}return e.prototype.compilePipe=function(e,t,n){var r=Am({name:n.name,type:new Ef(n.type),deps:Fb(n.deps),pipeName:n.pipeName,pure:n.pure});return Cm(r.expression,e,t,r.statements)},e.prototype.compileInjectable=function(e,t,n){var r=function(e){var t=null,n={name:e.name,type:e.type,deps:e.ctorDeps,injectFn:pv.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),i=e.userDeps||r&&e.ctorDeps||void 0;t=Jv(o({},n,void 0!==i?{delegate:e.useClass,delegateDeps:i,delegateType:$v.Class}:{delegate:e.useClass,delegateType:$v.Factory}))}else t=void 0!==e.useFactory?Jv(o({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:$v.Function})):void 0!==e.useValue?Jv(o({},n,{expression:e.useValue})):void 0!==e.useExisting?Jv(o({},n,{expression:md(pv.inject).callFn([e.useExisting])})):Jv(n);var s=e.type,a=e.providedIn;return{expression:md(pv.defineInjectable).callFn([rm({token:s,factory:t.factory,providedIn:a})]),type:new af(md(pv.InjectableDef,[new af(e.type)])),statements:t.statements}}({name:n.name,type:new Ef(n.type),providedIn:Ob(n.providedIn),useClass:kb(n,Sb),useFactory:kb(n,Ab),useValue:kb(n,Tb),useExisting:kb(n,Db),ctorDeps:Fb(n.ctorDeps),userDeps:Fb(n.userDeps)||void 0});return Cm(r.expression,e,t,r.statements)},e.prototype.compileInjector=function(e,t,n){var r=function(e){var t=Jv({name:e.name,type:e.type,deps:e.deps,injectFn:Vv.inject});return{expression:md(Vv.defineInjector).callFn([rm({factory:t.factory,providers:e.providers,imports:e.imports})]),type:new af(md(Vv.InjectorDef,[new af(e.type)])),statements:t.statements}}({name:n.name,type:new Ef(n.type),deps:Fb(n.deps),providers:new Ef(n.providers),imports:new Ef(n.imports)});return Cm(r.expression,e,t,r.statements)},e.prototype.compileNgModule=function(e,t,n){return Cm(function(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports;return{expression:md(Vv.defineNgModule).callFn([rm({type:t,bootstrap:_d(n.map(function(e){return e.value})),declarations:_d(r.map(function(e){return e.value})),imports:_d(i.map(function(e){return e.value})),exports:_d(o.map(function(e){return e.value}))})]),type:new af(md(Vv.NgModuleDefWithMeta,[new af(t),Sm(r),Sm(i),Sm(o)])),additionalStatements:[]}}({type:new Ef(n.type),bootstrap:n.bootstrap.map(Pb),declarations:n.declarations.map(Pb),imports:n.imports.map(Pb),exports:n.exports.map(Pb),emitInline:!0}).expression,e,t,[])},e.prototype.compileDirective=function(e,t,n){var r=new sv,i=ab(),o=fb(Mb(n),r,i),s=p(r.statements,o.statements);return Cm(o.expression,e,t,s)},e.prototype.compileComponent=function(e,t,n){var r=new sv,i=function(e,t,n,r){void 0===n&&(n={});var i=ab(),o=(new z_).parse(e,t);if(o.errors&&o.errors.length>0)return{errors:o.errors,nodes:[],hasNgContent:!1,ngContentSelectors:[],relativeContextFilePath:r};var s=o.rootNodes;n.preserveWhitespaces||(s=C_(new X_,s));var a=qw(s,i),u=a.nodes,c=a.hasNgContent,l=a.ngContentSelectors,p=a.errors;return p&&p.length>0?{errors:p,nodes:[],hasNgContent:!1,ngContentSelectors:[],relativeContextFilePath:r}:{nodes:u,hasNgContent:c,ngContentSelectors:l,relativeContextFilePath:r}}(n.template,t,{preserveWhitespaces:n.preserveWhitespaces||!1},"");if(void 0!==i.errors){var s=i.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+s)}var a=db(o({},n,Mb(n),{template:i,viewQueries:n.viewQueries.map(Nb),wrapDirectivesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,animations:null!=n.animations?new Ef(n.animations):null,viewProviders:null!=n.viewProviders?new Ef(n.viewProviders):null}),r,ab()),u=p(r.statements,a.statements);return Cm(a.expression,e,t,u)},e}(),Sb=Object.keys({useClass:null})[0],Ab=Object.keys({useFactory:null})[0],Tb=Object.keys({useValue:null})[0],Db=Object.keys({useExisting:null})[0],Pb=function(e){var t=new Ef(e);return{value:t,type:t}};function Nb(e){return o({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Ef(e.predicate),read:e.read?new Ef(e.read):null})}function Mb(e){var t=jb(e.inputs||[]),n=jb(e.outputs||[]),r=e.propMetadata,i={},s={},a=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){"Input"===t.ngMetadataName?i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e:function(e){return"Output"===e.ngMetadataName}(t)&&(s[e]=t.bindingPropertyName||e)})};for(var u in r)a(u);return o({},e,{typeSourceSpan:null,type:new Ef(e.type),deps:Fb(e.deps),host:Rb(e.host,e.propMetadata),inputs:o({},t,i),outputs:o({},n,s),providers:null!=e.providers?new Ef(e.providers):null})}function kb(e,t){return e.hasOwnProperty(t)?new Ef(e[t]):void 0}function Ob(e){return null==e||"string"==typeof e?new Nf(e):new Ef(e)}function Ib(e){return{token:null===e.token?new Nf(null):e.resolved===Zv.Attribute?new Nf(e.token):new Ef(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Fb(e){return null==e?null:e.map(Ib)}function Rb(e,t){var n=function(e){var t={},n={},r={},i={};return Object.keys(e).forEach(function(o){var s=e[o],a=o.match(Cb);null===a?t[o]=s:null!=a[1]?r[a[1]]=s:null!=a[2]?n[a[2]]=s:null!=a[3]&&(i[a[3]]=s)}),{attributes:t,listeners:n,properties:r,animations:i}}(e||{}),r=n.attributes,i=n.listeners,o=n.properties,s=n.animations;if(Object.keys(s).length>0)throw new Error("Animation bindings are as-of-yet unsupported in Ivy");var a=function(e){t.hasOwnProperty(e)&&t[e].forEach(function(t){"HostBinding"===t.ngMetadataName?o[t.hostPropertyName||e]=e:function(e){return"HostListener"===e.ngMetadataName}(t)&&(i[t.eventName||e]=e+"("+(t.args||[]).join(",")+")")})};for(var u in t)a(u);return{attributes:r,listeners:i,properties:o}}function jb(e){return e.reduce(function(e,t){var n=l(t.split(",").map(function(e){return e.trim()}),2),r=n[0],i=n[1];return e[r]=i||r,e},{})}new ev("7.0.4");var Lb,Vb,Bb=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Ub=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitBoundText(this,t)},e}(),Hb=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}(),qb=((Lb={})[4]=4,Lb[1]=1,Lb[2]=2,Lb[0]=0,Lb[3]=3,Lb),zb=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){var n=qb[t.type];return new e(t.name,n,t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),Wb=function(){function e(t,n,r,i,o){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=e.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return e.calcFullName=function(e,t,n){return t?t+":"+e:n?"@"+e+"."+n:e},e.fromParsedEvent=function(t){var n=0===t.type?t.targetOrPhase:null,r=1===t.type?t.targetOrPhase:null;return new e(t.name,n,r,t.handler,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),Gb=function(){function e(e,t,n,r){this.name=e,this.value=t,this.originalValue=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitReference(this,t)},e}(),Kb=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.fromParsedVariable=function(t){return new e(t.name,t.value,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),Qb=function(){function e(e,t,n,r,i,o,s,a,u,c,l,p,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),$b=function(){function e(e,t,n,r,i,o,s,a,u,c,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),Zb=function(){function e(e,t,n,r){this.directiveName=e,this.templateName=t,this.value=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},e}(),Yb=function(){function e(e,t,n,r,i,o){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),Xb=function(){function e(e,t,n,r,i,o,s,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return e.prototype.visit=function(e,t){return null},e}();!function(e){e[e.PublicService=0]="PublicService",e[e.PrivateService=1]="PrivateService",e[e.Component=2]="Component",e[e.Directive=3]="Directive",e[e.Builtin=4]="Builtin"}(Vb||(Vb={}));var Jb=function(){function e(e,t,n){this.index=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitNgContent(this,t)},e}();!function(e){function t(){return e.call(this)||this}i(t,e),t.prototype.visitEmbeddedTemplate=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.references),t(e.variables),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitElement=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitDirective=function(e,t){return this.visitChildren(t,function(t){t(e.inputs),t(e.hostProperties),t(e.hostEvents)})},t.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function(t){t&&t.length&&n.push(eE(r,t,e))}),[].concat.apply([],n)}}(function(){function e(){}return e.prototype.visitNgContent=function(e,t){},e.prototype.visitEmbeddedTemplate=function(e,t){},e.prototype.visitElement=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e.prototype.visitBoundText=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e}());function eE(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}var tE=function(){return function(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=void 0===n?wh.Emulated:n,i=t.useJit,o=void 0===i||i,s=t.jitDevMode,a=void 0!==s&&s,u=t.missingTranslation,c=void 0===u?null:u,l=t.preserveWhitespaces,p=t.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!a,this.missingTranslation=c,this.preserveWhitespaces=nE(Vd(l)),this.strictInjectionParameters=!0===p}}();function nE(e,t){return void 0===t&&(t=!1),null===e?t:e}var rE=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;if(e.isComponent){var n=e.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)})}},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t=this;if(Ld(e.template)){if(Ld(e.templateUrl))throw Wd("'"+Yd(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Wd("The template specified for component "+Yd(e.componentType)+" is not a string")}else{if(!Ld(e.templateUrl))throw Wd("No template specified for component "+Yd(e.componentType));if("string"!=typeof e.templateUrl)throw Wd("The templateUrl specified for component "+Yd(e.componentType)+" is not a string")}if(Ld(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Wd("The preserveWhitespaces option for component "+Yd(e.componentType)+" must be a boolean");return Hd(this._preParseTemplate(e),function(n){return t._normalizeTemplateMetadata(e,n)})},e.prototype._preParseTemplate=function(e){var t,n,r=this;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),Hd(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=c_.fromArray(e.interpolation),o=this._htmlParser.parse(t,jv({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw Wd("Template parse errors:\n"+o.errors.join("\n"));var s=this._normalizeStylesheet(new Tv({styles:e.styles,moduleUrl:e.moduleUrl})),a=new iE;C_(a,o.rootNodes);var u=this._normalizeStylesheet(new Tv({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:s.styles.concat(u.styles),inlineStyleUrls:s.styleUrls.concat(u.styleUrls),styleUrls:this._normalizeStylesheet(new Tv({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:a.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Hd(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=p(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=p(t.styles);return r._inlineStyles(t.styleUrls,n,i),new Tv({moduleUrl:e,styles:i})}),a=e.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===wh.Emulated&&0===i.length&&0===o.length&&(a=wh.None),new Dv({encapsulation:a,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:nE(e.preserveWhitespaces,this._config.preserveWhitespaces)})},e.prototype._inlineStyles=function(e,t,n){var r=this;e.forEach(function(e){var i=t.get(e);i.styles.forEach(function(e){return n.push(e)}),r._inlineStyles(i.styleUrls,t,n)})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n=this;return void 0===t&&(t=new Map),Hd(qd(e.filter(function(e){return!t.has(e)}).map(function(e){return Hd(n._fetch(e),function(r){var i=n._normalizeStylesheet(new Tv({styles:[r],moduleUrl:e}));return t.set(e,i),n._loadMissingExternalStylesheets(i.styleUrls,t)})})),function(e){return t})},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(Aw).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i,o,s,a,u=(i=t._urlResolver,o=n,s=[],a=e.replace(Pw,"").replace(Dw,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[1]||e[2];return Aw(n)?(s.push(i.resolve(o,n)),""):e[0]}),new Sw(a,s));return r.push.apply(r,p(u.styleUrls)),u.style});return new Tv({styles:i,styleUrls:r,moduleUrl:n})},e}(),iE=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Bw(e);switch(n.type){case Tw.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Tw.STYLE:var r="";e.children.forEach(function(e){e instanceof y_&&(r+=e.value)}),this.styles.push(r);break;case Tw.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,C_(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){C_(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){C_(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),oE=[Oh,kh,Mh,Nh],sE=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(Xd(e));return t&&t.some(aE)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Xd(e));if(n){var r=uE(n,aE);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+Yd(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=uE(t[e],function(e){return Vh.isTypeOf(e)});n&&(n.bindingPropertyName?i.push(e+": "+n.bindingPropertyName):i.push(e));var r=uE(t[e],function(e){return Bh.isTypeOf(e)});r&&(r.bindingPropertyName?o.push(e+": "+r.bindingPropertyName):o.push(e)),t[e].filter(function(e){return Uh.isTypeOf(e)}).forEach(function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return Hh.isTypeOf(e)}).forEach(function(t){var n=t.args||[];s["("+t.eventName+")"]=e+"("+n.join(",")+")"});var u=uE(t[e],function(e){return oE.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return Fd(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,r,i,s,a){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),c=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),l=e.host?o({},e.host,r):r,p=e.queries?o({},e.queries,i):i;if(jh.isTypeOf(e)){var h=e;return jh({selector:h.selector,inputs:u,outputs:c,host:l,exportAs:h.exportAs,moduleId:h.moduleId,queries:p,changeDetection:h.changeDetection,providers:h.providers,viewProviders:h.viewProviders,entryComponents:h.entryComponents,template:h.template,templateUrl:h.templateUrl,styles:h.styles,styleUrls:h.styleUrls,encapsulation:h.encapsulation,animations:h.animations,interpolation:h.interpolation,preserveWhitespaces:e.preserveWhitespaces})}return Ih({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,queries:p,providers:e.providers,guards:s})},e}();function aE(e){return Ih.isTypeOf(e)||jh.isTypeOf(e)}function uE(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}function cE(e){return e.id||function(e){var t,n,r=Zd(e),i=function(e,t){for(var n=Array(e.length+3>>>2),r=0;r<n.length;r++)n[r]=xE(e,4*r,t);return n}(r,fE.Big),o=8*r.length,s=new Array(80),a=l([1732584193,4023233417,2562383102,271733878,3285377520],5),u=a[0],c=a[1],p=a[2],h=a[3],f=a[4];i[o>>5]|=128<<24-o%32,i[15+(o+64>>9<<4)]=o;for(var d=0;d<i.length;d+=16){for(var v=l([u,c,p,h,f],5),m=v[0],y=v[1],g=v[2],_=v[3],w=v[4],b=0;b<80;b++){s[b]=b<16?i[d+b]:EE(s[b-3]^s[b-8]^s[b-14]^s[b-16],1);var E=l(vE(b,c,p,h),2),C=E[0],x=E[1],S=[EE(u,5),C,f,x,s[b]].reduce(_E);t=l([h,p,EE(c,30),u,S],5),f=t[0],h=t[1],p=t[2],c=t[3],u=t[4]}n=l([_E(u,m),_E(c,y),_E(p,g),_E(h,_),_E(f,w)],5),u=n[0],c=n[1],p=n[2],h=n[3],f=n[4]}return function(e){for(var t="",n=0;n<e.length;n++){var r=CE(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(SE([u,c,p,h,f]))}((t=e.nodes,t.map(function(e){return e.visit(hE,null)})).join("")+"["+e.meaning+"]");var t}function lE(e){if(e.id)return e.id;var t=new dE;return function(e,t){var n,r=l(mE(e),2),i=r[0],o=r[1];if(t){var s=l(mE(t),2),a=s[0],u=s[1];n=l(function(e,t){var n=l(e,2),r=n[0],i=n[1],o=l(t,2),s=o[0],a=o[1],u=l(wE(i,a),2),c=u[0],p=u[1];return[_E(_E(r,s),c),p]}(function(e,t){var n=l(e,2),r=n[0],i=n[1];return[r<<t|i>>>32-t,i<<t|r>>>32-t]}([i,o],1),[a,u]),2),i=n[0],o=n[1]}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=AE(t,TE(CE(e,r),n)),n=TE(256,n);return t.split("").reverse().join("")}(SE([2147483647&i,o]))}(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}var pE=function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map(function(e){return e.visit(n)}).join(", ")+"]"},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.expression+", "+e.type+", "+r.join(", ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map(function(e){return e.visit(n)}).join(", ")+'</ph name="'+e.closeName+'">'},e.prototype.visitPlaceholder=function(e,t){return e.value?'<ph name="'+e.name+'">'+e.value+"</ph>":'<ph name="'+e.name+'"/>'},e.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},e}(),hE=new pE;var fE,dE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.type+", "+r.join(", ")+"}"},t}(pE);function vE(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}function mE(e){var t=Zd(e),n=l([yE(t,0),yE(t,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function yE(e,t){var n,r,i=l([2654435769,2654435769],2),o=i[0],s=i[1],a=e.length;for(r=0;r+12<=a;r+=12)o=(n=l(gE([o=_E(o,xE(e,r,fE.Little)),s=_E(s,xE(e,r+4,fE.Little)),t=_E(t,xE(e,r+8,fE.Little))]),3))[0],s=n[1],t=n[2];return o=_E(o,xE(e,r,fE.Little)),s=_E(s,xE(e,r+4,fE.Little)),t=_E(t,a),gE([o,s,t=_E(t,xE(e,r+8,fE.Little)<<8)])[2]}function gE(e){var t=l(e,3),n=t[0],r=t[1],i=t[2];return n=bE(n,r),n=bE(n,i),n^=i>>>13,r=bE(r,i),r=bE(r,n),r^=n<<8,i=bE(i,n),i=bE(i,r),i^=r>>>13,n=bE(n,r),n=bE(n,i),n^=i>>>12,r=bE(r,i),r=bE(r,n),r^=n<<16,i=bE(i,n),i=bE(i,r),i^=r>>>5,n=bE(n,r),n=bE(n,i),n^=i>>>3,r=bE(r,i),r=bE(r,n),r^=n<<10,i=bE(i,n),i=bE(i,r),[n,r,i^=r>>>15]}function _E(e,t){return wE(e,t)[1]}function wE(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function bE(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function EE(e,t){return e<<t|e>>>32-t}function CE(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function xE(e,t,n){var r=0;if(n===fE.Big)for(var i=0;i<4;i++)r+=CE(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=CE(e,t+i)<<8*i;return r}function SE(e){return e.reduce(function(e,t){return e+function(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)},"")}function AE(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i<r||o;i++){var s=o+ +(e[i]||0)+ +(t[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function TE(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=AE(n,r)),r=AE(r,r);return n}!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(fE||(fE={}));var DE=function(){return function(e,t,n,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}}(),PE=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),NE=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),ME=function(){function e(e,t,n,r){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitIcu(this,t)},e}(),kE=function(){function e(e,t,n,r,i,o,s){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),OE=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},e}(),IE=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},e}(),FE=function(){function e(){}return e.prototype.visitText=function(e,t){return new PE(e.value,e.sourceSpan)},e.prototype.visitContainer=function(e,t){var n=this,r=e.children.map(function(e){return e.visit(n,t)});return new NE(r,e.sourceSpan)},e.prototype.visitIcu=function(e,t){var n=this,r={};Object.keys(e.cases).forEach(function(i){return r[i]=e.cases[i].visit(n,t)});var i=new ME(e.expression,e.type,r,e.sourceSpan);return i.expressionPlaceholder=e.expressionPlaceholder,i},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=e.children.map(function(e){return e.visit(n,t)});return new kE(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new OE(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new IE(e.value,e.name,e.sourceSpan)},e}(),RE=function(){function e(){}return e.prototype.visitText=function(e,t){},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitIcu=function(e,t){var n=this;Object.keys(e.cases).forEach(function(t){e.cases[t].visit(n)})},e.prototype.visitTagPlaceholder=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitPlaceholder=function(e,t){},e.prototype.visitIcuPlaceholder=function(e,t){},e}(),jE={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},LE=function(){function e(){this._placeHolderNameCounts={},this._signatureToName={}}return e.prototype.getStartTagPlaceholderName=function(e,t,n){var r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];var i=e.toUpperCase(),o=jE[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=jE[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[t]=i,i},e.prototype.getPlaceholderName=function(e,t){var n=e.toUpperCase(),r="PH: "+n+"="+t;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},e.prototype.getUniquePlaceholder=function(e){return this._generateUniqueName(e.toUpperCase())},e.prototype._hashTag=function(e,t,n){return"<"+e+Object.keys(t).sort().map(function(e){return" "+e+"="+t[e]}).join("")+(n?"/>":"></"+e+">")},e.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},e.prototype._generateUniqueName=function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,e+"_"+t},e}(),VE=new d_(new Zg);var BE=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r){this._isIcu=1==e.length&&e[0]instanceof g_,this._icuDepth=0,this._placeholderRegistry=new LE,this._placeholderToContent={},this._placeholderToMessage={};var i=C_(this,e,{});return new DE(i,this._placeholderToContent,this._placeholderToMessage,t,n,r)},e.prototype.visitElement=function(e,t){var n=C_(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=_h(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="</"+e.name+">"),new kE(e.name,r,o,s,n,i,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new ME(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new NE(e.expression.map(function(e){return e.visit(r,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+t.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=t.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([t],"","",""),new IE(o,a,t.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new PE(e,t);for(var r=[],i=new NE(r,t),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=c.split(UE)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new PE(n.strings[u],t)),r.push(new OE(c,p,t)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new PE(n.strings[h],t)),i},e}(),UE=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;var HE=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t}(fg),qE="i18n",zE=/^i18n:?/,WE="|",GE="@@",KE=!1;var QE,$E=function(){return function(e,t){this.messages=e,this.errors=t}}();!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(QE||(QE={}));var ZE=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(QE.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new $E(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(QE.Merge,n),this._translations=t;var r=new b_("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new B_(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=C_(this,e.expression,t);if(this._mode===QE.Merge)return new __(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},e.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var r=C_(this,e.cases,t);return this._mode===QE.Merge&&(e=new g_(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n,r=!!((n=e)instanceof E_&&n.value&&n.value.startsWith("i18n"));if(r&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var i=function(e){return!!(e instanceof E_&&e.value&&"/i18n"===e.value)}(e);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return C_(this,this._translateMessage(e,o))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(r){if(!KE&&console&&console.warn){KE=!0;var s=e.sourceSpan.details?", "+e.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+e.sourceSpan.start+s+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(zE,"").trim(),this._openTranslatableSection(e)}}else this._reportError(e,"Trying to close an unopened block")}},e.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},e.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=e.attrs.find(function(e){return e.name===qE})||null,u=a?a.value:"",c=this._implicitTags.some(function(t){return e.name===t})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==QE.Extract&&C_(this,e.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(e.children,u);s=this._translateMessage(e,p)}if(this._mode==QE.Extract){var h=a||l;h&&this._openTranslatableSection(e),C_(this,e.children),h&&this._closeTranslatableSection(e,e.children)}}this._mode===QE.Merge&&(s||e.children).forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(o=o.concat(r))});if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===QE.Merge){var f=this._translateAttributes(e);return new b_(e.name,f,o,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null},e.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},e.prototype._init=function(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=function(e){var t=new BE(VE,e);return function(e,n,r,i){return t.toI18nMessage(e,n,r,i)}}(t)},e.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith("i18n-")}).forEach(function(e){return n[e.name.slice("i18n-".length)]=e.value}),e.attrs.forEach(function(e){e.name in n?t._addMessage([e],n[e.name]):r.some(function(t){return e.name===t})&&t._addMessage([e])})},e.prototype._addMessage=function(e,t){if(0==e.length||1==e.length&&e[0]instanceof w_&&!e[0].value)return null;var n=YE(t),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(e,r,i,o);return this._messages.push(s),s},e.prototype._translateMessage=function(e,t){if(t&&this._mode===QE.Merge){var n=this._translations.get(t);if(n)return n;this._reportError(e,'Translation unavailable for message id="'+this._translations.digest(t)+'"')}return[]},e.prototype._translateAttributes=function(e){var t=this,n=e.attrs,r={};n.forEach(function(e){e.name.startsWith("i18n-")&&(r[e.name.slice("i18n-".length)]=YE(e.value))});var i=[];return n.forEach(function(n){if(n.name!==qE&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=t._createI18nMessage([n],s,a,u),l=t._translations.get(c);if(l)if(0==l.length)i.push(new w_(n.name,"",n.sourceSpan));else if(l[0]instanceof y_){var p=l[0].value;i.push(new w_(n.name,p,n.sourceSpan))}else t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||t._translations.digest(c))+'")');else t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||t._translations.digest(c))+'")')}else i.push(n)}),i},e.prototype._mayBeAddBlockChildren=function(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)},e.prototype._openTranslatableSection=function(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(e.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),e.prototype._closeTranslatableSection=function(e,t){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==t.reduce(function(e,t){return e+(t instanceof E_?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof PE)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(e,"Unexpected section end")},e.prototype._reportError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}();function YE(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf(GE),n=e.indexOf(WE),r=l(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],o=r[1],s=l(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:s[0],description:s[1],id:o}}var XE=new(function(){function e(){this.closedByParent=!1,this.contentType=sh.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return e.prototype.requireExtraParent=function(e){return!1},e.prototype.isClosedByChild=function(e){return!1},e}());function JE(e){return XE}var eC=function(e){function t(){return e.call(this,JE)||this}return i(t,e),t.prototype.parse=function(t,n,r){return void 0===r&&(r=!1),e.prototype.parse.call(this,t,n,r)},t}(U_),tC=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),nC=function(e){function t(t,n){var r=e.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},t.nodes.forEach(function(e){return e.visit(r)}),r}return i(t,e),t.prototype.toPublicName=function(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null},t.prototype.toInternalName=function(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null},t.prototype.visitText=function(e,t){return null},t.prototype.visitTagPlaceholder=function(t,n){this.visitPlaceholderName(t.startName),e.prototype.visitTagPlaceholder.call(this,t,n),this.visitPlaceholderName(t.closeName)},t.prototype.visitPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitIcuPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitPlaceholderName=function(e){if(e&&!this.internalToPublic.hasOwnProperty(e)){var t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){var n=this.publicToNextId[t];this.publicToNextId[t]=n+1,t=t+"_"+n}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}},t}(RE),rC=new(function(){function e(){}return e.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map(function(e){return e.visit(t)});return"<"+e.name+n+">"+r.join("")+"</"+e.name+">"},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},e}());function iC(e){return e.map(function(e){return e.visit(rC)}).join("")}var oC=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=pC(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),sC=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),aC=function(){function e(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=this;this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=pC(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),uC=function(){function e(e){this.value=pC(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),cC=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return i(t,e),t}(uC),lC=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function pC(e){return lC.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var hC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.write=function(e,t){var n=new fC,r=[];e.forEach(function(e){var t,i=[];e.sources.forEach(function(e){var t=new aC("context-group",{purpose:"location"});t.children.push(new cC(10),new aC("context",{"context-type":"sourcefile"},[new uC(e.filePath)]),new cC(10),new aC("context",{"context-type":"linenumber"},[new uC(""+e.startLine)]),new cC(8)),i.push(new cC(8),t)});var o=new aC("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,p([new cC(8),new aC("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new cC(8),new aC("note",{priority:"1",from:"description"},[new uC(e.description)])),e.meaning&&o.children.push(new cC(8),new aC("note",{priority:"1",from:"meaning"},[new uC(e.meaning)])),o.children.push(new cC(6)),r.push(new cC(6),o)});var i=new aC("body",{},p(r,[new cC(4)])),o=new aC("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new cC(4),i,new cC(2)]),s=new aC("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new cC(2),o,new cC]);return iC([new oC({version:"1.0",encoding:"UTF-8"}),new cC,s,new cC])},t.prototype.load=function(e,t){var n=(new dC).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new vC;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes,u=n.errors;o.push.apply(o,p(u)),s[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return cE(e)},t}(tC),fC=function(){function e(){}return e.prototype.visitText=function(e,t){return[new uC(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,p(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new uC("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,p([new uC(t+" {")],e.cases[t].visit(n),[new uC("} ")]))}),r.push(new uC("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+e}}(e.tag);if(e.isVoid)return[new aC("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var r=new aC("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),i=new aC("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return p([r],this.serialize(e.children),[i])},e.prototype.visitPlaceholder=function(e,t){return[new aC("x",{id:e.name,"equiv-text":"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n="{"+e.value.expression+", "+e.value.type+", "+Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" ")+"}";return[new aC("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],p(e.map(function(e){return e.visit(t)})))},e}(),dC=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new eC).parse(e,t,!1);return this._errors=n.errors,C_(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"trans-unit":this._unitMlString=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(C_(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=e.startSourceSpan.end.offset,o=e.endSourceSpan.start.offset,s=e.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"file":var a=e.attrs.find(function(e){return"target-language"===e.name});a&&(this._locale=a.value),C_(this,e.children,null);break;default:C_(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}(),vC=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new eC).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],p(C_(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new PE(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){if("x"===e.name){var n=e.attrs.find(function(e){return"id"===e.name});return n?new OE("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],p(C_(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return C_(this,e.cases).forEach(function(t){n[t.value]=new NE(t.nodes,e.sourceSpan)}),new ME(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:C_(this,e.expression)}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}();var mC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.write=function(e,t){var n=new yC,r=[];e.forEach(function(e){var t=new aC("unit",{id:e.id}),i=new aC("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new cC(8),new aC("note",{category:"description"},[new uC(e.description)])),e.meaning&&i.children.push(new cC(8),new aC("note",{category:"meaning"},[new uC(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new cC(8),new aC("note",{category:"location"},[new uC(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new cC(6)),t.children.push(new cC(6),i);var o=new aC("segment");o.children.push(new cC(8),new aC("source",{},n.serialize(e.nodes)),new cC(6)),t.children.push(new cC(6),o,new cC(4)),r.push(new cC(4),t)});var i=new aC("file",{original:"ng.template",id:"ngi18n"},p(r,[new cC(2)])),o=new aC("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new cC(2),i,new cC]);return iC([new oC({version:"1.0",encoding:"UTF-8"}),new cC,o,new cC])},t.prototype.load=function(e,t){var n=(new gC).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new _C;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes,u=n.errors;o.push.apply(o,p(u)),s[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return lE(e)},t}(tC),yC=function(){function e(){}return e.prototype.visitText=function(e,t){return[new uC(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,p(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new uC("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,p([new uC(t+" {")],e.cases[t].visit(n),[new uC("} ")]))}),r.push(new uC("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}(e.tag);if(e.isVoid)return[new aC("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var i=new aC("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),o=[].concat.apply([],p(e.children.map(function(e){return e.visit(n)})));return o.length?o.forEach(function(e){return i.children.push(e)}):i.children.push(new uC("")),[i]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new aC("ph",{id:n,equiv:e.name,disp:"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n=Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new aC("ph",{id:r,equiv:e.name,disp:"{"+e.value.expression+", "+e.value.type+", "+n+"}"})]},e.prototype.serialize=function(e){var t=this;return this._nextPlaceholderId=0,[].concat.apply([],p(e.map(function(e){return e.visit(t)})))},e}(),gC=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new eC).parse(e,t,!1);return this._errors=n.errors,C_(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"unit":this._unitMlString=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(C_(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.end.offset,o=e.endSourceSpan.start.offset,s=e.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"xliff":var a=e.attrs.find(function(e){return"trgLang"===e.name});a&&(this._locale=a.value);var u=e.attrs.find(function(e){return"version"===e.name});if(u){var c=u.value;"2.0"!==c?this._addError(e,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):C_(this,e.children,null)}break;default:C_(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}(),_C=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new eC).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],p(C_(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new PE(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){var n=this;switch(e.name){case"ph":var r=e.attrs.find(function(e){return"equiv"===e.name});if(r)return[new OE("",r.value,e.sourceSpan)];this._addError(e,'<ph> misses the "equiv" attribute');break;case"pc":var i=e.attrs.find(function(e){return"equivStart"===e.name}),o=e.attrs.find(function(e){return"equivEnd"===e.name});if(i){if(o){var s=i.value,a=o.value,u=[];return u.concat.apply(u,p([new OE("",s,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new OE("",a,e.sourceSpan)]))}this._addError(e,'<ph> misses the "equivEnd" attribute')}else this._addError(e,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],p(C_(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return C_(this,e.cases).forEach(function(t){n[t.value]=new NE(t.nodes,e.sourceSpan)}),new ME(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],p(C_(this,e.expression)))}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}();var wC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.write=function(e,t){var n=new CC,r=new bC,i=new aC("messagebundle");return e.forEach(function(e){var t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);var n=[];e.sources.forEach(function(e){n.push(new aC("source",{},[new uC(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new cC(2),new aC("msg",t,p(n,r.serialize(e.nodes))))}),i.children.push(new cC),iC([new oC({version:"1.0",encoding:"UTF-8"}),new cC,new sC("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new cC,n.addDefaultExamples(i),new cC])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return EC(e)},t.prototype.createNameMapper=function(e){return new nC(e,xC)},t}(tC),bC=function(){function e(){}return e.prototype.visitText=function(e,t){return[new uC(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,p(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new uC("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,p([new uC(t+" {")],e.cases[t].visit(n),[new uC("} ")]))}),r.push(new uC("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new uC("<"+e.tag+">"),r=new aC("ex",{},[n]),i=new aC("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var o=new uC("</"+e.tag+">"),s=new aC("ex",{},[o]),a=new aC("ph",{name:e.closeName},[s,o]);return p([i],this.serialize(e.children),[a])},e.prototype.visitPlaceholder=function(e,t){var n=new uC("{{"+e.value+"}}"),r=new aC("ex",{},[n]);return[new aC("ph",{name:e.name},[r,n])]},e.prototype.visitIcuPlaceholder=function(e,t){var n=e.value.expression,r=e.value.type,i=Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" "),o=new uC("{"+n+", "+r+", "+i+"}"),s=new aC("ex",{},[o]);return[new aC("ph",{name:e.name},[s,o])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],p(e.map(function(e){return e.visit(t)})))},e}();function EC(e){return lE(e)}var CC=function(){function e(){}return e.prototype.addDefaultExamples=function(e){return e.visit(this),e},e.prototype.visitTag=function(e){var t=this;if("ph"===e.name){if(!e.children||0==e.children.length){var n=new uC(e.attrs.name||"...");e.children=[new aC("ex",{},[n])]}}else e.children&&e.children.forEach(function(e){return e.visit(t)})},e.prototype.visitText=function(e){},e.prototype.visitDeclaration=function(e){},e.prototype.visitDoctype=function(e){},e}();function xC(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var SC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new AC).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new TC;if(Object.keys(i).forEach(function(e){!function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(e,t,{enumerable:!0,value:r}),r},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(s,e,function(){var n=a.convert(i[e],t),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return EC(e)},t.prototype.createNameMapper=function(e){return new nC(e,xC)},t}(tC);var AC=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new eC).parse(e,t,!1);return this._errors=n.errors,C_(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(e,"<translationbundle> elements can not be nested");var n=e.attrs.find(function(e){return"lang"===e.name});n&&(this._locale=n.value),C_(this,e.children,null),this._bundleDepth--;break;case"translation":var r=e.attrs.find(function(e){return"id"===e.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,"Duplicated translations for msg "+i);else{var o=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,a=e.startSourceSpan.start.file.content.slice(o,s);this._msgIdToHtml[i]=a}}else this._addError(e,'<translation> misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}(),TC=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new eC).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:C_(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new PE(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return C_(this,e.cases).forEach(function(t){n[t.value]=new NE(t.nodes,e.sourceSpan)}),new ME(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:C_(this,e.expression)}},e.prototype.visitElement=function(e,t){if("ph"===e.name){var n=e.attrs.find(function(e){return"name"===e.name});if(n)return new OE("",n.value,e.sourceSpan);this._addError(e,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}(),DC=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=Rh.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new PC(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n),a=s.locale;return new e(s.i18nNodesByMsgId,a,function(e){return r.digest(e)},function(e){return r.createNameMapper(e)},i,o)},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),PC=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new z_).parse(t,n,!0);return{nodes:r.rootNodes,errors:p(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return pC(e.value)},e.prototype.visitContainer=function(e,t){var n=this;return e.children.map(function(e){return e.visit(n)}).join("")},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression]:e.expression)+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitPlaceholder=function(e,t){var n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,'Unknown placeholder "'+e.name+'"'),"")},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=""+e.tag,i=Object.keys(e.attrs).map(function(t){return t+'="'+e.attrs[t]+'"'}).join(" ");return e.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+e.children.map(function(e){return e.visit(n)}).join("")+"</"+r+">"},e.prototype.visitIcuPlaceholder=function(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])},e.prototype._convertToText=function(e){var t,n=this,r=this._digest(e),i=this._mapperFactory?this._mapperFactory(e):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r))t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e};else{if(this._missingTranslationStrategy===Rh.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===Rh.Warning){o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}t=e.nodes,this._mapper=function(e){return e}}var s=t.map(function(e){return e.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},e.prototype._addError=function(e,t){this._errors.push(new HE(e.sourceSpan,t))},e}(),NC=function(){function e(e,t,n,r,i){if(void 0===r&&(r=Rh.Warning),this._htmlParser=e,t){var o=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new wC;case"xtb":return new SC;case"xliff2":case"xlf2":return new mC;case"xliff":case"xlf":default:return new hC}}(n);this._translationBundle=DC.load(t,"i18n",o,r,i)}else this._translationBundle=new DC({},null,cE,void 0,r,i)}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=l_);var i=this._htmlParser.parse(e,t,n,r);return i.errors.length?new B_(i.rootNodes,i.errors):function(e,t,n,r,i){return new ZE(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}();function MC(e,t,n){return void 0===n&&(n=null),jd(t,new kC(e),n)}var kC=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return _d(e.map(function(e){return jd(e,n,null)}),t)},e.prototype.visitStringMap=function(e,t){var n=this,r=[],i=new Set(e&&e.$quoted$);return Object.keys(e).forEach(function(t){r.push(new qf(t,jd(e[t],n,null),i.has(t)))}),new zf(r,t)},e.prototype.visitPrimitive=function(e,t){return Cd(e,t)},e.prototype.visitOther=function(e,t){return e instanceof gf?e:this.ctx.importExpr(e)},e}();function OC(e,t){return{key:e,value:t,quoted:!1}}!function(){function e(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(pv.Injector)}e.prototype.depsArray=function(e,t){var n=this;return e.map(function(e){var r,i=e,o=[i],s=0;if(Array.isArray(e))for(var a=0;a<e.length;a++){var u=e[a];u&&("Optional"===u.ngMetadataName?s|=8:"SkipSelf"===u.ngMetadataName?s|=4:"Self"===u.ngMetadataName?s|=2:i="Inject"===u.ngMetadataName?u.token:u)}return r="string"==typeof i?Cd(i):i===n.tokenInjector?md(pv.INJECTOR):t.importExpr(i),o=0!==s?[r,Cd(s)]:[r],md(pv.inject).callFn(o)})},e.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=md(pv.inject).callFn([t.importExpr(e.useExisting)]);else if(e.useFactory){var r=e.deps||[];if(!(r.length>0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=MC(t,e.useValue);else{var i=e.useClass||e.symbol,o=this.depsArray(this.reflector.parameters(i),t);n=new Pf(t.importExpr(i),o)}return bd([],[new Xf(n)],void 0,void 0,e.symbol.name+"_Factory")},e.prototype.injectableDef=function(e,t){var n=Gf;void 0!==e.providedIn&&(n=null===e.providedIn?Gf:"string"==typeof e.providedIn?Cd(e.providedIn):t.importExpr(e.providedIn));var r=[OC("factory",this.factoryFor(e,t)),OC("token",t.importExpr(e.type.reference)),OC("providedIn",n)];return md(pv.defineInjectable).callFn([wd(r)])},e.prototype.compile=function(e,t){if(this.alwaysGenerateDef||void 0!==e.providedIn){var n=wv(e.type),r=new rd(n,null,[new ed("ngInjectableDef",pf,[Af.Static],this.injectableDef(e,t))],[],new td(null,[],[]),[]);t.statements.push(r)}}}();var IC=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,FC=/\.ngfactory\.|\.ngsummary\./,RC=/\.ngsummary\./,jC=/NgSummary$/;function LC(e,t){void 0===t&&(t=!1);var n=BC(e,t);return n[0]+".ngfactory"+UC(n[1])}function VC(e){return e.replace(FC,".")}function BC(e,t){if(void 0===t&&(t=!1),e.endsWith(".d.ts"))return[e.slice(0,-5),t?".ts":".d.ts"];var n=e.lastIndexOf(".");return-1!==n?[e.substring(0,n),e.substring(n)]:[e,""]}function UC(e){return".tsx"===e?".ts":e}function HC(e){return e.replace(IC,"")+".ngsummary.json"}function qC(e,t){void 0===t&&(t=!1);var n=BC(VC(e),t);return n[0]+".ngsummary"+n[1]}function zC(e){return e+"NgSummary"}var WC=/\u0275\d+/;var GC="ngComponentType",KC=function(){function e(e,t,n,r,i,o,s,a,u,c,l,p){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}return e.prototype.getReflector=function(){return this._reflector},e.prototype.clearCacheFor=function(e){var t=this._directiveCache.get(e);this._directiveCache.delete(e),this._nonNormalizedDirectiveCache.delete(e),this._summaryCache.delete(e),this._pipeCache.delete(e),this._ngModuleOfTypes.delete(e),this._ngModuleCache.clear(),t&&this._directiveNormalizer.clearCacheFor(t)},e.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},e.prototype._createProxyClass=function(e,t){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+t+" for type "+Yd(e)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(e){n=e,r.prototype=e.prototype},r.overriddenName=t,r},e.prototype.getGeneratedClass=function(e,t){return e instanceof dv?this._staticSymbolCache.get(LC(e.filePath),t):this._createProxyClass(e,t)},e.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,Ev(e,0))},e.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,"HostView_"+wv({reference:e}))},e.prototype.getHostComponentType=function(e){var t=wv({reference:e})+"_Host";return e instanceof dv?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},e.prototype.getRendererType=function(e){return e instanceof dv?this._staticSymbolCache.get(LC(e.filePath),Cv(e)):{}},e.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof dv)return this._staticSymbolCache.get(LC(t.filePath),xv(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(pv.createComponentFactory)(e,t,i,n,r,[])},e.prototype.initComponentFactory=function(e,t){var n;e instanceof dv||(n=e.ngContentSelectors).push.apply(n,p(t))},e.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);n=r?r.type:null,this._summaryCache.set(e,n||null)}return n&&n.summaryKind===t?n:null},e.prototype.getHostComponentMetadata=function(e,t){var n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));var r=Ch.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Pv.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Dv({encapsulation:wh.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:bh.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:wh.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},e.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=Xd(t);var i,o,s=this.getNonNormalizedDirectiveMetadata(t),a=s.annotation,u=s.metadata,c=function(e){var n=new Pv({isHost:!1,type:u.type,isComponent:u.isComponent,selector:u.selector,exportAs:u.exportAs,changeDetection:u.changeDetection,inputs:u.inputs,outputs:u.outputs,hostListeners:u.hostListeners,hostProperties:u.hostProperties,hostAttributes:u.hostAttributes,providers:u.providers,viewProviders:u.viewProviders,queries:u.queries,guards:u.guards,viewQueries:u.viewQueries,entryComponents:u.entryComponents,componentViewType:u.componentViewType,rendererType:u.rendererType,componentFactory:u.componentFactory,template:e});return e&&r.initComponentFactory(u.componentFactory,e.ngContentSelectors),r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),null};if(u.isComponent){var l=u.template,p=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,a),encapsulation:l.encapsulation,template:l.template,templateUrl:l.templateUrl,styles:l.styles,styleUrls:l.styleUrls,animations:l.animations,interpolation:l.interpolation,preserveWhitespaces:l.preserveWhitespaces});return Jd(p)&&n?(this._reportError((i=t,(o=Error("Can't compile synchronously as "+Yd(i)+" is still being loaded!"))[GC]=i,o),t),null):Hd(p,c)}return c(null),null},e.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=Xd(e)))return null;var n=this._nonNormalizedDirectiveCache.get(e);if(n)return n;var r=this._directiveResolver.resolve(e,!1);if(!r)return null;var i=void 0;if(jh.isTypeOf(r)){s_("styles",(s=r).styles),s_("styleUrls",s.styleUrls),u_("interpolation",s.interpolation);var o=s.animations;i=new Dv({encapsulation:Vd(s.encapsulation),template:Vd(s.template),templateUrl:Vd(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:Vd(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:Vd(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;jh.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+YC(e)+'"',[],e)),s.entryComponents&&(c=QC(s.entryComponents).map(function(e){return t._getEntryComponentMetadata(e)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(Wd("Directive "+YC(e)+" has no selector, please add it!"),e),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+YC(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=Pv.create({isHost:!1,selector:l,exportAs:Vd(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(e),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(e):null,rendererType:i?this.getRendererType(e):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,e,d.inputs,d.outputs)),n={metadata:d,annotation:r},this._nonNormalizedDirectiveCache.set(e,n),n},e.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(Wd("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+YC(e)+"."),e),t},e.prototype.getDirectiveSummary=function(e){var t=this._loadSummary(e,gv.Directive);return t||this._reportError(Wd("Illegal state: Could not load the summary for directive "+YC(e)+"."),e),t},e.prototype.isDirective=function(e){return!!this._loadSummary(e,gv.Directive)||this._directiveResolver.isDirective(e)},e.prototype.isPipe=function(e){return!!this._loadSummary(e,gv.Pipe)||this._pipeResolver.isPipe(e)},e.prototype.isNgModule=function(e){return!!this._loadSummary(e,gv.NgModule)||this._ngModuleResolver.isNgModule(e)},e.prototype.getNgModuleSummary=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,gv.NgModule);if(!n){var r=this.getNgModuleMetadata(e,!1,t);(n=r?r.toSummary():null)&&this._summaryCache.set(e,n)}return n},e.prototype.loadNgModuleDirectiveAndPipeMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(e,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(e,n.reference,t);i&&o.push(i)}),i.declaredPipes.forEach(function(e){return r._loadPipeMetadata(e.reference)})),Promise.all(o)},e.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=uE(this._reflector.shallowAnnotations(e),qh.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t},e.prototype.getNgModuleMetadata=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null),e=Xd(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],v=[];o.imports&&QC(o.imports).forEach(function(t){var i=void 0;if($C(t))i=t;else if(t&&t.ngModule){var o=t;i=o.ngModule,o.providers&&h.push.apply(h,p(r._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+YC(i)+"'",[],t)))}if(i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(Wd(r._getTypeDescriptor(i)+" '"+YC(t)+"' is imported recursively by the module '"+YC(e)+"'."),e);else{n.add(i);var s=r.getNgModuleSummary(i,n);n.delete(i),s?c.push(s):r._reportError(Wd("Unexpected "+r._getTypeDescriptor(t)+" '"+YC(t)+"' imported by the module '"+YC(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(Wd("Unexpected value '"+YC(t)+"' imported by the module '"+YC(e)+"'"),e)}),o.exports&&QC(o.exports).forEach(function(t){if($C(t))if(n||(n=new Set),n.has(t))r._reportError(Wd(r._getTypeDescriptor(t)+" '"+Yd(t)+"' is exported recursively by the module '"+YC(e)+"'"),e);else{n.add(t);var i=r.getNgModuleSummary(t,n);n.delete(t),i?l.push(i):a.push(r._getIdentifierMetadata(t))}else r._reportError(Wd("Unexpected value '"+YC(t)+"' exported by the module '"+YC(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&QC(o.declarations).forEach(function(t){if($C(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))m.addDirective(n),s.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(Wd("Unexpected "+r._getTypeDescriptor(t)+" '"+YC(t)+"' declared by the module '"+YC(e)+"'. Please add a @Pipe/@Directive/@Component annotation."),e);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(t,e)}}else r._reportError(Wd("Unexpected value '"+YC(t)+"' declared by the module '"+YC(e)+"'"),e)});var y=[],g=[];return a.forEach(function(t){if(m.directivesSet.has(t.reference))y.push(t),m.addExportedDirective(t);else{if(!m.pipesSet.has(t.reference))return void r._reportError(Wd("Can't export "+r._getTypeDescriptor(t.reference)+" "+YC(t.reference)+" from "+YC(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}}),o.providers&&h.push.apply(h,p(this._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+YC(e)+"'",[],e))),o.entryComponents&&f.push.apply(f,p(QC(o.entryComponents).map(function(e){return r._getEntryComponentMetadata(e)}))),o.bootstrap&&QC(o.bootstrap).forEach(function(t){$C(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(Wd("Unexpected value '"+YC(t)+"' used in the bootstrap property of module '"+YC(e)+"'"),e)}),f.push.apply(f,p(d.map(function(e){return r._getEntryComponentMetadata(e.reference)}))),o.schemas&&v.push.apply(v,p(QC(o.schemas))),i=new Mv({type:this._getTypeMetadata(e),providers:h,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:o.id||null}),f.forEach(function(e){return m.addEntryComponent(e)}),h.forEach(function(e){return m.addProvider(e,i.type)}),m.addModule(i.type),this._ngModuleCache.set(e,i),i},e.prototype._checkSelfImport=function(e,t){return e===t&&(this._reportError(Wd("'"+YC(e)+"' module can't import itself"),e),!0)},e.prototype._getTypeDescriptor=function(e){if($C(e)){if(this.isDirective(e))return"directive";if(this.isPipe(e))return"pipe";if(this.isNgModule(e))return"module"}return e.provide?"provider":"value"},e.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);n&&n!==t?this._reportError(Wd("Type "+YC(e)+" is part of the declarations of 2 modules: "+YC(n)+" and "+YC(t)+"! Please consider moving "+YC(e)+" to a higher module that imports "+YC(n)+" and "+YC(t)+". You can also create a new NgModule that exports and includes "+YC(e)+" then import that NgModule in "+YC(n)+" and "+YC(t)+"."),t):this._ngModuleOfTypes.set(e,t)},e.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new kv,r=new Map;return e.concat(t).forEach(function(e){e.modules.forEach(function(e){return n.addModule(e)}),e.entryComponents.forEach(function(e){return n.addEntryComponent(e)});var t=new Set;e.providers.forEach(function(e){var i=Av(e.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=e.module.reference;!t.has(i)&&o.has(s)||(o.add(s),t.add(i),n.addProvider(e.provider,e.module))})}),t.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addExportedDirective(e)}),e.exportedPipes.forEach(function(e){return n.addExportedPipe(e)})}),e.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addDirective(e)}),e.exportedPipes.forEach(function(e){return n.addPipe(e)})}),n},e.prototype._getIdentifierMetadata=function(e){return{reference:e=Xd(e)}},e.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some(function(e){return zh.isTypeOf(e)})},e.prototype.getInjectableSummary=function(e){return{summaryKind:gv.Injectable,type:this._getTypeMetadata(e,null,!1)}},e.prototype.getInjectableMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r=this._loadSummary(e,gv.Injectable),i=r?r.type:this._getTypeMetadata(e,t,n),o=this._reflector.annotations(e).filter(function(e){return zh.isTypeOf(e)});if(0===o.length)return null;var s=o[o.length-1];return{symbol:e,type:i,providedIn:s.providedIn,useValue:s.useValue,useClass:s.useClass,useExisting:s.useExisting,useFactory:s.useFactory,deps:s.deps}},e.prototype._getTypeMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r,i,o=this._getIdentifierMetadata(e);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,t,n),lifecycleHooks:(r=this._reflector,i=o.reference,xy.filter(function(e){return Sy(r,e,i)}))}},e.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=Xd(e),diDeps:this._getDependenciesMetadata(e,t)}},e.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(Wd("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+YC(e)+"."),e),t||null},e.prototype.getPipeSummary=function(e){var t=this._loadSummary(e,gv.Pipe);return t||this._reportError(Wd("Illegal state: Could not load the summary for pipe "+YC(e)+"."),e),t},e.prototype.getOrLoadPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t},e.prototype._loadPipeMetadata=function(e){e=Xd(e);var t=this._pipeResolver.resolve(e),n=new Nv({type:this._getTypeMetadata(e),name:t.name,pure:!!t.pure});return this._pipeCache.set(e,n),this._summaryCache.set(e,n.toSummary()),n},e.prototype._getDependenciesMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(t||this._reflector.parameters(e)||[]).map(function(e){var t=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(e)?e.forEach(function(e){Zh.isTypeOf(e)?n=!0:Qh.isTypeOf(e)?o=!0:$h.isTypeOf(e)?s=!0:Kh.isTypeOf(e)?a=!0:Ph.isTypeOf(e)?(t=!0,u=e.attributeName):Th.isTypeOf(e)?u=e.token:Dh.isTypeOf(e)||e instanceof dv?u=e:$C(e)&&null==u&&(u=e)}):u=e,null==u?(i=!0,null):{isAttribute:t,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(e){return e?YC(e.token):"?"}).join(", "),a="Can't resolve all parameters for "+YC(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(Wd(a),e):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},e.prototype._getTokenMetadata=function(e){return"string"==typeof(e=Xd(e))?{value:e}:{identifier:{reference:e}}},e.prototype._getProvidersMetadata=function(e,t,n,r,i){var o=this;return void 0===r&&(r=[]),e.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,t,n,r);else{var u=void 0;if((s=Xd(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new Iv(s.provide,s);else{if(!$C(s)){if(void 0===s)return void o._reportError(Wd("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var c=e.reduce(function(e,t,n){return n<a?e.push(""+YC(t)):n==a?e.push("?"+YC(t)+"?"):n==a+1&&e.push("..."),e},[]).join(", ");return void o._reportError(Wd("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+c+"]"),i)}u=new Iv(s,{useClass:s})}u.token===o._reflector.resolveExternalReference(pv.ANALYZE_FOR_ENTRY_COMPONENTS)?t.push.apply(t,p(o._getEntryComponentsFromProvider(u,i))):r.push(o.getProviderMetadata(u))}}),r},e.prototype._validateProvider=function(e){e.hasOwnProperty("useClass")&&null==e.useClass&&this._reportError(Wd("Invalid provider for "+YC(e.provide)+". useClass cannot be "+e.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},e.prototype._getEntryComponentsFromProvider=function(e,t){var n,r,i=this,o=[],s=[];return e.useFactory||e.useExisting||e.useClass?(this._reportError(Wd("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(n=e.useValue,r=s,jd(n,new ZC,r),s.forEach(function(e){var t=i._getEntryComponentMetadata(e.reference,!1);t&&o.push(t)}),o):(this._reportError(Wd("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[])},e.prototype._getEntryComponentMetadata=function(e,t){void 0===t&&(t=!0);var n=this.getNonNormalizedDirectiveMetadata(e);if(n&&n.metadata.isComponent)return{componentType:e,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(e,gv.Directive);if(r&&r.isComponent)return{componentType:e,componentFactory:r.componentFactory};if(t)throw Wd(e.name+" cannot be used as an entry component.");return null},e.prototype._getInjectableTypeMetadata=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,gv.Injectable);return n?n.type:this._getTypeMetadata(e,t)},e.prototype.getProviderMetadata=function(e){var t=void 0,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableTypeMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):void 0,deps:t,multi:e.multi}},e.prototype._getQueriesMetadata=function(e,t,n){var r=this,i=[];return Object.keys(e).forEach(function(o){var s=e[o];s.isViewQuery===t&&i.push(r._getQueryMetadata(s,o,n))}),i},e.prototype._queryVarBindings=function(e){return e.split(/\s*,\s*/)},e.prototype._getQueryMetadata=function(e,t,n){var r,i=this;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map(function(e){return i._getTokenMetadata(e)}):e.selector?r=[this._getTokenMetadata(e.selector)]:(this._reportError(Wd("Can't construct a query for the property \""+t+'" of "'+YC(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null}},e.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},e}();function QC(e){return(t=function e(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=Xd(t[r]);Array.isArray(i)?e(i,n):n.push(i)}return n}(e))?Array.from(new Set(t)):[];var t}function $C(e){return e instanceof dv||e instanceof Yh}var ZC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.visitOther=function(e,t){t.push({reference:e})},t}(Bd);function YC(e){return e instanceof dv?e.name+" in "+e.filePath:Yd(e)}var XC=function(e){function t(t,n){return e.call(this,n,t)||this}return i(t,e),t}(fg),JC=function(){return function(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach(function(e){return ox(n,{meta:e,queryId:t++})}),n}(t),this.viewProviders=new Map,t.viewProviders.forEach(function(e){null==n.viewProviders.get(Av(e.token))&&n.viewProviders.set(Av(e.token),!0)})}}(),ex=function(){function e(e,t,n,r,i,o,s,a,u){var c=this;this.viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(e){return c._attrs[e.name]=e.value});var l,p,h,f,d=r.map(function(e){return e.directive});if(this._allProviders=(l=d,p=u,h=e.errors,f=new Map,l.forEach(function(e){ix([{token:{identifier:e.type},useClass:e.type}],e.isComponent?Vb.Component:Vb.Directive,!0,p,h,f,!1)}),l.filter(function(e){return e.isComponent}).concat(l.filter(function(e){return!e.isComponent})).forEach(function(e){ix(e.providers,Vb.PublicService,!1,p,h,f,!1),ix(e.viewProviders,Vb.PrivateService,!1,p,h,f,!1)}),f),this._contentQueries=function(e,t){var n=e,r=new Map;return t.forEach(function(e,t){e.queries&&e.queries.forEach(function(e){return ox(r,{meta:e,queryId:n++})})}),r}(a,d),Array.from(this._allProviders.values()).forEach(function(e){c._addQueryReadsTo(e.token,e.token,c._queriedTokens)}),s){var v=fv(this.viewContext.reflector,pv.TemplateRef);this._addQueryReadsTo(v,v,this._queriedTokens)}o.forEach(function(e){var t=e.value||fv(c.viewContext.reflector,pv.ElementRef);c._addQueryReadsTo({value:e.name},t,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(pv.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||c._queriedTokens.get(Av(e.token)))&&c._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return e.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(e.prototype,"transformProviders",{get:function(){var e=[],t=[];return this._transformedProviders.forEach(function(n){n.eager?t.push(n):e.push(n)}),e.concat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map(function(e){return e.token.identifier}),t=this._directiveAsts.slice();return t.sort(function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.directive.type)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach(function(t){e.push.apply(e,p(t))}),e},enumerable:!0,configurable:!0}),e.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach(function(e){var r=e.meta.read||t,i=Av(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:e.queryId,value:r})})},e.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(Av(e)))&&n.push.apply(n,p(t.filter(function(e){return e.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(Av(e)))&&n.push.apply(n,p(t)),n},e.prototype._getOrCreateLocalProvider=function(e,t,n){var r=this,i=this._allProviders.get(Av(t));if(!i||(e===Vb.Directive||e===Vb.PublicService)&&i.providerType===Vb.PrivateService||(e===Vb.PrivateService||e===Vb.PublicService)&&i.providerType===Vb.Builtin)return null;var o=this._transformedProviders.get(Av(t));if(o)return o;if(null!=this._seenProviders.get(Av(t)))return this.viewContext.errors.push(new XC("Cannot instantiate cyclic dependency! "+Sv(t),this._sourceSpan)),null;this._seenProviders.set(Av(t),!0);var s=i.providers.map(function(e){var t=e.useValue,o=e.useExisting,s=void 0;if(null!=e.useExisting){var a=r._getDependency(i.providerType,{token:e.useExisting},n);null!=a.token?o=a.token:(o=null,t=a.value)}else if(e.useFactory){s=(e.deps||e.useFactory.diDeps).map(function(e){return r._getDependency(i.providerType,e,n)})}else if(e.useClass){s=(e.deps||e.useClass.diDeps).map(function(e){return r._getDependency(i.providerType,e,n)})}return nx(e,{useExisting:o,useValue:t,deps:s})});return o=rx(i,{eager:n,providers:s}),this._transformedProviders.set(Av(t),o),o},e.prototype._getLocalDependency=function(e,t,n){if(void 0===n&&(n=!1),t.isAttribute){var r=this._attrs[t.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=t.token){if(e===Vb.Directive||e===Vb.Component){if(Av(t.token)===this.viewContext.reflector.resolveExternalReference(pv.Renderer)||Av(t.token)===this.viewContext.reflector.resolveExternalReference(pv.ElementRef)||Av(t.token)===this.viewContext.reflector.resolveExternalReference(pv.ChangeDetectorRef)||Av(t.token)===this.viewContext.reflector.resolveExternalReference(pv.TemplateRef))return t;Av(t.token)===this.viewContext.reflector.resolveExternalReference(pv.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Av(t.token)===this.viewContext.reflector.resolveExternalReference(pv.Injector))return t;if(null!=this._getOrCreateLocalProvider(e,t.token,n))return t}return null},e.prototype._getDependency=function(e,t,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(t.isSkipSelf||(o=this._getLocalDependency(e,t,n)),t.isSelf)!o&&t.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(Vb.PublicService,t,i)}o||(o=!t.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Av(t.token)||null!=this.viewContext.viewProviders.get(Av(t.token))?t:t.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new XC("No provider for "+Sv(t.token),this._sourceSpan)),o},e}(),tx=function(){function e(e,t,n,r){var i=this;this.reflector=e,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(e){ix([{token:{identifier:e},useClass:e}],Vb.PublicService,!0,r,i._errors,i._allProviders,!0)}),ix(t.transitiveModule.providers.map(function(e){return e.provider}).concat(n),Vb.PublicService,!1,r,this._errors,this._allProviders,!1)}return e.prototype.parse=function(){var e=this;if(Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){var t=this._errors.join("\n");throw new Error("Provider parse errors:\n"+t)}var n=[],r=[];return this._transformedProviders.forEach(function(e){e.eager?r.push(e):n.push(e)}),n.concat(r)},e.prototype._getOrCreateLocalProvider=function(e,t){var n=this,r=this._allProviders.get(Av(e));if(!r)return null;var i=this._transformedProviders.get(Av(e));if(i)return i;if(null!=this._seenProviders.get(Av(e)))return this._errors.push(new XC("Cannot instantiate cyclic dependency! "+Sv(e),r.sourceSpan)),null;this._seenProviders.set(Av(e),!0);var o=r.providers.map(function(e){var i=e.useValue,o=e.useExisting,s=void 0;if(null!=e.useExisting){var a=n._getDependency({token:e.useExisting},t,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(e.useFactory){s=(e.deps||e.useFactory.diDeps).map(function(e){return n._getDependency(e,t,r.sourceSpan)})}else if(e.useClass){s=(e.deps||e.useClass.diDeps).map(function(e){return n._getDependency(e,t,r.sourceSpan)})}return nx(e,{useExisting:o,useValue:i,deps:s})});return i=rx(r,{eager:t,providers:o}),this._transformedProviders.set(Av(e),i),i},e.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||Av(e.token)===this.reflector.resolveExternalReference(pv.Injector)||Av(e.token)===this.reflector.resolveExternalReference(pv.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},e}();function nx(e,t){var n=t.useExisting,r=t.useValue,i=t.deps;return{token:e.token,useClass:e.useClass,useExisting:n,useFactory:e.useFactory,useValue:r,deps:i,multi:e.multi}}function rx(e,t){var n=t.eager,r=t.providers;return new Xb(e.token,e.multiProvider,e.eager||n,r,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function ix(e,t,n,r,i,o,s){e.forEach(function(e){var a=o.get(Av(e.token));if(null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new XC("Mixing multi and non multi provider is not possible for token "+Sv(a.token),r)),a)e.multi||(a.providers.length=0),a.providers.push(e);else{var u=e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],c=!(e.useClass||e.useExisting||e.useFactory);a=new Xb(e.token,!!e.multi,n||c,[e],t,u,r,s),o.set(Av(e.token),a)}})}function ox(e,t){t.meta.selectors.forEach(function(n){var r=e.get(Av(n));r||(r=[],e.set(Av(n),r)),r.push(t)})}function sx(e,t){var n=0;t.eager||(n|=4096),t.providerType===Vb.PrivateService&&(n|=8192),t.isModule&&(n|=1073741824),t.lifecycleHooks.forEach(function(e){e!==Ey.OnDestroy&&t.providerType!==Vb.Directive&&t.providerType!==Vb.Component||(n|=lx(e))});var r=t.multiProvider?function(e,t,n){var r=[],i=[],o=n.map(function(t,n){var r;if(t.useClass){var i=s(n,t.deps||t.useClass.diDeps);r=e.importExpr(t.useClass.reference).instantiate(i)}else if(t.useFactory){var i=s(n,t.deps||t.useFactory.diDeps);r=e.importExpr(t.useFactory.reference).callFn(i)}else if(t.useExisting){var i=s(n,[{token:t.useExisting}]);r=i[0]}else r=MC(e,t.useValue);return r});return{providerExpr:bd(i,[new Xf(_d(o))],pf),flags:1024|t,depsExpr:_d(r)};function s(t,n){return n.map(function(n,o){var s="p"+t+"_"+o;return i.push(new jf(s,lf)),r.push(cx(e,n)),vd(s)})}}(e,n,t.providers):ax(e,n,t.providerType,t.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:ux(e,t.token)}}function ax(e,t,n,r){var i,o;return n===Vb.Directive||n===Vb.Component?(i=e.importExpr(r.useClass.reference),t|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=e.importExpr(r.useClass.reference),t|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=e.importExpr(r.useFactory.reference),t|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=Gf,t|=2048,o=[{token:r.useExisting}]):(i=MC(e,r.useValue),t|=256,o=[]),{providerExpr:i,flags:t,depsExpr:_d(o.map(function(t){return cx(e,t)}))}}function ux(e,t){return t.identifier?e.importExpr(t.identifier.reference):Cd(t.value)}function cx(e,t){var n=t.isValue?MC(e,t.value):ux(e,t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isSelf&&(r|=4),t.isValue&&(r|=8),0===r?n:_d([Cd(r),n])}function lx(e){var t=0;switch(e){case Ey.AfterContentChecked:t=2097152;break;case Ey.AfterContentInit:t=1048576;break;case Ey.AfterViewChecked:t=8388608;break;case Ey.AfterViewInit:t=4194304;break;case Ey.DoCheck:t=262144;break;case Ey.OnChanges:t=524288;break;case Ey.OnDestroy:t=131072;break;case Ey.OnInit:t=65536}return t}function px(e,t,n,r){var i=r.map(function(e){return t.importExpr(e.componentFactory)}),o=fv(e,pv.ComponentFactoryResolver),s={diDeps:[{isValue:!0,value:_d(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:fv(e,pv.NgModuleRef)}],lifecycleHooks:[],reference:e.resolveExternalReference(pv.CodegenComponentFactoryResolver)},a=ax(t,n,Vb.PrivateService,{token:o,multi:!1,useClass:s});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:ux(t,o)}}var hx=function(){return function(e){this.ngModuleFactoryVar=e}}(),fx=vd("_l"),dx=function(){function e(e){this.reflector=e}return e.prototype.compile=function(e,t,n){var r=dg("NgModule",t.type),i=t.transitiveModule.entryComponents,o=t.bootstrapComponents,s=new tx(this.reflector,t,n,r),a=[px(this.reflector,e,0,i)].concat(s.parse().map(function(t){return sx(e,t)})).map(function(e){var t=e.providerExpr,n=e.depsExpr,r=e.flags,i=e.tokenExpr;return md(pv.moduleProviderDef).callFn([Cd(r),i,t,n])}),u=md(pv.moduleDef).callFn([_d(a)]),c=bd([new jf(fx.name)],[new Xf(u)],pf),l=wv(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,md(pv.createModuleFactory).callFn([e.importExpr(t.type.reference),_d(o.map(function(t){return e.importExpr(t.reference)})),c])),t.id){var p="string"==typeof t.id?Cd(t.id):e.importExpr(t.id),h=md(pv.RegisterModuleFactoryFn).callFn([p,vd(l)]).toStmt();e.statements.push(h)}return new hx(l)},e.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,Gf)},e.prototype._createNgModuleFactory=function(e,t,n){var r=vd(wv({reference:t})+"NgFactory").set(n).toDeclStmt(yd(pv.NgModuleFactory,[gd(e.importExpr(t))],[tf.Const]),[Af.Final,Af.Exported]);e.statements.push(r)},e}(),vx=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some(qh.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=uE(this._reflector.annotations(e),qh.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+Yd(e)+"'.");return null},e}();!function(){function e(){}e.prototype.emitStatementsAndContext=function(e,t,n,r,i,o){void 0===n&&(n=""),void 0===r&&(r=!0);var s=new mx(i,o),a=mm.createRoot();s.visitAllStatements(t,a);var u=n?n.split("\n"):[];s.reexports.forEach(function(e,t){var n=e.map(function(e){return e.name+" as "+e.as}).join(",");u.push("export {"+n+"} from '"+t+"';")}),s.importsWithPrefixes.forEach(function(e,t){u.push("import * as "+e+" from '"+t+"';")});var c=r?a.toSourceMapGenerator(e,u.length).toJsComment():"",l=p(u,[a.toSource(),c]);return c&&l.push(""),a.setPreambleLineCount(u.length),{sourceText:l.join("\n"),context:a}},e.prototype.emitStatements=function(e,t,n){return void 0===n&&(n=""),this.emitStatementsAndContext(e,t,n).sourceText}}();var mx=function(e){function t(t,n){var r=e.call(this,!1)||this;return r.referenceFilter=t,r.importFilter=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return i(t,e),t.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),e?(this.typeExpression++,e.visitType(this,t),this.typeExpression--):t.print(null,n)},t.prototype.visitLiteralExpr=function(t,n){var r=t.value;return null==r&&t.type!=pf?(n.print(t,"("+r+" as any)"),null):e.prototype.visitLiteralExpr.call(this,t,n)},t.prototype.visitLiteralArrayExpr=function(t,n){0===t.entries.length&&n.print(t,"(");var r=e.prototype.visitLiteralArrayExpr.call(this,t,n);return 0===t.entries.length&&n.print(t," as any[])"),r},t.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},t.prototype.visitAssertNotNullExpr=function(t,n){var r=e.prototype.visitAssertNotNullExpr.call(this,t,n);return n.print(t,"!"),r},t.prototype.visitDeclareVarStmt=function(e,t){if(e.hasModifier(Af.Exported)&&e.value instanceof Mf&&!e.type){var n=e.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:e.name}),null}}return e.hasModifier(Af.Exported)&&t.print(e,"export "),e.hasModifier(Af.Final)?t.print(e,"const"):t.print(e,"var"),t.print(e," "+e.name),this._printColonType(e.type,t),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},t.prototype.visitCastExpr=function(e,t){return t.print(e,"(<"),e.type.visitType(this,t),t.print(e,">"),e.value.visitExpression(this,t),t.print(e,")"),null},t.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),this.typeExpression++,e.classExpr.visitExpression(this,t),this.typeExpression--,t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),e.hasModifier(Af.Exported)&&t.print(e,"export "),t.print(e,"class "+e.name),null!=e.parent&&(t.print(e," extends "),this.typeExpression++,e.parent.visitExpression(this,t),this.typeExpression--),t.println(e," {"),t.incIndent(),e.fields.forEach(function(e){return n._visitClassField(e,t)}),null!=e.constructorMethod&&this._visitClassConstructor(e,t),e.getters.forEach(function(e){return n._visitClassGetter(e,t)}),e.methods.forEach(function(e){return n._visitClassMethod(e,t)}),t.decIndent(),t.println(e,"}"),t.popClass(),null},t.prototype._visitClassField=function(e,t){e.hasModifier(Af.Private)&&t.print(null,"/*private*/ "),e.hasModifier(Af.Static)&&t.print(null,"static "),t.print(null,e.name),this._printColonType(e.type,t),e.initializer&&(t.print(null," = "),e.initializer.visitExpression(this,t)),t.println(null,";")},t.prototype._visitClassGetter=function(e,t){e.hasModifier(Af.Private)&&t.print(null,"private "),t.print(null,"get "+e.name+"()"),this._printColonType(e.type,t),t.println(null," {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(null,"}")},t.prototype._visitClassConstructor=function(e,t){t.print(e,"constructor("),this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println(e,"}")},t.prototype._visitClassMethod=function(e,t){e.hasModifier(Af.Private)&&t.print(null,"private "),t.print(null,e.name+"("),this._visitParams(e.params,t),t.print(null,")"),this._printColonType(e.type,t,"void"),t.println(null," {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(null,"}")},t.prototype.visitFunctionExpr=function(e,t){return e.name&&(t.print(e,"function "),t.print(e,e.name)),t.print(e,"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),e.name||t.print(e," => "),t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return e.hasModifier(Af.Exported)&&t.print(e,"export "),t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),t.println(e," {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,"} catch ("+fm.name+") {"),t.incIndent();var n=[dm.set(fm.prop("stack",null)).toDeclStmt(null,[Af.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitBuiltinType=function(e,t){var n;switch(e.name){case nf.Bool:n="boolean";break;case nf.Dynamic:n="any";break;case nf.Function:n="Function";break;case nf.Number:case nf.Int:n="number";break;case nf.String:n="string";break;case nf.None:n="never";break;default:throw new Error("Unsupported builtin type "+e.name)}return t.print(null,n),null},t.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&(t.print(null,"<"),this.visitAllObjects(function(e){return n.visitType(e,t)},e.typeParams,t,","),t.print(null,">")),null},t.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print(null,"[]"),null},t.prototype.visitMapType=function(e,t){return t.print(null,"{[key: string]:"),this.visitType(e.valueType,t),t.print(null,"}"),null},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case _f.ConcatArray:t="concat";break;case _f.SubscribeObservable:t="subscribe";break;case _f.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects(function(e){t.print(null,e.name),n._printColonType(e.type,t)},e,t,",")},t.prototype._visitIdentifier=function(e,t,n){var r=this,i=e.name,o=e.moduleName;if(this.referenceFilter&&this.referenceFilter(e))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(e))){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}if(n.print(null,i),this.typeExpression>0)(t||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(e){return e.visitType(r,n)},t,n,","),n.print(null,">"))}},t.prototype._printColonType=function(e,t,n){e!==pf&&(t.print(null,":"),this.visitType(e,t,n))},t}(ym),yx=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(Xd(e));return t&&t.some(Lh.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Xd(e));if(n){var r=uE(n,Lh.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Yd(e));return null},e}(),gx=["zero","one","two","few","many","other"];function _x(e){var t=new Ex;return new wx(C_(t,e),t.isExpanded,t.errors)}var wx=function(){return function(e,t,n){this.nodes=e,this.expanded=t,this.errors=n}}(),bx=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t}(fg),Ex=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new b_(e.name,e.attrs,C_(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitText=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return this.isExpanded=!0,"plural"==e.type?(n=e,r=this.errors,i=n.cases.map(function(e){-1!=gx.indexOf(e.value)||e.value.match(/^=\d+$/)||r.push(new bx(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+gx.join(", ")));var t=_x(e.expression);return r.push.apply(r,p(t.errors)),new b_("ng-template",[new w_("ngPluralCase",""+e.value,e.valueSourceSpan)],t.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),o=new w_("[ngPlural]",n.switchValue,n.switchValueSourceSpan),new b_("ng-container",[o],i,n.sourceSpan,n.sourceSpan,n.sourceSpan)):function(e,t){var n=e.cases.map(function(e){var n=_x(e.expression);return t.push.apply(t,p(n.errors)),"other"===e.value?new b_("ng-template",[new w_("ngSwitchDefault","",e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan):new b_("ng-template",[new w_("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new w_("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new b_("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors);var n,r,i,o},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}();var Cx,xx=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Sx="class";function Ax(){return Cx||(Cx=Ch.parse("*")[0]),Cx}var Tx=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return i(t,e),t}(fg),Dx=function(){return function(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n}}(),Px=function(){function e(e,t,n,r,i,o,s){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return Object.defineProperty(e.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),e.prototype.parse=function(e,t,n,r,i,o,s){var a=this.tryParse(e,t,n,r,i,o,s),u=a.errors.filter(function(e){return e.level===cg.WARNING}),c=a.errors.filter(function(e){return e.level===cg.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw Wd("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},e.prototype.tryParse=function(e,t,n,r,i,o,s){var a="string"==typeof t?this._htmlParser.parse(t,o,!0,this.getInterpolationConfig(e)):t;return s||(a=J_(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},e.prototype.tryParseHtml=function(e,t,n,r,i){var o,s=e.errors,a=[];if(e.rootNodes.length>0){var u=Lx(n),c=Lx(r),l=new JC(this._reflector,t),h=void 0;t.template&&t.template.interpolation&&(h={start:t.template.interpolation[0],end:t.template.interpolation[1]});var f=new lw(this._exprParser,h,this._schemaRegistry,c,s),d=new Nx(this._reflector,this._config,l,u,f,this._schemaRegistry,i,s);o=C_(d,e.rootNodes,Fx),s.push.apply(s,p(l.errors)),a.push.apply(a,p(f.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new Dx(o,a,s):(this.transforms&&this.transforms.forEach(function(e){o=eE(e,o)}),new Dx(o,a,s))},e.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=_x(e.rootNodes);n.push.apply(n,p(r.errors)),e=new B_(r.nodes,n)}return e},e.prototype.getInterpolationConfig=function(e){if(e.template)return c_.fromArray(e.template.interpolation)},e.prototype._assertNoReferenceDuplicationOnTemplate=function(e,t){var n=[];e.filter(function(e){return!!e.references}).forEach(function(e){return e.references.forEach(function(e){var r=e.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Tx('Reference "#'+r+'" is defined several times',e.sourceSpan,cg.ERROR);t.push(i)}})})},e}(),Nx=function(){function e(e,t,n,r,i,o,s,a){var u=this;this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new xh,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(e,t){var n=Ch.parse(e.selector);u.selectorMatcher.addSelectables(n,e),u.directivesIndex.set(e,t)})}return e.prototype.visitExpansion=function(e,t){return null},e.prototype.visitExpansionCase=function(e,t){return null},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Ax()),r=Z_(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new Ub(i,n,e.sourceSpan):new Bb(r,n,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return new Hb(e.name,e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitElement=function(e,t){var n=this,r=this.contentQueryStartId,i=e.name,o=Bw(e);if(o.type===Tw.SCRIPT||o.type===Tw.STYLE)return null;if(o.type===Tw.STYLESHEET&&Aw(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],v=!1,m=[],y=ph(e.name);e.attrs.forEach(function(e){var t,r,i=n._parseAttr(y,e,s,a,l,u,c);c.push.apply(c,p([].map(function(e){return Kb.fromParsedVariable(e)})));var o=n._normalizeAttributeName(e.name);o.startsWith("*")&&(t=e.value,r=o.substring("*".length));var g=null!=t;if(g){v&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),v=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,f,h,_),d.push.apply(d,p(_.map(function(e){return Kb.fromParsedVariable(e)})))}i||g||(m.push(n.visitAttribute(e,null)),s.push([e.name,e.value]))});var g=Ix(i,s),_=this._parseDirectives(this.selectorMatcher,g),w=_.directives,b=_.matchElement,E=[],C=new Set,x=this._createDirectiveAsts(y,e.name,w,a,u,e.sourceSpan,E,C),S=this._createElementPropertyAsts(e.name,a,C),A=t.isTemplateElement||v,T=new ex(this.providerViewContext,t.providerContext,A,x,m,E,y,r,e.sourceSpan),D=C_(o.nonBindable?Rx:this,e.children,Ox.create(y,x,y?t.providerContext:T));T.afterElement();var P,N=""!=o.projectAs?Ch.parse(o.projectAs)[0]:g,M=t.findNgContentIndex(N);if(o.type===Tw.NG_CONTENT)e.children&&!e.children.every(jx)&&this._reportError("<ng-content> element cannot have content.",e.sourceSpan),P=new Jb(this.ngContentCount++,v?null:M,e.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(x,l),this._assertNoComponentsNorElementBindingsOnTemplate(x,S,e.sourceSpan),P=new $b(m,l,E,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,D,v?null:M,e.sourceSpan);else{this._assertElementExists(b,e),this._assertOnlyOneComponent(x,e.sourceSpan);var k=v?null:t.findNgContentIndex(N);P=new Qb(i,m,S,l,E,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,D,v?null:k,e.sourceSpan,e.endSourceSpan||null)}if(v){var O=this.contentQueryStartId,I=Ix("ng-template",f),F=this._parseDirectives(this.selectorMatcher,I).directives,R=new Set,j=this._createDirectiveAsts(!0,i,F,h,[],e.sourceSpan,[],R),L=this._createElementPropertyAsts(i,h,R);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,e.sourceSpan);var V=new ex(this.providerViewContext,t.providerContext,t.isTemplateElement,j,[],[],!0,O,e.sourceSpan);V.afterElement(),P=new $b([],[],[],d,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[P],M,e.sourceSpan)}return P},e.prototype._parseAttr=function(e,t,n,r,i,o,s){var a=this._normalizeAttributeName(t.name),u=t.value,c=t.sourceSpan,l=[],h=a.match(xx),f=!1;if(null!==h)if(f=!0,null!=h[1])this._bindingParser.parsePropertyBinding(h[7],u,!1,c,n,r);else if(h[2])if(e){var d=h[7];this._parseVariable(d,u,c,s)}else this._reportError('"let-" is only supported on ng-template elements.',c);else if(h[3]){d=h[7];this._parseReference(d,u,c,o)}else h[4]?this._bindingParser.parseEvent(h[7],u,c,n,l):h[5]?(this._bindingParser.parsePropertyBinding(h[7],u,!1,c,n,r),this._parseAssignmentEvent(h[7],u,c,n,l)):h[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],u,!1,c,n,r),this._parseAssignmentEvent(h[8],u,c,n,l)):h[9]?this._bindingParser.parsePropertyBinding(h[9],u,!1,c,n,r):h[10]&&this._bindingParser.parseEvent(h[10],u,c,n,l);else f=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return f||this._bindingParser.parseLiteralAttr(a,u,c,n,r),i.push.apply(i,p(l.map(function(e){return Wb.fromParsedEvent(e)}))),f},e.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},e.prototype._parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new Kb(e,t,n))},e.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new kx(e,t,n))},e.prototype._parseAssignmentEvent=function(e,t,n,r,i){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i)},e.prototype._parseDirectives=function(e,t){var n=this,r=new Array(this.directivesIndex.size),i=!1;return e.match(t,function(e,t){r[n.directivesIndex.get(t)]=t,i=i||e.hasElementSelector()}),{directives:r.filter(function(e){return!!e}),matchElement:i}},e.prototype._createDirectiveAsts=function(e,t,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(e){var n=new hg(o.start,o.end,"Directive "+wv(e.type));e.isComponent&&(l=e);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map(function(e){return zb.fromBoundProperty(e)});h=u._checkPropertiesInSchema(t,h);var f=u._bindingParser.createDirectiveHostEventAsts(e,n);u._createDirectivePropertyAsts(e.inputs,r,p,a),i.forEach(function(t){(0===t.value.length&&e.isComponent||t.isReferenceToDirective(e))&&(s.push(new Gb(t.name,hv(e.type.reference),t.value,t.sourceSpan)),c.add(t.name))});var d=f.map(function(e){return Wb.fromParsedEvent(e)}),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new Yb(e,p,h,d,v,n)});return i.forEach(function(t){if(t.value.length>0)c.has(t.name)||u._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!l){var n=null;e&&(n=fv(u.reflector,pv.TemplateRef)),s.push(new Gb(t.name,n,t.value,t.sourceSpan))}}),p},e.prototype._createDirectivePropertyAsts=function(e,t,n,r){if(e){var i=new Map;t.forEach(function(e){var t=i.get(e.name);t&&!t.isLiteral||i.set(e.name,e)}),Object.keys(e).forEach(function(t){var o=e[t],s=i.get(o);s&&(r.add(s.name),Vx(s.expression)||n.push(new Zb(t,s.name,s.expression,s.sourceSpan)))})}},e.prototype._createElementPropertyAsts=function(e,t,n){var r=this,i=[];return t.forEach(function(t){if(!t.isLiteral&&!n.has(t.name)){var o=r._bindingParser.createBoundElementProperty(e,t);i.push(zb.fromBoundProperty(o))}}),this._checkPropertiesInSchema(e,i)},e.prototype._findComponentDirectives=function(e){return e.filter(function(e){return e.directive.isComponent})},e.prototype._findComponentDirectiveNames=function(e){return this._findComponentDirectives(e).map(function(e){return wv(e.directive.type)})},e.prototype._assertOnlyOneComponent=function(e,t){var n=this._findComponentDirectiveNames(e);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),t)},e.prototype._assertElementExists=function(e,t){var n=t.name.replace(/^:xhtml:/,"");if(!e&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,t.sourceSpan)}},e.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,n){var r=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),t.forEach(function(e){r._reportError("Property binding "+e.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},e.prototype._assertAllEventsPublishedByDirectives=function(e,t){var n=this,r=new Set;e.forEach(function(e){Object.keys(e.directive.outputs).forEach(function(t){var n=e.directive.outputs[t];r.add(n)})}),t.forEach(function(e){null==e.target&&r.has(e.name)||n._reportError("Event binding "+e.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',e.sourceSpan)})},e.prototype._checkPropertiesInSchema=function(e,t){var n=this;return t.filter(function(t){if(0===t.type&&!n._schemaRegistry.hasProperty(e,t.name,n._schemas)){var r="Can't bind to '"+t.name+"' since it isn't a known property of '"+e+"'.";e.startsWith("ng-")?r+="\n1. If '"+t.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":e.indexOf("-")>-1&&(r+="\n1. If '"+e+"' is an Angular component and it has '"+t.name+"' input, then verify that it is part of this module.\n2. If '"+e+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,t.sourceSpan)}return!Vx(t.value)})},e.prototype._reportError=function(e,t,n){void 0===n&&(n=cg.ERROR),this._targetErrors.push(new fg(t,e,n))},e}(),Mx=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=Bw(e);if(n.type===Tw.SCRIPT||n.type===Tw.STYLE||n.type===Tw.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=Ix(e.name,r),o=t.findNgContentIndex(i),s=C_(this,e.children,Fx);return new Qb(e.name,C_(this,e.attrs),[],[],[],[],[],!1,[],s,o,e.sourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return new Hb(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Ax());return new Bb(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),kx=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.isReferenceToDirective=function(e){return-1!==(t=e.exportAs,t?t.split(",").map(function(e){return e.trim()}):[]).indexOf(this.value);var t},e}();var Ox=function(){function e(e,t,n,r){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=n,this.providerContext=r}return e.create=function(t,n,r){var i=new xh,o=null,s=n.find(function(e){return e.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){"*"===a[u]?o=u:i.addSelectables(Ch.parse(a[u]),u)}return new e(t,i,o,r)},e.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,function(e,n){t.push(n)}),t.sort(),null!=this._wildcardNgContentIndex&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},e}();function Ix(e,t){var n=new Ch,r=uh(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var o=t[i][0],s=uh(o)[1],a=t[i][1];if(n.addAttribute(s,a),o.toLowerCase()==Sx)a.trim().split(/\s+/g).forEach(function(e){return n.addClassName(e)})}return n}var Fx=new Ox(!0,new xh,null,null),Rx=new Mx;function jx(e){return e instanceof y_&&0==e.value.trim().length}function Lx(e){var t=new Map;return e.forEach(function(e){t.get(e.type.reference)||t.set(e.type.reference,e)}),Array.from(t.values())}function Vx(e){return e instanceof Ym&&(e=e.ast),e instanceof Mm}!function(){function e(e,t){this.options=e,this.reflector=t}e.prototype.compileComponent=function(e,t,n,r,i,o){var s=this,a=new Map;r.forEach(function(e){return a.set(e.name,e.type.reference)});var u=0,c=function(e,n){var r=u++;return new Ux(s.options,s.reflector,i,e,t.type.reference,t.isHost,r,a,n,o,c)},l=c(null,[]);return l.visitAll([],n),l.build(e)}}();var Bx=new(function(){function e(){}return e.prototype.getLocal=function(e){return e===ay.event.name?vd("_any"):null},e}()),Ux=function(){function e(e,t,n,r,i,o,s,a,u,c,l){this.options=e,this.reflector=t,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=s,this.pipes=a,this.guards=u,this.ctx=c,this.viewBuilderFactory=l,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return e.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof dv?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},e.prototype.getTypeGuardExpressions=function(e){var t,n,r,i,o=p(this.guards);try{for(var s=c(e.directives),a=s.next();!a.done;a=s.next()){var u=a.value;try{for(var l=c(u.inputs),h=l.next();!h.done;h=l.next()){var f=h.value,d=u.directive.guards[f.directiveName];if(d){var v="UseIf"===d;o.push({guard:d,useIf:v,expression:{context:this.component,value:f.value}})}}}catch(m){r={error:m}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}}catch(y){t={error:y}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},e.prototype.visitAll=function(e,t){this.variables=e,eE(this,t)},e.prototype.build=function(e,t){var n,r,i=this;void 0===t&&(t=[]),this.children.forEach(function(n){return n.build(e,t)});var o=[vd("_any").set(Gf).toDeclStmt(lf)],s=0;if(this.updates.forEach(function(e){var t=i.preprocessUpdateExpression(e),n=t.sourceSpan,r=t.context,a=t.value,u=""+s++,c=dy(r===i.component?i:Bx,vd(i.getOutputVar(r)),a,u,py.General),l=c.stmts,h=c.currValExpr;l.push(new Yf(h)),o.push.apply(o,p(l.map(function(e){return hd(e,n)})))}),this.actions.forEach(function(e){var t=e.sourceSpan,n=e.context,r=e.value,a=""+s++,u=cy(n===i.component?i:Bx,vd(i.getOutputVar(n)),r,a).stmts;o.push.apply(o,p(u.map(function(e){return hd(e,t)})))}),this.guards.length){var a=void 0;try{for(var u=c(this.guards),l=u.next();!l.done;l=u.next()){var h=l.value,f=this.preprocessUpdateExpression(h.expression),d=f.context,v=f.value,m=""+s++,y=dy(d===this.component?this:Bx,vd(this.getOutputVar(d)),v,m,py.TrySimple),g=y.stmts,_=y.currValExpr;if(0==g.length){var w=h.useIf?_:this.ctx.importExpr(h.guard).callFn([_]);a=a?a.and(w):w}}}catch(C){n={error:C}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}a&&(o=[new id(a,o)])}var b="_View_"+e+"_"+this.embeddedViewIndex,E=new Zf(b,[],o);return t.push(E),t},e.prototype.visitBoundText=function(e,t){var n=this;e.value.ast.expressions.forEach(function(t){return n.updates.push({context:n.component,value:t,sourceSpan:e.sourceSpan})})},e.prototype.visitEmbeddedTemplate=function(e,t){if(this.visitElementOrTemplate(e),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(e),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(e.variables,e.children)}},e.prototype.visitElement=function(e,t){var n=this;this.visitElementOrTemplate(e),e.inputs.forEach(function(e){n.updates.push({context:n.component,value:e.value,sourceSpan:e.sourceSpan})}),eE(this,e.children)},e.prototype.visitElementOrTemplate=function(e){var t=this;e.directives.forEach(function(e){t.visitDirective(e)}),e.references.forEach(function(e){var n=null;n=e.value&&e.value.identifier&&t.options.fullTemplateTypeCheck?e.value.identifier.reference:nf.Dynamic,t.refOutputVars.set(e.name,n)}),e.outputs.forEach(function(e){t.actions.push({context:t.component,value:e.handler,sourceSpan:e.sourceSpan})})},e.prototype.visitDirective=function(e){var t=this,n=e.directive.type.reference;e.inputs.forEach(function(e){return t.updates.push({context:t.component,value:e.value,sourceSpan:e.sourceSpan})}),this.options.fullTemplateTypeCheck&&(e.hostProperties.forEach(function(e){return t.updates.push({context:n,value:e.value,sourceSpan:e.sourceSpan})}),e.hostEvents.forEach(function(e){return t.actions.push({context:n,value:e.handler,sourceSpan:e.sourceSpan})}))},e.prototype.getLocal=function(e){if(e==ay.event.name)return vd(this.getOutputVar(nf.Dynamic));for(var t=this;t;t=t.parent){var n=void 0;if(null==(n=t.refOutputVars.get(e)))t.variables.find(function(t){return t.name===e})&&(n=nf.Dynamic);if(null!=n)return vd(this.getOutputVar(n))}return null},e.prototype.pipeOutputVar=function(e){var t=this.pipes.get(e);if(!t)throw new Error("Illegal State: Could not find pipe "+e+" in template of "+this.component);return this.getOutputVar(t)},e.prototype.preprocessUpdateExpression=function(e){var t=this;return{sourceSpan:e.sourceSpan,context:e.context,value:ly({createLiteralArrayConverter:function(e){return function(e){var n=_d(e);return t.options.fullTemplateTypeCheck?n:n.cast(lf)}},createLiteralMapConverter:function(e){return function(n){var r=wd(e.map(function(e,t){return{key:e.key,value:n[t],quoted:e.quoted}}));return t.options.fullTemplateTypeCheck?r:r.cast(lf)}},createPipeConverter:function(e,n){return function(n){return(t.options.fullTemplateTypeCheck?vd(t.pipeOutputVar(e)):vd(t.getOutputVar(nf.Dynamic))).callMethod("transform",n)}}},e.value)}},e.prototype.visitNgContent=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e}(),Hx="class",qx="style",zx=function(){return function(e,t){this.viewClassVar=e,this.rendererTypeVar=t}}(),Wx=function(){function e(e){this._reflector=e}return e.prototype.compileComponent=function(e,t,n,r,i){var o,s=this,a=0,u=function e(t,n){void 0===n&&(n=new Map);t.forEach(function(t){var r=new Set,i=new Set,o=void 0;t instanceof Qb?(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return r.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches):t instanceof $b&&(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return i.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches),o&&o.forEach(function(e){return r.add(e.queryId)}),i.forEach(function(e){return r.delete(e)}),n.set(t,{staticQueryIds:r,dynamicQueryIds:i})});return n}(n),c=void 0;if(!t.isHost){var l=t.template,h=[];l.animations&&l.animations.length&&h.push(new qf("animation",MC(e,l.animations),!0));var f=vd(Cv(t.type.reference));c=f.name,e.statements.push(f.set(md(pv.createRendererType2).callFn([new zf([new qf("encapsulation",Cd(l.encapsulation),!1),new qf("styles",r,!1),new qf("data",new zf(h),!1)])])).toDeclStmt(yd(pv.RendererType2),[Af.Final,Af.Exported]))}var d=function(n){var r=a++;return new Xx(s._reflector,e,n,t,r,i,u,d)},v=d(null);return v.visitAll([],n),(o=e.statements).push.apply(o,p(v.build())),new zx(v.viewName,c)},e}(),Gx=vd("_l"),Kx=vd("_v"),Qx=vd("_ck"),$x=vd("_co"),Zx=vd("en"),Yx=vd("ad"),Xx=function(){function e(e,t,n,r,i,o,s,a){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?lf:gd(t.importExpr(this.component.type.reference)),this.viewName=Ev(this.component.type.reference,this.embeddedViewIndex)}return e.prototype.visitAll=function(e,t){var n,r,i,o=this;if(this.variables=e,this.parent||this.usedPipes.forEach(function(e){e.pure&&(o.purePipeNodeIndices[e.name]=o._createPipe(null,e))}),!this.parent){var s=(n=this.staticQueryIds,r=new Set,i=new Set,Array.from(n.values()).forEach(function(e){e.staticQueryIds.forEach(function(e){return r.add(e)}),e.dynamicQueryIds.forEach(function(e){return i.add(e)})}),i.forEach(function(e){return r.delete(e)}),{staticQueryIds:r,dynamicQueryIds:i});this.component.viewQueries.forEach(function(e,t){var n=t+1,r=e.first?0:1,i=134217728|rS(s,n,e.first);o.nodes.push(function(){return{sourceSpan:null,nodeFlags:i,nodeDef:md(pv.queryDef).callFn([Cd(i),Cd(n),new zf([new qf(e.propertyName,Cd(r),!1)])])}})})}eE(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];if(n instanceof $b)return n.hasViewContainer;if(n instanceof Qb)return ch(n.name)&&n.children.length?e(n.children):n.hasViewContainer;return n instanceof Jb}(t))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:md(pv.anchorDef).callFn([Cd(0),Gf,Gf,Cd(0)])}})},e.prototype.build=function(e){void 0===e&&(e=[]),this.children.forEach(function(t){return t.build(e)});var t=this._createNodeExpressions(),n=t.updateRendererStmts,r=t.updateDirectivesStmts,i=t.nodeDefExprs,o=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==bh.OnPush||(a|=2);var u=new Zf(this.viewName,[new jf(Gx.name)],[new Xf(md(pv.viewDef).callFn([Cd(a),_d(i),s,o]))],yd(pv.ViewDefinition),0===this.embeddedViewIndex?[Af.Exported]:[]);return e.push(u),e},e.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&ld(e).has($x.name)&&n.push($x.set(Kx.prop("component")).toDeclStmt(this.compType)),t=bd([new jf(Qx.name,pf),new jf(Kx.name,pf)],p(n,e),pf)}else t=Gf;return t},e.prototype.visitNgContent=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:md(pv.ngContentDef).callFn([Cd(e.ngContentIndex),Cd(e.index)])}})},e.prototype.visitText=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:md(pv.textDef).callFn([Cd(-1),Cd(e.ngContentIndex),_d([Cd(e.value)])])}})},e.prototype.visitBoundText=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=e.value.ast,o=i.expressions.map(function(t,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:e.sourceSpan,context:$x,value:t})}),s=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:md(pv.textDef).callFn([Cd(s),Cd(e.ngContentIndex),_d(i.strings.map(function(e){return Cd(e)}))]),updateRenderer:o}}},e.prototype.visitEmbeddedTemplate=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,e),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(e.variables,e.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|o,nodeDef:md(pv.anchorDef).callFn([Cd(o),s,Cd(e.ngContentIndex),Cd(c),n._createElementHandleEventFn(r,a),vd(u.viewName)])}}},e.prototype.visitElement=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=ch(e.name)?null:e.name,o=this._visitElementOrTemplate(r,e),s=o.flags,a=o.usedEvents,u=o.queryMatchesExpr,c=o.hostBindings,p=o.hostEvents,h=[],f=[],d=[];if(i){var v=e.inputs.map(function(e){return{context:$x,inputAst:e,dirAst:null}}).concat(c);v.length&&(f=v.map(function(e,t){return n._preprocessUpdateExpression({context:e.context,nodeIndex:r,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})}),h=v.map(function(e){return function(e,t){var n=e.type;switch(n){case 1:return _d([Cd(1),Cd(e.name),Cd(e.securityContext)]);case 0:return _d([Cd(8),Cd(e.name),Cd(e.securityContext)]);case 4:var r=8|(t&&t.directive.isComponent?32:16);return _d([Cd(r),Cd("@"+e.name),Cd(e.securityContext)]);case 2:return _d([Cd(2),Cd(e.name),Gf]);case 3:return _d([Cd(4),Cd(e.name),Cd(e.unit)]);default:var i=n;throw new Error("unexpected "+i)}}(e.inputAst,e.dirAst)})),d=a.map(function(e){var t=l(e,2),n=t[0],r=t[1];return _d([Cd(n),Cd(r)])})}eE(this,e.children);var m=this.nodes.length-r-1,y=e.directives.find(function(e){return e.directive.isComponent}),g=Gf,_=Gf;y&&(_=this.outputCtx.importExpr(y.directive.componentViewType),g=this.outputCtx.importExpr(y.directive.rendererType));var w=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|s,nodeDef:md(pv.elementDef).callFn([Cd(w),Cd(s),u,Cd(e.ngContentIndex),Cd(m),Cd(i),i?Jx(e):Gf,h.length?_d(h):Gf,d.length?_d(d):Gf,n._createElementHandleEventFn(r,p),_,g]),updateRenderer:f}}},e.prototype._visitElementOrTemplate=function(e,t){var n=this,r=0;t.hasViewContainer&&(r|=16777216);var i=new Map;t.outputs.forEach(function(e){var t=nS(e,null),n=t.name,r=t.target;i.set(iS(r,n),[r,n])}),t.directives.forEach(function(e){e.hostEvents.forEach(function(t){var n=nS(t,e),r=n.name,o=n.target;i.set(iS(o,r),[o,r])})});var o=[],s=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach(function(r,a){var u=void 0,c=void 0;if(t.directives.forEach(function(e,t){e.directive.type.reference===Av(r.token)&&(u=e,c=t)}),u){var l=n._visitDirective(r,u,c,e,t.references,t.queryMatches,i,n.staticQueryIds.get(t)),h=l.hostBindings,f=l.hostEvents;o.push.apply(o,p(h)),s.push.apply(s,p(f))}else n._visitProvider(r,t.queryMatches)});var a=[];return t.queryMatches.forEach(function(e){var t=void 0;Av(e.value)===n.reflector.resolveExternalReference(pv.ElementRef)?t=0:Av(e.value)===n.reflector.resolveExternalReference(pv.ViewContainerRef)?t=3:Av(e.value)===n.reflector.resolveExternalReference(pv.TemplateRef)&&(t=2),null!=t&&a.push(_d([Cd(e.queryId),Cd(t)]))}),t.references.forEach(function(t){var r=void 0;t.value?Av(t.value)===n.reflector.resolveExternalReference(pv.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,a.push(_d([Cd(t.name),Cd(r)])))}),t.outputs.forEach(function(e){s.push({context:$x,eventAst:e,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?_d(a):Gf,hostBindings:o,hostEvents:s}},e.prototype._visitDirective=function(e,t,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),t.directive.queries.forEach(function(e,n){var r=t.contentQueryStartId+n,i=67108864|rS(a,r,e.first),o=e.first?0:1;u.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:md(pv.queryDef).callFn([Cd(i),Cd(r),new zf([new qf(e.propertyName,Cd(o),!1)])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(e,o),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,v=p.depsExpr;i.forEach(function(t){t.value&&Av(t.value)===Av(e.token)&&(u.refNodeIndices[t.name]=c,f.push(_d([Cd(t.name),Cd(4)])))}),t.directive.isComponent&&(h|=32768);var m=t.inputs.map(function(e,t){var n=_d([Cd(t),Cd(e.directiveName)]);return new qf(e.directiveName,n,!1)}),y=[],g=t.directive;Object.keys(g.outputs).forEach(function(e){var t=g.outputs[e];s.has(t)&&y.push(new qf(e,Cd(t),!1))});var _=[];(t.inputs.length||(327680&h)>0)&&(_=t.inputs.map(function(e,t){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:t,sourceSpan:e.sourceSpan,context:$x,value:e.value})}));var w=md(pv.nodeValue).callFn([Kx,Cd(c)]),b=t.hostProperties.map(function(e){return{context:w,dirAst:t,inputAst:e}}),E=t.hostEvents.map(function(e){return{context:w,eventAst:e,dirAst:t}}),C=c;return this.nodes[c]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:16384|h,nodeDef:md(pv.directiveDef).callFn([Cd(C),Cd(h),f.length?_d(f):Gf,Cd(l),d,v,m.length?new zf(m):Gf,y.length?new zf(y):Gf]),updateDirectives:_,directive:t.directive.type}},{hostBindings:b,hostEvents:E}},e.prototype._visitProvider=function(e,t){this._addProviderNode(this._visitProviderOrDirective(e,t))},e.prototype._visitComponentFactoryResolverProvider=function(e){var t=e.find(function(e){return e.directive.isComponent});if(t&&t.directive.entryComponents.length){var n=px(this.reflector,this.outputCtx,8192,t.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:t.sourceSpan})}},e.prototype._addProviderNode=function(e){this.nodes.length;this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:e.flags,nodeDef:md(pv.providerDef).callFn([Cd(e.flags),e.queryMatchExprs.length?_d(e.queryMatchExprs):Gf,e.tokenExpr,e.providerExpr,e.depsExpr])}})},e.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach(function(t){Av(t.value)===Av(e.token)&&n.push(_d([Cd(t.queryId),Cd(4)]))});var r=sx(this.outputCtx,e),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:e.sourceSpan}},e.prototype.getLocal=function(e){if(e==ay.event.name)return ay.event;for(var t=Kx,n=this;n;n=n.parent,t=t.prop("parent").cast(lf)){var r=n.refNodeIndices[e];if(null!=r)return md(pv.nodeValue).callFn([t,Cd(r)]);var i=n.variables.find(function(t){return t.name===e});if(i){var o=i.value||"$implicit";return t.prop("context").prop(o)}}return null},e.prototype._createLiteralArrayConverter=function(e,t){if(0===t){var n=md(pv.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:32,nodeDef:md(pv.pureArrayDef).callFn([Cd(r),Cd(t)])}}),function(e){return eS(r,e)}},e.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=md(pv.EMPTY_MAP);return function(){return n}}var r=wd(t.map(function(e,t){return o({},e,{value:Cd(t)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:64,nodeDef:md(pv.pureObjectDef).callFn([Cd(i),r])}}),function(e){return eS(i,e)}},e.prototype._createPipeConverter=function(e,t,n){var r=this.usedPipes.find(function(e){return e.name===t});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:128,nodeDef:md(pv.purePipeDef).callFn([Cd(i),Cd(n)])}});for(var o=Kx,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(lf);var a=s.purePipeNodeIndices[t],u=md(pv.nodeValue).callFn([o,Cd(a)]);return function(t){return tS(e.nodeIndex,e.bindingIndex,eS(i,[u].concat(t)))}}var c=this._createPipe(e.sourceSpan,r),l=md(pv.nodeValue).callFn([Kx,Cd(c)]);return function(t){return tS(e.nodeIndex,e.bindingIndex,l.callMethod("transform",t))}},e.prototype._createPipe=function(e,t){var n=this,r=this.nodes.length,i=0;t.type.lifecycleHooks.forEach(function(e){e===Ey.OnDestroy&&(i|=lx(e))});var o=t.type.diDeps.map(function(e){return cx(n.outputCtx,e)});return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:16,nodeDef:md(pv.pipeDef).callFn([Cd(i),n.outputCtx.importExpr(t.type.reference),_d(o)])}}),r},e.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:ly({createLiteralArrayConverter:function(n){return t._createLiteralArrayConverter(e.sourceSpan,n)},createLiteralMapConverter:function(n){return t._createLiteralMapConverter(e.sourceSpan,n)},createPipeConverter:function(n,r){return t._createPipeConverter(e,n,r)}},e.value)}},e.prototype._createNodeExpressions=function(){var e=this,t=0,n=[],r=[],i=this.nodes.map(function(e,t){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;return c&&n.push.apply(n,p(o(t,l,c,!1))),u&&r.push.apply(r,p(o(t,l,u,(327680&a)>0))),fd(3&a?new Wf([Gx.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var s=[],a=i.map(function(n){var r=n.sourceSpan,i=n.context,o=n.value,a=""+t++,u=dy(i===$x?e:null,i,o,a,py.General),c=u.stmts,l=u.currValExpr;return s.push.apply(s,p(c.map(function(e){return hd(e,r)}))),fd(l,r)});return(i.length||o)&&s.push(hd(eS(n,a).toStmt(),r)),s}},e.prototype._createElementHandleEventFn=function(e,t){var n,r=this,i=[],o=0;if(t.forEach(function(e){var t=e.context,n=e.eventAst,s=e.dirAst,a=""+o++,u=cy(t===$x?r:null,t,n.handler,a),c=u.stmts,l=u.allowDefault,p=c;l&&p.push(Yx.set(l.and(Yx)).toStmt());var h=nS(n,s),f=iS(h.target,h.name);i.push(hd(new id(Cd(f).identical(Zx),p),n.sourceSpan))}),i.length>0){var s=[Yx.set(Cd(!0)).toDeclStmt(hf)];!this.component.isHost&&ld(i).has($x.name)&&s.push($x.set(Kx.prop("component")).toDeclStmt(this.compType)),n=bd([new jf(Kx.name,pf),new jf(Zx.name,pf),new jf(ay.event.name,pf)],p(s,i,[new Xf(Yx)]),pf)}else n=Gf;return n},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e}();function Jx(e){var t=Object.create(null);return e.attrs.forEach(function(e){t[e.name]=e.value}),e.directives.forEach(function(e){Object.keys(e.directive.hostAttributes).forEach(function(n){var r,i,o,s=e.directive.hostAttributes[n],a=t[n];t[n]=null!=a?(i=a,o=s,(r=n)==Hx||r==qx?i+" "+o:o):s})}),_d(Object.keys(t).sort().map(function(e){return _d([Cd(e),Cd(t[e])])}))}function eS(e,t){return t.length>10?Qx.callFn([Kx,Cd(e),Cd(1),_d(t)]):Qx.callFn(p([Kx,Cd(e),Cd(0)],t))}function tS(e,t,n){return md(pv.unwrapValue).callFn([Kx,Cd(e),Cd(t),n])}function nS(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function rS(e,t,n){var r=0;return!n||!e.staticQueryIds.has(t)&&e.dynamicQueryIds.has(t)?r|=536870912:r|=268435456,r}function iS(e,t){return e?e+":"+t:t}var oS=function(){function e(e,t,n,r){void 0===r&&(r=null),this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._messages=[]}return e.prototype.updateFromTemplate=function(e,t,n){var r,i=this._htmlParser.parse(e,t,!0,n);if(i.errors.length)return i.errors;var o=function(e,t,n,r){return new ZE(n,r).extract(e,t)}(i.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((r=this._messages).push.apply(r,p(o.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new sS;this._messages.forEach(function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,p(t.sources)):n[i]=t});var i=Object.keys(n).map(function(i){var o=e.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new DE(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,t&&u.sources.forEach(function(e){return e.filePath=t(e.filePath)}),u});return e.write(i,this._locale)},e}(),sS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.convert=function(e,t){var n=this;return t?e.map(function(e){return e.visit(n,t)}):e},t.prototype.visitTagPlaceholder=function(e,t){var n=this,r=t.toPublicName(e.startName),i=e.closeName?t.toPublicName(e.closeName):e.closeName,o=e.children.map(function(e){return e.visit(n,t)});return new kE(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new OE(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new IE(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(FE),aS=function(){function e(e,t,n){this.srcFileUrl=e,this.genFileUrl=t,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return e.prototype.isEquivalent=function(e){return this.genFileUrl===e.genFileUrl&&(this.source?this.source===e.source:null!=e.stmts&&mf(this.stmts,e.stmts))},e}();function uS(e,t){var n,r,i,o,s=[];try{for(var a=c(e.transitiveModule.providers),u=a.next();!u.done;u=a.next()){var l=u.value,p=l.provider,h=l.module;if(Av(p.token)===t.ROUTES){var f=cS(p.useValue);try{for(var d=c(f),v=d.next();!v.done;v=d.next()){var m=v.value;s.push(lS(m,t,h.reference))}}catch(y){i={error:y}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s}function cS(e,t){var n,r;if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var i=c(e),o=i.next();!o.done;o=i.next()){cS(o.value,t)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}else e.loadChildren?cS(e.loadChildren,t):e.children&&cS(e.children,t);return t}function lS(e,t,n){var r=l(e.split("#"),2),i=r[0],o=r[1],s=t.resolveExternalReference({moduleName:i,name:o},n?n.filePath:void 0);return{route:e,module:n||s,referencedModule:s}}var pS=/^(?!.*\.d\.ts$).*\.ts$/,hS=function(){return function(e,t){this.symbol=e,this.metadata=t}}(),fS=function(){function e(e,t,n,r){this.host=e,this.staticSymbolCache=t,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){if(e.members.length>0)return this._resolveSymbolMembers(e);var t=this._resolveSymbolFromSummary(e);if(t)return t;var n=this.resolvedSymbols.get(e);return n||(this._createSymbolsOf(e.filePath),this.resolvedSymbols.get(e))},e.prototype.getImportAs=function(e,t){if(void 0===t&&(t=!0),e.members.length){var n=this.getStaticSymbol(e.filePath,e.name);return(i=this.getImportAs(n,t))?this.getStaticSymbol(i.filePath,i.name,e.members):null}var r=e.filePath.replace(RC,".");if(r!==e.filePath){var i,o=e.name.replace(jC,"");n=this.getStaticSymbol(r,o,e.members);return(i=this.getImportAs(n,t))?this.getStaticSymbol(qC(i.filePath),zC(i.name),n.members):null}var s=t&&this.summaryResolver.getImportAs(e)||null;return s||(s=this.importAs.get(e)),s},e.prototype.getResourcePath=function(e){return this.symbolResourcePaths.get(e)||e.filePath},e.prototype.getTypeArity=function(e){if(t=e.filePath,FC.test(t))return null;for(var t,n=vS(this.resolveSymbol(e));n&&n.metadata instanceof dv;)n=vS(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.recordImportAs=function(e,t){e.assertNoMembers(),t.assertNoMembers(),this.importAs.set(e,t)},e.prototype.recordModuleNameForFileName=function(e,t){this.knownFileNameToModuleNames.set(e,t)},e.prototype.invalidateFile=function(e){var t,n;this.metadataCache.delete(e),this.resolvedFilePaths.delete(e);var r=this.symbolFromFile.get(e);if(r){this.symbolFromFile.delete(e);try{for(var i=c(r),o=i.next();!o.done;o=i.next()){var s=o.value;this.resolvedSymbols.delete(s),this.importAs.delete(s),this.symbolResourcePaths.delete(s)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},e.prototype.ignoreErrorsFor=function(e){var t=this.errorRecorder;this.errorRecorder=function(){};try{return e()}finally{this.errorRecorder=t}},e.prototype._resolveSymbolMembers=function(e){var t=e.members,n=this.resolveSymbol(this.getStaticSymbol(e.filePath,e.name));if(!n)return null;var r=vS(n.metadata);if(r instanceof dv)return new hS(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<t.length&&i;o++)i=i[t[o]];return new hS(e,i)}return r.statics&&1===t.length?new hS(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new hS(e,t.metadata):null},e.prototype.getStaticSymbol=function(e,t,n){return this.staticSymbolCache.get(e,t,n)},e.prototype.hasDecorators=function(e){var t=this.getModuleMetadata(e);return!!t.metadata&&Object.keys(t.metadata).some(function(e){var n=t.metadata[e];return n&&"class"===n.__symbolic&&n.decorators})},e.prototype.getSymbolsOf=function(e){var t=this.summaryResolver.getSymbolsOf(e);if(t)return t;this._createSymbolsOf(e);var n=[];return this.resolvedSymbols.forEach(function(t){t.symbol.filePath===e&&n.push(t.symbol)}),n},e.prototype._createSymbolsOf=function(e){var t,n,r=this;if(!this.resolvedFilePaths.has(e)){this.resolvedFilePaths.add(e);var i=[],o=this.getModuleMetadata(e);if(o.importAs&&this.knownFileNameToModuleNames.set(e,o.importAs),o.exports){var s=function(t){if(t.export)t.export.forEach(function(n){var o,s=o=dS(o="string"==typeof n?n:n.as);"string"!=typeof n&&(s=dS(n.name));var a=r.resolveModule(t.from,e);if(a){var u=r.getStaticSymbol(a,s),c=r.getStaticSymbol(e,o);i.push(r.createExport(c,u))}});else{var n=a.resolveModule(t.from,e);if(n)a.getSymbolsOf(n).forEach(function(t){var n=r.getStaticSymbol(e,t.name);i.push(r.createExport(n,t))})}},a=this;try{for(var u=c(o.exports),l=u.next();!l.done;l=u.next()){s(l.value)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}if(o.metadata){var p=new Set(Object.keys(o.metadata).map(dS)),h=o.origins||{};Object.keys(o.metadata).forEach(function(t){var n=o.metadata[t],s=dS(t),a=r.getStaticSymbol(e,s),u=h.hasOwnProperty(t)&&h[t];if(u){var c=r.resolveModule(u,e);c?r.symbolResourcePaths.set(a,c):r.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+r.host.getOutputName(e)))}i.push(r.createResolvedSymbol(a,e,p,n))})}i.forEach(function(e){return r.resolvedSymbols.set(e.symbol,e)}),this.symbolFromFile.set(e,i.map(function(e){return e.symbol}))}},e.prototype.createResolvedSymbol=function(e,t,n,r){var s,a=this,u=pS.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!u&&r&&"class"===r.__symbolic){var c={__symbolic:"class",arity:r.arity};return new hS(e,c)}var l=function(){return s||(s=a.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[\/\\]/,""))),s},h=this,f=jd(r,new(function(r){function s(){return null!==r&&r.apply(this,arguments)||this}return i(s,r),s.prototype.visitStringMap=function(i,s){var a=i.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,p(i.parameters||[]));var c=r.prototype.visitStringMap.call(this,i,s);return s.length=u,c}if("reference"!==a)return"error"===a?o({},i,{fileName:l()}):r.prototype.visitStringMap.call(this,i,s);var f=i.module,d=i.name?dS(i.name):i.name;if(!d)return null;var v=void 0;return f?(v=h.resolveModule(f,e.filePath))?{__symbolic:"resolved",symbol:h.getStaticSymbol(v,d),line:i.line,character:i.character,fileName:l()}:{__symbolic:"error",message:"Could not resolve "+f+" relative to "+h.host.getMetadataFor(e.filePath)+".",line:i.line,character:i.character,fileName:l()}:s.indexOf(d)>=0?{__symbolic:"reference",name:d}:n.has(d)?h.getStaticSymbol(t,d):void 0},s}(Bd)),[]),d=vS(f);return d instanceof dv?this.createExport(e,d):new hS(e,f)},e.prototype.createExport=function(e,t){return e.assertNoMembers(),t.assertNoMembers(),this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(t,this.getImportAs(e)||e),new hS(e,t)},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)},e.prototype.getModuleMetadata=function(e){var t=this.metadataCache.get(e);if(!t){var n=this.host.getMetadataFor(e);if(n){var r=-1;n.forEach(function(e){e&&e.version>r&&(r=e.version,t=e)})}if(t||(t={__symbolic:"module",version:4,module:e,metadata:{}}),4!=t.version){var i=2==t.version?"Unsupported metadata version "+t.version+" for module "+e+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+this.host.getOutputName(e)+", found version "+t.version+", expected 4";this.reportError(new Error(i))}this.metadataCache.set(e,t)}return t},e.prototype.getSymbolByModule=function(e,t,n){var r=this.resolveModule(e,n);return r?this.getStaticSymbol(r,t):(this.reportError(new Error("Could not resolve module "+e+(n?" relative to "+this.host.getOutputName(n):""))),this.getStaticSymbol("ERROR:"+e,t))},e.prototype.resolveModule=function(e,t){try{return this.host.moduleNameToFileName(e,t)}catch(n){console.error("Could not resolve module '"+e+"' relative to file "+t),this.reportError(n,void 0,t)}return null},e}();function dS(e){return e.startsWith("___")?e.substr(1):e}function vS(e){return e&&"resolved"===e.__symbolic?e.symbol:e}function mS(e,t,n){var r=zC(t.name);e.statements.push(bd([],[new Xf(n)],new uf(lf)).toDeclStmt(r,[Af.Final,Af.Exported]))}var yS=function(e){function t(t,n,r){var i=e.call(this)||this;return i.symbolResolver=t,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=t.getKnownModuleName(r),i}return i(t,e),t.prototype.addSummary=function(e){var t,n,r=this,i=this.unprocessedSymbolSummariesBySymbol.get(e.symbol),o=this.processedSummaryBySymbol.get(e.symbol);if(i||(i={symbol:e.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(e.symbol,i),o={symbol:this.processValue(e.symbol,0)},this.processedSummaries.push(o),this.processedSummaryBySymbol.set(e.symbol,o)),!i.metadata&&e.metadata){var s=e.metadata||{};if("class"===s.__symbolic){var a={};Object.keys(s).forEach(function(e){"decorators"!==e&&(a[e]=s[e])}),s=a}else wS(s)&&(wS(n=s)&&vS(n.expression)instanceof dv||function(e){return wS(e)&&e.expression&&"select"===e.expression.__symbolic&&vS(e.expression.expression)instanceof dv}(s)||(s={__symbolic:"error",message:"Complex function calls are not supported."}));if(i.metadata=s,o.metadata=this.processValue(s,1),s instanceof dv&&this.summaryResolver.isLibraryFile(s.filePath)){var u=this.symbols[this.indexBySymbol.get(s)];t=u.name,WC.test(t)||this.reexportedBy.set(u,e.symbol)}}if(!i.type&&e.type&&(i.type=e.type,o.type=this.processValue(e.type,0),e.type.summaryKind===gv.NgModule)){var c=e.type;c.exportedDirectives.concat(c.exportedPipes).forEach(function(e){var t=e.reference;if(r.summaryResolver.isLibraryFile(t.filePath)&&!r.unprocessedSymbolSummariesBySymbol.has(t)){var n=r.summaryResolver.resolveSummary(t);n&&r.addSummary(n)}})}},t.prototype.serialize=function(){var e=this,t=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(e.summaryResolver.isLibraryFile(n.filePath)){var o=e.reexportedBy.get(n);if(o)i=e.indexBySymbol.get(o);else{var s=e.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||(i=n.name+"_"+r,t.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:e.summaryResolver.toSummaryFileName(n.filePath,e.srcFileName),importAs:i}})}),exportAs:t}},t.prototype.processValue=function(e,t){return jd(e,this,t)},t.prototype.visitOther=function(e,t){if(e instanceof dv){var n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}},t.prototype.visitStringMap=function(t,n){return"resolved"===t.__symbolic?jd(t.symbol,this,n):("error"===t.__symbolic&&(delete t.line,delete t.character),e.prototype.visitStringMap.call(this,t,n))},t.prototype.visitStaticSymbol=function(e,t){var n=this.indexBySymbol.get(e),r=null;if(1&t&&this.summaryResolver.isLibraryFile(e.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(e))return n;(r=this.loadSummary(e))&&r.metadata instanceof dv&&(n=this.visitStaticSymbol(r.metadata,t),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(e)),this.indexBySymbol.set(e,n),r&&this.addSummary(r),n},t.prototype.loadSummary=function(e){var t=this.summaryResolver.resolveSummary(e);if(!t){var n=this.symbolResolver.resolveSymbol(e);n&&(t={symbol:n.symbol,metadata:n.metadata})}return t},t}(Bd),gS=function(){function e(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}return e.prototype.addSourceType=function(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})},e.prototype.addLibType=function(e){this.data.push({summary:e,metadata:null,isLibrary:!0})},e.prototype.serialize=function(e){var t,n,r,i,o,s,a=this,u=new Map;try{for(var l=c(e),p=l.next();!p.done;p=l.next()){var h=p.value,f=h.symbol,d=h.exportAs;u.set(f,d)}}catch(A){t={error:A}}finally{try{p&&!p.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}var v=new Set;try{for(var m=c(this.data),y=m.next();!y.done;y=m.next()){var g=y.value,_=g.summary,w=g.metadata,b=g.isLibrary;if(_.summaryKind===gv.NgModule){v.add(_.type.reference);var E=_;try{for(var C=c(E.modules),x=C.next();!x.done;x=C.next()){var S=x.value;v.add(S.reference)}}catch(T){o={error:T}}finally{try{x&&!x.done&&(s=C.return)&&s.call(C)}finally{if(o)throw o.error}}}if(!b){zC(_.type.reference.name);mS(this.outputCtx,_.type.reference,this.serializeSummaryWithDeps(_,w))}}}catch(D){r={error:D}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}v.forEach(function(e){if(a.summaryResolver.isLibraryFile(e.filePath)){var t=zC(u.get(e)||e.name);a.outputCtx.statements.push(vd(t).set(a.serializeSummaryRef(e)).toDeclStmt(null,[Af.Exported]))}})},e.prototype.serializeSummaryWithDeps=function(e,t){var n=this,r=[this.serializeSummary(e)],i=[];if(t instanceof Mv)r.push.apply(r,p(t.declaredDirectives.concat(t.declaredPipes).map(function(e){return e.reference}).concat(t.transitiveModule.modules.map(function(e){return e.reference}).filter(function(e){return e!==t.type.reference})).map(function(e){return n.serializeSummaryRef(e)}))),i=t.providers;else if(e.summaryKind===gv.Directive){var o=e;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,p(i.filter(function(e){return!!e.useClass}).map(function(e){return n.serializeSummary({summaryKind:gv.Injectable,type:e.useClass})}))),_d(r)},e.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(qC(e.filePath),zC(e.name));return this.outputCtx.importExpr(t)},e.prototype.serializeSummary=function(e){var t=this.outputCtx,n=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return _d(e.map(function(e){return jd(e,n,t)}))},e.prototype.visitStringMap=function(e,t){var n=this;return new zf(Object.keys(e).map(function(r){return new qf(r,jd(e[r],n,t),!1)}))},e.prototype.visitPrimitive=function(e,t){return Cd(e)},e.prototype.visitOther=function(e,n){if(e instanceof dv)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}();return jd(e,new n,null)},e}(),_S=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return i(t,e),t.prototype.deserialize=function(e,t){var n=this,r=JSON.parse(t),i=[];this.symbols=r.symbols.map(function(t){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(t.filePath,e),t.name)}),r.symbols.forEach(function(t,r){var o=n.symbols[r],s=t.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(LC(e),s)})});var o=jd(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},t.prototype.visitStringMap=function(t,n){if("__symbol"in t){var r=this.symbols[t.__symbol],i=t.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return e.prototype.visitStringMap.call(this,t,n)},t}(Bd);function wS(e){return e&&"call"===e.__symbolic}!function(){function e(e,t,n,r,i,o,s,a,u,c,l,p,h,f){this._config=e,this._options=t,this._host=n,this.reflector=r,this._metadataResolver=i,this._templateParser=o,this._styleCompiler=s,this._viewCompiler=a,this._typeCheckCompiler=u,this._ngModuleCompiler=c,this._injectableCompiler=l,this._outputEmitter=p,this._summaryResolver=h,this._symbolResolver=f,this._templateAstCache=new Map,this._analyzedFiles=new Map,this._analyzedFilesForInjectables=new Map}e.prototype.clearCache=function(){this._metadataResolver.clearCache()},e.prototype.analyzeModulesSync=function(e){var t=this,n=SS(e,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)}),n},e.prototype.analyzeModulesAsync=function(e){var t=this,n=SS(e,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){return n})},e.prototype._analyzeFile=function(e){var t=this._analyzedFiles.get(e);return t||(t=TS(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFiles.set(e,t)),t},e.prototype._analyzeFileForInjectables=function(e){var t=this._analyzedFilesForInjectables.get(e);return t||(t=function(e,t,n,r){var i=[],o=[];t.hasDecorators(r)&&t.getSymbolsOf(r).forEach(function(e){var r=t.resolveSymbol(e),s=r.metadata;if(s&&"error"!==s.__symbolic&&"class"===s.__symbolic)if(n.isInjectable(e)){var a=n.getInjectableMetadata(e,null,!1);a&&i.push(a)}else if(n.isNgModule(e)){var u=n.getShallowModuleMetadata(e);u&&o.push(u)}});return{fileName:r,injectables:i,shallowModules:o}}(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFilesForInjectables.set(e,t)),t},e.prototype.findGeneratedFileNames=function(e){var t=this,n=[],r=this._analyzeFile(e);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(LC(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(qC(r.fileName,!0)));var i=UC(BC(r.fileName,!0)[1]);return r.directives.forEach(function(e){var o=t._metadataResolver.getNonNormalizedDirectiveMetadata(e).metadata;o.isComponent&&o.template.styleUrls.forEach(function(e){var s=t._host.resourceNameToFileName(e,r.fileName);if(!s)throw Wd("Couldn't resolve resource "+e+" relative to "+r.fileName);var a=(o.template.encapsulation||t._config.defaultEncapsulation)===wh.Emulated;n.push(CS(s,a,i)),t._options.allowEmptyCodegenFiles&&n.push(CS(s,!a,i))})}),n},e.prototype.emitBasicStub=function(e,t){var n=this._createOutputContext(e);if(e.endsWith(".ngfactory.ts")){if(!t)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+e);var r=this._analyzeFile(t);this._createNgFactoryStub(n,r,1)}else if(e.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!t)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+e);r=this._analyzeFile(t);bS(n),r.ngModules.forEach(function(e){!function(e,t){mS(e,t,Gf)}(n,e.type.reference)})}}else e.endsWith(".ngstyle.ts")&&bS(n);return this._codegenSourceModule("unknown",n)},e.prototype.emitTypeCheckStub=function(e,t){var n=this._analyzeFile(t),r=this._createOutputContext(e);return e.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,2),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},e.prototype.loadFilesAsync=function(e,t){var n=this,r=e.map(function(e){return n._analyzeFile(e)}),i=[];r.forEach(function(e){return e.ngModules.forEach(function(e){return i.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))})});var o=t.map(function(e){return n._analyzeFileForInjectables(e)});return Promise.all(i).then(function(e){return{analyzedModules:PS(r),analyzedInjectables:o}})},e.prototype.loadFilesSync=function(e,t){var n=this,r=e.map(function(e){return n._analyzeFile(e)});r.forEach(function(e){return e.ngModules.forEach(function(e){return n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)})});var i=t.map(function(e){return n._analyzeFileForInjectables(e)});return{analyzedModules:PS(r),analyzedInjectables:i}},e.prototype._createNgFactoryStub=function(e,t,n){var r=this,i=0;t.ngModules.forEach(function(t,o){r._ngModuleCompiler.createStub(e,t.type.reference);var s=p(t.transitiveModule.directives.map(function(e){return e.reference}),t.transitiveModule.pipes.map(function(e){return e.reference}),t.importedModules.map(function(e){return e.type.reference}),t.exportedModules.map(function(e){return e.type.reference}),r._externalIdentifierReferences([pv.TemplateRef,pv.ElementRef])),a=new Map;s.forEach(function(e,t){a.set(e,"_decl"+o+"_"+t)}),a.forEach(function(t,n){e.statements.push(vd(t).set(Gf.cast(lf)).toDeclStmt(gd(e.importExpr(n,null,!1))))}),2&n&&t.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(e,o.type.reference.name+"_Host_"+i,t,r._metadataResolver.getHostComponentMetadata(o),[o.type],a),r._createTypeCheckBlock(e,o.type.reference.name+"_"+i,t,o,t.transitiveModule.directives,a))})}),0===e.statements.length&&bS(e)},e.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var i=c(e),o=i.next();!o.done;o=i.next()){var s=o.value,a=fv(this.reflector,s);a.identifier&&r.push(a.identifier.reference)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype._createTypeCheckBlock=function(e,t,n,r,i,o){var s,a=this._parseTemplate(r,n,i),u=a.template,c=a.pipes;(s=e.statements).push.apply(s,p(this._typeCheckCompiler.compileComponent(t,r,u,c,o,e)))},e.prototype.emitMessageBundle=function(e,t){var n=this,r=[],i=new z_,o=new oS(i,[],{},t);if(e.files.forEach(function(e){var t=[];e.directives.forEach(function(e){var r=n._metadataResolver.getDirectiveMetadata(e);r&&r.isComponent&&t.push(r)}),t.forEach(function(e){var t=e.template.template,n=e.template.templateUrl,i=c_.fromArray(e.template.interpolation);r.push.apply(r,p(o.updateFromTemplate(t,n,i)))})}),r.length)throw new Error(r.map(function(e){return e.toString()}).join("\n"));return o},e.prototype.emitAllPartialModules=function(e,t){var n=this,r=e.ngModuleByPipeOrDirective,i=e.files,o=new Map,s=function(e){return o.has(e)||o.set(e,n._createOutputContext(e)),o.get(e)};return i.forEach(function(e){return n._compilePartialModule(e.fileName,r,e.directives,e.pipes,e.ngModules,e.injectables,s(e.fileName))}),t.forEach(function(e){return n._compileShallowModules(e.fileName,e.shallowModules,s(e.fileName))}),Array.from(o.values()).map(function(e){return{fileName:e.genFilePath,statements:p(e.constantPool.statements,e.statements)}})},e.prototype._compileShallowModules=function(e,t,n){var r=this;t.forEach(function(e){return xm(n,e,r._injectableCompiler)})},e.prototype._compilePartialModule=function(e,t,n,r,i,s,a){var u=this,c=new cw,l=new lw(this._templateParser.expressionParser,l_,c,[],[]);n.forEach(function(e){var n=u._metadataResolver.getDirectiveMetadata(e);if(n.isComponent){var r=t.get(e);r||zd("Cannot determine the module for component '"+wv(n.type)+"'");var i=n.template.htmlAst;n.template.preserveWhitespaces||(i=J_(i));var s=qw(i.rootNodes,l),c=new Map;r.transitiveModule.directives.map(function(e){return u._metadataResolver.getDirectiveSummary(e.reference)}).forEach(function(e){e.selector&&c.set(e.selector,e.type.reference)});var p=new Map;r.transitiveModule.pipes.map(function(e){return u._metadataResolver.getPipeSummary(e.reference)}).forEach(function(e){p.set(e.name,e.type.reference)}),function(e,t,n,r,i,s,a){var u=wv(t.type);u||zd("Cannot resolver the name of "+t.type);var c=e.constantPool.propertyNameOf(2),l=t.toSummary(),p=db(o({},vb(t,e,r),{selector:t.selector,template:{nodes:n.nodes,hasNgContent:n.hasNgContent,ngContentSelectors:n.ngContentSelectors,relativeContextFilePath:""},directives:Eb(s,e),pipes:Eb(a,e),viewQueries:mb(t.viewQueries,e),wrapDirectivesInClosure:!1,styles:l.template&&l.template.styles||pb,encapsulation:l.template&&l.template.encapsulation||wh.Emulated,animations:null,viewProviders:null}),e.constantPool,i);e.statements.push(new rd(u,null,[new ed(c,pf,[Af.Static],p.expression)],[],new td(null,[],[]),[]))}(a,n,s,u.reflector,l,c,p)}else!function(e,t,n,r){var i=wv(t.type);i||zd("Cannot resolver the name of "+t.type);var o=e.constantPool.propertyNameOf(1),s=fb(vb(t,e,n),e.constantPool,r);e.statements.push(new rd(i,null,[new ed(o,pf,[Af.Static],s.expression)],[],new td(null,[],[]),[]))}(a,n,u.reflector,l)}),r.forEach(function(e){var t=u._metadataResolver.getPipeMetadata(e);t&&function(e,t,n){var r=wv(t.type);if(!r)return zd("Cannot resolve the name of "+t.type);var i=Am({name:r,pipeName:t.name,type:e.importExpr(t.type.reference),deps:tm(t.type,e,n),pure:t.pure}),o=e.constantPool.propertyNameOf(3);e.statements.push(new rd(r,null,[new ed(o,pf,[Af.Static],i.expression)],[],new td(null,[],[]),[]))}(a,t,u.reflector)}),s.forEach(function(e){return u._injectableCompiler.compile(e,a)})},e.prototype.emitAllPartialModules2=function(e){var t=this;return e.reduce(function(e,n){return e.push.apply(e,p(t._emitPartialModule2(n.fileName,n.injectables))),e},[])},e.prototype._emitPartialModule2=function(e,t){var n=this,r=this._createOutputContext(e);return t.forEach(function(e){return n._injectableCompiler.compile(e,r)}),r.statements&&r.statements.length>0?[{fileName:e,statements:p(r.constantPool.statements,r.statements)}]:[]},e.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return Fv(e.files.map(function(e){return t._compileImplFile(e.fileName,n,e.directives,e.pipes,e.ngModules,e.injectables)}))},e.prototype._compileImplFile=function(e,t,n,r,i,o){var s=this,a=UC(BC(e,!0)[1]),u=[],c=this._createOutputContext(LC(e,!0));if(u.push.apply(u,p(this._createSummary(e,n,r,i,o,c))),i.forEach(function(e){return s._compileModule(c,e)}),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+wv(r.type)+"!");var o=s._styleCompiler.compileComponent(c,r);r.template.externalStylesheets.forEach(function(t){var n=s._styleCompiler.needsStyleShim(r);u.push(s._codegenStyles(e,r,t,n,a)),s._options.allowEmptyCodegenFiles&&u.push(s._codegenStyles(e,r,t,!n,a))});s._compileComponent(c,r,i,i.transitiveModule.directives,o,a);s._compileComponentFactory(c,r,i,a)}}),c.statements.length>0||this._options.allowEmptyCodegenFiles){var l=this._codegenSourceModule(e,c);u.unshift(l)}return u},e.prototype._createSummary=function(e,t,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(e).map(function(e){return s._symbolResolver.resolveSymbol(e)}),u=p(r.map(function(e){return{summary:s._metadataResolver.getNgModuleSummary(e.type.reference),metadata:s._metadataResolver.getNgModuleMetadata(e.type.reference)}}),t.map(function(e){return{summary:s._metadataResolver.getDirectiveSummary(e),metadata:s._metadataResolver.getDirectiveMetadata(e)}}),n.map(function(e){return{summary:s._metadataResolver.getPipeSummary(e),metadata:s._metadataResolver.getPipeMetadata(e)}}),i.map(function(e){return{summary:s._metadataResolver.getInjectableSummary(e.symbol),metadata:s._metadataResolver.getInjectableSummary(e.symbol).type}})),c=this._options.enableSummariesForJit?this._createOutputContext(qC(e,!0)):null,l=function(e,t,n,r,i,o){var s=new yS(r,n,e);i.forEach(function(e){return s.addSummary({symbol:e.symbol,metadata:e.metadata})}),o.forEach(function(e){var t=e.summary;e.metadata,s.addSummary({symbol:t.type.reference,metadata:void 0,type:t})});var a=s.serialize(),u=a.json,c=a.exportAs;if(t){var l=new gS(t,r,n);o.forEach(function(e){var t=e.summary,n=e.metadata;l.addSourceType(t,n)}),s.unprocessedSymbolSummariesBySymbol.forEach(function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&l.addLibType(e.type)}),l.serialize(c)}return{json:u,exportAs:c}}(e,c,this._summaryResolver,this._symbolResolver,a,u),h=l.json;l.exportAs.forEach(function(e){o.statements.push(vd(e.exportAs).set(o.importExpr(e.symbol)).toDeclStmt(null,[Af.Exported]))});var f=[new aS(e,HC(e),h)];return c&&f.push(this._codegenSourceModule(e,c)),f},e.prototype._compileModule=function(e,t){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:fv(this.reflector,pv.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:fv(this.reflector,pv.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(e,t,n)},e.prototype._compileComponentFactory=function(e,t,n,r){var i=this._metadataResolver.getHostComponentMetadata(t),o=this._compileComponent(e,i,n,[t.type],null,r).viewClassVar,s=xv(t.type.reference),a=[];for(var u in t.inputs){var c=t.inputs[u];a.push(new qf(u,Cd(c),!1))}var l=[];for(var u in t.outputs){c=t.outputs[u];l.push(new qf(u,Cd(c),!1))}e.statements.push(vd(s).set(md(pv.createComponentFactory).callFn([Cd(t.selector),e.importExpr(t.type.reference),vd(o),new zf(a),new zf(l),_d(t.template.ngContentSelectors.map(function(e){return Cd(e)}))])).toDeclStmt(yd(pv.ComponentFactory,[gd(e.importExpr(t.type.reference))],[tf.Const]),[Af.Final,Af.Exported]))},e.prototype._compileComponent=function(e,t,n,r,i,o){var s=this._parseTemplate(t,n,r),a=s.template,u=s.pipes,c=i?vd(i.stylesVar):_d([]),l=this._viewCompiler.compileComponent(e,t,a,c,u);return i&&ES(this._symbolResolver,i,this._styleCompiler.needsStyleShim(t),o),l},e.prototype._parseTemplate=function(e,t,n){var r=this;if(this._templateAstCache.has(e.type.reference))return this._templateAstCache.get(e.type.reference);var i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)}),a=this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,jv(t.type,e,e.template),i);return this._templateAstCache.set(e.type.reference,a),a},e.prototype._createOutputContext=function(e){var t=this;return{statements:[],genFilePath:e,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof dv))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var o=t._symbolResolver.getTypeArity(n)||0,s=t._symbolResolver.getImportAs(n,i)||n,a=s.filePath,u=s.name,c=s.members,l=t._fileNameToModuleName(a,e),p=l===t._fileNameToModuleName(e,e)?null:l,h=r||[],f=o-h.length,d=h.concat(new Array(f).fill(lf));return c.reduce(function(e,t){return e.prop(t)},md(new kf(p,u,null),d))},constantPool:new sv}},e.prototype._fileNameToModuleName=function(e,t){return this._summaryResolver.getKnownModuleName(e)||this._symbolResolver.getKnownModuleName(e)||this._host.fileNameToModuleName(e,t)},e.prototype._codegenStyles=function(e,t,n,r,i){var o=this._createOutputContext(CS(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,t,n,r);return ES(this._symbolResolver,s,r,i),this._codegenSourceModule(e,o)},e.prototype._codegenSourceModule=function(e,t){return new aS(e,t.genFilePath,t.statements)},e.prototype.listLazyRoutes=function(e,t){var n,r,i,o,s=this;if(e)return function e(t,n,r){void 0===n&&(n=new Set);void 0===r&&(r=[]);var i,o;if(n.has(t)||!t.name)return r;n.add(t);var a=uS(s._metadataResolver.getNgModuleMetadata(t,!0),s.reflector);try{for(var u=c(a),l=u.next();!l.done;l=u.next()){var p=l.value;r.push(p),e(p.referencedModule,n,r)}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return r}(lS(e,this.reflector).referencedModule);if(t){var a=[];try{for(var u=c(t.ngModules),l=u.next();!l.done;l=u.next()){var p=uS(l.value,this.reflector);try{for(var h=c(p),f=h.next();!f.done;f=h.next()){var d=f.value;a.push(d)}}catch(v){i={error:v}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}}catch(m){n={error:m}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}throw new Error("Either route or analyzedModules has to be specified!")}}();function bS(e){e.statements.push(md(pv.ComponentFactory).toStmt())}function ES(e,t,n,r){t.dependencies.forEach(function(t){t.setValue(e.getStaticSymbol(CS(t.moduleUrl,n,r),t.name))})}function CS(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function xS(e,t,n,r){return DS(function(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=TS(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,t,n,r))}function SS(e,t,n,r){return AS(xS(e,t,n,r))}function AS(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw Wd(e.symbolsMissingModule.map(function(e){return"Cannot determine the module for class "+e.name+" in "+e.filePath+"! Add "+e.name+" to the NgModule to fix it."}).join("\n"));return e}function TS(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var l=!1;if("class"===u.__symbolic)if(n.isDirective(r))l=!0,i.push(r);else if(n.isPipe(r))l=!0,o.push(r);else if(n.isNgModule(r)){var p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function(e,t){var n=!1,r=function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return jd(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return jd(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof dv&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return jd(t,new r,null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}function DS(e){var t=[],n=new Map,r=new Set;e.forEach(function(e){e.ngModules.forEach(function(e){t.push(e),e.declaredDirectives.forEach(function(t){return n.set(t.reference,e)}),e.declaredPipes.forEach(function(t){return n.set(t.reference,e)})}),e.directives.forEach(function(e){return r.add(e)}),e.pipes.forEach(function(e){return r.add(e)})});var i=[];return r.forEach(function(e){n.has(e)||i.push(e)}),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}function PS(e){return AS(DS(e))}var NS="ngFormattedMessage";function MS(e,t){if(void 0===t&&(t=0),!e)return"";var n=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",r=n&&0!==t?" at "+n:"",i=""+(n&&0===t?n+": ":"")+e.message+r;return""+function e(t){if(t<=0)return"";if(t<6)return[""," ","  ","   ","    ","     "][t];var n=e(Math.floor(t/2));return n+n+(t%2==1?" ":"")}(t)+i+(e.next&&"\n"+MS(e.next,t+2)||"")}var kS="@angular/core",OS=/^\$.*\$$/,IS={__symbolic:"ignore"},FS="useValue",RS="provide",jS=new Set([FS,"useFactory","data","id","loadChildren"]);function LS(e){return e&&"ignore"==e.__symbolic}var VS=function(){function e(e,t,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=e,this.symbolResolver=t,this.errorRecorder=i,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(e){return o._registerDecoratorOrConstructor(o.getStaticSymbol(e.filePath,e.name),e.ctor)}),r.forEach(function(e){return o._registerFunction(o.getStaticSymbol(e.filePath,e.name),e.fn)}),this.annotationForParentClassWithSummaryKind.set(gv.Directive,[Ih,jh]),this.annotationForParentClassWithSummaryKind.set(gv.Pipe,[Lh]),this.annotationForParentClassWithSummaryKind.set(gv.NgModule,[qh]),this.annotationForParentClassWithSummaryKind.set(gv.Injectable,[zh,Lh,Ih,jh,qh])}return e.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},e.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){n=e.moduleName+":"+e.name;var r=this.resolvedExternalReferences.get(n);if(r)return r}var i=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),o=this.findSymbolDeclaration(i);return t||(this.symbolResolver.recordModuleNameForFileName(i.filePath,e.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},e.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},e.prototype.tryFindDeclaration=function(e,t,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(e,t,n)})},e.prototype.findSymbolDeclaration=function(e){var t=this.symbolResolver.resolveSymbol(e);if(t){var n=t.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof dv)return this.findSymbolDeclaration(t.metadata)}return e},e.prototype.tryAnnotations=function(e){var t=this.errorRecorder;this.errorRecorder=function(e,t){};try{return this.annotations(e)}finally{this.errorRecorder=t}},e.prototype.annotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n)},this.annotationCache)},e.prototype.shallowAnnotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n,!0)},this.shallowAnnotationCache)},e.prototype._annotations=function(e,t,n){var r=n.get(e);if(!r){r=[];var i=this.getTypeMetadata(e),o=this.findParentType(e,i);if(o){var s=this.annotations(o);r.push.apply(r,p(s))}var a=[];if(i.decorators&&(a=t(e,i.decorators))&&r.push.apply(r,p(a)),o&&!this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var u=this.summaryResolver.resolveSummary(o);if(u&&u.type){var c=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);c.some(function(e){return a.some(function(t){return e.isTypeOf(t)})})||this.reportError(eA(US("Class "+e.name+" in "+e.filePath+" extends from a "+gv[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(e){return e.ngMetadataName}).join(" or ")+" decorator to the class"),e),e)}}n.set(e,r.filter(function(e){return!!e}))}return r},e.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);n={};var i=this.findParentType(e,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(e){n[e]=o[e]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),o=[];n[r]&&o.push.apply(o,p(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,p(t.simplify(e,i.decorators)))}),this.propertyCache.set(e,n)}return n},e.prototype.parameters=function(e){var t=this;if(!(e instanceof dv))return this.reportError(new Error("parameters received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),[];try{var n=this.parameterCache.get(e);if(!n){var r=this.getTypeMetadata(e),i=this.findParentType(e,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(e){return"constructor"==e.__symbolic}),u=a.parameters||[],c=this.simplify(e,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=t.trySimplify(e,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,p(a)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(e,n)}return n}catch(l){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+l),l}},e.prototype._methodNames=function(e){var t=this.methodCache.get(e);if(!t){var n=this.getTypeMetadata(e);t={};var r=this.findParentType(e,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(e){t[e]=i[e]})}var o=n.members||{};Object.keys(o).forEach(function(e){var n=o[e].some(function(e){return"method"==e.__symbolic});t[e]=t[e]||n}),this.methodCache.set(e,t)}return t},e.prototype._staticMembers=function(e){var t=this.staticCache.get(e);if(!t){var n=this.getTypeMetadata(e).statics||{};t=Object.keys(n),this.staticCache.set(e,t)}return t},e.prototype.findParentType=function(e,t){var n=this.trySimplify(e,t.extends);if(n instanceof dv)return n},e.prototype.hasLifecycleHook=function(e,t){e instanceof dv||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(e)+" which is not a StaticSymbol"),e);try{return!!this._methodNames(e)[t]}catch(n){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+n),n}},e.prototype.guards=function(e){var t,n;if(!(e instanceof dv))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var r=this._staticMembers(e),i={};try{for(var o=c(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.endsWith("TypeGuard")){var u=a.substr(0,a.length-"TypeGuard".length),l=void 0;u.endsWith("UseIf")?(u=a.substr(0,u.length-"UseIf".length),l="UseIf"):l=this.getStaticSymbol(e.filePath,e.name,[a]),i[u]=l}}}catch(p){t={error:p}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},e.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,p([void 0],n)))})},e.prototype._registerFunction=function(e,t){this.conversionMap.set(e,function(e,n){return t.apply(void 0,n)})},e.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Injectable"),zh),this.injectionToken=this.findDeclaration(kS,"InjectionToken"),this.opaqueToken=this.findDeclaration(kS,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(kS,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Host"),Zh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Self"),Qh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"SkipSelf"),$h),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Inject"),Th),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Optional"),Kh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Attribute"),Ph),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"ContentChild"),Mh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"ContentChildren"),Nh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"ViewChild"),Oh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"ViewChildren"),kh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Input"),Vh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Output"),Bh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Pipe"),Lh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"HostBinding"),Uh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"HostListener"),Hh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Directive"),Ih),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Component"),jh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"NgModule"),qh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Host"),Zh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Self"),Qh),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"SkipSelf"),$h),this._registerDecoratorOrConstructor(this.findDeclaration(kS,"Optional"),Kh)},e.prototype.getStaticSymbol=function(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)},e.prototype.trySimplify=function(e,t){var n=this.errorRecorder;this.errorRecorder=function(e,t){};var r=this.simplify(e,t);return this.errorRecorder=n,r},e.prototype.simplify=function(e,t,n){void 0===n&&(n=!1);var r,i=this,o=YS.empty,s=new Map;try{r=function e(t,n,r,a){function u(e){var t=i.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function l(n){return e(t,n,r,0)}function h(n,o){if(n===t)return e(n,o,r+1,a);try{return e(n,o,r+1,a)}catch(c){if(!HS(c))throw c;var s=c.chain?"references '"+c.symbol.name+"'":function(e){if(e.summary)return e.summary;switch(e.message){case qS:if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case zS:return"is not initialized";case WS:return"is a destructured variable";case GS:return"could not be resolved";case KS:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case QS:return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(c),u={message:"'"+n.name+"' "+s,position:c.position,next:c.chain};i.error({message:c.message,advise:c.advise,context:c.context,chain:u,symbol:n},t)}}function f(n){var d,v,m,y;if(ZS(n))return n;if(n instanceof Array){var g=[];try{for(var _=c(n),w=_.next();!w.done;w=_.next()){var b=w.value;if(b&&"spread"===b.__symbolic){var E=l(b.expression);if(Array.isArray(E)){try{for(var C=c(E),x=C.next();!x.done;x=C.next()){var S=x.value;g.push(S)}}catch(W){m={error:W}}finally{try{x&&!x.done&&(y=C.return)&&y.call(C)}finally{if(m)throw m.error}}continue}}var A=f(b);LS(A)||g.push(A)}}catch(G){d={error:G}}finally{try{w&&!w.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(n instanceof dv)return n===i.injectionToken||i.conversionMap.has(n)||a>0&&!n.members.length?n:null!=(j=u(T=n))?h(T,j):T;if(n){if(n.__symbolic){var T=void 0;switch(n.__symbolic){case"binop":var D=f(n.left);if(LS(D))return D;var P=f(n.right);if(LS(P))return P;switch(n.operator){case"&&":return D&&P;case"||":return D||P;case"|":return D|P;case"^":return D^P;case"&":return D&P;case"==":return D==P;case"!=":return D!=P;case"===":return D===P;case"!==":return D!==P;case"<":return D<P;case">":return D>P;case"<=":return D<=P;case">=":return D>=P;case"<<":return D<<P;case">>":return D>>P;case"+":return D+P;case"-":return D-P;case"*":return D*P;case"/":return D/P;case"%":return D%P}return null;case"if":var N=f(n.condition);return f(N?n.thenExpression:n.elseExpression);case"pre":var M=f(n.operand);if(LS(M))return M;switch(n.operator){case"+":return M;case"-":return-M;case"!":return!M;case"~":return~M}return null;case"index":var k=l(n.expression),O=l(n.index);return k&&ZS(O)?k[O]:null;case"select":var I=n.member,F=t,R=f(n.expression);if(R instanceof dv){var j,L=R.members.concat(I);return null!=(j=u(F=i.getStaticSymbol(R.filePath,R.name,L)))?h(F,j):F}return R&&ZS(I)?h(F,R[I]):null;case"reference":var V=n.name,B=o.resolve(V);if(B!=YS.missing)return B;break;case"resolved":try{return f(n.symbol)}catch(K){throw HS(K)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(K.position={fileName:n.fileName,line:n.line,column:n.character}),K}case"class":case"function":return t;case"new":case"call":if((T=e(t,n.expression,r+1,0))instanceof dv){if(T===i.injectionToken||T===i.opaqueToken)return t;var U=n.arguments||[],H=i.conversionMap.get(T);if(H){var q=U.map(function(e){return h(t,e)}).map(function(e){return LS(e)?void 0:e});return H(t,q)}return function(e,n,a,u){if(n&&"function"==n.__symbolic){s.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:n},e);try{var c=n.value;if(c&&(0!=r||"error"!=c.__symbolic)){var l=n.parameters,d=n.defaults;a=a.map(function(e){return h(t,e)}).map(function(e){return LS(e)?void 0:e}),d&&d.length>a.length&&a.push.apply(a,p(d.slice(a.length).map(function(e){return f(e)}))),s.set(e,!0);for(var v=YS.build(),m=0;m<l.length;m++)v.define(l[m],a[m]);var y,g=o;try{o=v.done(),y=h(e,c)}finally{o=g}return y}}finally{s.delete(e)}}if(0===r)return IS;var _=void 0;if(u&&"resolved"==u.__symbolic){var w=u.line,b=u.character,E=u.fileName;null!=E&&null!=w&&null!=b&&(_={fileName:E,line:w,column:b})}i.error({message:KS,context:e,value:n,position:_},t)}(T,u(T),U,n.expression)}return IS;case"error":var z=n.message;return null!=n.line?i.error({message:z,context:n.context,value:n,position:{fileName:n.fileName,line:n.line,column:n.character}},t):i.error({message:z,context:n.context},t),IS;case"ignore":return n}return null}return function(e,t){if(!e)return{};var n={};return Object.keys(e).forEach(function(r){var i=t(e[r],r);LS(i)||(OS.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(n,function(o,s){if(jS.has(s)){if(s===FS&&RS in n){var u=f(n.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return f(o)}return function(n){return e(t,n,r,a+1)}(o)}return f(o)})}return IS}return f(n)}(e,t,0,n?1:0)}catch(a){if(!this.errorRecorder)throw eA(a,e);this.reportError(a,e)}if(!LS(r))return r},e.prototype.getTypeMetadata=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(eA(e,t),t&&t.filePath||n)},e.prototype.error=function(e,t){var n=e.message,r=e.summary,i=e.advise,o=e.position,s=e.context,a=(e.value,e.symbol),u=e.chain;this.reportError(US(n,r,i,o,a,s,u),t)},e}(),BS="ngMetadataError";function US(e,t,n,r,i,o,s){var a=Wd(e);return a[BS]=!0,n&&(a.advise=n),r&&(a.position=r),t&&(a.summary=t),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function HS(e){return!!e[BS]}var qS="Reference to non-exported class",zS="Variable not initialized",WS="Destructuring not supported",GS="Could not resolve type",KS="Function call not supported",QS="Reference to a local symbol",$S="Lambda not supported";function ZS(e){return null===e||"function"!=typeof e&&"object"!=typeof e}var YS=function(){function e(){}return e.build=function(){var t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new XS(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),XS=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return i(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):YS.missing},t}(YS);function JS(e,t){return{message:""+function(e,t){switch(e){case qS:if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case zS:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case WS:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case GS:if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case KS:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case QS:if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case $S:return"Function expressions are not supported in decorators"}return e}(e.message,e.context)+(e.symbol?" in '"+e.symbol.name+"'":""),position:e.position,next:e.next?JS(e.next,t):t?{message:t}:void 0}}function eA(e,t){if(HS(e)){var n=e.position;return function(e){var t=Wd(MS(e)+".");return t[NS]=!0,t.chain=e,t.position=e.position,t}(JS({message:"Error during template compile of '"+t.name+"'",position:n,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function(e,t){switch(e){case qS:if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case WS:return"Consider simplifying to avoid destructuring";case QS:if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case $S:return"Consider changing the function expression into an exported function"}}(e.message,e.context)))}return e}var tA=function(){function e(e,t){this.host=e,this.staticSymbolCache=t,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.isLibraryFile=function(e){return!this.host.isSourceFile(VC(e))},e.prototype.toSummaryFileName=function(e,t){return this.host.toSummaryFileName(e,t)},e.prototype.fromSummaryFileName=function(e,t){return this.host.fromSummaryFileName(e,t)},e.prototype.resolveSummary=function(e){var t=e.members.length?this.staticSymbolCache.get(e.filePath,e.name):e,n=this.summaryCache.get(t);return n||(this._loadSummaryFile(e.filePath),n=this.summaryCache.get(e)),t===e&&n||null},e.prototype.getSymbolsOf=function(e){return this._loadSummaryFile(e)?Array.from(this.summaryCache.keys()).filter(function(t){return t.filePath===e}):null},e.prototype.getImportAs=function(e){return e.assertNoMembers(),this.importAs.get(e)},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.addSummary=function(e){this.summaryCache.set(e.symbol,e)},e.prototype._loadSummaryFile=function(e){var t=this,n=this.loadedFilePaths.get(e);if(null!=n)return n;var r=null;if(this.isLibraryFile(e)){var i=HC(e);try{r=this.host.loadSummary(i)}catch(c){throw console.error("Error loading summary file "+i),c}}if(n=null!=r,this.loadedFilePaths.set(e,n),r){var o=function(e,t,n,r){return new _S(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),s=o.moduleName,a=o.summaries,u=o.importAs;a.forEach(function(e){return t.summaryCache.set(e.symbol,e)}),s&&this.knownFileNameToModuleNames.set(e,s),u.forEach(function(e){t.importAs.set(e.symbol,e.importAs)})}return n},e}();function nA(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Wd("Couldn't resolve resource "+n+" from "+t);return r}}}var rA=function(){return function(){}}(),iA=function(){function e(){this._summaries=new Map}return e.prototype.isLibraryFile=function(){return!1},e.prototype.toSummaryFileName=function(e){return e},e.prototype.fromSummaryFileName=function(e){return e},e.prototype.resolveSummary=function(e){return this._summaries.get(e)||null},e.prototype.getSymbolsOf=function(){return[]},e.prototype.getImportAs=function(e){return e},e.prototype.getKnownModuleName=function(e){return null},e.prototype.addSummary=function(e){this._summaries.set(e.symbol,e)},e}();function oA(e,t,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<e.length;s++)o.vars.set(e[s],t[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}var sA=function(){function e(e,t,n,r){this.parent=e,this.instance=t,this.className=n,this.vars=r,this.exports=[]}return e.prototype.createChildWihtLocalVars=function(){return new e(this,this.instance,this.className,new Map)},e}(),aA=function(){return function(e){this.value=e}}();var uA=function(){function e(e){this.reflector=e}return e.prototype.debugAst=function(e){return function(e){var t=new mx,n=mm.createRoot();return(Array.isArray(e)?e:[e]).forEach(function(e){if(e instanceof Qf)e.visitStatement(t,n);else if(e instanceof gf)e.visitExpression(t,n);else{if(!(e instanceof rf))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}}),n.toSource()}(e)},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value?e.value.visitExpression(this,t):void 0;return t.vars.set(e.name,n),e.hasModifier(Af.Exported)&&t.exports.push(e.name),null},e.prototype.visitWriteVarExpr=function(e,t){for(var n=e.value.visitExpression(this,t),r=t;null!=r;){if(r.vars.has(e.name))return r.vars.set(e.name,n),n;r=r.parent}throw new Error("Not declared variable "+e.name)},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot interpret a WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){throw new Error("Cannot interpret a TypeofExpr")},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case yf.Super:return t.instance.__proto__;case yf.This:return t.instance;case yf.CatchError:n=lA;break;case yf.CatchStack:n=pA;break;default:throw new Error("Unknown builtin variable "+e.builtin)}for(var r=t;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},e.prototype.visitWriteKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return n[r]=i,i},e.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},e.prototype.visitInvokeMethodExpr=function(e,t){var n,r=e.receiver.visitExpression(this,t),i=this.visitAllExpressions(e.args,t);if(null!=e.builtin)switch(e.builtin){case _f.ConcatArray:n=r.concat.apply(r,p(i));break;case _f.SubscribeObservable:n=r.subscribe({next:i[0]});break;case _f.Bind:n=r.bind.apply(r,p(i));break;default:throw new Error("Unknown builtin method "+e.builtin)}else n=r[e.name].apply(r,i);return n},e.prototype.visitInvokeFunctionExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.fn;return r instanceof wf&&r.builtin===yf.Super?(t.instance.constructor.prototype.constructor.apply(t.instance,n),null):e.fn.visitExpression(this,t).apply(null,n)},e.prototype.visitReturnStmt=function(e,t){return new aA(e.value.visitExpression(this,t))},e.prototype.visitDeclareClassStmt=function(e,t){var n=function(e,t,n){var r={};e.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new sA(t,this,e.name,t.vars);return oA([],[],i.body,r,n)}}}),e.methods.forEach(function(i){var o=i.params.map(function(e){return e.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new sA(t,this,e.name,t.vars);return oA(o,r,i.body,a,n)}}});var i=e.constructorMethod.params.map(function(e){return e.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new sA(t,this,e.name,t.vars);e.fields.forEach(function(e){r[e.name]=void 0}),oA(i,o,e.constructorMethod.body,a,n)},s=e.parent?e.parent.visitExpression(n,t):Object;return o.prototype=Object.create(s.prototype,r),o}(e,t,this);return t.vars.set(e.name,n),e.hasModifier(Af.Exported)&&t.exports.push(e.name),null},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):null!=e.falseCase?this.visitAllStatements(e.falseCase,t):null},e.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(lA,r),n.vars.set(pA,r.stack),this.visitAllStatements(e.catchStmts,n)}},e.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},e.prototype.visitCommentStmt=function(e,t){return null},e.prototype.visitJSDocCommentStmt=function(e,t){return null},e.prototype.visitInstantiateExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.classExpr.visitExpression(this,t);return new(r.bind.apply(r,p([void 0],n)))},e.prototype.visitLiteralExpr=function(e,t){return e.value},e.prototype.visitExternalExpr=function(e,t){return this.reflector.resolveExternalReference(e.value)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):null!=e.falseCase?e.falseCase.visitExpression(this,t):null},e.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},e.prototype.visitFunctionExpr=function(e,t){return cA(e.params.map(function(e){return e.name}),e.statements,t,this)},e.prototype.visitDeclareFunctionStmt=function(e,t){var n=e.params.map(function(e){return e.name});return t.vars.set(e.name,cA(n,e.statements,t,this)),e.hasModifier(Af.Exported)&&t.exports.push(e.name),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n=this,r=function(){return e.lhs.visitExpression(n,t)},i=function(){return e.rhs.visitExpression(n,t)};switch(e.operator){case of.Equals:return r()==i();case of.Identical:return r()===i();case of.NotEquals:return r()!=i();case of.NotIdentical:return r()!==i();case of.And:return r()&&i();case of.Or:return r()||i();case of.Plus:return r()+i();case of.Minus:return r()-i();case of.Divide:return r()/i();case of.Multiply:return r()*i();case of.Modulo:return r()%i();case of.Lower:return r()<i();case of.LowerEquals:return r()<=i();case of.Bigger:return r()>i();case of.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+e.operator)}},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.name]},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach(function(e){return r[e.key]=e.value.visitExpression(n,t)}),r},e.prototype.visitCommaExpr=function(e,t){var n=this.visitAllExpressions(e.parts,t);return n[n.length-1]},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitAllStatements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].visitStatement(this,t);if(r instanceof aA)return r}return null},e}();function cA(e,t,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return oA(e,i,t,n,r)}}var lA="error",pA="stack",hA=function(){function e(e,t,n,r,i,o,s,a,u,c){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=s,this._compilerConfig=a,this._console=u,this.getExtraNgModuleProviders=c,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return e.prototype.compileModuleSync=function(e){return Ud(this._compileModuleAndComponents(e,!0))},e.prototype.compileModuleAsync=function(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))},e.prototype.compileModuleAndAllComponentsSync=function(e){return Ud(this._compileModuleAndAllComponents(e,!0))},e.prototype.compileModuleAndAllComponentsAsync=function(e){return Promise.resolve(this._compileModuleAndAllComponents(e,!1))},e.prototype.getComponentFactory=function(e){return this._metadataResolver.getDirectiveSummary(e).componentFactory},e.prototype.loadAotSummaries=function(e){this.clearCache(),this._addAotSummaries(e)},e.prototype._addAotSummaries=function(e){if(!this._addedAotSummaries.has(e)){this._addedAotSummaries.add(e);for(var t=e(),n=0;n<t.length;n++){var r=t[n];if("function"==typeof r)this._addAotSummaries(r);else{var i=r;this._summaryResolver.addSummary({symbol:i.type.reference,metadata:null,type:i})}}}},e.prototype.hasAotSummary=function(e){return!!this._summaryResolver.resolveSummary(e)},e.prototype._filterJitIdentifiers=function(e){var t=this;return e.map(function(e){return e.reference}).filter(function(e){return!t.hasAotSummary(e)})},e.prototype._compileModuleAndComponents=function(e,t){var n=this;return Hd(this._loadModules(e,t),function(){return n._compileComponents(e,null),n._compileModule(e)})},e.prototype._compileModuleAndAllComponents=function(e,t){var n=this;return Hd(this._loadModules(e,t),function(){var t=[];return n._compileComponents(e,t),{ngModuleFactory:n._compileModule(e),componentFactories:t}})},e.prototype._loadModules=function(e,t){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(e);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(e){var i=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(e){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,e,t);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(e){return n._metadataResolver.getOrLoadPipeMetadata(e)})}),qd(r)},e.prototype._compileModule=function(e){var t=this._compiledNgModuleCache.get(e);if(!t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this.getExtraNgModuleProviders(n.type.reference),i=vA(),o=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(function(e){return Rv(wv(e.type)+"/module.ngfactory.js")}(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,t)}return t},e.prototype._compileComponents=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(e){var r=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(e){i.set(e,r);var s=n._metadataResolver.getDirectiveMetadata(e);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),t)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),t.push(s.componentFactory)}})}),s.forEach(function(e){var t=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(t.declaredDirectives).forEach(function(e){var t=n._metadataResolver.getDirectiveMetadata(e);t.isComponent&&t.entryComponents.forEach(function(e){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))})}),t.entryComponents.forEach(function(e){if(!n.hasAotSummary(e.componentType)){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))}})}),o.forEach(function(e){return n._compileTemplate(e)})},e.prototype.clearCacheFor=function(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)},e.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},e.prototype._createCompiledHostTemplate=function(e,t){if(!t)throw new Error("Component "+Yd(e)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(e);if(!n){var r=this._metadataResolver.getDirectiveMetadata(e);dA(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new fA(!0,r.type,i,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n},e.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.reference);return n||(dA(e),n=new fA(!1,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n},e.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.compMeta,r=new Map,i=vA(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(e){var i=t._styleCompiler.compileStyles(vA(),n,e);r.set(e.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);e.ngModule.transitiveModule.pipes.map(function(e){return t._metadataResolver.getPipeSummary(e.reference)});var s=this._parseTemplate(n,e.ngModule,e.directives),a=s.template,u=s.pipes,c=this._viewCompiler.compileComponent(i,n,a,vd(o.stylesVar),u),l=this._interpretOrJit(function(e,t){return Rv(wv(e)+"/"+wv(t.type)+".ngfactory.js")}(e.ngModule.type,e.compMeta),i.statements),p=l[c.viewClassVar],h=l[c.rendererTypeVar];e.compiled(p,h)}},e.prototype._parseTemplate=function(e,t,n){var r=this,i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)});return this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,jv(t.type,e,e.template),i)},e.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach(function(e,r){var i=t.get(e.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,t);e.setValue(o)})},e.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._interpretOrJit((n=e.meta,r=this._sharedStylesheetCount++,i=n.moduleUrl.split(/\/\\/g),Rv("css/"+r+i[i.length-1]+".ngstyle.js")),e.outputCtx.statements)[e.stylesVar];var n,r,i},e.prototype._interpretOrJit=function(e,t){return this._compilerConfig.useJit?wm(e,t,this._reflector,this._compilerConfig.jitDevMode):function(e,t){var n=new sA(null,null,null,new Map);new uA(t).visitAllStatements(e,n);var r={};return n.exports.forEach(function(e){r[e]=n.vars.get(e)}),r}(t,this._reflector)},e}(),fA=function(){function e(e,t,n,r,i){this.isHost=e,this.compType=t,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return e.prototype.compiled=function(e,t){for(var n in this._viewClass=e,this.compMeta.componentViewType.setDelegate(e),t)this.compMeta.rendererType[n]=t[n];this.isCompiled=!0},e}();function dA(e){if(!e.isComponent)throw new Error("Could not compile '"+wv(e.type)+"' because it is not a component.")}function vA(){return{statements:[],genFilePath:"",importExpr:function(e){return md({name:wv(e),moduleName:null,runtime:e})},constantPool:new sv}}var mA=function(){return function(){}}();var yA=function(){function e(e){void 0===e&&(e=null),this._packagePrefix=e}return e.prototype.resolve=function(e,t){var n=t;null!=e&&e.length>0&&(n=function(e,t){var n=wA(encodeURI(t)),r=wA(e);if(null!=n[gA.Scheme])return bA(n);n[gA.Scheme]=r[gA.Scheme];for(var i=gA.Scheme;i<=gA.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[gA.Path][0])return bA(n);var o=r[gA.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[gA.Path],n[gA.Path]=o,bA(n)}(e,n));var r=wA(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[gA.Scheme]){var o=r[gA.Path];return(i=i.replace(/\/+$/,""))+"/"+(o=o.replace(/^\/+/,""))}return n},e}();var gA,_A=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function wA(e){return e.match(_A)}function bA(e){var t,n,r,i,o,s,a,u,c=e[gA.Path];return c=null==c?"":function(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(c),e[gA.Path]=c,t=e[gA.Scheme],n=e[gA.UserInfo],r=e[gA.Domain],i=e[gA.Port],o=c,s=e[gA.QueryData],a=e[gA.Fragment],u=[],null!=t&&u.push(t+":"),null!=r&&(u.push("//"),null!=n&&u.push(n+"@"),u.push(r),null!=i&&u.push(":"+i)),null!=o&&u.push(o),null!=s&&u.push("?"+s),null!=a&&u.push("#"+a),u.join("")}!function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(gA||(gA={}));var EA=function(){function e(){}return e.prototype.get=function(e){return""},e}(),CA=(function(){function e(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}e.prototype.extract=function(e){var t=this,n=SS(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(e){return t.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){var e=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(e){var n=t.metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&r.push(n)}),r.forEach(function(n){var r=n.template.template,i=n.template.templateUrl,o=c_.fromArray(n.template.interpolation);e.push.apply(e,p(t.messageBundle.updateFromTemplate(r,i,o)))})}),e.length)throw new Error(e.map(function(e){return e.toString()}).join("\n"));return t.messageBundle})},e.create=function(t,n){var r=new z_,i=nA(t),o=new vv,s=new tA(t,o),a=new fS(t,o,s),u=new VS(s,a),c=new tE({defaultEncapsulation:wh.Emulated,useJit:!1}),l=new rE({get:function(e){return t.loadResource(e)}},i,r,c),p=new cw,h=new KC(c,r,new vx(u),new sE(u),new yx(u),s,p,l,console,o,u),f=new oS(r,[],{},n);return{extractor:new e(t,a,f,h),staticReflector:u}}}(),function(){function e(e){this.directiveMatcher=e}e.prototype.bind=function(e){if(!e.template)throw new Error("Binding without a template not yet supported");var t=CA.apply(e.template),n=xA.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,o=n.references,s=SA.apply(e.template,t),a=s.expressions,u=s.symbols,c=s.nestingLevel;return new AA(e,r,i,o,a,u,c)}}(),function(){function e(e){this.parentScope=e,this.namedEntities=new Map,this.childScopes=new Map}return e.apply=function(t){var n=new e;return n.ingest(t),n},e.prototype.ingest=function(e){var t=this;e instanceof ww?(e.variables.forEach(function(e){return t.visitVariable(e)}),e.children.forEach(function(e){return e.visit(t)})):e.forEach(function(e){return e.visit(t)})},e.prototype.visitElement=function(e){var t=this;e.references.forEach(function(e){return t.visitReference(e)}),e.children.forEach(function(e){return e.visit(t)})},e.prototype.visitTemplate=function(t){var n=this;t.references.forEach(function(e){return n.visitReference(e)});var r=new e(this);r.ingest(t),this.childScopes.set(t,r)},e.prototype.visitVariable=function(e){this.maybeDeclare(e)},e.prototype.visitReference=function(e){this.maybeDeclare(e)},e.prototype.visitContent=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitText=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.maybeDeclare=function(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)},e.prototype.lookup=function(e){return this.namedEntities.has(e)?this.namedEntities.get(e):void 0!==this.parentScope?this.parentScope.lookup(e):null},e.prototype.getChildScope=function(e){var t=this.childScopes.get(e);if(void 0===t)throw new Error("Assertion error: child scope for "+e+" not found");return t},e}()),xA=function(){function e(e,t,n,r){this.matcher=e,this.directives=t,this.bindings=n,this.references=r}return e.apply=function(t,n){var r=new Map,i=new Map,o=new Map;return new e(n,r,i,o).ingest(t),{directives:r,bindings:i,references:o}},e.prototype.ingest=function(e){var t=this;e.forEach(function(e){return e.visit(t)})},e.prototype.visitElement=function(e){this.visitElementOrTemplate(e.name,e)},e.prototype.visitTemplate=function(e){this.visitElementOrTemplate("ng-template",e)},e.prototype.visitElementOrTemplate=function(e,t){var n=this,r=new Ch;r.setElement(e);var i=Xv(t);Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];(r.addAttribute(e,t),"class"===e.toLowerCase())&&t.trim().split(/\s+/g).forEach(function(e){return r.addClassName(e)})});var o=[];this.matcher.match(r,function(e,t){return o.push(t)}),o.length>0&&this.directives.set(t,o),t.references.forEach(function(e){var r=null;if(""===e.value.trim())r=o.find(function(e){return e.isComponent})||null;else if(null===(r=o.find(function(t){return t.exportAs===e.value})||null))throw new Error("Assertion error: failed to find directive with exportAs: "+e.value);null!==r?n.references.set(e,{directive:r,node:t}):n.references.set(e,t)}),p(t.attributes,t.inputs).forEach(function(e){var r=o.find(function(t){return t.inputs.hasOwnProperty(e.name)});void 0!==r?n.bindings.set(e,r):n.bindings.set(e,t)}),t.outputs.forEach(function(e){var r=o.find(function(t){return t.outputs.hasOwnProperty(e.name)});void 0!==r?n.bindings.set(e,r):n.bindings.set(e,t)}),t.children.forEach(function(e){return e.visit(n)})},e.prototype.visitContent=function(e){},e.prototype.visitVariable=function(e){},e.prototype.visitReference=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundAttributeOrEvent=function(e){},e.prototype.visitText=function(e){},e.prototype.visitBoundText=function(e){},e}(),SA=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.bindings=t,a.symbols=n,a.nestingLevel=r,a.scope=i,a.template=o,a.level=s,a.visitNode=function(e){return e.visit(a)},a}return i(t,e),t.apply=function(e,n){var r=new Map,i=new Map,o=new Map;return new t(r,i,o,n,e instanceof ww?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:o}},t.prototype.ingest=function(e){e instanceof ww?(e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)},t.prototype.visitElement=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)},t.prototype.visitTemplate=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.references.forEach(this.visitNode);var n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.nestingLevel,n,e,this.level+1).ingest(e)},t.prototype.visitVariable=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitReference=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitText=function(e){},t.prototype.visitContent=function(e){},t.prototype.visitTextAttribute=function(e){},t.prototype.visitBoundAttribute=function(e){e.value.visit(this)},t.prototype.visitBoundEvent=function(e){e.handler.visit(this)},t.prototype.visitBoundText=function(e){e.value.visit(this)},t.prototype.visitPropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyRead.call(this,t,n)},t.prototype.visitSafePropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafePropertyRead.call(this,t,n)},t.prototype.visitPropertyWrite=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyWrite.call(this,t,n)},t.prototype.visitMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitMethodCall.call(this,t,n)},t.prototype.visitSafeMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafeMethodCall.call(this,t,n)},t.prototype.maybeMap=function(e,t,n){if(t.receiver instanceof km){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}},t}(Jm),AA=function(){function e(e,t,n,r,i,o,s){this.target=e,this.directives=t,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=o,this.nestingLevel=s}return e.prototype.getDirectivesOfNode=function(e){return this.directives.get(e)||null},e.prototype.getReferenceTarget=function(e){return this.references.get(e)||null},e.prototype.getConsumerOfBinding=function(e){return this.bindings.get(e)||null},e.prototype.getExpressionTarget=function(e){return this.exprTargets.get(e)||null},e.prototype.getTemplateOfSymbol=function(e){return this.symbols.get(e)||null},e.prototype.getNestingLevel=function(e){return this.nestingLevel.get(e)||0},e.prototype.getUsedDirectives=function(){var e=new Set;return this.directives.forEach(function(t){return t.forEach(function(t){return e.add(t)})}),Array.from(e.values())},e}();!function(e){(e.ng||(e.ng={})).\u0275compilerFacade=new xb}(rv);var TA=function(){return function(){}}(),DA=new ke("Location Initialized"),PA=function(){return function(){}}(),NA=new ke("appBaseHref"),MA=function(){function e(e){var n=this;this._subject=new yo,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(kA(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})})}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,kA(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)},e=t=s([Ds(),u("design:paramtypes",[PA])],e)}();function kA(e){return e.replace(/\/index.html$/,"")}var OA=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=MA.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+MA.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+MA.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t=s([Ds(),a(1,it()),a(1,rt(NA)),u("design:paramtypes",[TA,String])],t)}(PA),IA=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return MA.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+MA.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+MA.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+MA.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t=s([Ds(),a(1,it()),a(1,rt(NA)),u("design:paramtypes",[TA,String])],t)}(PA),FA=void 0;var RA=["en",[["a","p"],["AM","PM"],FA],[["AM","PM"],FA,FA],[["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"]],FA,[["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"]],FA,[["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}",FA,"{1} 'at' {0}",FA],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],jA={};var LA,VA,BA,UA,HA,qA,zA,WA={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,0],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",0],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",0],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",0],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",0],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",0],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",0],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,0],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UZS:[void 0,void 0,0],VEF:[void 0,"Bs"],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};function GA(e,t){return XA(eT(e)[10],t)}function KA(e,t){return XA(eT(e)[11],t)}function QA(e,t){return XA(eT(e)[12],t)}function $A(e,t){var n=eT(e),r=n[13][t];if(void 0===r){if(t===qA.CurrencyDecimal)return n[13][qA.Decimal];if(t===qA.CurrencyGroup)return n[13][qA.Group]}return r}function ZA(e,t){return eT(e)[14][t]}function YA(e){if(!e[19])throw new Error('Missing extra locale data for the locale "'+e[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function XA(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function JA(e){var t=l(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}function eT(e){var t=e.toLowerCase().replace(/_/g,"-"),n=jA[t];if(n)return n;var r=t.split("-")[0];if(n=jA[r])return n;if("en"===r)return RA;throw new Error('Missing locale data for the locale "'+e+'".')}function tT(e,t,n){void 0===n&&(n="en");var r=function(e){return eT(e)[17]}(n)[e]||WA[e]||[],i=r[1];return"narrow"===t&&"string"==typeof i?i:r[0]||e}!function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific"}(LA||(LA={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other"}(VA||(VA={})),function(e){e[e.Format=0]="Format",e[e.Standalone=1]="Standalone"}(BA||(BA={})),function(e){e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short"}(UA||(UA={})),function(e){e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full"}(HA||(HA={})),function(e){e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup"}(qA||(qA={})),function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(zA||(zA={}));var nT=2;var rT,iT,oT,sT=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,aT={},uT=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function cT(e,t,n,r){var i=function(e){if(bT(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var n=l(e.split("-").map(function(e){return+e}),3),r=n[0],i=n[1],o=n[2];return new Date(r,i-1,o)}var s=void 0;if(s=e.match(sT))return wT(s)}var a=new Date(e);if(!bT(a))throw new Error('Unable to convert "'+e+'" into a date');return a}(e);t=function e(t,n){var r=function(e){return eT(e)[0]}(t);aT[r]=aT[r]||{};if(aT[r][n])return aT[r][n];var i="";switch(n){case"shortDate":i=GA(t,HA.Short);break;case"mediumDate":i=GA(t,HA.Medium);break;case"longDate":i=GA(t,HA.Long);break;case"fullDate":i=GA(t,HA.Full);break;case"shortTime":i=KA(t,HA.Short);break;case"mediumTime":i=KA(t,HA.Medium);break;case"longTime":i=KA(t,HA.Long);break;case"fullTime":i=KA(t,HA.Full);break;case"short":var o=e(t,"shortTime"),s=e(t,"shortDate");i=lT(QA(t,HA.Short),[o,s]);break;case"medium":var a=e(t,"mediumTime"),u=e(t,"mediumDate");i=lT(QA(t,HA.Medium),[a,u]);break;case"long":var c=e(t,"longTime"),l=e(t,"longDate");i=lT(QA(t,HA.Long),[c,l]);break;case"full":var p=e(t,"fullTime"),h=e(t,"fullDate");i=lT(QA(t,HA.Full),[p,h])}i&&(aT[r][n]=i);return i}(n,t)||t;for(var o,s=[];t;){if(!(o=uT.exec(t))){s.push(t);break}var a=(s=s.concat(o.slice(1))).pop();if(!a)break;t=a}var u=i.getTimezoneOffset();r&&(u=_T(r,u),i=function(e,t,n){var r=n?-1:1,i=e.getTimezoneOffset(),o=_T(t,i);return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(o-i))}(i,r,!0));var c="";return s.forEach(function(e){var t=function(e){if(gT[e])return gT[e];var t;switch(e){case"G":case"GG":case"GGG":t=fT(oT.Eras,UA.Abbreviated);break;case"GGGG":t=fT(oT.Eras,UA.Wide);break;case"GGGGG":t=fT(oT.Eras,UA.Narrow);break;case"y":t=hT(iT.FullYear,1,0,!1,!0);break;case"yy":t=hT(iT.FullYear,2,0,!0,!0);break;case"yyy":t=hT(iT.FullYear,3,0,!1,!0);break;case"yyyy":t=hT(iT.FullYear,4,0,!1,!0);break;case"M":case"L":t=hT(iT.Month,1,1);break;case"MM":case"LL":t=hT(iT.Month,2,1);break;case"MMM":t=fT(oT.Months,UA.Abbreviated);break;case"MMMM":t=fT(oT.Months,UA.Wide);break;case"MMMMM":t=fT(oT.Months,UA.Narrow);break;case"LLL":t=fT(oT.Months,UA.Abbreviated,BA.Standalone);break;case"LLLL":t=fT(oT.Months,UA.Wide,BA.Standalone);break;case"LLLLL":t=fT(oT.Months,UA.Narrow,BA.Standalone);break;case"w":t=yT(1);break;case"ww":t=yT(2);break;case"W":t=yT(1,!0);break;case"d":t=hT(iT.Date,1);break;case"dd":t=hT(iT.Date,2);break;case"E":case"EE":case"EEE":t=fT(oT.Days,UA.Abbreviated);break;case"EEEE":t=fT(oT.Days,UA.Wide);break;case"EEEEE":t=fT(oT.Days,UA.Narrow);break;case"EEEEEE":t=fT(oT.Days,UA.Short);break;case"a":case"aa":case"aaa":t=fT(oT.DayPeriods,UA.Abbreviated);break;case"aaaa":t=fT(oT.DayPeriods,UA.Wide);break;case"aaaaa":t=fT(oT.DayPeriods,UA.Narrow);break;case"b":case"bb":case"bbb":t=fT(oT.DayPeriods,UA.Abbreviated,BA.Standalone,!0);break;case"bbbb":t=fT(oT.DayPeriods,UA.Wide,BA.Standalone,!0);break;case"bbbbb":t=fT(oT.DayPeriods,UA.Narrow,BA.Standalone,!0);break;case"B":case"BB":case"BBB":t=fT(oT.DayPeriods,UA.Abbreviated,BA.Format,!0);break;case"BBBB":t=fT(oT.DayPeriods,UA.Wide,BA.Format,!0);break;case"BBBBB":t=fT(oT.DayPeriods,UA.Narrow,BA.Format,!0);break;case"h":t=hT(iT.Hours,1,-12);break;case"hh":t=hT(iT.Hours,2,-12);break;case"H":t=hT(iT.Hours,1);break;case"HH":t=hT(iT.Hours,2);break;case"m":t=hT(iT.Minutes,1);break;case"mm":t=hT(iT.Minutes,2);break;case"s":t=hT(iT.Seconds,1);break;case"ss":t=hT(iT.Seconds,2);break;case"S":t=hT(iT.FractionalSeconds,1);break;case"SS":t=hT(iT.FractionalSeconds,2);break;case"SSS":t=hT(iT.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=dT(rT.Short);break;case"ZZZZZ":t=dT(rT.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=dT(rT.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=dT(rT.Long);break;default:return null}return gT[e]=t,t}(e);c+=t?t(i,n,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function lT(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function pT(e,t,n,r,i){void 0===n&&(n="-");var o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var s=String(e);s.length<t;)s="0"+s;return r&&(s=s.substr(s.length-t)),o+s}function hT(e,t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,s){var a,u=function(e,t){switch(e){case iT.FullYear:return t.getFullYear();case iT.Month:return t.getMonth();case iT.Date:return t.getDate();case iT.Hours:return t.getHours();case iT.Minutes:return t.getMinutes();case iT.Seconds:return t.getSeconds();case iT.FractionalSeconds:return t.getMilliseconds();case iT.Day:return t.getDay();default:throw new Error('Unknown DateType value "'+e+'".')}}(e,o);if((n>0||u>-n)&&(u+=n),e===iT.Hours)0===u&&-12===n&&(u=12);else if(e===iT.FractionalSeconds)return a=t,pT(u,3).substr(0,a);var c=$A(s,qA.MinusSign);return pT(u,t,c,r,i)}}function fT(e,t,n,r){return void 0===n&&(n=BA.Format),void 0===r&&(r=!1),function(i,o){return function(e,t,n,r,i,o){switch(n){case oT.Months:return function(e,t,n){var r=eT(e),i=XA([r[5],r[6]],t);return XA(i,n)}(t,i,r)[e.getMonth()];case oT.Days:return function(e,t,n){var r=eT(e),i=XA([r[3],r[4]],t);return XA(i,n)}(t,i,r)[e.getDay()];case oT.DayPeriods:var s=e.getHours(),a=e.getMinutes();if(o){var u,c=function(e){var t=eT(e);return YA(t),(t[19][2]||[]).map(function(e){return"string"==typeof e?JA(e):[JA(e[0]),JA(e[1])]})}(t),l=function(e,t,n){var r=eT(e);YA(r);var i=XA([r[19][0],r[19][1]],t)||[];return XA(i,n)||[]}(t,i,r);if(c.forEach(function(e,t){if(Array.isArray(e)){var n=e[0],r=n.hours,i=n.minutes,o=e[1],c=o.hours,p=o.minutes;s>=r&&a>=i&&(s<c||s===c&&a<p)&&(u=l[t])}else{var h=e.hours,f=e.minutes;h===s&&f===a&&(u=l[t])}}),u)return u}return function(e,t,n){var r=eT(e),i=XA([r[1],r[2]],t);return XA(i,n)}(t,i,r)[s<12?0:1];case oT.Eras:return function(e,t){return XA(eT(e)[7],t)}(t,r)[e.getFullYear()<=0?0:1];default:var p=n;throw new Error("unexpected translation type "+p)}}(i,o,e,t,n,r)}}function dT(e){return function(t,n,r){var i=-1*r,o=$A(n,qA.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case rT.Short:return(i>=0?"+":"")+pT(s,2,o)+pT(Math.abs(i%60),2,o);case rT.ShortGMT:return"GMT"+(i>=0?"+":"")+pT(s,1,o);case rT.Long:return"GMT"+(i>=0?"+":"")+pT(s,2,o)+":"+pT(Math.abs(i%60),2,o);case rT.Extended:return 0===r?"Z":(i>=0?"+":"")+pT(s,2,o)+":"+pT(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+e+'"')}}}!function(e){e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended"}(rT||(rT={})),function(e){e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day"}(iT||(iT={})),function(e){e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras"}(oT||(oT={}));var vT=0,mT=4;function yT(e,t){return void 0===t&&(t=!1),function(n,r){var i,o,s,a;if(t){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();i=1+Math.floor((c+u)/7)}else{var l=(s=n.getFullYear(),a=new Date(s,vT,1).getDay(),new Date(s,0,1+(a<=mT?mT:mT+7)-a)),p=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(mT-o.getDay()))).getTime()-l.getTime();i=1+Math.round(p/6048e5)}return pT(i,e,$A(r,qA.MinusSign))}}var gT={};function _T(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function wT(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,s,a,u,c),t}function bT(e){return e instanceof Date&&!isNaN(e.valueOf())}var ET=/^(\d+)?\.((\d+)(-(\d+))?)?$/,CT=22,xT=".",ST="0",AT=";",TT=",",DT="#",PT="\xa4",NT="%";function MT(e,t,n,r,i,o,s){void 0===s&&(s=!1);var a="",u=!1;if(isFinite(e)){var c=function(e){var t,n,r,i,o,s=Math.abs(e)+"",a=0;(n=s.indexOf(xT))>-1&&(s=s.replace(xT,""));(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length);for(r=0;s.charAt(r)===ST;r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;s.charAt(o)===ST;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}n>CT&&(t=t.splice(0,CT-1),a=n-1,n=1);return{digits:t,exponent:a,integerLen:n}}(e);s&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2);return e}(c));var l=t.minInt,p=t.minFrac,h=t.maxFrac;if(o){var f=o.match(ET);if(null===f)throw new Error(o+" is not a valid digit info");var d=f[1],v=f[3],m=f[5];null!=d&&(l=IT(d)),null!=v&&(p=IT(v)),null!=m?h=IT(m):null!=v&&p>h&&(h=p)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(var u=s;u<r.length;u++)r[u]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(var c=1;c<s;c++)r[c]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);var p=0!==o,h=t+e.integerLen,f=r.reduceRight(function(e,t,n,r){return t+=e,r[n]=t<10?t:t-10,p&&(0===r[n]&&n>=h?r.pop():p=!1),t>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}(c,p,h);var y=c.digits,g=c.integerLen,_=c.exponent,w=[];for(u=y.every(function(e){return!e});g<l;g++)y.unshift(0);for(;g<0;g++)y.unshift(0);g>0?w=y.splice(g,y.length):(w=y,y=[0]);var b=[];for(y.length>=t.lgSize&&b.unshift(y.splice(-t.lgSize,y.length).join(""));y.length>t.gSize;)b.unshift(y.splice(-t.gSize,y.length).join(""));y.length&&b.unshift(y.join("")),a=b.join($A(n,r)),w.length&&(a+=$A(n,i)+w.join("")),_&&(a+=$A(n,qA.Exponential)+"+"+_)}else a=$A(n,qA.Infinity);return a=e<0&&!u?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf}function kT(e,t,n,r,i){var o=OT(ZA(t,LA.Currency),$A(t,qA.MinusSign));return o.minFrac=function(e){var t,n=WA[e];return n&&(t=n[2]),"number"==typeof t?t:nT}(r),o.maxFrac=o.minFrac,MT(e,o,t,qA.CurrencyGroup,qA.CurrencyDecimal,i).replace(PT,n).replace(PT,"")}function OT(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(AT),i=r[0],o=r[1],s=-1!==i.indexOf(xT)?i.split(xT):[i.substring(0,i.lastIndexOf(ST)+1),i.substring(i.lastIndexOf(ST)+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf(DT));for(var c=0;c<u.length;c++){var l=u.charAt(c);l===ST?n.minFrac=n.maxFrac=c+1:l===DT?n.maxFrac=c+1:n.posSuf+=l}var p=a.split(TT);if(n.gSize=p[1]?p[1].length:0,n.lgSize=p[2]||p[1]?(p[2]||p[1]).length:0,o){var h=i.length-n.posPre.length-n.posSuf.length,f=o.indexOf(DT);n.negPre=o.substr(0,f).replace(/'/g,""),n.negSuf=o.substr(f+h).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function IT(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var FT=new ke("UseV4Plurals"),RT=function(){return function(){}}();function jT(e,t,n,r){var i="="+e;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var LT=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return i(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return eT(e)[18]}(t||this.locale)(e)){case VA.Zero:return"zero";case VA.One:return"one";case VA.Two:return"two";case VA.Few:return"few";case VA.Many:return"many";default:return"other"}},t=s([Ds(),a(0,rt(Su)),a(1,it()),a(1,rt(FT)),u("design:paramtypes",[String,Object])],t)}(RT);function VT(e,t){var n,r;t=encodeURIComponent(t);try{for(var i=c(e.split(";")),o=i.next();!o.done;o=i.next()){var s=o.value,a=s.indexOf("="),u=l(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),p=u[0],h=u[1];if(p.trim()===t)return decodeURIComponent(h)}}catch(f){n={error:f}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var BT=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(pn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+et(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},s([bs("class"),u("design:type",String),u("design:paramtypes",[String])],e.prototype,"klass",null),s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngClass",null),e=s([ys({selector:"[ngClass]"}),u("design:paramtypes",[yu,_u,Gi,$i])],e)}(),UT=function(){function e(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return e.prototype.ngOnChanges=function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(Oi);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(Ni)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(r,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},e.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},s([bs(),u("design:type",kt)],e.prototype,"ngComponentOutlet",void 0),s([bs(),u("design:type",ft)],e.prototype,"ngComponentOutletInjector",void 0),s([bs(),u("design:type",Array)],e.prototype,"ngComponentOutletContent",void 0),s([bs(),u("design:type",Ii)],e.prototype,"ngComponentOutletNgModuleFactory",void 0),e=s([ys({selector:"[ngComponentOutlet]"}),u("design:paramtypes",[Ja])],e)}(),HT=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),qT=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){ko()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new HT(null,t._ngForOf,-1,-1),i),s=new zT(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(r);else{o=t._viewContainer.get(r);t._viewContainer.move(o,i);s=new zT(e,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngForOf",null),s([bs(),u("design:type",Function),u("design:paramtypes",[Function])],e.prototype,"ngForTrackBy",null),s([bs(),u("design:type",go),u("design:paramtypes",[go])],e.prototype,"ngForTemplate",null),e=s([ys({selector:"[ngFor][ngForOf]"}),u("design:paramtypes",[Ja,go,yu])],e)}(),zT=function(){return function(e,t){this.record=e,this.view=t}}();var WT=function(){function e(e,t){this._viewContainer=e,this._context=new GT,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){KT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){KT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e.ngTemplateGuard_ngIf=function(e,t){return!0},s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngIf",null),s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngIfThen",null),s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngIfElse",null),e=s([ys({selector:"[ngIf]"}),u("design:paramtypes",[Ja,go])],e)}(),GT=function(){return function(){this.$implicit=null,this.ngIf=null}}();function KT(e,t){if(!!(t&&!t.createEmbeddedView))throw new Error(e+" must be a TemplateRef, but received '"+et(t)+"'.")}var QT=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),$T=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++){this._defaultViews[t].enforceState(e)}}},s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngSwitch",null),e=s([ys({selector:"[ngSwitch]"})],e)}(),ZT=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new QT(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},s([bs(),u("design:type",Object)],e.prototype,"ngSwitchCase",void 0),e=s([ys({selector:"[ngSwitchCase]"}),a(2,at()),u("design:paramtypes",[Ja,go,$T])],e)}(),YT=function(){function e(e,t,n){n._addDefault(new QT(e,t))}return e=s([ys({selector:"[ngSwitchDefault]"}),a(2,at()),u("design:paramtypes",[Ja,go,$T])],e)}(),XT=function(){function e(e){this._localization=e,this._caseViews={}}return Object.defineProperty(e.prototype,"ngPlural",{set:function(e){this._switchValue=e,this._updateView()},enumerable:!0,configurable:!0}),e.prototype.addCase=function(e,t){this._caseViews[e]=t},e.prototype._updateView=function(){this._clearViews();var e=Object.keys(this._caseViews),t=jT(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])},e.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},e.prototype._activateView=function(e){e&&(this._activeView=e,this._activeView.create())},s([bs(),u("design:type",Number),u("design:paramtypes",[Number])],e.prototype,"ngPlural",null),e=s([ys({selector:"[ngPlural]"}),u("design:paramtypes",[RT])],e)}(),JT=function(){function e(e,t,n,r){this.value=e;var i=!isNaN(Number(e));r.addCase(i?"="+e:e,new QT(n,t))}return e=s([ys({selector:"[ngPluralCase]"}),a(0,qe("ngPluralCase")),a(3,at()),u("design:paramtypes",[String,go,Ja,XT])],e)}(),eD=function(){function e(e,t,n){this._differs=e,this._ngEl=t,this._renderer=n}return Object.defineProperty(e.prototype,"ngStyle",{set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})},e.prototype._setStyle=function(e,t){var n=l(e.split("."),2),r=n[0],i=n[1];null!=(t=null!=t&&i?""+t+i:t)?this._renderer.setStyle(this._ngEl.nativeElement,r,t):this._renderer.removeStyle(this._ngEl.nativeElement,r)},s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngStyle",null),e=s([ys({selector:"[ngStyle]"}),u("design:paramtypes",[_u,Gi,$i])],e)}(),tD=[BT,UT,qT,WT,function(){function e(e){this._viewContainerRef=e}return e.prototype.ngOnChanges=function(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},e.prototype._shouldRecreateView=function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)},e.prototype._hasContextShapeChanged=function(e){var t,n,r=Object.keys(e.previousValue||{}),i=Object.keys(e.currentValue||{});if(r.length===i.length){try{for(var o=c(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(-1===r.indexOf(a))return!0}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1}return!0},e.prototype._updateExistingContext=function(e){var t,n;try{for(var r=c(Object.keys(e)),i=r.next();!i.done;i=r.next()){var o=i.value;this._viewRef.context[o]=this.ngTemplateOutletContext[o]}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},s([bs(),u("design:type",Object)],e.prototype,"ngTemplateOutletContext",void 0),s([bs(),u("design:type",go)],e.prototype,"ngTemplateOutlet",void 0),e=s([ys({selector:"[ngTemplateOutlet]"}),u("design:paramtypes",[Ja])],e)}(),eD,$T,ZT,YT,XT,JT];function nD(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+et(e)+"'")}var rD,iD=function(){function e(){}return e.format=function(e,t,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:LA[n].toLowerCase()};return n==LA.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(t,l).format(e)},e}(),oD=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,sD={yMMMdjms:mD(vD([fD("year",1),dD("month",3),fD("day",1),fD("hour",1),fD("minute",1),fD("second",1)])),yMdjm:mD(vD([fD("year",1),fD("month",1),fD("day",1),fD("hour",1),fD("minute",1)])),yMMMMEEEEd:mD(vD([fD("year",1),dD("month",4),dD("weekday",4),fD("day",1)])),yMMMMd:mD(vD([fD("year",1),dD("month",4),fD("day",1)])),yMMMd:mD(vD([fD("year",1),dD("month",3),fD("day",1)])),yMd:mD(vD([fD("year",1),fD("month",1),fD("day",1)])),jms:mD(vD([fD("hour",1),fD("second",1),fD("minute",1)])),jm:mD(vD([fD("hour",1),fD("minute",1)]))},aD={yyyy:mD(fD("year",4)),yy:mD(fD("year",2)),y:mD(fD("year",1)),MMMM:mD(dD("month",4)),MMM:mD(dD("month",3)),MM:mD(fD("month",2)),M:mD(fD("month",1)),LLLL:mD(dD("month",4)),L:mD(dD("month",1)),dd:mD(fD("day",2)),d:mD(fD("day",1)),HH:uD(cD(mD(hD(fD("hour",2),!1)))),H:cD(mD(hD(fD("hour",1),!1))),hh:uD(cD(mD(hD(fD("hour",2),!0)))),h:cD(mD(hD(fD("hour",1),!0))),jj:mD(fD("hour",2)),j:mD(fD("hour",1)),mm:uD(mD(fD("minute",2))),m:mD(fD("minute",1)),ss:uD(mD(fD("second",2))),s:mD(fD("second",1)),sss:mD(fD("second",3)),EEEE:mD(dD("weekday",4)),EEE:mD(dD("weekday",3)),EE:mD(dD("weekday",2)),E:mD(dD("weekday",1)),a:(rD=mD(hD(fD("hour",1),!0)),function(e,t){return rD(e,t).split(" ")[1]}),Z:pD("short"),z:pD("long"),ww:mD({}),w:mD({}),G:mD(dD("era",1)),GG:mD(dD("era",2)),GGG:mD(dD("era",3)),GGGG:mD(dD("era",4))};function uD(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function cD(e){return function(t,n){return e(t,n).split(" ")[0]}}function lD(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function pD(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=lD(e,n,t);return r?r.substring(3):""}}function hD(e,t){return e.hour12=t,e}function fD(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function dD(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function vD(e){return e.reduce(function(e,t){return o({},e,t)},{})}function mD(e){return function(t,n){return lD(t,n,e)}}var yD=new Map;var gD=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=sD[e];if(r)return r(t,n);var i=e,o=yD.get(i);if(!o){o=[];var s=void 0;oD.exec(e);for(var a=e;a;)(s=oD.exec(a))?a=(o=o.concat(s.slice(1))).pop():(o.push(a),a=null);yD.set(i,o)}return o.reduce(function(e,r){var i=aD[r];return e+(i?i(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),_D=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var r;if("string"==typeof e&&(e=e.trim()),wD(e))r=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=l(e.split("-").map(function(e){return parseInt(e,10)}),3),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);else r=new Date(parseFloat(e));if(!wD(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(sT)))throw nD(t,e);r=wT(u)}return gD.format(r,this._locale,t._ALIASES[n]||n)},e._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},e=t=s([_s({name:"date",pure:!0}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}();function wD(e){return e instanceof Date&&!isNaN(e.valueOf())}function bD(e,t,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw nD(e,n);var a,u,c;if(r!==LA.Currency&&(a=1,u=0,c=3),i){var l=i.match(ET);if(null===l)throw new Error(i+" is not a valid digit info for number pipes");null!=l[1]&&(a=IT(l[1])),null!=l[3]&&(u=IT(l[3])),null!=l[5]&&(c=IT(l[5]))}return iD.format(n,t,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var ED=[function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){return bD(t,this._locale,e,LA.Decimal,n)},e=t=s([_s({name:"number"}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}(),function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){return bD(t,this._locale,e,LA.Percent,n)},e=t=s([_s({name:"percent"}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}(),function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),bD(t,this._locale,e,LA.Currency,i,n,r)},e=t=s([_s({name:"currency"}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}(),_D],CD=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),xD=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),SD=new CD,AD=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var t;return t=e,e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,cn.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(e){if(na(e))return xD;if(ra(e))return SD;throw nD(t,e)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e=t=s([_s({name:"async",pure:!1}),u("design:paramtypes",[eu])],e)}(),TD=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw nD(t,e);return e.toLowerCase()},e=t=s([_s({name:"lowercase"})],e)}(),DD=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,PD=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw nD(t,e);return e.replace(DD,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})},e=t=s([_s({name:"titlecase"})],e)}(),ND=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw nD(t,e);return e.toUpperCase()},e=t=s([_s({name:"uppercase"})],e)}(),MD=function(){function e(e){this.locale=e}var t;return t=e,e.prototype.transform=function(e,n,r,i){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;try{return cT(e,n,i||this.locale,r)}catch(o){throw nD(t,o.message)}},e=t=s([_s({name:"date",pure:!0}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}(),kD=/#/g,OD=function(){function e(e){this._localization=e}var t;return t=e,e.prototype.transform=function(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw nD(t,n);return n[jT(e,Object.keys(n),this._localization,r)].replace(kD,e.toString())},e=t=s([_s({name:"i18nPlural",pure:!0}),u("design:paramtypes",[RT])],e)}(),ID=function(){function e(){}var t;return t=e,e.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw nD(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},e=t=s([_s({name:"i18nSelect",pure:!0})],e)}(),FD=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e=s([_s({name:"json",pure:!1})],e)}();var RD=function(){function e(e){this.differs=e}return e.prototype.transform=function(e,t){var n=this;if(void 0===t&&(t=jD),!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e);return r&&(this.keyValues=[],r.forEachItem(function(e){var t,r;n.keyValues.push((t=e.key,r=e.currentValue,{key:t,value:r}))}),this.keyValues.sort(t)),this.keyValues},e=s([_s({name:"keyvalue",pure:!1}),u("design:paramtypes",[_u])],e)}();function jD(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;var i=String(n),o=String(r);return i==o?0:i<o?-1:1}var LD=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r){if(UD(e))return null;r=r||this._locale;try{return function(e,t,n){return MT(e,OT(ZA(t,LA.Decimal),$A(t,qA.MinusSign)),t,qA.Group,qA.Decimal,n)}(HD(e),r,n)}catch(i){throw nD(t,i.message)}},e=t=s([_s({name:"number"}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}(),VD=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r){if(UD(e))return null;r=r||this._locale;try{return function(e,t,n){return MT(e,OT(ZA(t,LA.Percent),$A(t,qA.MinusSign)),t,qA.Group,qA.Decimal,n,!0).replace(new RegExp(NT,"g"),$A(t,qA.PercentSign))}(HD(e),r,n)}catch(i){throw nD(t,i.message)}},e=t=s([_s({name:"percent"}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}(),BD=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r,i,o){if(void 0===r&&(r="symbol"),UD(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var s=n||"USD";"code"!==r&&(s="symbol"===r||"symbol-narrow"===r?tT(s,"symbol"===r?"wide":"narrow",o):r);try{return kT(HD(e),o,s,n,i)}catch(a){throw nD(t,a.message)}},e=t=s([_s({name:"currency"}),a(0,rt(Su)),u("design:paramtypes",[String])],e)}();function UD(e){return null==e||""===e||e!=e}function HD(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(e+" is not a number");return e}var qD=[AD,ND,TD,FD,function(){function e(){}var t;return t=e,e.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw nD(t,e);return e.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e=t=s([_s({name:"slice",pure:!1})],e)}(),LD,VD,PD,BD,MD,OD,ID,RD],zD=function(){function e(){}return e=s([Ss({declarations:[tD,qD],exports:[tD,qD],providers:[{provide:RT,useClass:LT}]})],e)}(),WD=function(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?VA.One:VA.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?VA.One:VA.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?VA.One:VA.Other;case"ar":return 0===n?VA.Zero:1===n?VA.One:2===n?VA.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?VA.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?VA.Many:VA.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?VA.One:VA.Other;case"be":return n%10==1&&n%100!=11?VA.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?VA.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?VA.Many:VA.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?VA.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?VA.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?VA.Few:0!==n&&n%1e6==0?VA.Many:VA.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?VA.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?VA.Few:VA.Other;case"cs":case"sk":return 1===i&&0===o?VA.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?VA.Few:0!==o?VA.Many:VA.Other;case"cy":return 0===n?VA.Zero:1===n?VA.One:2===n?VA.Two:3===n?VA.Few:6===n?VA.Many:VA.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?VA.One:VA.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?VA.One:0===o&&i%100==2||s%100==2?VA.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?VA.Few:VA.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?VA.One:VA.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?VA.One:VA.Other;case"ga":return 1===n?VA.One:2===n?VA.Two:n===Math.floor(n)&&n>=3&&n<=6?VA.Few:n===Math.floor(n)&&n>=7&&n<=10?VA.Many:VA.Other;case"gd":return 1===n||11===n?VA.One:2===n||12===n?VA.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?VA.Few:VA.Other;case"gv":return 0===o&&i%10==1?VA.One:0===o&&i%10==2?VA.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?VA.Many:VA.Other:VA.Few;case"he":return 1===i&&0===o?VA.One:2===i&&0===o?VA.Two:0!==o||n>=0&&n<=10||n%10!=0?VA.Other:VA.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?VA.One:VA.Other;case"ksh":return 0===n?VA.Zero:1===n?VA.One:VA.Other;case"kw":case"naq":case"se":case"smn":return 1===n?VA.One:2===n?VA.Two:VA.Other;case"lag":return 0===n?VA.Zero:0!==i&&1!==i||0===n?VA.Other:VA.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?VA.Few:0!==s?VA.Many:VA.Other:VA.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?VA.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?VA.One:VA.Other;case"mk":return 0===o&&i%10==1||s%10==1?VA.One:VA.Other;case"mt":return 1===n?VA.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?VA.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?VA.Many:VA.Other;case"pl":return 1===i&&0===o?VA.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?VA.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?VA.Many:VA.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?VA.One:VA.Other;case"ro":return 1===i&&0===o?VA.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?VA.Few:VA.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?VA.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?VA.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?VA.Many:VA.Other;case"shi":return 0===i||1===n?VA.One:n===Math.floor(n)&&n>=2&&n<=10?VA.Few:VA.Other;case"si":return 0===n||1===n||0===i&&1===s?VA.One:VA.Other;case"sl":return 0===o&&i%100==1?VA.One:0===o&&i%100==2?VA.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?VA.Few:VA.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?VA.One:VA.Other;default:return VA.Other}},GD=(function(){function e(){}e=s([Ss({declarations:[ED],exports:[ED],providers:[{provide:FT,useValue:WD}]})],e)}(),new ke("DocumentToken")),KD="browser",QD="server";new As("7.0.4");var $D=function(){function e(){}return e.ngInjectableDef=De({providedIn:"root",factory:function(){return new ZD(Nt(GD),window)}}),e}(),ZD=function(){function e(e,t){this.document=e,this.window=t,this.offset=function(){return[0,0]}}return e.prototype.setOffset=function(e){Array.isArray(e)?this.offset=function(){return e}:this.offset=e},e.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},e.prototype.scrollToPosition=function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])},e.prototype.scrollToAnchor=function(e){if(this.supportScrollRestoration()){var t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='"+e+"']");if(n)return void this.scrollToElement(n)}},e.prototype.setHistoryScrollRestoration=function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}},e.prototype.scrollToElement=function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},e.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}},e}(),YD=(function(){function e(){}e.prototype.setOffset=function(e){},e.prototype.getScrollPosition=function(){return[0,0]},e.prototype.scrollToPosition=function(e){},e.prototype.scrollToAnchor=function(e){},e.prototype.setHistoryScrollRestoration=function(e){}}(),null);function XD(){return YD}var JD,eP=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=t.getStyle(n,r[i]+"AnimationName")){t._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=o[e])})}catch(s){t._animationPrefix=null,t._transitionEnd=null}return t}return i(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),tP={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},nP={"\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"},rP={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"};Qe.Node&&(JD=Qe.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var iP,oP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,YD||(YD=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,p(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return tP},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return JD.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n.item(r);t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&rP.hasOwnProperty(t)&&(t=rP[t]))}return nP[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=function(){if(!sP&&!(sP=document.querySelector("base")))return null;return sP.getAttribute("href")}();return null==t?null:function(e){iP||(iP=document.createElement("a"));return iP.setAttribute("href",e),"/"===iP.pathname.charAt(0)?iP.pathname:"/"+iP.pathname}(t)},t.prototype.resetBaseElement=function(){sP=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return VT(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(eP),sP=null;var aP=GD;function uP(){return!!window.history.pushState}var cP=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return i(t,e),t.prototype._init=function(){this.location=XD().getLocation(),this._history=XD().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return XD().getBaseHref(this._doc)},t.prototype.onPopState=function(e){XD().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){XD().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){uP()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){uP()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t=s([Ds(),a(0,rt(aP)),u("design:paramtypes",[Object])],t)}(TA),lP=new ke("TRANSITION_ID");var pP=[{provide:ia,useFactory:function(e,t,n){return function(){n.get(oa).donePromise.then(function(){var n=XD();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[lP,aP,ft],multi:!0}],hP=function(){function e(){}return e.init=function(){var t;t=new e,Fa=t},e.prototype.addToWindow=function(e){Qe.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Qe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Qe.getAllAngularRootElements=function(){return e.getAllRootElements()};Qe.frameworkStabilizers||(Qe.frameworkStabilizers=[]),Qe.frameworkStabilizers.push(function(e){var t=Qe.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?XD().isShadowRoot(t)?this.findTestabilityInTree(e,XD().getHost(t),!0):this.findTestabilityInTree(e,XD().parentElement(t),!0):null},e}();function fP(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Qe.ng=Qe.ng||{})[e]=t)}var dP={ApplicationRef:qa,NgZone:Sa},vP="probe",mP="coreTokens";function yP(e){return ou(e)}var gP=[{provide:ia,useFactory:function(e){return fP(vP,yP),fP(mP,o({},dP,(e||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return yP}},deps:[[La,new it]],multi:!0}],_P=new ke("EventManagerPlugins"),wP=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)},e=s([Ds(),a(0,rt(_P)),u("design:paramtypes",[Array,Sa])],e)}(),bP=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=XD().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),EP=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e=s([Ds()],e)}(),CP=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return i(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return XD().remove(e)})},t=s([Ds(),a(0,rt(aP)),u("design:paramtypes",[Object])],t)}(EP),xP={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/"},SP=/%COMP%/g,AP="_nghost-%COMP%",TP="_ngcontent-%COMP%";function DP(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?DP(e,i,n):(i=i.replace(SP,e),n.push(i))}return n}function PP(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var NP=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new MP(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Bt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new FP(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Bt.Native:case Bt.ShadowDom:return new RP(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=DP(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e=s([Ds(),u("design:paramtypes",[wP,CP])],e)}(),MP=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(xP[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var i=xP[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=xP[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&Bi.DashCase?e.style.setProperty(t,n,r&Bi.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&Bi.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){OP(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return OP(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,PP(n)):this.eventManager.addEventListener(e,t,PP(n))},e}(),kP="@".charCodeAt(0);function OP(e,t){if(e.charCodeAt(0)===kP)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var IP,FP=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.component=r;var o,s=DP(r.id,r.styles,[]);return n.addStyles(s),i.contentAttr=(o=r.id,TP.replace(SP,o)),i.hostAttr=function(e){return AP.replace(SP,e)}(r.id),i}return i(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(MP),RP=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,i.encapsulation===Bt.ShadowDom?o.shadowRoot=r.attachShadow({mode:"open"}):o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=DP(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return i(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(MP),jP="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},LP=jP("addEventListener"),VP=jP("removeEventListener"),BP={},UP="__zone_symbol__propagationStopped",HP="undefined"!=typeof Zone&&Zone[jP("BLACK_LISTED_EVENTS")];HP&&(IP={},HP.forEach(function(e){IP[e]=e}));var qP=function(e){return!!IP&&IP.hasOwnProperty(e)},zP=function(e){var t=BP[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==e[UP];o++){var s;(s=i[o]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},WP=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.ngZone=n,r&&function(e){return e===QD}(r)||i.patchEvent(),i}return i(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[UP]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,i=e[LP],o=n;if(!i||Sa.isInAngularZone()&&!qP(t))e.addEventListener(t,o,!1);else{var s=BP[t];s||(s=BP[t]=jP("ANGULAR"+t+"FALSE"));var a=e[s],u=a&&a.length>0;a||(a=e[s]=[]);var c=qP(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:c,handler:o});else{for(var l=!1,p=0;p<a.length;p++)if(a[p].handler===o){l=!0;break}l||a.push({zone:c,handler:o})}u||e[LP](t,zP,!1)}return function(){return r.removeEventListener(e,t,o)}},t.prototype.removeEventListener=function(e,t,n){var r=e[VP];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var i=BP[t],o=i&&e[i];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,a=0;a<o.length;a++)if(o[a].handler===n){s=!0,o.splice(a,1);break}s?0===o.length&&r.apply(e,[t,zP,!1]):e.removeEventListener.apply(e,[t,n,!1])},t=s([Ds(),a(0,rt(aP)),a(2,it()),a(2,rt(la)),u("design:paramtypes",[Object,Sa,Object])],t)}(bP),GP={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},KP=new ke("HammerGestureConfig"),QP=new ke("HammerLoader"),$P=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e=s([Ds()],e)}(),ZP=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._config=n,o.console=r,o.loader=i,o}return i(t,e),t.prototype.supports=function(e){return!(!GP.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),!1))},t.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var o=!1,s=function(){o=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});o||(s=r.addEventListener(e,t,n))}).catch(function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}}),function(){s()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(e)})};return o.on(t,s),function(){o.off(t,s),"function"==typeof o.destroy&&o.destroy()}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t=s([Ds(),a(0,rt(aP)),a(1,rt(KP)),a(3,it()),a(3,rt(QP)),u("design:paramtypes",[Object,$P,fa,Object])],t)}(bP),YP=["alt","control","meta","shift"],XP={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},JP=function(e){function t(t){return e.call(this,t)||this}var n;return i(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return XD().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(YP.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},t.getEventFullKey=function(e){var t="",n=XD().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),YP.forEach(function(r){r!=n&&((0,XP[r])(e)&&(t+=r+"."))}),t+=n},t.eventCallback=function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t=n=s([Ds(),a(0,rt(aP)),u("design:paramtypes",[Object])],t)}(bP),eN=function(){return function(){}}(),tN=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return i(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Bo.NONE:return t;case Bo.HTML:return t instanceof rN?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),ns(this._doc,String(t)));case Bo.STYLE:return t instanceof iN?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),as(t));case Bo.SCRIPT:if(t instanceof oN)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Bo.URL:return t instanceof aN||t instanceof sN?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Ro(String(t)));case Bo.RESOURCE_URL:if(t instanceof aN)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof nN)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new rN(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new iN(e)},t.prototype.bypassSecurityTrustScript=function(e){return new oN(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new sN(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new aN(e)},t=s([Ds(),a(0,rt(aP)),u("design:paramtypes",[Object])],t)}(eN),nN=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),rN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(nN),iN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"Style"},t}(nN),oN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"Script"},t}(nN),sN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"URL"},t}(nN),aN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(nN),uN=[{provide:la,useValue:KD},{provide:ca,useValue:function(){oP.makeCurrent(),hP.init()},multi:!0},{provide:TA,useClass:cP,deps:[aP]},{provide:aP,useFactory:function(){return document},deps:[]}],cN=[{provide:is,useExisting:eN},{provide:eN,useClass:tN,deps:[aP]}];Va(xu,"browser",uN);var lN=[cN,{provide:ro,useValue:!0},{provide:Fs,useFactory:function(){return new Fs},deps:[]},{provide:_P,useClass:WP,multi:!0,deps:[aP,Sa,la]},{provide:_P,useClass:JP,multi:!0,deps:[aP]},{provide:_P,useClass:ZP,multi:!0,deps:[aP,KP,fa,[new it,QP]]},{provide:KP,useClass:$P,deps:[]},{provide:NP,useClass:NP,deps:[wP,CP]},{provide:Qi,useExisting:NP},{provide:EP,useExisting:CP},{provide:CP,useClass:CP,deps:[aP]},{provide:ka,useClass:ka,deps:[Sa]},{provide:wP,useClass:wP,deps:[_P,Sa]},gP],pN=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:sa,useValue:e.appId},{provide:lP,useExisting:sa},pP]}},e=t=s([Ss({providers:lN,exports:[zD,Pu]}),a(0,it()),a(0,st()),a(0,rt(t)),u("design:paramtypes",[Object])],e)}();function hN(){return new fN(Nt(aP))}var fN=function(){function e(e){this._doc=e,this._dom=XD()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce(function(e,r){return r&&e.push(n._getOrCreateElement(r,t)),e},[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(e,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach(function(r){return n._dom.setAttribute(t,r,e[r])}),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every(function(r){return n._dom.getAttribute(t,r)===e[r]})},e.ngInjectableDef=De({factory:hN,token:e,providedIn:"root"}),e=s([Ds({providedIn:"root",useFactory:hN,deps:[]}),a(0,rt(aP)),u("design:paramtypes",[Object])],e)}();function dN(){return new vN(Nt(aP))}var vN=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return XD().getTitle(this._doc)},e.prototype.setTitle=function(e){XD().setTitle(this._doc,e)},e.ngInjectableDef=De({factory:dN,token:e,providedIn:"root"}),e=s([Ds({providedIn:"root",useFactory:dN,deps:[]}),a(0,rt(aP)),u("design:paramtypes",[Object])],e)}(),mN="undefined"!=typeof window&&window||{},yN=function(){return function(e,t){this.msPerTick=e,this.numTicks=t}}();!function(){function e(e){this.appRef=e.injector.get(qa)}e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=mN.console.profile;t&&n&&mN.console.profile("Change Detection");for(var r=XD().performanceNow(),i=0;i<5||XD().performanceNow()-r<500;)this.appRef.tick(),i++;var o=XD().performanceNow();t&&n&&mN.console.profileEnd("Change Detection");var s=(o-r)/i;return mN.console.log("ran "+i+" change detection cycles"),mN.console.log(s.toFixed(2)+" ms per check"),new yN(s,i)}}();var gN=function(){function e(){this.store={},this.onSerializeCallbacks={}}var t;return t=e,e.init=function(e){var n=new t;return n.store=e,n},e.prototype.get=function(e,t){return void 0!==this.store[e]?this.store[e]:t},e.prototype.set=function(e,t){this.store[e]=t},e.prototype.remove=function(e){delete this.store[e]},e.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},e.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},e.prototype.toJson=function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},e=t=s([Ds()],e)}();function _N(e,t){var n,r,i=e.getElementById(t+"-state"),o={};if(i&&i.textContent)try{o=JSON.parse((n=i.textContent,r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},n.replace(/&[^;]+;/g,function(e){return r[e]})))}catch(s){console.warn("Exception while restoring TransferState for app "+t,s)}return gN.init(o)}(function(){function e(){}e=s([Ss({providers:[{provide:gN,useFactory:_N,deps:[aP,sa]}]})],e)})(),function(){function e(){}e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&XD().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}}}(),new As("7.0.4");var wN,bN=((wN=new Map).set(pv.ANALYZE_FOR_ENTRY_COMPONENTS,He),wN.set(pv.ElementRef,Gi),wN.set(pv.NgModuleRef,Oi),wN.set(pv.ViewContainerRef,Ja),wN.set(pv.ChangeDetectorRef,eu),wN.set(pv.Renderer2,$i),wN.set(pv.QueryList,Qa),wN.set(pv.TemplateRef,go),wN.set(pv.CodegenComponentFactoryResolver,Mi),wN.set(pv.ComponentFactoryResolver,Ni),wN.set(pv.ComponentFactory,xi),wN.set(pv.ComponentRef,Ci),wN.set(pv.NgModuleFactory,Ii),wN.set(pv.createModuleFactory,nh),wN.set(pv.moduleDef,Rc),wN.set(pv.moduleProviderDef,Fc),wN.set(pv.RegisterModuleFactoryFn,Ka),wN.set(pv.Injector,ft),wN.set(pv.ViewEncapsulation,Bt),wN.set(pv.ChangeDetectionStrategy,Be),wN.set(pv.SecurityContext,Bo),wN.set(pv.LOCALE_ID,Su),wN.set(pv.TRANSLATIONS_FORMAT,Tu),wN.set(pv.inlineInterpolate,bc),wN.set(pv.interpolate,wc),wN.set(pv.EMPTY_ARRAY,Cc),wN.set(pv.EMPTY_MAP,xc),wN.set(pv.Renderer,Ki),wN.set(pv.viewDef,Ql),wN.set(pv.elementDef,Ac),wN.set(pv.anchorDef,Sc),wN.set(pv.textDef,Wl),wN.set(pv.directiveDef,ml),wN.set(pv.providerDef,gl),wN.set(pv.queryDef,Il),wN.set(pv.pureArrayDef,Hl),wN.set(pv.pureObjectDef,ql),wN.set(pv.purePipeDef,Ul),wN.set(pv.pipeDef,yl),wN.set(pv.nodeValue,rl),wN.set(pv.ngContentDef,Vl),wN.set(pv.unwrapValue,zu),wN.set(pv.createRendererType2,Ku),wN.set(pv.createComponentFactory,Gc),wN),EN=function(){function e(){this.reflectionCapabilities=new jt}return e.prototype.componentModuleUrl=function(e,t){var n,r=t.moduleId;if("string"==typeof r)return(n=wA(r))&&n[gA.Scheme]||""?r:"package:"+r;if(null!=r)throw Wd('moduleId should be a string in "'+et(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+et(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.tryAnnotations=function(e){return this.annotations(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.shallowAnnotations=function(e){throw new Error("Not supported in JIT mode")},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.guards=function(e){return this.reflectionCapabilities.guards(e)},e.prototype.resolveExternalReference=function(e){return bN.get(e)||e.runtime},e}();var CN=new ke("ErrorCollector"),xN={provide:ha,useValue:"/"},SN={get:function(e){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+e+'"')}},AN=new ke("HtmlParser"),TN=function(){function e(e,t,n,r,i,o,s,a,u,c){this._metadataResolver=t,this._delegate=new hA(t,n,r,i,o,s,a,u,c,this.getExtraNgModuleProviders.bind(this)),this.injector=e}return e.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new Iv(ya,{useValue:this}))]},e.prototype.compileModuleSync=function(e){return this._delegate.compileModuleSync(e)},e.prototype.compileModuleAsync=function(e){return this._delegate.compileModuleAsync(e)},e.prototype.compileModuleAndAllComponentsSync=function(e){var t=this._delegate.compileModuleAndAllComponentsSync(e);return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}},e.prototype.compileModuleAndAllComponentsAsync=function(e){return this._delegate.compileModuleAndAllComponentsAsync(e).then(function(e){return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}})},e.prototype.loadAotSummaries=function(e){this._delegate.loadAotSummaries(e)},e.prototype.hasAotSummary=function(e){return this._delegate.hasAotSummary(e)},e.prototype.getComponentFactory=function(e){return this._delegate.getComponentFactory(e)},e.prototype.clearCache=function(){this._delegate.clearCache()},e.prototype.clearCacheFor=function(e){this._delegate.clearCacheFor(e)},e.prototype.getModuleId=function(e){var t=this._metadataResolver.getNgModuleMetadata(e);return t&&t.id||void 0},e}(),DN=[{provide:mA,useValue:new EN},{provide:EA,useValue:SN},{provide:iA,deps:[]},{provide:rA,useExisting:iA},{provide:fa,deps:[]},{provide:Zg,deps:[]},{provide:d_,deps:[Zg]},{provide:AN,useClass:z_,deps:[]},{provide:NC,useFactory:function(e,t,n,r,i){var o=(t=t||"")?r.missingTranslation:gu.Ignore;return new NC(e,t,n,o,i)},deps:[AN,[new it,new rt(Au)],[new it,new rt(Tu)],[tE],[fa]]},{provide:z_,useExisting:NC},{provide:Px,deps:[tE,mA,d_,nw,NC,fa]},{provide:rE,deps:[EA,yA,z_,tE]},{provide:KC,deps:[tE,z_,vx,sE,yx,rA,nw,rE,fa,[it,vv],mA,[it,CN]]},xN,{provide:Kg,deps:[yA]},{provide:Wx,deps:[mA]},{provide:dx,deps:[mA]},{provide:tE,useValue:new tE},{provide:ya,useClass:TN,deps:[ft,KC,Px,Kg,Wx,dx,rA,mA,tE,fa]},{provide:cw,deps:[]},{provide:nw,useExisting:cw},{provide:yA,deps:[ha]},{provide:sE,deps:[mA]},{provide:yx,deps:[mA]},{provide:vx,deps:[mA]}],PN=function(){function e(e){var t={useJit:!0,defaultEncapsulation:Bt.Emulated,missingTranslation:gu.Warning};this._defaultOptions=p([t],e)}return e.prototype.createCompiler=function(e){void 0===e&&(e=[]);var t,n={useJit:NN((t=this._defaultOptions.concat(e)).map(function(e){return e.useJit})),defaultEncapsulation:NN(t.map(function(e){return e.defaultEncapsulation})),providers:MN(t.map(function(e){return e.providers})),missingTranslation:NN(t.map(function(e){return e.missingTranslation})),preserveWhitespaces:NN(t.map(function(e){return e.preserveWhitespaces}))};return ft.create([DN,{provide:tE,useFactory:function(){return new tE({useJit:n.useJit,jitDevMode:ko(),defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,preserveWhitespaces:n.preserveWhitespaces})},deps:[]},n.providers]).get(ya)},e}();function NN(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function MN(e){var t=[];return e.forEach(function(e){return e&&t.push.apply(t,p(e))}),t}var kN=Va(xu,"coreDynamic",[{provide:ga,useValue:{},multi:!0},{provide:_a,useClass:PN,deps:[ga]}]),ON=[uN,{provide:ga,useValue:{providers:[{provide:EA,useClass:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.get=function(e){var t,n,r=new Promise(function(e,r){t=e,n=r}),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?t(r):n("Failed to load "+e)},i.onerror=function(){n("Failed to load "+e)},i.send(),r},t=s([Ds()],t)}(EA),deps:[]}]},multi:!0},{provide:la,useValue:KD}],IN=(function(e){function t(){var t=e.call(this)||this;if(t._cache=Qe.$templateCache,null==t._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return t}i(t,e),t.prototype.get=function(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)}}(EA),new As("7.0.4"),Va(kN,"browserDynamic",ON)),FN=new I(function(e){return e.complete()});function RN(e){return e?function(e){return new I(function(t){return e.schedule(function(){return t.complete()})})}(e):FN}function jN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,i=e[e.length-1];switch(H(i)?e.pop():i=void 0,e.length){case 0:return RN(i);case 1:return i?ie(e,i):(n=e[0],(r=new I(function(e){e.next(n),e.complete()}))._isScalar=!0,r.value=n,r);default:return ie(e,i)}}var LN=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new j;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(B);function VN(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}VN.prototype=Object.create(Error.prototype);var BN=VN;function UN(){return le(1)}function HN(e,t){return function(n){return n.lift(new qN(e,t))}}var qN=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new zN(e,this.predicate,this.thisArg))},e}(),zN=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return i(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},t}(D);function WN(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}WN.prototype=Object.create(Error.prototype);var GN=WN;function KN(e){return function(t){return 0===e?RN():t.lift(new QN(e))}}var QN=function(){function e(e){if(this.total=e,this.total<0)throw new GN}return e.prototype.call=function(e,t){return t.subscribe(new $N(e,this.total))},e}(),$N=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(D);function ZN(e,t,n){return function(r){return r.lift(new YN(e,t,n))}}var YN=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new XN(e,this.nextOrObserver,this.error,this.complete))},e}(),XN=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._tapNext=M,o._tapError=M,o._tapComplete=M,o._tapError=r||M,o._tapComplete=i||M,d(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||M,o._tapError=n.error||M,o._tapComplete=n.complete||M),o}return i(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(D),JN=function(e){return void 0===e&&(e=eM),ZN({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function eM(){return new BN}function tM(e){return void 0===e&&(e=null),function(t){return t.lift(new nM(e))}}var nM=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new rM(e,this.defaultValue))},e}(),rM=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return i(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(D);function iM(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?HN(function(t,n){return e(t,n,r)}):ce,KN(1),n?tM(t):JN(function(){return new BN}))}}function oM(e,t){return function(n){return n.lift(new sM(e,t,n))}}var sM=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new aM(e,this.predicate,this.thisArg,this.source))},e}(),aM=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return i(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(D);function uM(e){return function(t){var n=new cM(e),r=t.lift(n);return n.caught=r}}var cM=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new lM(e,this.selector,this.caught))},e}(),lM=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(i){return void e.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new q(this,void 0,void 0);this.add(r),J(this,n,void 0,void 0,r)}},t}(ee);var pM=function(){function e(e){if(this.total=e,this.total<0)throw new GN}return e.prototype.call=function(e,t){return t.subscribe(new hM(e,this.total))},e}(),hM=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return i(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(D);function fM(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?HN(function(t,n){return e(t,n,r)}):ce,(i=1,function(e){return 0===i?RN():e.lift(new pM(i))}),n?tM(t):JN(function(){return new BN}));var i}}function dM(e,t){return"function"==typeof t?function(n){return n.pipe(dM(function(n,r){return oe(e(n,r)).pipe(te(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new vM(e))}}var vM=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new mM(e,this.project))},e}(),mM=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return i(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new q(this,void 0,void 0);this.destination.add(i),this.innerSubscription=J(this,e,t,n,i)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(ee);function yM(e,t){return se(e,t,1)}function gM(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new _M(e,t,n))}}var _M=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new wM(e,this.accumulator,this.seed,this.hasSeed))},e}(),wM=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(D);var bM=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new EM(e,this.callback))},e}(),EM=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new b(n)),r}return i(t,e),t}(D),CM=function(){return function(e,t){this.id=e,this.url=t}}(),xM=function(e){function t(t,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=e.call(this,t,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return i(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(CM),SM=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return i(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(CM),AM=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return i(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(CM),TM=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return i(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(CM),DM=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(CM),PM=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(CM),NM=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return i(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(CM),MM=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(CM),kM=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(CM),OM=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),IM=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),FM=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),RM=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),jM=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),LM=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),VM=function(){function e(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}return e.prototype.toString=function(){var e=this.position?this.position[0]+", "+this.position[1]:null;return"Scroll(anchor: '"+this.anchor+"', position: '"+e+"')"},e}(),BM=function(){function e(){}return e=s([gs({template:"<router-outlet></router-outlet>"})],e)}(),UM="primary",HM=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function qM(e){return new HM(e)}var zM="ngNavigationCancelingError";function WM(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}var GM=function(){return function(e,t){this.routes=e,this.module=t}}();function KM(e,t){void 0===t&&(t="");for(var n=0;n<e.length;n++){var r=e[n];QM(r,$M(t,r))}}function QM(e,t){if(!e)throw new Error("\n      Invalid configuration of route '"+t+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(e))throw new Error("Invalid configuration of route '"+t+"': Array cannot be specified");if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==UM)throw new Error("Invalid configuration of route '"+t+"': a componentless route without children or loadChildren cannot have a named outlet set");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+t+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+t+"': redirectTo and component cannot be used together");if(e.path&&e.matcher)throw new Error("Invalid configuration of route '"+t+"': path and matcher cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+t+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '"+t+"': routes must have either a path or a matcher specified");if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '"+t+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch){throw new Error("Invalid configuration of route '{path: \""+t+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+t+"': pathMatch can only be set to 'prefix' or 'full'");e.children&&KM(e.children,t)}function $M(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:e+"/"+t.path:"":e}function ZM(e){var t=e.children&&e.children.map(ZM),n=t?o({},e,{children:t}):o({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==UM&&(n.component=BM),n}function YM(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(e[n=r[o]]!==t[n])return!1;return!0}function XM(e){return Array.prototype.concat.apply([],e)}function JM(e){return e.length>0?e[e.length-1]:null}function ek(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function tk(e){return e.pipe(le(),oM(function(e){return!0===e}))}function nk(e){return ra(e)?e:na(e)?oe(Promise.resolve(e)):jN(e)}function rk(e,t,n){return n?function(e,t){return YM(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!uk(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&ik(e.root,t.root)}function ik(e,t){return function e(t,n,r){if(t.segments.length>r.length){var i=t.segments.slice(0,r.length);return!!uk(i,r)&&!n.hasChildren()}if(t.segments.length===r.length){if(!uk(t.segments,r))return!1;for(var o in n.children){if(!t.children[o])return!1;if(!ik(t.children[o],n.children[o]))return!1}return!0}var i=r.slice(0,t.segments.length),s=r.slice(t.segments.length);return!!uk(t.segments,i)&&(!!t.children[UM]&&e(t.children[UM],n,s))}(e,t,t.segments)}var ok=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=qM(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return hk.serialize(this)},e}(),sk=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,ek(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return fk(this)},e}(),ak=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=qM(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return _k(this)},e}();function uk(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function ck(e,t){var n=[];return ek(e.children,function(e,r){r===UM&&(n=n.concat(t(e,r)))}),ek(e.children,function(e,r){r!==UM&&(n=n.concat(t(e,r)))}),n}var lk=function(){return function(){}}(),pk=function(){function e(){}return e.prototype.parse=function(e){var t=new xk(e);return new ok(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n,r;return""+("/"+function e(t,n){if(!t.hasChildren())return fk(t);if(n){var r=t.children[UM]?e(t.children[UM],!1):"",i=[];return ek(t.children,function(t,n){n!==UM&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=ck(t,function(n,r){return r===UM?[e(t.children[UM],!1)]:[r+":"+e(n,!1)]});return fk(t)+"/("+o.join("//")+")"}(e.root,!0))+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return vk(e)+"="+vk(t)}).join("&"):vk(e)+"="+vk(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+(r=e.fragment,encodeURI(r)):"")},e}(),hk=new pk;function fk(e){return e.segments.map(function(e){return _k(e)}).join("/")}function dk(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vk(e){return dk(e).replace(/%3B/gi,";")}function mk(e){return dk(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yk(e){return decodeURIComponent(e)}function gk(e){return yk(e.replace(/\+/g,"%20"))}function _k(e){return""+mk(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+mk(e)+"="+mk(t[e])}).join(""));var t}var wk=/^[^\/()?;=#]+/;function bk(e){var t=e.match(wk);return t?t[0]:""}var Ek=/^[^=?&#]+/;var Ck=/^[^?&#]+/;var xk=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new sk([],{}):new sk([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[UM]=new sk(e,t)),n},e.prototype.parseSegment=function(){var e=bk(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new ak(yk(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=bk(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=bk(this.remaining);r&&(n=r,this.capture(n))}e[yk(t)]=yk(n)}},e.prototype.parseQueryParam=function(e){var t,n,r=(t=this.remaining,(n=t.match(Ek))?n[0]:"");if(r){this.capture(r);var i="";if(this.consumeOptional("=")){var o=function(e){var t=e.match(Ck);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}var s=gk(r),a=gk(i);if(e.hasOwnProperty(s)){var u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(a)}else e[s]=a}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=bk(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=UM);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[UM]:new sk([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Sk=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Ak(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Ak(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Tk(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Tk(e,this._root).map(function(e){return e.value})},e}();function Ak(e,t){var n,r;if(e===t.value)return t;try{for(var i=c(t.children),o=i.next();!o.done;o=i.next()){var s=Ak(e,o.value);if(s)return s}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function Tk(e,t){var n,r;if(e===t.value)return[t];try{for(var i=c(t.children),o=i.next();!o.done;o=i.next()){var s=Tk(e,o.value);if(s.length)return s.unshift(t),s}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Dk=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Pk(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Nk=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,Rk(r,t),r}return i(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Sk);function Mk(e,t){var n=function(e,t){var n=new Ik([],{},{},"",{},UM,t,null,e.root,-1,{});return new Fk("",new Dk(n,[]))}(e,t),r=new LN([new ak("",{})]),i=new LN({}),o=new LN({}),s=new LN({}),a=new LN(""),u=new kk(r,i,s,a,o,UM,t,n.root);return u.snapshot=n.root,new Nk(new Dk(u,[]),n)}var kk=function(){function e(e,t,n,r,i,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(te(function(e){return qM(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(function(e){return qM(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function Ok(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(e){return e.reduce(function(e,t){var n=o({},e.params,t.params),r=o({},e.data,t.data),i=o({},e.resolve,t._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Ik=function(){function e(e,t,n,r,i,o,s,a,u,c,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=qM(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=qM(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),Fk=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,Rk(r,n),r}return i(t,e),t.prototype.toString=function(){return jk(this._root)},t}(Sk);function Rk(e,t){t.value._routerState=e,t.children.forEach(function(t){return Rk(e,t)})}function jk(e){var t=e.children.length>0?" { "+e.children.map(jk).join(", ")+" } ":"";return""+e.value+t}function Lk(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,YM(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),YM(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!YM(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),YM(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Vk(e,t){var n,r,i=YM(e.params,t.params)&&(n=e.url,r=t.url,uk(n,r)&&n.every(function(e,t){return YM(e.parameters,r[t].parameters)})),o=!e.parent!=!t.parent;return i&&!o&&(!e.parent||Vk(e.parent,t.parent))}function Bk(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){(a=n.value)._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var r,i;try{for(var o=c(n.children),s=o.next();!s.done;s=o.next()){var a=s.value;if(e.shouldReuseRoute(a.value.snapshot,t.value))return Bk(e,t,a)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return Bk(e,t)})}(e,t,n);return new Dk(a,r)}var i=e.retrieve(t.value);if(i){var o=i.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(t,o),o}var s,a=(s=t.value,new kk(new LN(s.url),new LN(s.params),new LN(s.queryParams),new LN(s.fragment),new LN(s.data),s.outlet,s.component,s));r=t.children.map(function(t){return Bk(e,t)});return new Dk(a,r)}function Uk(e,t,n,r,i){if(0===n.length)return qk(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new zk(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return ek(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),p(e,[{outlets:o}])}if(r.segmentPath)return p(e,[r.segmentPath])}return"string"!=typeof r?p(e,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):p(e,[r])},[]);return new zk(n,t,r)}(n);if(o.toRoot())return qk(t.root,new sk([],{}),t,r,i);var s=function(e,t,n){if(e.isAbsolute)return new Wk(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Wk(n.snapshot._urlSegment,!0,0);var r=Hk(e.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return function(e,t,n){var r=e,i=t,o=n;for(;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Wk(r,!1,i-o)}(n.snapshot._urlSegment,i,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?Qk(s.segmentGroup,s.index,o.commands):Kk(s.segmentGroup,s.index,o.commands);return qk(s.segmentGroup,a,t,r,i)}function Hk(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qk(e,t,n,r,i){var o={};return r&&ek(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),n.root===e?new ok(t,o,i):new ok(function e(t,n,r){var i={};ek(t.children,function(t,o){i[o]=t===n?r:e(t,n,r)});return new sk(t.segments,i)}(n.root,e,t),o,i)}var zk=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Hk(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==JM(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}();var Wk=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function Gk(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[UM]:""+e}function Kk(e,t,n){if(e||(e=new sk([],{})),0===e.segments.length&&e.hasChildren())return Qk(e,t,n);var r=function(e,t,n){var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;var s=e.segments[i],a=Gk(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Xk(a,u,s))return o;r+=2}else{if(!Xk(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new sk(e.segments.slice(0,r.pathIndex),{});return o.children[UM]=new sk(e.segments.slice(r.pathIndex),e.children),Qk(o,0,i)}return r.match&&0===i.length?new sk(e.segments,{}):r.match&&!e.hasChildren()?$k(e,t,n):r.match?Qk(e,0,i):$k(e,t,n)}function Qk(e,t,n){if(0===n.length)return new sk(e.segments,{});var r=function(e){var t,n;return"object"!=typeof e[0]?((t={})[UM]=e,t):void 0===e[0].outlets?((n={})[UM]=e,n):e[0].outlets}(n),i={};return ek(r,function(n,r){null!==n&&(i[r]=Kk(e.children[r],t,n))}),ek(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new sk(e.segments,i)}function $k(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Zk(n[i].outlets);return new sk(r,o)}if(0===i&&Hk(n[0])){var s=e.segments[t];r.push(new ak(s.path,n[0])),i++}else{var a=Gk(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&Hk(u)?(r.push(new ak(a,Yk(u))),i+=2):(r.push(new ak(a,{})),i++)}}return new sk(r,{})}function Zk(e){var t={};return ek(e,function(e,n){null!==e&&(t[n]=$k(new sk([],{}),0,e))}),t}function Yk(e){var t={};return ek(e,function(e,n){return t[n]=""+e}),t}function Xk(e,t,n){return e==n.path&&YM(t,n.parameters)}var Jk=function(){function e(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}return e.prototype.activate=function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Lk(this.futureState.root),this.activateChildRoutes(t,n,e)},e.prototype.deactivateChildRoutes=function(e,t,n){var r=this,i=Pk(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),ek(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})},e.prototype.deactivateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Pk(e),o=e.value.component?r.children:t;ek(i,function(e,t){return n.deactivateRouteAndItsChildren(e,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,n){var r=this,i=Pk(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new LM(e.value.snapshot))}),e.children.length&&this.forwardEvent(new RM(e.value.snapshot))},e.prototype.activateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(Lk(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),eO(s.route)}else{var a=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),u=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)},e}();function eO(e){Lk(e.value),e.children.forEach(eO)}var tO=function(){return function(e){this.segmentGroup=e||null}}(),nO=function(){return function(e){this.urlTree=e}}();function rO(e){return new I(function(t){return t.error(new tO(e))})}function iO(e){return new I(function(t){return t.error(new nO(e))})}function oO(e){return new I(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}function sO(e){return new I(function(t){return t.error((n="Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false",(r=Error("NavigationCancelingError: "+n))[zM]=!0,r));var n,r})}var aO=function(){function e(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Oi)}return e.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,UM).pipe(te(function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)})).pipe(uM(function(t){if(t instanceof nO)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof tO)throw e.noMatchError(t);throw t}))},e.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,UM).pipe(te(function(n){return t.createUrlTree(n,e.queryParams,e.fragment)})).pipe(uM(function(e){if(e instanceof tO)throw t.noMatchError(e);throw e}))},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new sk([],((r={})[UM]=e,r)):e;return new ok(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(te(function(e){return new sk([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(e,t){if(0===Object.keys(e).length)return jN({});var n=[],r=[],i={};return ek(e,function(e,o){var s=t(o,e).pipe(te(function(e){return i[o]=e}));o===UM?n.push(s):r.push(s)}),jN.apply(null,n.concat(r)).pipe(UN(),iM(),te(function(){return i}))}(n.children,function(n,i){return r.expandSegmentGroup(e,t,i,n)})},e.prototype.expandSegment=function(e,t,n,r,i,o){var s=this;return jN.apply(void 0,p(n)).pipe(te(function(a){return s.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe(uM(function(e){if(e instanceof tO)return jN(null);throw e}))}),UN(),fM(function(e){return!!e}),uM(function(e,n){if(e instanceof BN||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,r,i))return jN(new sk([],{}));throw new tO(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,s){return pO(r)!==o?rO(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):rO(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?iO(o):this.lineralizeSegments(n,o).pipe(se(function(n){var o=new sk(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=this,a=uO(t,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,p=a.positionalParamSegments;if(!u)return rO(t);var h=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?iO(h):this.lineralizeSegments(r,h).pipe(se(function(r){return s.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(te(function(e){return n._loadedConfig=e,new sk(r,{})})):jN(new sk(r,{}));var s=uO(t,n,r),a=s.matched,u=s.consumedSegments,l=s.lastChild;if(!a)return rO(t);var p=r.slice(l);return this.getChildConfig(e,n,r).pipe(se(function(e){var n=e.module,r=e.routes,s=function(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some(function(n){return lO(e,t,n)&&pO(n)!==UM})}(e,n,r)){var i=new sk(t,function(e,t){var n,r,i={};i[UM]=t;try{for(var o=c(e),s=o.next();!s.done;s=o.next()){var a=s.value;""===a.path&&pO(a)!==UM&&(i[pO(a)]=new sk([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new sk(n,e.children)));return{segmentGroup:cO(i),slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return lO(e,t,n)})}(e,n,r)){var i=new sk(e.segments,function(e,t,n,r){var i,s,a={};try{for(var u=c(n),l=u.next();!l.done;l=u.next()){var p=l.value;lO(e,t,p)&&!r[pO(p)]&&(a[pO(p)]=new sk([],{}))}}catch(h){i={error:h}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return o({},r,a)}(e,n,r,e.children));return{segmentGroup:cO(i),slicedSegments:n}}return{segmentGroup:e,slicedSegments:n}}(t,u,p,r),a=s.segmentGroup,l=s.slicedSegments;return 0===l.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe(te(function(e){return new sk(u,e)})):0===r.length&&0===l.length?jN(new sk(u,{})):i.expandSegment(n,a,r,l,UM,!0).pipe(te(function(e){return new sk(u.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?jN(new GM(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?jN(t._loadedConfig):function(e,t,n){var r=t.canLoad;return r&&0!==r.length?tk(oe(r).pipe(te(function(r){var i=e.get(r);return nk(i.canLoad?i.canLoad(t,n):i(t,n))}))):jN(!0)}(e.injector,t,n).pipe(se(function(n){return n?r.configLoader.load(e.injector,t).pipe(te(function(e){return t._loadedConfig=e,e})):sO(t)})):jN(new GM([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return jN(n);if(r.numberOfChildren>1||!r.children[UM])return oO(e.redirectTo);r=r.children[UM]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new ok(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return ek(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),s={};return ek(t.children,function(t,o){s[o]=i.createSegmentGroup(e,t,n,r)}),new sk(o,s)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,r,i=0;try{for(var o=c(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},e}();function uO(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||WM)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cO(e){if(1===e.numberOfChildren&&e.children[UM]){var t=e.children[UM];return new sk(e.segments.concat(t.segments),t.children)}return e}function lO(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function pO(e){return e.outlet||UM}function hO(e,t,n,r){return function(i){return i.pipe(dM(function(i){return function(e,t,n,r,i){return new aO(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(te(function(e){return o({},i,{urlAfterRedirects:e})}))}))}}var fO=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),dO=function(){return function(e,t){this.component=e,this.route=t}}();function vO(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function mO(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=Pk(t);return e.children.forEach(function(e){!function(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var u=function(e,t,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Vk(e,t)||!YM(e.queryParams,t.queryParams);case"paramsChange":default:return!Vk(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);if(u?i.canActivateChecks.push(new fO(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?mO(e,t,a?a.children:null,r,i):mO(e,t,n,r,i),u){var c=a&&a.outlet&&a.outlet.component||null;i.canDeactivateChecks.push(new dO(c,s))}}else s&&yO(t,a,i),i.canActivateChecks.push(new fO(r)),o.component?mO(e,null,a?a.children:null,r,i):mO(e,null,n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),ek(o,function(e,t){return yO(e,n.getContext(t),i)}),i}function yO(e,t,n){var r=Pk(e),i=e.value;ek(r,function(e,r){i.component?yO(e,t?t.children.getContext(r):null,n):yO(e,t,n)}),i.component&&t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new dO(t.outlet.component,i)):n.canDeactivateChecks.push(new dO(null,i))}function gO(e,t){return function(n){return n.pipe(se(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===a.length?jN(o({},n,{guardsResult:!0})):function(e,t,n,r){return oe(e).pipe(se(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?oe(o).pipe(se(function(o){var s=vO(o,t,i);return(s.canDeactivate?nk(s.canDeactivate(e,t,n,r)):nk(s(e,t,n,r))).pipe(fM())})).pipe(oM(function(e){return!0===e})):jN(!0)}(e.component,e.route,n,t,r)}),oM(function(e){return!0===e}))}(u,r,i,e).pipe(se(function(n){return n?function(e,t,n,r){return oe(t).pipe(yM(function(t){return tk(oe([wO(t.route.parent,r),_O(t.route,r),EO(e,t.path,n),bO(e,t.route,n)]))}),oM(function(e){return!0===e}))}(r,a,e,t):jN(!1)}),te(function(e){return o({},n,{guardsResult:e})}))}))}}function _O(e,t){return null!==e&&t&&t(new jM(e)),jN(!0)}function wO(e,t){return null!==e&&t&&t(new FM(e)),jN(!0)}function bO(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?tk(oe(r).pipe(te(function(r){var i=vO(r,t,n);return(i.canActivate?nk(i.canActivate(t,e)):nk(i(t,e))).pipe(fM())}))):jN(!0)}function EO(e,t,n){var r=t[t.length-1];return tk(oe(t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e})).pipe(te(function(t){return tk(oe(t.guards).pipe(te(function(i){var o=vO(i,t.node,n);return(o.canActivateChild?nk(o.canActivateChild(r,e)):nk(o(r,e))).pipe(fM())})))})))}var CO=function(){return function(){}}();var xO=function(){function e(e,t,n,r,i,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return e.prototype.recognize=function(){try{var e=TO(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,UM),n=new Ik([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},UM,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Dk(n,t),i=new Fk(this.url,r);return this.inheritParamsAndData(i._root),jN(i)}catch(s){return new I(function(e){return e.error(s)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=Ok(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=ck(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),function(e){e.sort(function(e,t){return e.value.outlet===UM?-1:t.value.outlet===UM?1:e.value.outlet.localeCompare(t.value.outlet)})}(i),i},e.prototype.processSegment=function(e,t,n,r){var i,o;try{for(var s=c(e),a=s.next();!a.done;a=s.next()){var u=a.value;try{return this.processSegmentAgainstRoute(u,t,n,r)}catch(l){if(!(l instanceof CO))throw l}}}catch(p){i={error:p}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new CO},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new CO;if((e.outlet||UM)!==r)throw new CO;var i,s=[],a=[];if("**"===e.path){var u=n.length>0?JM(n).parameters:{};i=new Ik(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,NO(e),r,e.component,e,SO(t),AO(t)+n.length,MO(e))}else{var c=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new CO;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||WM)(n,e,t);if(!r)throw new CO;var i={};ek(r.posParams,function(e,t){i[t]=e.path});var s=r.consumed.length>0?o({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=c.consumedSegments,a=n.slice(c.lastChild),i=new Ik(s,c.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,NO(e),r,e.component,e,SO(t),AO(t)+s.length,MO(e))}var l=function(e){if(e.children)return e.children;if(e.loadChildren)return e._loadedConfig.routes;return[]}(e),p=TO(t,s,a,l,this.relativeLinkResolution),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Dk(i,d)]}if(0===l.length&&0===f.length)return[new Dk(i,[])];var v=this.processSegment(l,h,f,UM);return[new Dk(i,v)]},e}();function SO(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function AO(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function TO(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(function(n){return DO(e,t,n)&&PO(n)!==UM})}(e,n,r)){var s=new sk(t,function(e,t,n,r){var i,o,s={};s[UM]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var a=c(n),u=a.next();!u.done;u=a.next()){var l=u.value;if(""===l.path&&PO(l)!==UM){var p=new sk([],{});p._sourceSegment=e,p._segmentIndexShift=t.length,s[PO(l)]=p}}}catch(h){i={error:h}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}(e,t,r,new sk(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return DO(e,t,n)})}(e,n,r)){var a=new sk(e.segments,function(e,t,n,r,i,s){var a,u,l={};try{for(var p=c(r),h=p.next();!h.done;h=p.next()){var f=h.value;if(DO(e,n,f)&&!i[PO(f)]){var d=new sk([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===s?e.segments.length:t.length,l[PO(f)]=d}}}catch(v){a={error:v}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}return o({},i,l)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new sk(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function DO(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function PO(e){return e.outlet||UM}function NO(e){return e.data||{}}function MO(e){return e.resolve||{}}function kO(e,t,n,r,i){return function(s){return s.pipe(se(function(s){return function(e,t,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new xO(e,t,n,r,i,o).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(te(function(e){return o({},s,{targetSnapshot:e})}))}))}}function OO(e,t){return function(n){return n.pipe(se(function(n){var r=n.targetSnapshot,i=n.guards.canActivateChecks;return i.length?oe(i).pipe(yM(function(n){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return jN({});if(1===i.length){var o=i[0];return IO(e[o],t,n,r).pipe(te(function(e){var t;return(t={})[o]=e,t}))}var s={};return oe(i).pipe(se(function(i){return IO(e[i],t,n,r).pipe(te(function(e){return s[i]=e,e}))})).pipe(iM(),te(function(){return s}))}(e._resolve,e,t,r).pipe(te(function(t){return e._resolvedData=t,e.data=o({},e.data,Ok(e,n).resolve),null}))}(n.route,r,e,t)}),function(e,t){return arguments.length>=2?function(n){return k(gM(e,t),KN(1),tM(t))(n)}:function(t){return k(gM(function(t,n,r){return e(t,n,r+1)}),KN(1))(t)}}(function(e,t){return e}),te(function(e){return n})):jN(n)}))}}function IO(e,t,n,r){var i=vO(e,t,r);return i.resolve?nk(i.resolve(t,n)):nk(i(t,n))}function FO(e){return function(t){return t.pipe(dM(function(t){var n=e(t);return n?oe(n).pipe(te(function(){return t})):oe([t])}))}}var RO=function(){return function(){}}(),jO=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),LO=new ke("ROUTES"),VO=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(te(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new GM(XM(i.injector.get(LO)).map(ZM),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?oe(this.loader.load(e)):nk(e()).pipe(se(function(e){return e instanceof Ii?jN(e):oe(t.compiler.compileModuleAsync(e))}))},e}(),BO=function(){return function(){}}(),UO=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function HO(e){throw e}function qO(e,t,n){return t.parse("/")}function zO(e,t){return jN(null)}var WO=function(){function e(e,t,n,r,i,o,s,a){var u=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new B,this.errorHandler=HO,this.malformedUriErrorHandler=qO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:zO,afterPreactivation:zO},this.urlHandlingStrategy=new UO,this.routeReuseStrategy=new jO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy";this.ngModule=i.get(Oi),this.console=i.get(fa);var c=i.get(Sa);this.isNgZoneEnabled=c instanceof Sa,this.resetConfig(a),this.currentUrlTree=new ok(new sk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new VO(o,s,function(e){return u.triggerEvent(new OM(e))},function(e){return u.triggerEvent(new IM(e))}),this.routerState=Mk(this.currentUrlTree,this.rootComponentType),this.transitions=new LN({id: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",state: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 e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(HN(function(e){return 0!==e.id}),te(function(e){return o({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),dM(function(e){var r,i,s,a,u=!1,c=!1;return jN(e).pipe(dM(function(e){var r=!t.navigated||e.extractedUrl.toString()!==t.currentUrlTree.toString();if(("reload"===t.onSameUrlNavigation||r)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return jN(e).pipe(ZN(function(e){return"eager"===t.urlUpdateStrategy&&!e.extras.skipLocationChange&&t.setBrowserUrl(e.rawUrl,!!e.extras.replaceUrl,e.id)}),dM(function(e){var r=t.transitions.getValue();return n.next(new xM(e.id,t.serializeUrl(e.extractedUrl),e.source,e.state)),r!==t.transitions.getValue()?FN:[e]}),dM(function(e){return Promise.resolve(e)}),hO(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),kO(t.rootComponentType,t.config,function(e){return t.serializeUrl(e)},t.paramsInheritanceStrategy,t.relativeLinkResolution),ZN(function(e){var r=new DM(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(r&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var i=e.id,s=e.extractedUrl,a=e.source,u=e.state,c=e.extras,l=new xM(i,t.serializeUrl(s),a,u);n.next(l);var p=Mk(s,t.rootComponentType).snapshot;return jN(o({},e,{targetSnapshot:p,urlAfterRedirects:s,extras:o({},c,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,e.resolve(null),FN}),FO(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,s=e.extras,a=s.skipLocationChange,u=s.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!a,replaceUrl:!!u})}),ZN(function(e){var n=new PM(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),te(function(e){return o({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,s=n._root,mO(s,r?r._root:null,i,[s.value]))});var n,r,i,s}),gO(t.ngModule.injector,function(e){return t.triggerEvent(e)}),ZN(function(e){var n=new NM(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),HN(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new AM(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),FO(function(e){if(e.guards.canActivateChecks.length)return jN(e).pipe(ZN(function(e){var n=new MM(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),OO(t.paramsInheritanceStrategy,t.ngModule.injector),ZN(function(e){var n=new kM(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),FO(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,s=e.extras,a=s.skipLocationChange,u=s.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!a,replaceUrl:!!u})}),te(function(e){var n,r,i,s,a=(n=t.routeReuseStrategy,r=e.targetSnapshot,i=e.currentRouterState,s=Bk(n,r._root,i?i._root:void 0),new Nk(s,r));return o({},e,{targetRouterState:a})}),ZN(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"!==t.urlUpdateStrategy||e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id)}),(i=t.rootContexts,s=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},te(function(e){return new Jk(s,e.targetRouterState,e.currentRouterState,a).activate(i),e})),ZN({next:function(){u=!0},complete:function(){u=!0}}),(r=function(){if(!u&&!c){t.resetUrlToCurrentUrlTree();var r=new AM(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID "+e.id+" is not equal to the current navigation id "+t.navigationId);n.next(r),e.resolve(!1)}},function(e){return e.lift(new bM(r))}),uM(function(r){if(c=!0,(s=r)&&s[zM]){t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var i=new AM(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(i),e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new TM(e.id,t.serializeUrl(e.extractedUrl),r);n.next(o);try{e.resolve(t.errorHandler(r))}catch(a){e.reject(a)}}var s;return FN}))}))},e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.getTransition=function(){return this.transitions.value},e.prototype.setTransition=function(e){this.transitions.next(o({},this.getTransition(),e))},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?{navigationId:t.state.navigationId}:null;setTimeout(function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){KM(e),this.config=e.map(ZM),this.navigated=!1,this.lastSuccessfulId=-1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,r=t.queryParams,i=t.fragment,s=t.preserveQueryParams,a=t.queryParamsHandling,u=t.preserveFragment;ko()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:i,p=null;if(a)switch(a){case"merge":p=o({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=s?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),Uk(c,this.currentUrlTree,e,p,l)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),ko()&&this.isNgZoneEnabled&&!Sa.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=e instanceof ok?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+t)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t},e.prototype.isActive=function(e,t){if(e instanceof ok)return rk(this.currentUrlTree,e,t);var n=this.parseUrl(e);return rk(this.currentUrlTree,n,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})},e.prototype.processNavigations=function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new SM(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})},e.prototype.scheduleNavigation=function(e,t,n,r){var i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);var o=null,s=null,a=new Promise(function(e,t){o=e,s=t}),u=++this.navigationId;return this.setTransition({id:u,source:t,state:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(function(e){return Promise.reject(e)})},e.prototype.setBrowserUrl=function(e,t,n){var r=this.urlSerializer.serialize(e);this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",{navigationId:n}):this.location.go(r,"",{navigationId:n})},e.prototype.resetStateAndUrl=function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},e.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},e}();var GO=function(){function e(e,t,n,r,i){this.router=e,this.route=t,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){ko()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){var e={skipLocationChange:QO(this.skipLocationChange),replaceUrl:QO(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:QO(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:QO(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([bs(),u("design:type",Object)],e.prototype,"queryParams",void 0),s([bs(),u("design:type",String)],e.prototype,"fragment",void 0),s([bs(),u("design:type",String)],e.prototype,"queryParamsHandling",void 0),s([bs(),u("design:type",Boolean)],e.prototype,"preserveFragment",void 0),s([bs(),u("design:type",Boolean)],e.prototype,"skipLocationChange",void 0),s([bs(),u("design:type",Boolean)],e.prototype,"replaceUrl",void 0),s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"routerLink",null),s([bs(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],e.prototype,"preserveQueryParams",null),s([xs("click"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Boolean)],e.prototype,"onClick",null),e=s([ys({selector:":not(a)[routerLink]"}),a(2,qe("tabindex")),u("design:paramtypes",[WO,kk,String,$i,Gi])],e)}(),KO=function(){function e(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof SM&&r.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){ko()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:QO(this.skipLocationChange),replaceUrl:QO(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:QO(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:QO(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([Cs("attr.target"),bs(),u("design:type",String)],e.prototype,"target",void 0),s([bs(),u("design:type",Object)],e.prototype,"queryParams",void 0),s([bs(),u("design:type",String)],e.prototype,"fragment",void 0),s([bs(),u("design:type",String)],e.prototype,"queryParamsHandling",void 0),s([bs(),u("design:type",Boolean)],e.prototype,"preserveFragment",void 0),s([bs(),u("design:type",Boolean)],e.prototype,"skipLocationChange",void 0),s([bs(),u("design:type",Boolean)],e.prototype,"replaceUrl",void 0),s([Cs(),u("design:type",String)],e.prototype,"href",void 0),s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"routerLink",null),s([bs(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],e.prototype,"preserveQueryParams",null),s([xs("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),u("design:type",Function),u("design:paramtypes",[Number,Boolean,Boolean,Boolean]),u("design:returntype",Boolean)],e.prototype,"onClick",null),e=s([ys({selector:"a[routerLink]"}),u("design:paramtypes",[WO,kk,PA])],e)}();function QO(e){return""===e||!!e}var $O=function(){function e(e,t,n,r){var i=this;this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof SM&&i.update()})}return e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})},e.prototype.isLinkActive=function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},s([We(GO,{descendants:!0}),u("design:type",Qa)],e.prototype,"links",void 0),s([We(KO,{descendants:!0}),u("design:type",Qa)],e.prototype,"linksWithHrefs",void 0),s([bs(),u("design:type",Object)],e.prototype,"routerLinkActiveOptions",void 0),s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"routerLinkActive",null),e=s([ys({selector:"[routerLinkActive]",exportAs:"routerLinkActive"}),u("design:paramtypes",[WO,Gi,$i,eu])],e)}(),ZO=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new YO,this.attachRef=null}}(),YO=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new ZO,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),XO=function(){function e(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new yo,this.deactivateEvents=new yo,this.name=r||UM,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}},Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=e._futureSnapshot.routeConfig.component,r=(t=t||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new JO(e,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},s([Es("activate"),u("design:type",Object)],e.prototype,"activateEvents",void 0),s([Es("deactivate"),u("design:type",Object)],e.prototype,"deactivateEvents",void 0),e=s([ys({selector:"router-outlet",exportAs:"outlet"}),a(3,qe("name")),u("design:paramtypes",[YO,Ja,Ni,String,eu])],e)}(),JO=function(){function e(e,t,n){this.route=e,this.childContexts=t,this.parent=n}return e.prototype.get=function(e,t){return e===kk?this.route:e===YO?this.childContexts:this.parent.get(e,t)},e}(),eI=function(){return function(){}}(),tI=function(){function e(){}return e.prototype.preload=function(e,t){return t().pipe(uM(function(){return jN(null)}))},e}(),nI=function(){function e(){}return e.prototype.preload=function(e,t){return jN(null)},e}(),rI=function(){function e(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i;this.loader=new VO(t,n,function(t){return e.triggerEvent(new OM(t))},function(t){return e.triggerEvent(new IM(t))})}return e.prototype.setUpPreloading=function(){var e=this;this.subscription=this.router.events.pipe(HN(function(e){return e instanceof SM}),yM(function(){return e.preload()})).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(Oi);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){var n,r,i=[];try{for(var o=c(t),s=o.next();!s.done;s=o.next()){var a=s.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(e,a)):a.children&&i.push(this.processRoutes(e,a.children))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return oe(i).pipe(le(),te(function(e){}))},e.prototype.preloadConfig=function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return n.loader.load(e.injector,t).pipe(se(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})},e=s([Ds(),u("design:paramtypes",[WO,Wa,ya,ft,eI])],e)}(),iI=function(){function e(e,t,n){void 0===n&&(n={}),this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return e.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},e.prototype.createScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof xM?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof SM&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})},e.prototype.consumeScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof VM&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})},e.prototype.scheduleScrollEvent=function(e,t){this.router.triggerEvent(new VM(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},e}(),oI=[XO,GO,KO,$O,BM],sI=new ke("ROUTER_CONFIGURATION"),aI=new ke("ROUTER_FORROOT_GUARD"),uI=[MA,{provide:lk,useClass:pk},{provide:WO,useFactory:function(e,t,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var p=new WO(null,t,n,r,i,o,s,XM(a));c&&(p.urlHandlingStrategy=c);l&&(p.routeReuseStrategy=l);u.errorHandler&&(p.errorHandler=u.errorHandler);u.malformedUriErrorHandler&&(p.malformedUriErrorHandler=u.malformedUriErrorHandler);if(u.enableTracing){var h=XD();p.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}u.onSameUrlNavigation&&(p.onSameUrlNavigation=u.onSameUrlNavigation);u.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=u.paramsInheritanceStrategy);u.urlUpdateStrategy&&(p.urlUpdateStrategy=u.urlUpdateStrategy);u.relativeLinkResolution&&(p.relativeLinkResolution=u.relativeLinkResolution);return p},deps:[qa,lk,YO,MA,ft,Wa,ya,LO,sI,[BO,new it],[RO,new it]]},YO,{provide:kk,useFactory:function(e){return e.routerState.root},deps:[WO]},{provide:Wa,useClass:Ya},rI,nI,tI,{provide:sI,useValue:{enableTracing:!1}}];function cI(){return new La("Router",WO)}var lI=function(){function e(e,t){}var t;return t=e,e.forRoot=function(e,n){return{ngModule:t,providers:[uI,dI(e),{provide:aI,useFactory:fI,deps:[[WO,new it,new st]]},{provide:sI,useValue:n||{}},{provide:PA,useFactory:hI,deps:[TA,[new rt(NA),new it],sI]},{provide:iI,useFactory:pI,deps:[WO,$D,sI]},{provide:eI,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:nI},{provide:La,multi:!0,useFactory:cI},[vI,{provide:ia,multi:!0,useFactory:mI,deps:[vI]},{provide:gI,useFactory:yI,deps:[vI]},{provide:pa,multi:!0,useExisting:gI}]]}},e.forChild=function(e){return{ngModule:t,providers:[dI(e)]}},e=t=s([Ss({declarations:oI,exports:oI,entryComponents:[BM]}),a(0,it()),a(0,rt(aI)),a(1,it()),u("design:paramtypes",[Object,WO])],e)}();function pI(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new iI(e,t,n)}function hI(e,t,n){return void 0===n&&(n={}),n.useHash?new OA(e,t):new IA(e,t)}function fI(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function dI(e){return[{provide:He,multi:!0,useValue:e},{provide:LO,multi:!0,useValue:e}]}var vI=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new B}return e.prototype.appInitializer=function(){var e=this;return this.injector.get(DA,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(WO),i=e.injector.get(sI);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return e.initNavigation?jN(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n})},e.prototype.bootstrapListener=function(e){var t=this.injector.get(sI),n=this.injector.get(rI),r=this.injector.get(iI),i=this.injector.get(WO),o=this.injector.get(qa);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},e.prototype.isLegacyEnabled=function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation},e.prototype.isLegacyDisabled=function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation},e=s([Ds(),u("design:paramtypes",[ft])],e)}();function mI(e){return e.appInitializer.bind(e)}function yI(e){return e.bootstrapListener.bind(e)}var gI=new ke("Router Initializer");new As("7.0.4");var _I=function(e){function t(t,n){var r=e.call(this,t)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=J(r,n[o],null,o);s&&r.add(s)}return r}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,r=this.values,i=r.length;e._hasValue?(this.completed++,this.completed===i&&(n===i&&t.next(r),t.complete())):t.complete()},t}(ee),wI=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),bI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(wI);function EI(e){return null==e||0===e.length}var CI=new ke("NgValidators"),xI=new ke("NgAsyncValidators"),SI=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,AI=function(){function e(){}return e.min=function(e){return function(t){if(EI(t.value)||EI(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(EI(t.value)||EI(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return EI(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return EI(e.value)?null:SI.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(EI(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(EI(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(TI);return 0==t.length?null:function(e){return PI(function(e,t){return t.map(function(t){return t(e)})}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(TI);return 0==t.length?null:function(e){return function e(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&h(n[0])&&(n=n[0]),0===n.length?FN:t?e(n).pipe(te(function(e){return t.apply(void 0,e)})):new I(function(e){return new _I(e,n)})}(function(e,t){return t.map(function(t){return t(e)})}(e,t).map(DI)).pipe(te(PI))}},e}();function TI(e){return null!=e}function DI(e){var t=na(e)?oe(e):e;if(!ra(t))throw new Error("Expected validator to return Promise or Observable.");return t}function PI(e){var t=e.reduce(function(e,t){return null!=t?o({},e,t):e},{});return 0===Object.keys(t).length?null:t}var NI=new ke("NgValueAccessor"),MI={provide:NI,useExisting:tt(function(){return kI}),multi:!0},kI=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=s([ys({selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[MI]}),u("design:paramtypes",[$i,Gi])],e)}(),OI={provide:NI,useExisting:tt(function(){return FI}),multi:!0};var II=new ke("CompositionEventMode"),FI=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=XD()?XD().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e=s([ys({selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[OI]}),a(2,it()),a(2,rt(II)),u("design:paramtypes",[$i,Gi,Boolean])],e)}();function RI(e){return e.validate?function(t){return e.validate(t)}:e}function jI(e){return e.validate?function(t){return e.validate(t)}:e}var LI={provide:NI,useExisting:tt(function(){return VI}),multi:!0},VI=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=s([ys({selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[LI]}),u("design:paramtypes",[$i,Gi])],e)}();function BI(){throw new Error("unimplemented")}var UI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return i(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return BI()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return BI()},enumerable:!0,configurable:!0}),t}(wI),HI={provide:NI,useExisting:tt(function(){return zI}),multi:!0},qI=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e=s([Ds()],e)}(),zI=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(UI),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},s([bs(),u("design:type",String)],e.prototype,"name",void 0),s([bs(),u("design:type",String)],e.prototype,"formControlName",void 0),s([bs(),u("design:type",Object)],e.prototype,"value",void 0),e=s([ys({selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[HI]}),u("design:paramtypes",[$i,Gi,qI,ft])],e)}(),WI={provide:NI,useExisting:tt(function(){return GI}),multi:!0},GI=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=s([ys({selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[WI]}),u("design:paramtypes",[$i,Gi])],e)}(),KI='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',QI='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',$I='\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ZI='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',YI='\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ',XI=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+KI)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+QI+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+ZI)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+KI)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+QI)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+$I)},e.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},e.ngModelWarning=function(e){console.warn("\n    It looks like you're using ngModel on the same form field as "+e+". \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n    ")},e}(),JI={provide:NI,useExisting:tt(function(){return tF}),multi:!0};function eF(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var tF=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Je}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=eF(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var r=c(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),e))return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},s([bs(),u("design:type",Function),u("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=s([ys({selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[JI]}),u("design:paramtypes",[$i,Gi])],e)}(),nF=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(eF(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},s([bs("ngValue"),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngValue",null),s([bs("value"),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"value",null),e=s([ys({selector:"option"}),a(2,it()),a(2,at()),u("design:paramtypes",[Gi,$i,tF])],e)}(),rF={provide:NI,useExisting:tt(function(){return oF}),multi:!0};function iF(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var oF=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Je}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=t._getOptionValue(s.value);r.push(a)}else for(i=n.options,o=0;o<i.length;o++){if((s=i.item(o)).selected){a=t._getOptionValue(s.value);r.push(a)}}t.value=r,e(r)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var r=c(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o)._value,e))return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},s([bs(),u("design:type",Function),u("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=s([ys({selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[rF]}),u("design:paramtypes",[$i,Gi])],e)}(),sF=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(iF(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(iF(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},s([bs("ngValue"),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"ngValue",null),s([bs("value"),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"value",null),e=s([ys({selector:"option"}),a(2,it()),a(2,at()),u("design:paramtypes",[Gi,$i,oF])],e)}();function aF(e,t){return p(t.path,[e])}function uF(e,t){e||hF(t,"Cannot find control with"),t.valueAccessor||hF(t,"No value accessor for form control with"),e.validator=AI.compose([e.validator,t.validator]),e.asyncValidator=AI.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&cF(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&cF(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function cF(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function lF(e,t){null==e&&hF(t,"Cannot find control with"),e.validator=AI.compose([e.validator,t.validator]),e.asyncValidator=AI.composeAsync([e.asyncValidator,t.asyncValidator])}function pF(e){return hF(e,"There is no FormControl instance attached to form control element with")}function hF(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function fF(e){return null!=e?AI.compose(e.map(RI)):null}function dF(e){return null!=e?AI.composeAsync(e.map(jI)):null}function vF(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Je(t,n.currentValue)}var mF=[kI,GI,VI,tF,oF,zI];function yF(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function gF(e,t){if(!t)return null;Array.isArray(t)||hF(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===FI?n=t:(o=t,mF.some(function(e){return o.constructor===e})?(r&&hF(e,"More than one built-in value accessor matches form control with"),r=t):(i&&hF(e,"More than one custom value accessor matches form control with"),i=t))}),i||(r||(n||(hF(e,"No valid value accessor for form control with"),null)))}function _F(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function wF(e,t,n,r){ko()&&"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(XI.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var bF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return aF(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return fF(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return dF(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(bI),EF=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),CF={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},xF=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t=s([ys({selector:"[formControlName],[ngModel],[formControl]",host:CF}),a(0,ot()),u("design:paramtypes",[UI])],t)}(EF),SF=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t=s([ys({selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:CF}),a(0,ot()),u("design:paramtypes",[bI])],t)}(EF);function AF(e){var t=DF(e)?e.validators:e;return Array.isArray(t)?fF(t):t||null}function TF(e,t){var n=DF(t)?t.asyncValidators:e;return Array.isArray(n)?dF(n):n||null}function DF(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var PF=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=AF(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=TF(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(o({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(o({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=DI(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof MF?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof kF&&e.at(t)||null},e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new yo,this.statusChanges=new yo},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){DF(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),NF=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,AF(n),TF(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(PF),MF=function(e){function t(t,n,r){var i=e.call(this,AF(n),TF(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof NF?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=c(Object.keys(this.controls)),r=n.next();!r.done;r=n.next()){var i=r.value;if(this.controls[i].enabled)return!1}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(PF),kF=function(e){function t(t,n,r){var i=e.call(this,AF(n),TF(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof NF?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=c(this.controls),r=n.next();!r.done;r=n.next()){if(r.value.enabled)return!1}}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(PF),OF={provide:bI,useExisting:tt(function(){return FF})},IF=Promise.resolve(null),FF=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new yo,r.form=new MF({},fF(t),dF(n)),r}return i(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;IF.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),uF(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;IF.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),_F(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;IF.then(function(){var n=t._findContainer(e.path),r=new MF({});lF(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;IF.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;IF.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,yF(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},s([bs("ngFormOptions"),u("design:type",Object)],t.prototype,"options",void 0),t=s([ys({selector:"form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]",providers:[OF],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}),a(0,it()),a(0,ot()),a(0,rt(CI)),a(1,it()),a(1,ot()),a(1,rt(xI)),u("design:paramtypes",[Array,Array])],t)}(bI),RF=function(){function e(){}return e.modelParentException=function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      '+KI+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+YI)},e.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+QI+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+ZI)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+QI+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+ZI)},e.ngFormWarning=function(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")},e}(),jF=new ke("NgFormSelectorWarning"),LF=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(RF.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e=t=s([ys({selector:"ngForm"}),a(0,it()),a(0,rt(jF)),u("design:paramtypes",[Object])],e)}(),VF={provide:bI,useExisting:tt(function(){return BF})},BF=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}var n;return i(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof FF||RF.modelGroupParentException()},s([bs("ngModelGroup"),u("design:type",String)],t.prototype,"name",void 0),t=n=s([ys({selector:"[ngModelGroup]",providers:[VF],exportAs:"ngModelGroup"}),a(0,at()),a(0,st()),a(1,it()),a(1,ot()),a(1,rt(CI)),a(2,it()),a(2,ot()),a(2,rt(xI)),u("design:paramtypes",[bI,Array,Array])],t)}(bF),UF={provide:UI,useExisting:tt(function(){return qF})},HF=Promise.resolve(null),qF=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.control=new NF,o._registered=!1,o.update=new yo,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=gF(o,i),o}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),vF(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?aF(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return fF(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return dF(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){uF(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof BF)&&this._parent instanceof bF?RF.formGroupNameException():this._parent instanceof BF||this._parent instanceof FF||RF.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||RF.missingNameException()},t.prototype._updateValue=function(e){var t=this;HF.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;HF.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},s([bs(),u("design:type",String)],t.prototype,"name",void 0),s([bs("disabled"),u("design:type",Boolean)],t.prototype,"isDisabled",void 0),s([bs("ngModel"),u("design:type",Object)],t.prototype,"model",void 0),s([bs("ngModelOptions"),u("design:type",Object)],t.prototype,"options",void 0),s([Es("ngModelChange"),u("design:type",Object)],t.prototype,"update",void 0),t=s([ys({selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[UF],exportAs:"ngModel"}),a(0,it()),a(0,at()),a(1,it()),a(1,ot()),a(1,rt(CI)),a(2,it()),a(2,ot()),a(2,rt(xI)),a(3,it()),a(3,ot()),a(3,rt(NI)),u("design:paramtypes",[bI,Array,Array,Array])],t)}(UI),zF=new ke("NgModelWithFormControlWarning"),WF={provide:UI,useExisting:tt(function(){return GF})},GF=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._ngModelWarningConfig=i,o.update=new yo,o._ngModelWarningSent=!1,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=gF(o,r),o}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){XI.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(uF(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),vF(e,this.viewModel)&&(wF("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return fF(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return dF(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,s([bs("formControl"),u("design:type",NF)],t.prototype,"form",void 0),s([bs("disabled"),u("design:type",Boolean),u("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),s([bs("ngModel"),u("design:type",Object)],t.prototype,"model",void 0),s([Es("ngModelChange"),u("design:type",Object)],t.prototype,"update",void 0),t=n=s([ys({selector:"[formControl]",providers:[WF],exportAs:"ngForm"}),a(0,it()),a(0,ot()),a(0,rt(CI)),a(1,it()),a(1,ot()),a(1,rt(xI)),a(2,it()),a(2,ot()),a(2,rt(NI)),a(3,it()),a(3,rt(zF)),u("design:paramtypes",[Array,Array,Array,Object])],t)}(UI),KF={provide:bI,useExisting:tt(function(){return QF})},QF=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new yo,r}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return uF(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){_F(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);lF(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);lF(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,yF(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(!function(e,t){t.valueAccessor.registerOnChange(function(){return pF(t)}),t.valueAccessor.registerOnTouched(function(){return pF(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&uF(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=fF(this._validators);this.form.validator=AI.compose([this.form.validator,e]);var t=dF(this._asyncValidators);this.form.asyncValidator=AI.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||XI.missingFormException()},s([bs("formGroup"),u("design:type",MF)],t.prototype,"form",void 0),s([Es(),u("design:type",Object)],t.prototype,"ngSubmit",void 0),t=s([ys({selector:"[formGroup]",providers:[KF],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}),a(0,it()),a(0,ot()),a(0,rt(CI)),a(1,it()),a(1,ot()),a(1,rt(xI)),u("design:paramtypes",[Array,Array])],t)}(bI),$F={provide:bI,useExisting:tt(function(){return ZF})},ZF=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return i(t,e),t.prototype._checkParentType=function(){JF(this._parent)&&XI.groupParentException()},s([bs("formGroupName"),u("design:type",String)],t.prototype,"name",void 0),t=s([ys({selector:"[formGroupName]",providers:[$F]}),a(0,it()),a(0,at()),a(0,st()),a(1,it()),a(1,ot()),a(1,rt(CI)),a(2,it()),a(2,ot()),a(2,rt(xI)),u("design:paramtypes",[bI,Array,Array])],t)}(bF),YF={provide:bI,useExisting:tt(function(){return XF})},XF=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return i(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return aF(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return fF(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return dF(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){JF(this._parent)&&XI.arrayParentException()},s([bs("formArrayName"),u("design:type",String)],t.prototype,"name",void 0),t=s([ys({selector:"[formArrayName]",providers:[YF]}),a(0,it()),a(0,at()),a(0,st()),a(1,it()),a(1,ot()),a(1,rt(CI)),a(2,it()),a(2,ot()),a(2,rt(xI)),u("design:paramtypes",[bI,Array,Array])],t)}(bI);function JF(e){return!(e instanceof ZF||e instanceof QF||e instanceof XF)}var eR={provide:UI,useExisting:tt(function(){return tR})},tR=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._ngModelWarningConfig=o,s._added=!1,s.update=new yo,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=gF(s,i),s}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){XI.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),vF(e,this.viewModel)&&(wF("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return aF(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return fF(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return dF(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof ZF)&&this._parent instanceof bF?XI.ngModelGroupException():this._parent instanceof ZF||this._parent instanceof QF||this._parent instanceof XF||XI.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,s([bs("formControlName"),u("design:type",String)],t.prototype,"name",void 0),s([bs("disabled"),u("design:type",Boolean),u("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),s([bs("ngModel"),u("design:type",Object)],t.prototype,"model",void 0),s([Es("ngModelChange"),u("design:type",Object)],t.prototype,"update",void 0),t=n=s([ys({selector:"[formControlName]",providers:[eR]}),a(0,it()),a(0,at()),a(0,st()),a(1,it()),a(1,ot()),a(1,rt(CI)),a(2,it()),a(2,ot()),a(2,rt(xI)),a(3,it()),a(3,ot()),a(3,rt(NI)),a(4,it()),a(4,rt(zF)),u("design:paramtypes",[bI,Array,Array,Array,Object])],t)}(UI),nR={provide:CI,useExisting:tt(function(){return iR}),multi:!0},rR={provide:CI,useExisting:tt(function(){return oR}),multi:!0},iR=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?AI.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"required",null),e=s([ys({selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[nR],host:{"[attr.required]":'required ? "" : null'}})],e)}(),oR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.validate=function(e){return this.required?AI.requiredTrue(e):null},t=s([ys({selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[rR],host:{"[attr.required]":'required ? "" : null'}})],t)}(iR),sR={provide:CI,useExisting:tt(function(){return aR}),multi:!0},aR=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?AI.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},s([bs(),u("design:type",Object),u("design:paramtypes",[Object])],e.prototype,"email",null),e=s([ys({selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[sR]})],e)}(),uR={provide:CI,useExisting:tt(function(){return cR}),multi:!0},cR=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=AI.minLength(parseInt(this.minlength,10))},s([bs(),u("design:type",String)],e.prototype,"minlength",void 0),e=s([ys({selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[uR],host:{"[attr.minlength]":"minlength ? minlength : null"}})],e)}(),lR={provide:CI,useExisting:tt(function(){return pR}),multi:!0},pR=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=AI.maxLength(parseInt(this.maxlength,10))},s([bs(),u("design:type",String)],e.prototype,"maxlength",void 0),e=s([ys({selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[lR],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}})],e)}(),hR={provide:CI,useExisting:tt(function(){return fR}),multi:!0},fR=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=AI.pattern(this.pattern)},s([bs(),u("design:type",Object)],e.prototype,"pattern",void 0),e=s([ys({selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[hR],host:{"[attr.pattern]":"pattern ? pattern : null"}})],e)}(),dR=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=null!=t?t.validator:null,i=null!=t?t.asyncValidator:null;return new MF(n,r,i)},e.prototype.control=function(e,t,n){return new NF(e,t,n)},e.prototype.array=function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new kF(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){if(e instanceof NF||e instanceof MF||e instanceof kF)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},e=s([Ds()],e)}(),vR=(new As("7.0.4"),[function(){function e(){}return e=s([ys({selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}})],e)}(),nF,sF,FI,VI,GI,kI,tF,oF,zI,xF,SF,iR,cR,pR,fR,oR,aR]),mR=[qF,BF,FF,LF],yR=[GF,QF,tR,ZF,XF],gR=function(){function e(){}return e=s([Ss({declarations:vR,exports:vR})],e)}(),_R=(function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:jF,useValue:e.warnOnDeprecatedNgFormSelector}]}},e=t=s([Ss({declarations:mR,providers:[qI],exports:[gR,mR]})],e)}(),function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:zF,useValue:e.warnOnNgModelWithFormControl}]}},e=t=s([Ss({declarations:[yR],providers:[dR,qI],exports:[gR,yR]})],e)}()),wR=function(){return function(){}}(),bR=function(){return function(){}}(),ER=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,p(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),CR=function(){function e(){}return e.prototype.encodeKey=function(e){return xR(e)},e.prototype.encodeValue=function(e){return xR(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function xR(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var SR=function(){function e(e){void 0===e&&(e={});var t,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new CR,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=l(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],s=i[1],a=r.get(o)||[];a.push(s),r.set(o,a)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}();function AR(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function TR(e){return"undefined"!=typeof Blob&&e instanceof Blob}function DR(e){return"undefined"!=typeof FormData&&e instanceof FormData}var PR,NR=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new ER),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?"),a=-1===s?"?":s<t.length-1?"&":"";this.urlWithParams=t+a+o}}else this.params=new SR,this.urlWithParams=t}return e.prototype.serializeBody=function(){return null===this.body?null:AR(this.body)||TR(this.body)||DR(this.body)||"string"==typeof this.body?this.body:this.body instanceof SR?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},e.prototype.detectContentTypeHeader=function(){return null===this.body?null:DR(this.body)?null:TR(this.body)?this.body.type||null:AR(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof SR?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},e.prototype.clone=function(t){void 0===t&&(t={});var n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(c=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},c)),new e(n,r,o,{params:c,headers:u,reportProgress:a,responseType:i,withCredentials:s})},e}();!function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(PR||(PR={}));var MR=function(){return function(e,t,n){void 0===t&&(t=200),void 0===n&&(n="OK"),this.headers=e.headers||new ER,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}(),kR=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=PR.ResponseHeader,n}return i(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(MR),OR=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=PR.Response,n.body=void 0!==t.body?t.body:null,n}return i(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(MR),IR=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(t.url||"(unknown url)"):n.message="Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return i(t,e),t}(MR);function FR(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var RR=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof NR)r=e;else{var o=void 0;o=n.headers instanceof ER?n.headers:new ER(n.headers);var s=void 0;n.params&&(s=n.params instanceof SR?n.params:new SR({fromObject:n.params})),r=new NR(e,t,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=jN(r).pipe(yM(function(e){return i.handler.handle(e)}));if(e instanceof NR||"events"===n.observe)return a;var u=a.pipe(HN(function(e){return e instanceof OR}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(te(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(te(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(te(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(te(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new SR).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,FR(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,FR(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,FR(n,t))},e=s([Ds(),u("design:paramtypes",[wR])],e)}(),jR=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),LR=new ke("HTTP_INTERCEPTORS"),VR=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e=s([Ds()],e)}(),BR=0,UR=function(){return function(){}}(),HR=function(){function e(e,t){this.callbackMap=e,this.document=t}return e.prototype.nextCallback=function(){return"ng_jsonp_callback_"+BR++},e.prototype.handle=function(e){var t=this;if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new I(function(n){var r=t.nextCallback(),i=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=t.document.createElement("script");o.src=i;var s=null,a=!1,u=!1;t.callbackMap[r]=function(e){delete t.callbackMap[r],u||(s=e,a=!0)};var c=function(){o.parentNode&&o.parentNode.removeChild(o),delete t.callbackMap[r]},l=function(e){u||(c(),a?(n.next(new OR({body:s,status:200,statusText:"OK",url:i})),n.complete()):n.error(new IR({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(e){u||(c(),n.error(new IR({error:e,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",l),o.addEventListener("error",p),t.document.body.appendChild(o),n.next({type:PR.Sent}),function(){u=!0,o.removeEventListener("load",l),o.removeEventListener("error",p),c()}})},e=s([Ds(),a(1,rt(GD)),u("design:paramtypes",[UR,Object])],e)}(),qR=function(){function e(e){this.jsonp=e}return e.prototype.intercept=function(e,t){return"JSONP"===e.method?this.jsonp.handle(e):t.handle(e)},e=s([Ds(),u("design:paramtypes",[HR])],e)}(),zR=/^\)\]\}',?\n/;var WR=function(){return function(){}}(),GR=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e=s([Ds(),u("design:paramtypes",[])],e)}(),KR=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new I(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=e.serializeBody(),a=null,u=function(){if(null!==a)return a;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new ER(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new kR({headers:i,status:t,statusText:n,url:o})},c=function(){var t=u(),i=t.headers,o=t.status,s=t.statusText,a=t.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var p=c;c=c.replace(zR,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=p,l&&(l=!1,c={error:h,text:c})}}l?(n.next(new OR({body:c,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new IR({error:c,headers:i,status:o,statusText:s,url:a||void 0}))},l=function(e){var t=new IR({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(t)},p=!1,h=function(t){p||(n.next(u()),p=!0);var i={type:PR.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(e){var t={type:PR.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",c),r.addEventListener("error",l),e.reportProgress&&(r.addEventListener("progress",h),null!==s&&r.upload&&r.upload.addEventListener("progress",f)),r.send(s),n.next({type:PR.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},e=s([Ds(),u("design:paramtypes",[WR])],e)}(),QR=new ke("XSRF_COOKIE_NAME"),$R=new ke("XSRF_HEADER_NAME"),ZR=function(){return function(){}}(),YR=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=VT(e,this.cookieName),this.lastCookieString=e),this.lastToken},e=s([Ds(),a(0,rt(GD)),a(1,rt(la)),a(2,rt(QR)),u("design:paramtypes",[Object,String,String])],e)}(),XR=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e=s([Ds(),a(1,rt($R)),u("design:paramtypes",[ZR,String])],e)}(),JR=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(LR,[]);this.chain=t.reduceRight(function(e,t){return new jR(e,t)},this.backend)}return this.chain.handle(e)},e=s([Ds(),u("design:paramtypes",[bR,ft])],e)}();function ej(){return"object"==typeof window?window:{}}var tj=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:XR,useClass:VR}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:QR,useValue:e.cookieName}:[],e.headerName?{provide:$R,useValue:e.headerName}:[]]}},e=t=s([Ss({providers:[XR,{provide:LR,useExisting:XR,multi:!0},{provide:ZR,useClass:YR},{provide:QR,useValue:"XSRF-TOKEN"},{provide:$R,useValue:"X-XSRF-TOKEN"}]})],e)}(),nj=function(){function e(){}return e=s([Ss({imports:[tj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[RR,{provide:wR,useClass:JR},KR,{provide:bR,useExisting:KR},GR,{provide:WR,useExisting:GR}]})],e)}(),rj=(function(){function e(){}e=s([Ss({providers:[HR,{provide:UR,useFactory:ej},{provide:LR,useClass:qR,multi:!0}]})],e)}(),function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}),ij=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oj=function(){function e(e){this.http=e,this.httpOptions={headers:new ER({"Content-Type":"application/json"})}}return e.prototype.ngOnInit=function(){var e=this;this.getTemplate().subscribe(function(t){e.anketa=t})},e.prototype.getTemplate=function(){return this.http.get("assets/files/template.json")},e.prototype.sendData=function(e){console.log("sendData function");var t=this.http.post("api-data",e);t.subscribe(function(e){console.log(e)},function(e){console.log(e.message)}),console.log(e),console.log(t)},e=rj([Ds({providedIn:"root"}),ij("design:paramtypes",[RR])],e)}(),sj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},aj=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},uj=function(){function e(e,t,n,r){this.route=e,this.router=t,this.anketaService=n,this.formBuilder=r,this.anketaForm=new MF({})}return e.prototype.ngOnInit=function(){var e=this;this.anketaForm.addControl("komentar",new NF("")),this.anketaService.getTemplate().subscribe(function(t){e.anketa=t,console.log(Object.keys(e.anketa)),e.initForm(Object.keys(t)),e.anketaForm.addControl("komentar",new NF(""))})},e.prototype.initForm=function(e){console.log(e);for(var t=0,n=e;t<n.length;t++){var r=n[t];console.log(r),this.anketaForm.addControl(r,new NF("",AI.required))}console.log(this.anketaForm)},e.prototype.onSubmit=function(){console.log(this.anketaForm.value),this.anketaService.sendData(this.anketaForm.value),this.router.navigate(["/success"])},e=sj([gs({selector:"app-anketa",template:n("Ym6z"),styles:[n("6Ksf")]}),aj("design:paramtypes",[kk,WO,oj,dR])],e)}(),cj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},lj=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pj=function(){function e(){}return e.prototype.ngOnInit=function(){},e=cj([gs({selector:"app-error-page",template:n("HKwt"),styles:[n("oc07")]}),lj("design:paramtypes",[])],e)}(),hj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},fj=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dj=function(){function e(){}return e.prototype.ngOnInit=function(){},e=hj([gs({selector:"app-success",template:n("Z7Oa"),styles:[n("bmSb")]}),fj("design:paramtypes",[])],e)}(),vj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},mj=[{path:"anketa",component:uj},{path:"success",component:dj},{path:"",component:uj},{path:"**",component:pj}],yj=function(){function e(){}return e=vj([Ss({imports:[lI.forRoot(mj)],exports:[lI]})],e)}(),gj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_j=function(){function e(){this.title="Makoto"}return e=gj([gs({selector:"app-root",template:n("nH/3"),styles:[n("A3xY")]})],e)}(),wj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},bj=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ej=function(){function e(){}return e.prototype.ngOnInit=function(){},e=wj([gs({selector:"app-home",template:n("Jyj+"),styles:[n("RV7M")]}),bj("design:paramtypes",[])],e)}(),Cj=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},xj=function(){function e(){}return e=Cj([Ss({declarations:[_j,uj,pj,dj,Ej],imports:[pN,yj,_R,nj],providers:[],bootstrap:[_j]})],e)}();(function(){if(Mo)throw new Error("Cannot enable prod mode after platform setup.");No=!1})(),IN().bootstrapModule(xj).catch(function(e){return console.error(e)})}},[[0,0]]]);