(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"+tJ4":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n1)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}(l.a),d=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 r.c(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 i.a).add(this.source.subscribe(new m(this.getSubject(),this))),e.closed?(this._connection=null,e=i.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return p()(this)},t}(s.a).prototype,v={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:d._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}},m=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.c(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);l.a;var y=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 g(){return new o.a}function b(){return function(e){return p()((t=g,function(e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new y(r,n));var i=Object.create(e,v);return i.source=e,i.subjectFactory=r,i})(e));var t,n}}function _(e){for(var t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function w(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}n.d(t,"g",function(){return $a}),n.d(t,"nb",function(){return Wa}),n.d(t,"M",function(){return za}),n.d(t,"pb",function(){return oo}),n.d(t,"tb",function(){return io}),n.d(t,"c",function(){return aa}),n.d(t,"Q",function(){return fa}),n.d(t,"S",function(){return la}),n.d(t,"R",function(){return pa}),n.d(t,"b",function(){return ha}),n.d(t,"d",function(){return oa}),n.d(t,"e",function(){return sa}),n.d(t,"rb",function(){return du}),n.d(t,"hb",function(){return Ra}),n.d(t,"vb",function(){return Va}),n.d(t,"eb",function(){return Iu}),n.d(t,"fb",function(){return Fu}),n.d(t,"G",function(){return ku}),n.d(t,"H",function(){return ju}),n.d(t,"f",function(){return Lu}),n.d(t,"ib",function(){return is}),n.d(t,"v",function(){return Fo}),n.d(t,"u",function(){return Fs}),n.d(t,"Z",function(){return Gi}),n.d(t,"ab",function(){return qi}),n.d(t,"a",function(){return H}),n.d(t,"h",function(){return q}),n.d(t,"r",function(){return W}),n.d(t,"n",function(){return fs}),n.d(t,"s",function(){return hs}),n.d(t,"x",function(){return gs}),n.d(t,"y",function(){return bs}),n.d(t,"D",function(){return ms}),n.d(t,"P",function(){return ys}),n.d(t,"T",function(){return ds}),n.d(t,"I",function(){return Ss}),n.d(t,"lb",function(){return ie}),n.d(t,"jb",function(){return Ki}),n.d(t,"ob",function(){return A}),n.d(t,"qb",function(){return ne}),n.d(t,"A",function(){return As}),n.d(t,"C",function(){return Kr}),n.d(t,"sb",function(){return dt}),n.d(t,"B",function(){return N}),n.d(t,"z",function(){return ot}),n.d(t,"O",function(){return st}),n.d(t,"bb",function(){return at}),n.d(t,"cb",function(){return ut}),n.d(t,"w",function(){return ct}),n.d(t,"N",function(){return Da}),n.d(t,"V",function(){return Ui}),n.d(t,"W",function(){return zi}),n.d(t,"X",function(){return Hi}),n.d(t,"Y",function(){return Li}),n.d(t,"i",function(){return Ca}),n.d(t,"l",function(){return Ea}),n.d(t,"m",function(){return Oa}),n.d(t,"o",function(){return Ci}),n.d(t,"q",function(){return Ei}),n.d(t,"p",function(){return Ti}),n.d(t,"t",function(){return Vi}),n.d(t,"J",function(){return Mi}),n.d(t,"L",function(){return Ni}),n.d(t,"K",function(){return es}),n.d(t,"U",function(){return Ya}),n.d(t,"db",function(){return eu}),n.d(t,"gb",function(){return Ro}),n.d(t,"kb",function(){return nu}),n.d(t,"j",function(){return B}),n.d(t,"k",function(){return iu}),n.d(t,"E",function(){return Su}),n.d(t,"F",function(){return Au}),n.d(t,"mb",function(){return Dn}),n.d(t,"ub",function(){return Mu}),n.d(t,"Ob",function(){return Nn}),n.d(t,"yb",function(){return da}),n.d(t,"wb",function(){return ci}),n.d(t,"xb",function(){return Di}),n.d(t,"Bb",function(){return cs}),n.d(t,"Cb",function(){return Po}),n.d(t,"Db",function(){return Jo}),n.d(t,"Eb",function(){return co}),n.d(t,"Lb",function(){return Q}),n.d(t,"Rb",function(){return J}),n.d(t,"dc",function(){return ee}),n.d(t,"Pb",function(){return ia}),n.d(t,"Qb",function(){return ra}),n.d(t,"cc",function(){return ns}),n.d(t,"zb",function(){return Nc}),n.d(t,"Ab",function(){return Mc}),n.d(t,"Fb",function(){return kc}),n.d(t,"Gb",function(){return tl}),n.d(t,"Hb",function(){return uh}),n.d(t,"Ib",function(){return nc}),n.d(t,"Jb",function(){return xl}),n.d(t,"Kb",function(){return Ic}),n.d(t,"Mb",function(){return Dc}),n.d(t,"Nb",function(){return Tc}),n.d(t,"Sb",function(){return Wc}),n.d(t,"Tb",function(){return zc}),n.d(t,"Ub",function(){return Ql}),n.d(t,"Vb",function(){return hl}),n.d(t,"Xb",function(){return Sl}),n.d(t,"ac",function(){return jl}),n.d(t,"Wb",function(){return Yl}),n.d(t,"Yb",function(){return Xl}),n.d(t,"Zb",function(){return Zl}),n.d(t,"bc",function(){return ql}),n.d(t,"ec",function(){return ep}),n.d(t,"fc",function(){return Ju}),n.d(t,"gc",function(){return rp});var E=_({ngComponentDef:_}),C=(_({ngDirectiveDef:_}),_({ngInjectableDef:_})),O=_({ngInjectorDef:_}),x=(_({ngPipeDef:_}),_({ngModuleDef:_})),S=_({ngBaseDef:_}),j=_({__NG_ELEMENT_ID__:_});function A(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function T(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function D(e){return e&&e.hasOwnProperty(C)?e[C]:null}function P(e){return e&&e.hasOwnProperty(O)?e[O]:null}var N=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?A({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),M="__annotations__",k="__parameters__",I="__prop__metadata__";function F(e,t,n,i,o){var s=R(t);function a(){for(var e,t=[],n=0;n=xe?n:n[fe]}function qe(e){return 0!=(4&e.flags)}function ze(e){return 1==(1&e.flags)}function We(e){return null!==e.template}function Ge(e){return Array.isArray(e)&&e.length===De}function Ke(e){for(var t=Array.isArray(e)?e:Ze(e);t&&!(128&t[ce]);)t=t[le];return t}function Qe(e){var t=Ke(e);return t[ye]}function $e(e){return e[Pe]}function Ze(e){var t=$e(e);return t?Array.isArray(t)?t:t.lView:null}function Ye(e){return e!==Ie}function Xe(e){return 32767&e}function Je(e){return e>>16}function et(e,t){for(var n=Je(e),r=t;n>0;)r=r[Oe],n--;return r}var tt,nt=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Q);function rt(e){for(var t=e[de];t&&2===t.type;)t=(e=e[Oe])[de];return e}!function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute"}(tt||(tt={}));var it,ot=L("Inject",function(e){return{token:e}}),st=L("Optional"),at=L("Self"),ut=L("SkipSelf"),ct=L("Host");!function(e){e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional"}(it||(it={}));var lt,pt=void 0;function ht(e){var t=pt;return pt=e,t}function ft(e){var t=lt;return lt=e,t}function dt(e,t){return void 0===t&&(t=it.Default),(lt||function(e,t){if(void 0===t&&(t=it.Default),void 0===pt)throw new Error("inject() must be called from an injection context");return null===pt?vt(e,void 0,t):pt.get(e,t&it.Optional?null:void 0,t)})(e,t)}function vt(e,t,n){var r=D(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&it.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND ["+ee(e)+"]")}function mt(e){for(var t=[],n=0;n>16,h=i?u+p:l,f=r?u:u+p;f=c&&d.type===n)return f}if(i){var v=a[c];if(v&&We(v)&&v.type===n)return c}return null}function on(e,t,n,r){var i,o=t[n];if(null!=(i=o)&&"object"==typeof i&&Object.getPrototypeOf(i)==Re){var s=o;if(s.resolving)throw new Error("Circular dep for "+Le(e[n]));var a=Gt(s.canSeeViewProviders);s.resolving=!0;var u=void 0;s.injectImpl&&(u=ft(s.injectImpl));var c=Dt(),l=Tt();Nt(r,t);try{o=t[n]=s.factory(null,e,t,r)}finally{s.injectImpl&&ft(u),Gt(a),s.resolving=!1,Nt(c,l)}}return o}function sn(e,t,n){var r=1<=0){var d;hn(d=Ve(r[f]),u=ln(r,f,d)),n=u;break}}}return n||null}function ln(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function pn(e){var t,n=$e(e);if(Array.isArray(n)){var r=vn(n,e);(i=ln(n,r,(t=He(r,n))[fe])).component=e,hn(e,i),hn(i.native,i)}else{var i;t=He((i=n).nodeIndex,i.lView)}return t}function hn(e,t){e[Pe]=t}function fn(e,t){for(var n=e[ue].firstChild;n;){if(Be(n,e)===t)return n.index;n=dn(n)}return-1}function dn(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function vn(e,t){var n=e[ue].components;if(n)for(var r=0;r=0)&&null;e==l&&o.push({element:e,name:c,callback:p,useCapture:f})}}return o.sort(xn),o}function xn(e,t){return e.name==t.name?0:e.name-1?t[le][n]:null}return t[le][e.parent.index]}var Bn=[];function Un(e,t,n,r,i){for(var o=e[ue].node,s=-1,a=e,u=o.child;u;){var c=null;if(3===u.type){Hn(t,n,r,Be(u,a),i);var l=a[u.index];Ge(l)&&Hn(t,n,r,l[Ae],i)}else if(0===u.type){var p=a[u.index];Hn(t,n,r,p[Ae],i),r&&(p[Te]=r),p[je].length&&(c=(a=p[je][0])[ue].node,i=p[Ae])}else if(1===u.type){var h=rt(a),f=h[de].projection[u.projection];Bn[++s]=u,Bn[++s]=a,f&&(c=(a=h[le])[ue].data[f.index])}else c=u.child;if(null===c)for(null===u.next&&2&u.flags&&(a=Bn[s--],u=Bn[s--]),c=u.next;!c;){if(null===(u=u.parent||a[ue].node)||u===o)return null;0===u.type&&(i=(a=a[le])[u.index][Ae]),c=2===u.type&&a[pe]?(a=a[pe])[ue].node:u.next}u=c}}function Hn(e,t,n,r,i){0===e?Rn(t)?t.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===e?Rn(t)?t.removeChild(n,r):n.removeChild(r):2===e&&t.destroyNode(r)}function qn(e,t,n,r,i){var o=t[je];r>0&&(o[r-1][pe]=e),r-1&&(e[Ce]=i,e[le]=n),e[he]&&e[he].insertView(r),e[ce]|=16}function zn(e){var t=e[ue].childIndex;return-1===t?null:e[t]}function Wn(e){var t=e[_e];Rn(t)&&t.destroyNode&&Un(e,2,t,null),function(e){if(-1===e[ue].childIndex)return Kn(e);for(var t=zn(e);t;){var n=null;if(t.length>=xe){var r=t;r[ue].childIndex>-1&&(n=zn(r))}else{var i=t;i[je].length&&(n=i[je][0])}if(null==n){for(;t&&!t[pe]&&t!==e;)Kn(t),t=Gn(t,e);Kn(t||e),n=t&&t[pe]}t=n}}(e),e[ce]|=64}function Gn(e,t){var n;return e.length>=xe&&(n=e[de])&&2===n.type?Vn(n,e):e[le]===t?null:e[le]}function Kn(e){if(e.length>=xe){var t=e;!function(e){var t,n=e[ue];null!=n&&null!=(t=n.destroyHooks)&&Ot(e,t)}(t),(i=(r=t)[ue]&&r[ue].pipeDestroyHooks)&&Ot(r,i),function(e){var t=e[ue].cleanup;if(null!=t){for(var n=e[me],r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else if("number"==typeof t[r]){var u=n[t[r]];u()}else{var c=n[t[r+1]];t[r].call(c)}e[me]=null}}(t);var n=t[de];n&&3===n.type&&Rn(t[_e])&&t[_e].destroy()}var r,i}(function(){function e(){this._players=[]}e.prototype.flushPlayers=function(){for(var e=0;e=9?t+0:t])}function Jn(e,t){return e[t+2]}function er(e,t){return e[t+1]}!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,t){if(this._dirty){var n=this._factory.fn(this._element,this._type,this._values,t,e||null);return this._values={},this._dirty=!1,n}}}();var tr=Promise.resolve(null);function nr(e){var t=e[ue];if(t.firstTemplatePass=!1,Ut(!1),!It(e)){var n=Rt();Et(e,t,n),function(e){for(var t=zn(e);null!==t;t=t[pe])if(t.length ");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):ee(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(ni,"\n ")}function ui(e,t){return new Error(ai(e,t))}var ci=new N("The presence of this token marks an injector as being the root injector."),li={},pi={},hi=[],fi=void 0;function di(){return void 0===fi&&(fi=new Gr),fi}var vi=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;var i=[];bi([e],function(e){return r.processInjectorType(e,[],i)}),t&&bi(t,function(n){return r.processProvider(n,e,t)}),this.records.set(Wr,gi(void 0,this)),this.isRootInjector=this.records.has(ci),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=zr),void 0===n&&(n=it.Default),this.assertNotDestroyed();var r,i=ht(this);try{if(!(n&it.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof N)&&D(e);s&&this.injectableDefInScope(s)&&(o=gi(mi(e),li),this.records.set(e,o))}if(void 0!==o)return this.hydrate(e,o)}return(n&it.Self?di():this.parent).get(e,t)}finally{ht(i)}},e.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},e.prototype.processInjectorType=function(e,t,n){var r=this;if(e=re(e)){var i=P(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s),u=void 0!==o&&e.providers||hi;if(void 0!==o&&(i=P(o)),null!=i){if(this.injectorDefTypes.add(s),this.records.set(s,gi(i.factory,li)),null!=i.imports&&!a){n.push(s);try{bi(i.imports,function(e){return r.processInjectorType(e,t,n)})}finally{}}var c=i.providers;if(null!=c&&!a){var l=e;bi(c,function(e){return r.processProvider(e,l,c)})}var p=e.ngModule;bi(u,function(e){return r.processProvider(e,p,u)})}}},e.prototype.processProvider=function(e,t,n){var r=wi(e=re(e))?e:re(e&&e.provide),i=function(e,t,n){var r=yi(e,t,n);return _i(e)?gi(void 0,e.useValue):gi(r,li)}(e,t,n);if(wi(e)||!0!==e.multi){var o=this.records.get(r);if(o&&void 0!==o.multi)throw new Error("Mixed multi-provider for "+ee(r))}else{var s=this.records.get(r);if(s){if(void 0===s.multi)throw new Error("Mixed multi-provider for "+r+".")}else(s=gi(void 0,li,!0)).factory=function(){return mt(s.multi)},this.records.set(r,s);r=e,s.multi.push(e)}this.records.set(r,i)},e.prototype.hydrate=function(e,t){if(t.value===pi)throw new Error("Cannot instantiate cyclic dependency! "+ee(e));var n;return t.value===li&&(t.value=pi,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 mi(e){var t=D(e);if(null===t){var n=P(e);if(null!==n)return n.factory;if(e instanceof N)throw new Error("Token "+ee(e)+" is missing an ngInjectableDef definition.");if(e instanceof Function){var r=e.length;if(r>0){var i=new Array(r).fill("?");throw new Error("Can't resolve all parameters for "+ee(e)+": ("+i.join(", ")+").")}return function(){return new e}}throw new Error("unreachable")}return t.factory}function yi(e,t,n){var i,o=void 0;if(wi(e))return mi(re(e));if(_i(e))o=function(){return re(e.useValue)};else if((i=e)&&i.useExisting)o=function(){return dt(re(e.useExisting))};else if(function(e){return!(!e||!e.useFactory)}(e))o=function(){return e.useFactory.apply(e,Object(r.g)(mt(e.deps||[])))};else{var s=re(e&&(e.useClass||e.provide));if(!s){var a="";if(t&&n)a=" - only instances of Provider and Type are allowed, got: ["+n.map(function(t){return t==e?"?"+e+"?":"..."}).join(", ")+"]";throw new Error("Invalid provider for the NgModule '"+ee(t)+"'"+a)}if(!function(e){return!!e.deps}(e))return mi(s);o=function(){return new(s.bind.apply(s,Object(r.g)([void 0],mt(e.deps))))}}return o}function gi(e,t,n){return void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function bi(e,t){e.forEach(function(e){return Array.isArray(e)?bi(e,t):t(e)})}function _i(e){return e&&"object"==typeof e&&Jr in e}function wi(e){return"function"==typeof e}var Ei=function(){return function(){}}(),Ci=function(){return function(){}}();function Oi(e){var t=Error("No component factory found for "+ee(e)+". Did you add it to @NgModule.entryComponents?");return t[ji]=e,t}var xi,Si,ji="ngComponent",Ai=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw Oi(e)},e}(),Ti=function(){function e(){}return e.NULL=new Ai,e}(),Di=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Wn(this._lView)},e.prototype.onDestroy=function(e){var t,n;t=this._lView,n=e,Nr(t).push(n),t[ue].firstTemplatePass&&Mr(t).push(t[me].length-1,null)},e.prototype.markForCheck=function(){Or(this._lView)},e.prototype.detach=function(){this._lView[ce]&=-17},e.prototype.reattach=function(){this._lView[ce]|=16},e.prototype.detectChanges=function(){jr(this._lView,this.context)},e.prototype.checkNoChanges=function(){Tr(this.context)},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype._lookUpContext=function(){return this._context=this._lView[le][this._componentIndex]},e}(),Ii=function(e){function t(t){var n=e.call(this,t,null,-1)||this;return n._view=t,n}return Object(r.c)(t,e),t.prototype.detectChanges=function(){Ar(this._view)},t.prototype.checkNoChanges=function(){!function(e){Lt(!0);try{Ar(e)}finally{Lt(!1)}}(this._view)},Object.defineProperty(t.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),t}(ki);function Fi(e,t,n){return xi||(xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(e)),new xi(Be(t,n))}function Ri(e,t,n,i){if(Si||(Si=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 Object(r.c)(t,e),t.prototype.createEmbeddedView=function(e,t,n,r,i){var o=function(e,t,n,r,i,o){var s=Mt(),a=Dt();kt(!0),Pt(null);var u=rr(n,e,t,4);return u[Oe]=n,i&&(u[he]=i.createView()),or(-1,u),e.firstTemplatePass&&(e.node.injectorIndex=o),kt(s),Pt(a),u}(this._tView,e,this._declarationParentView,this._renderer,this._queries,this._injectorIndex);t&&qn(o,t,r,i,n.index),sr(o,this._tView,e);var s=new ki(o,e,-1);return s._tViewNode=o[de],s},t}(e)),0===n.type){var o=i[n.index];return new Si(i,Fi(t,n,i),n.tViews,Tt()[_e],o[he],n.injectorIndex)}return null}var Li,Vi=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return Bi(e)},e}(),Bi=Ur,Ui=(function(){}(),function(){}(),function(){return function(){}}()),Hi=(new N("Renderer2Interceptor"),function(){}(),function(){return function(){}}());!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Li||(Li={}));var qi,zi=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Wi()},e}(),Wi=Ur;!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"}(qi||(qi={}));var Gi=function(){return function(){}}(),Ki=function(){return function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}(),Qi=new Ki("7.2.14"),$i=function(e){function t(t){var n=e.call(this)||this;return n.ngModule=t,n}return Object(r.c)(t,e),t.prototype.resolveComponentFactory=function(e){var t=se(e);return new eo(t,this.ngModule)},t}(Ti);function Zi(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 Yi=new N("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Fr(dt(Xi))}}),Xi=new N("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return nt}}),Ji={};var eo=function(e){function t(t,n){var r=e.call(this)||this;return r.componentDef=t,r.ngModule=n,r.componentType=t.type,r.selector=t.selectors[0][0],r.ngContentSelectors=[],r}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return Zi(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return Zi(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){var i=void 0===n,o=(r=r||this.ngModule)?function(e,t){return{get:function(n,r){var i=e.get(n,Ji);return i!==Ji||r===Ji?i:t.get(n,r)}}}(e,r.injector):e,s=o.get(Hi,Ln),a=o.get(Gi,null),u=i?pr(this.selector,s.createRenderer(null,this.componentDef)):vr(s,n),c=this.componentDef.onPush?136:132,l=i?Fr():o.get(Yi),p=s.createRenderer(u,this.componentDef);n&&u&&(Rn(p)?p.setAttribute(u,"ng-version",Qi.full):u.setAttribute("ng-version",Qi.full));var h,f,d=rr(null,fr(-1,null,1,0,null,null,null),l,c,s,p,a,o),v=qt(d,null);try{s.begin&&s.begin();var m=kr(u,this.componentDef,d,s,p);if(f=Ue(0,d),t)for(var y=0,g=d[ue],b=f.projection=[],_=0;_',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',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=""+e+"";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=""+e+"";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"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();wo.hasOwnProperty(t)&&!vo.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Do(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}(),Ao=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,To=/([^\#-~ |!])/g;function Do(e){return e.replace(/&/g,"&").replace(Ao,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(To,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Po(e,t){var n=null;try{fo=fo||new so(e);var r=t?String(t):"";n=fo.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=fo.getInertBodyElement(r)}while(r!==o);var s=new jo,a=s.sanitizeChildren(No(n)||n);return io()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=No(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function No(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Mo;!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"}(Mo||(Mo={}));var ko={provide:Ti,useClass:$i,deps:[Ni]},Io=function(e){function t(t,n){var r=e.call(this)||this;r._parent=n,r._bootstrapComponents=[],r.injector=r,r.destroyCbs=[];var i=ae(t);r._bootstrapComponents=i.bootstrap;var o=[{provide:Ni,useValue:r},ko];return r._r3Injector=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),t=t||di(),new vi(e,n,t)}(t,n,o),r.instance=r.get(t),r}return Object(r.c)(t,e),t.prototype.get=function(e,t,n){return void 0===t&&(t=Kr.THROW_IF_NOT_FOUND),void 0===n&&(n=it.Default),e===Kr||e===Ni||e===Wr?this:this._r3Injector.get(e,t,n)},Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Ti)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(Ni);!function(e){function t(t){var n=e.call(this)||this;return n.moduleType=t,n}Object(r.c)(t,e),t.prototype.create=function(e){return new Io(this.moduleType,e)}}(Mi);var Fo=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(r.c)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,s=function(e){return null},a=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(s=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(s=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=e.prototype.subscribe.call(this,o,s,a);return t instanceof i.a&&t.add(u),u},t}(o.a),Ro=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Lo(e,Vi)},e}(),Lo=Ur;!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=Zo(this.deep,e,t,null!=r?r:null):this.shallow=Zo(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=Vo(this.shallow),n=Vo(this.deep);return t||n?new e(this,t,n):null},e.prototype.createView=function(){var t=Bo(this.shallow),n=Bo(this.deep);return t||n?new e(this,t,n):null},e.prototype.insertView=function(e){Uo(e,this.shallow),Uo(e,this.deep)},e.prototype.addNode=function(e){return Ko(this.deep,e),qe(e)?(Ko(this.shallow,e),e.parent&&qe(e.parent)&&Ko(this.parent.shallow,e),this.parent):(function(e){return null===e.parent||qe(e.parent)}(e)&&Ko(this.shallow,e),this)},e.prototype.removeView=function(){Ho(this.shallow),Ho(this.deep)}}();function Vo(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 Bo(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 Uo(e,t){for(;t;)t.containerValues.splice(e,0,t.values),t=t.next}function Ho(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 qo(e,t){var n=e.localNames;if(n)for(var r=0;r-1?on(t[ue].data,t,r,e):function(e,t){return 3===e.type||4===e.type?Fi(Vi,e,t):0===e.type?Ri(Ro,Vi,e,t):null}(e,t)}function Ko(e,t){for(var n=Tt();e;){var r=e.predicate,i=r.type;if(i){var o=null;if(i===Ro)o=Wo(i,t,n,r.read);else null!==(u=rn(t,n,i,!1,!1))&&(o=Go(t,n,r.read,u));null!==o&&Qo(e,o)}else for(var s=r.selector,a=0;a0?(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 Yo=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"),Xo=/^url\(([^)]+)\)$/;function Jo(e){if(!(e=String(e).trim()))return"";var t=e.match(Xo);return t&&co(t[1])===t[1]||e.match(Yo)&&function(e){for(var t=!0,n=!0,r=0;r1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return ee(e.token)}).join(" -> ")+")":""}function Ls(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[Ps]=t,r}(o,r):Error(o);return s.addKey=Vs,s.keys=i,s.injectors=[e],s.constructResolvingMessage=n,s[Ps]=r,s}function Vs(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Bs(e,t){for(var n=[],r=0,i=t.length;r=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,Ls(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;n0&&(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=Object(r.b)([As(),Object(r.d)("design:paramtypes",[Da])],e)}(),La=function(){function e(){this._applications=new Map,Ua.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),Ua.findTestabilityInTree(this,e,t)},e=Object(r.b)([As(),Object(r.d)("design:paramtypes",[])],e)}();function Va(e){Ua=e}var Ba,Ua=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Ha=function(e,t,n){return e.get(Oa).createCompiler([t]).compileModuleAsync(n)};var qa=new N("AllowMultipleToken"),za=function(){return function(e,t){this.name=e,this.token=t}}();function Wa(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new N(r);return function(t){void 0===t&&(t=[]);var o=Ga();if(!o||o.injector.get(qa,!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(Ba&&!Ba.destroyed&&!Ba.injector.get(qa,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ba=e.get(Ka);var t=e.get(la,null);t&&t.forEach(function(e){return e()})}(Kr.create({providers:s,name:r}))}return function(e){var t=Ga();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 Ga(){return Ba&&!Ba.destroyed?Ba:null}var Ka=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 Fa:("zone.js"===e?void 0:e)||new Da({enableLongStackTrace:io()});return t}(t?t.ngZone:void 0),i=[{provide:Da,useValue:r}];return r.run(function(){var t=Kr.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 ra(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(sa);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=Qa({},t);return Ha(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get($a);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ee(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=Object(r.b)([As(),Object(r.d)("design:paramtypes",[Kr])],e)}();function Qa(e,t){return e=Array.isArray(t)?t.reduce(Qa,e):Object(r.a)({},e,t)}var $a=function(){function e(e,t,n,r,i,o){var l=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=io(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var p=new s.a(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),h=new s.a(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){Da.assertNotInAngularZone(),X(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Da.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof s.a?e[0]:Object(u.a)(n)(Object(c.a)(e,r))}(p,h.pipe(b()))}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 Ci?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof Pi?null:this._injector.get(Ni),o=t||n.selector,s=n.create(Kr.NULL,[],o,i);s.onDestroy(function(){r._unloadComponent(s)});var a=s.injector.get(Ra,null);return a&&s.injector.get(La).registerApplication(s.location.nativeElement,a),this._loadComponent(s),io()&&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,Ta(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(ha,[]).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=Aa("ApplicationRef#tick()"),e=t=Object(r.b)([As(),Object(r.d)("design:paramtypes",[Da,da,Kr,Fs,Ti,sa])],e)}();function Za(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ya=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Fo,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[Y()]=function(){return this._results[Y()]()},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 Xa=function(){return function(){}}(),Ja={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},eu=function(){function e(e,t){this._compiler=e,this._config=t||Ja}return e.prototype.load=function(e){return this._compiler instanceof Ea?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,i=Object(r.f)(e.split("#"),2),o=i[0],s=i[1];return void 0===s&&(s="default"),n("crnd")(o).then(function(e){return e[s]}).then(function(e){return tu(e,o,s)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=Object(r.f)(e.split("#"),2),i=t[0],o=t[1],s="NgFactory";return void 0===o&&(o="default",s=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[o+s]}).then(function(e){return tu(e,i,o)})},e=Object(r.b)([As(),Object(r.e)(1,st()),Object(r.d)("design:paramtypes",[Ea,Xa])],e)}();function tu(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var nu=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return ru(e,Vi)},e}(),ru=Ur,iu=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return ou()},e}(),ou=function(){for(var e=[],t=0;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]=Bc,e._providers[l]=Kc(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{ht(o)}}function Kc(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var i=n.length;switch(i){case 0:return new t;case 1:return new t(Gc(e,n[0]));case 2:return new t(Gc(e,n[0]),Gc(e,n[1]));case 3:return new t(Gc(e,n[0]),Gc(e,n[1]),Gc(e,n[2]));default:for(var o=new Array(i),s=0;s0?i[n-1]:null,r)}function $c(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,Jc(n,t),Gu.dirtyParentQueries(r),Yc(r),r}function Zc(e,t,n){var r=t?hc(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);wc(n,2,i,o,void 0)}function Yc(e){wc(e,3,null,null,void 0)}function Xc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Jc(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var el=new Object;function tl(e,t,n,r,i,o){return new nl(e,t,n,r,i,o)}var nl=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 Object(r.c)(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=_c(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Gu.createRootView(e,t||[],n,i,r,el),a=qu(s,o).instance;return n&&s.renderer.setAttribute(Hu(s,0).renderElement,"ng-version",Qi.full),new rl(s,new al(s),a)},t}(Ci),rl=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 Object(r.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Vi(Hu(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new pl(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}(Ei);function il(e,t,n){return new ol(e,t,n)}var ol=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 Vi(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new pl(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=pc(e),e=e.parent;return e?new pl(e,t):new pl(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=$c(this._data,e);Gu.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new al(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 Pi||(i=o.get(Ni));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 Qc(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],Jc(o,r),null==i&&(i=o.length),Xc(o,i,s),Gu.dirtyParentQueries(s),Yc(s),Zc(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=$c(this._data,e);t&&Gu.destroyView(t)},e.prototype.detach=function(e){var t=$c(this._data,e);return t?new al(t):null},e}();function sl(e){return new al(e)}var al=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return wc(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(){ac(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{Gu.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Gu.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)),Gu.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Yc(this._view),Gu.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 ul(e,t){return new cl(e,t)}var cl=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.c)(t,e),t.prototype.createEmbeddedView=function(e){return new al(Gu.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Vi(Hu(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Ro);function ll(e,t){return new pl(e,t)}var pl=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=Kr.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Gu.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:Xu(e)},t)},e}();function hl(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Hu(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Uu(e,n.nodeIndex).renderText;if(20240&n.flags)return qu(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function fl(e){return new dl(e.renderer)}var dl=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=Object(r.f)(jc(t),2),i=n[0],o=n[1],s=this.delegate.createElement(o,i);return e&&this.delegate.appendChild(e,s),s},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;n0,r=kl(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,i=t.provider;switch(201347067&t.flags){case 512:return kl(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var s=o.length;switch(s){case 0:return i();case 1:return i(Rl(e,t,n,o[0]));case 2:return i(Rl(e,t,n,o[0]),Rl(e,t,n,o[1]));case 3:return i(Rl(e,t,n,o[0]),Rl(e,t,n,o[1]),Rl(e,t,n,o[2]));default:for(var a=Array(s),u=0;u0)c=v,ip(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var b=c.parent;b&&(b.childFlags|=c.childFlags,b.childMatchedQueries|=c.childMatchedQueries),l=(c=b)&&ip(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Zu,updateRenderer:r||Zu,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:f}}function ip(e){return 0!=(1&e.flags)&&null===e.element.name}function op(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 sp(e,t,n,r){var i=cp(e.root,e.renderer,e,t,n);return lp(i,e.component,r),pp(i),i}function ap(e,t,n){var r=cp(e,e.renderer,null,null,t);return lp(r,n,n),pp(r),r}function up(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,cp(e.root,i,e,t.element.componentProvider,n)}function cp(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 lp(e,t,n){e.component=t,e.context=n}function pp(e){var t;if(fc(e)){var n=e.parentNodeDef;t=Hu(e.parent,n.parent.nodeIndex).renderElement}for(var r=e.def,i=e.nodes,o=0;o0&&Vc(e,t,0,n)&&(f=!0),h>1&&Vc(e,t,1,r)&&(f=!0),h>2&&Vc(e,t,2,i)&&(f=!0),h>3&&Vc(e,t,3,o)&&(f=!0),h>4&&Vc(e,t,4,s)&&(f=!0),h>5&&Vc(e,t,5,a)&&(f=!0),h>6&&Vc(e,t,6,u)&&(f=!0),h>7&&Vc(e,t,7,c)&&(f=!0),h>8&&Vc(e,t,8,l)&&(f=!0),h>9&&Vc(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&&oc(e,t,0,n)&&(h=!0),d>1&&oc(e,t,1,r)&&(h=!0),d>2&&oc(e,t,2,i)&&(h=!0),d>3&&oc(e,t,3,o)&&(h=!0),d>4&&oc(e,t,4,s)&&(h=!0),d>5&&oc(e,t,5,a)&&(h=!0),d>6&&oc(e,t,6,u)&&(h=!0),d>7&&oc(e,t,7,c)&&(h=!0),d>8&&oc(e,t,8,l)&&(h=!0),d>9&&oc(e,t,9,p)&&(h=!0),h){var v=t.text.prefix;d>0&&(v+=np(n,f[0])),d>1&&(v+=np(r,f[1])),d>2&&(v+=np(i,f[2])),d>3&&(v+=np(o,f[3])),d>4&&(v+=np(s,f[4])),d>5&&(v+=np(a,f[5])),d>6&&(v+=np(u,f[6])),d>7&&(v+=np(c,f[7])),d>8&&(v+=np(l,f[8])),d>9&&(v+=np(p,f[9]));var m=Uu(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=qu(e,t.nodeIndex),f=h.instance,d=!1,v=void 0,m=t.bindings.length;return m>0&&ic(e,t,0,n)&&(d=!0,v=Vl(e,h,t,0,n,v)),m>1&&ic(e,t,1,r)&&(d=!0,v=Vl(e,h,t,1,r,v)),m>2&&ic(e,t,2,i)&&(d=!0,v=Vl(e,h,t,2,i,v)),m>3&&ic(e,t,3,o)&&(d=!0,v=Vl(e,h,t,3,o,v)),m>4&&ic(e,t,4,s)&&(d=!0,v=Vl(e,h,t,4,s,v)),m>5&&ic(e,t,5,a)&&(d=!0,v=Vl(e,h,t,5,a,v)),m>6&&ic(e,t,6,u)&&(d=!0,v=Vl(e,h,t,6,u,v)),m>7&&ic(e,t,7,c)&&(d=!0,v=Vl(e,h,t,7,c,v)),m>8&&ic(e,t,8,l)&&(d=!0,v=Vl(e,h,t,8,l,v)),m>9&&ic(e,t,9,p)&&(d=!0,v=Vl(e,h,t,9,p,v)),v&&f.ngOnChanges(v),65536&t.flags&&Bu(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&&oc(e,t,0,n)&&(f=!0),d>1&&oc(e,t,1,r)&&(f=!0),d>2&&oc(e,t,2,i)&&(f=!0),d>3&&oc(e,t,3,o)&&(f=!0),d>4&&oc(e,t,4,s)&&(f=!0),d>5&&oc(e,t,5,a)&&(f=!0),d>6&&oc(e,t,6,u)&&(f=!0),d>7&&oc(e,t,7,c)&&(f=!0),d>8&&oc(e,t,8,l)&&(f=!0),d>9&&oc(e,t,9,p)&&(f=!0),f){var v=zu(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,i,o,s,a,u,c,l,p,h,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&sc(e,t,0,n);h>1&&sc(e,t,1,r);h>2&&sc(e,t,2,i);h>3&&sc(e,t,3,o);h>4&&sc(e,t,4,s);h>5&&sc(e,t,5,a);h>6&&sc(e,t,6,u);h>7&&sc(e,t,7,c);h>8&&sc(e,t,8,l);h>9&&sc(e,t,9,p)}(e,t,r,i,o,s,a,u,c,l,p,h):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);Rp.forEach(function(t,n){if(o.has(D(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:yc(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Xu(n)]=i}})}}(e=e.factory(function(){return Zu})),e}(r))}var Np,Mp,kp,Ip,Fp=new Map,Rp=new Map,Lp=new Map;function Vp(e){var t;Fp.set(e.token,e),"function"==typeof e.token&&(t=D(e.token))&&"function"==typeof t.providedIn&&Rp.set(e.token,e)}function Bp(e,t){var n=_c(t.viewDefFactory),r=_c(n.nodes[0].element.componentView);Lp.set(e,r)}function Up(){Fp.clear(),Rp.clear(),Lp.clear()}function Hp(e){if(0===Fp.size)return e;var t=function(e){for(var t=[],n=null,r=0;r0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=c.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+c.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+c.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=Object(i.b)([Object(r.A)(),Object(i.e)(1,Object(r.O)()),Object(i.e)(1,Object(r.z)(u)),Object(i.d)("design:paramtypes",[o,String])],t)}(a),h=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 Object(i.c)(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 c.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+c.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+c.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t=Object(i.b)([Object(r.A)(),Object(i.e)(1,Object(r.O)()),Object(i.e)(1,Object(r.z)(u)),Object(i.d)("design:paramtypes",[o,String])],t)}(a),f=void 0;var d=["en",[["a","p"],["AM","PM"],f],[["AM","PM"],f,f],[["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"]],f,[["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"]],f,[["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}",f,"{1} 'at' {0}",f],[".",",",";","%","+","-","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}],v={};var m,y,g,b,_,w,E,C={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 O(e,t){return D(N(e)[10],t)}function x(e,t){return D(N(e)[11],t)}function S(e,t){return D(N(e)[12],t)}function j(e,t){var n=N(e),r=n[13][t];if(void 0===r){if(t===w.CurrencyDecimal)return n[13][w.Decimal];if(t===w.CurrencyGroup)return n[13][w.Group]}return r}function A(e,t){return N(e)[14][t]}function T(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 D(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 P(e){var t=Object(i.f)(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}function N(e){var t=e.toLowerCase().replace(/_/g,"-"),n=v[t];if(n)return n;var r=t.split("-")[0];if(n=v[r])return n;if("en"===r)return d;throw new Error('Missing locale data for the locale "'+e+'".')}function M(e,t,n){void 0===n&&(n="en");var r=function(e){return N(e)[17]}(n)[e]||C[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"}(m||(m={})),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"}(y||(y={})),function(e){e[e.Format=0]="Format",e[e.Standalone=1]="Standalone"}(g||(g={})),function(e){e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short"}(b||(b={})),function(e){e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full"}(_||(_={})),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"}(w||(w={})),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"}(E||(E={}));var k=2;var I,F,R,L=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},B=/((?:[^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 U(e,t,n,r){var o=function(e){if(J(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=Object(i.f)(e.split("-").map(function(e){return+e}),3),r=n[0],o=n[1],s=n[2];return new Date(r,o-1,s)}var a=void 0;if(a=e.match(L))return X(a)}var u=new Date(e);if(!J(u))throw new Error('Unable to convert "'+e+'" into a date');return u}(e);t=function e(t,n){var r=function(e){return N(e)[0]}(t);V[r]=V[r]||{};if(V[r][n])return V[r][n];var i="";switch(n){case"shortDate":i=O(t,_.Short);break;case"mediumDate":i=O(t,_.Medium);break;case"longDate":i=O(t,_.Long);break;case"fullDate":i=O(t,_.Full);break;case"shortTime":i=x(t,_.Short);break;case"mediumTime":i=x(t,_.Medium);break;case"longTime":i=x(t,_.Long);break;case"fullTime":i=x(t,_.Full);break;case"short":var o=e(t,"shortTime"),s=e(t,"shortDate");i=H(S(t,_.Short),[o,s]);break;case"medium":var a=e(t,"mediumTime"),u=e(t,"mediumDate");i=H(S(t,_.Medium),[a,u]);break;case"long":var c=e(t,"longTime"),l=e(t,"longDate");i=H(S(t,_.Long),[c,l]);break;case"full":var p=e(t,"fullTime"),h=e(t,"fullDate");i=H(S(t,_.Full),[p,h])}i&&(V[r][n]=i);return i}(n,t)||t;for(var s,a=[];t;){if(!(s=B.exec(t))){a.push(t);break}var u=(a=a.concat(s.slice(1))).pop();if(!u)break;t=u}var c=o.getTimezoneOffset();r&&(c=Y(r,c),o=function(e,t,n){var r=n?-1:1,i=e.getTimezoneOffset(),o=Y(t,i);return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(o-i))}(o,r,!0));var l="";return a.forEach(function(e){var t=function(e){if(Z[e])return Z[e];var t;switch(e){case"G":case"GG":case"GGG":t=W(R.Eras,b.Abbreviated);break;case"GGGG":t=W(R.Eras,b.Wide);break;case"GGGGG":t=W(R.Eras,b.Narrow);break;case"y":t=z(F.FullYear,1,0,!1,!0);break;case"yy":t=z(F.FullYear,2,0,!0,!0);break;case"yyy":t=z(F.FullYear,3,0,!1,!0);break;case"yyyy":t=z(F.FullYear,4,0,!1,!0);break;case"M":case"L":t=z(F.Month,1,1);break;case"MM":case"LL":t=z(F.Month,2,1);break;case"MMM":t=W(R.Months,b.Abbreviated);break;case"MMMM":t=W(R.Months,b.Wide);break;case"MMMMM":t=W(R.Months,b.Narrow);break;case"LLL":t=W(R.Months,b.Abbreviated,g.Standalone);break;case"LLLL":t=W(R.Months,b.Wide,g.Standalone);break;case"LLLLL":t=W(R.Months,b.Narrow,g.Standalone);break;case"w":t=$(1);break;case"ww":t=$(2);break;case"W":t=$(1,!0);break;case"d":t=z(F.Date,1);break;case"dd":t=z(F.Date,2);break;case"E":case"EE":case"EEE":t=W(R.Days,b.Abbreviated);break;case"EEEE":t=W(R.Days,b.Wide);break;case"EEEEE":t=W(R.Days,b.Narrow);break;case"EEEEEE":t=W(R.Days,b.Short);break;case"a":case"aa":case"aaa":t=W(R.DayPeriods,b.Abbreviated);break;case"aaaa":t=W(R.DayPeriods,b.Wide);break;case"aaaaa":t=W(R.DayPeriods,b.Narrow);break;case"b":case"bb":case"bbb":t=W(R.DayPeriods,b.Abbreviated,g.Standalone,!0);break;case"bbbb":t=W(R.DayPeriods,b.Wide,g.Standalone,!0);break;case"bbbbb":t=W(R.DayPeriods,b.Narrow,g.Standalone,!0);break;case"B":case"BB":case"BBB":t=W(R.DayPeriods,b.Abbreviated,g.Format,!0);break;case"BBBB":t=W(R.DayPeriods,b.Wide,g.Format,!0);break;case"BBBBB":t=W(R.DayPeriods,b.Narrow,g.Format,!0);break;case"h":t=z(F.Hours,1,-12);break;case"hh":t=z(F.Hours,2,-12);break;case"H":t=z(F.Hours,1);break;case"HH":t=z(F.Hours,2);break;case"m":t=z(F.Minutes,1);break;case"mm":t=z(F.Minutes,2);break;case"s":t=z(F.Seconds,1);break;case"ss":t=z(F.Seconds,2);break;case"S":t=z(F.FractionalSeconds,1);break;case"SS":t=z(F.FractionalSeconds,2);break;case"SSS":t=z(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=G(I.Short);break;case"ZZZZZ":t=G(I.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=G(I.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=G(I.Long);break;default:return null}return Z[e]=t,t}(e);l+=t?t(o,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function H(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function q(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.length0||u>-n)&&(u+=n),e===F.Hours)0===u&&-12===n&&(u=12);else if(e===F.FractionalSeconds)return a=t,q(u,3).substr(0,a);var c=j(s,w.MinusSign);return q(u,t,c,r,i)}}function W(e,t,n,r){return void 0===n&&(n=g.Format),void 0===r&&(r=!1),function(i,o){return function(e,t,n,r,i,o){switch(n){case R.Months:return function(e,t,n){var r=N(e),i=D([r[5],r[6]],t);return D(i,n)}(t,i,r)[e.getMonth()];case R.Days:return function(e,t,n){var r=N(e),i=D([r[3],r[4]],t);return D(i,n)}(t,i,r)[e.getDay()];case R.DayPeriods:var s=e.getHours(),a=e.getMinutes();if(o){var u,c=function(e){var t=N(e);return T(t),(t[19][2]||[]).map(function(e){return"string"==typeof e?P(e):[P(e[0]),P(e[1])]})}(t),l=function(e,t,n){var r=N(e);T(r);var i=D([r[19][0],r[19][1]],t)||[];return D(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&&(s0?Math.floor(i/60):Math.ceil(i/60);switch(e){case I.Short:return(i>=0?"+":"")+q(s,2,o)+q(Math.abs(i%60),2,o);case I.ShortGMT:return"GMT"+(i>=0?"+":"")+q(s,1,o);case I.Long:return"GMT"+(i>=0?"+":"")+q(s,2,o)+":"+q(Math.abs(i%60),2,o);case I.Extended:return 0===r?"Z":(i>=0?"+":"")+q(s,2,o)+":"+q(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"}(I||(I={})),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"}(F||(F={})),function(e){e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras"}(R||(R={}));var K=0,Q=4;function $(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,K,1).getDay(),new Date(s,0,1+(a<=Q?Q:Q+7)-a)),p=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(Q-o.getDay()))).getTime()-l.getTime();i=1+Math.round(p/6048e5)}return q(i,e,j(r,w.MinusSign))}}var Z={};function Y(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function X(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 J(e){return e instanceof Date&&!isNaN(e.valueOf())}var ee=/^(\d+)?\.((\d+)(-(\d+))?)?$/,te=22,ne=".",re="0",ie=";",oe=",",se="#",ae="\xa4",ue="%";function ce(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(ne))>-1&&(s=s.replace(ne,""));(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)===re;r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;s.charAt(o)===re;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}n>te&&(t=t.splice(0,te-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(ee);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=he(d)),null!=v&&(p=he(v)),null!=m?h=he(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=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=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,b=c.exponent,_=[];for(u=y.every(function(e){return!e});g0?_=y.splice(g,y.length):(_=y,y=[0]);var E=[];for(y.length>=t.lgSize&&E.unshift(y.splice(-t.lgSize,y.length).join(""));y.length>t.gSize;)E.unshift(y.splice(-t.gSize,y.length).join(""));y.length&&E.unshift(y.join("")),a=E.join(j(n,r)),_.length&&(a+=j(n,i)+_.join("")),b&&(a+=j(n,w.Exponential)+"+"+b)}else a=j(n,w.Infinity);return a=e<0&&!u?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf}function le(e,t,n,r,i){var o=pe(A(t,m.Currency),j(t,w.MinusSign));return o.minFrac=function(e){var t,n=C[e];return n&&(t=n[2]),"number"==typeof t?t:k}(r),o.maxFrac=o.minFrac,ce(e,o,t,w.CurrencyGroup,w.CurrencyDecimal,i).replace(ae,n).replace(ae,"")}function pe(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(ie),i=r[0],o=r[1],s=-1!==i.indexOf(ne)?i.split(ne):[i.substring(0,i.lastIndexOf(re)+1),i.substring(i.lastIndexOf(re)+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf(se));for(var c=0;c-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 me=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(i.c)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return N(e)[18]}(t||this.locale)(e)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},t=Object(i.b)([Object(r.A)(),Object(i.e)(0,Object(r.z)(r.G)),Object(i.e)(1,Object(r.O)()),Object(i.e)(1,Object(r.z)(fe)),Object(i.d)("design:paramtypes",[String,Object])],t)}(de);function ye(e,t){var n,r;t=encodeURIComponent(t);try{for(var o=Object(i.h)(e.split(";")),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.indexOf("="),c=Object(i.f)(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),l=c[0],p=c[1];if(l.trim()===t)return decodeURIComponent(p)}}catch(h){n={error:h}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var ge=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&&(Object(r.Ob)(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 "+Object(r.dc)(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)})},Object(i.b)([Object(r.D)("class"),Object(i.d)("design:type",String),Object(i.d)("design:paramtypes",[String])],e.prototype,"klass",null),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngClass",null),e=Object(i.b)([Object(r.s)({selector:"[ngClass]"}),Object(i.d)("design:paramtypes",[r.E,r.F,r.t,r.W])],e)}(),be=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(r.L);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.p)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},e.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",r.ib)],e.prototype,"ngComponentOutlet",void 0),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",r.C)],e.prototype,"ngComponentOutletInjector",void 0),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Array)],e.prototype,"ngComponentOutletContent",void 0),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",r.J)],e.prototype,"ngComponentOutletNgModuleFactory",void 0),e=Object(i.b)([Object(r.s)({selector:"[ngComponentOutlet]"}),Object(i.d)("design:paramtypes",[r.kb])],e)}(),_e=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}(),we=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){Object(r.tb)()&&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 _e(null,t._ngForOf,-1,-1),i),s=new Ee(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 Ee(e,o);n.push(s)}});for(var r=0;r1?"short":"narrow":"long",n}function Ke(e){return e.reduce(function(e,t){return Object(i.a)({},e,t)},{})}function Qe(e){return function(t,n){return He(t,n,e)}}var $e=new Map;var Ze=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=Le[e];if(r)return r(t,n);var i=e,o=$e.get(i);if(!o){o=[];var s=void 0;Re.exec(e);for(var a=e;a;)(s=Re.exec(a))?a=(o=o.concat(s.slice(1))).pop():(o.push(a),a=null);$e.set(i,o)}return o.reduce(function(e,r){var i=Ve[r];return e+(i?i(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),Ye=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()),Xe(e))r=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=Object(i.f)(e.split("-").map(function(e){return parseInt(e,10)}),3),s=o[0],a=o[1],u=o[2];r=new Date(s,a-1,u)}else r=new Date(e);else r=new Date(parseFloat(e));if(!Xe(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(L)))throw ke(t,e);r=X(c)}return Ze.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=Object(i.b)([Object(r.T)({name:"date",pure:!0}),Object(i.e)(0,Object(r.z)(r.G)),Object(i.d)("design:paramtypes",[String])],e)}();function Xe(e){return e instanceof Date&&!isNaN(e.valueOf())}function Je(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 ke(e,n);var a,u,c;if(r!==m.Currency&&(a=1,u=0,c=3),i){var l=i.match(ee);if(null===l)throw new Error(i+" is not a valid digit info for number pipes");null!=l[1]&&(a=he(l[1])),null!=l[3]&&(u=he(l[3])),null!=l[5]&&(c=he(l[5]))}return Fe.format(n,t,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var et=[function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){return Je(t,this._locale,e,m.Decimal,n)},e=t=Object(i.b)([Object(r.T)({name:"number"}),Object(i.e)(0,Object(r.z)(r.G)),Object(i.d)("design:paramtypes",[String])],e)}(),function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){return Je(t,this._locale,e,m.Percent,n)},e=t=Object(i.b)([Object(r.T)({name:"percent"}),Object(i.e)(0,Object(r.z)(r.G)),Object(i.d)("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),Je(t,this._locale,e,m.Currency,i,n,r)},e=t=Object(i.b)([Object(r.T)({name:"currency"}),Object(i.e)(0,Object(r.z)(r.G)),Object(i.d)("design:paramtypes",[String])],e)}(),Ye],tt=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}(),nt=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}()),rt=new tt,it=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,r.mb.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(Object(r.Qb)(e))return nt;if(Object(r.Pb)(e))return rt;throw ke(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=Object(i.b)([Object(r.T)({name:"async",pure:!1}),Object(i.d)("design:paramtypes",[r.k])],e)}(),ot=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw ke(t,e);return e.toLowerCase()},e=t=Object(i.b)([Object(r.T)({name:"lowercase"})],e)}(),st=/(?:[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,at=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw ke(t,e);return e.replace(st,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})},e=t=Object(i.b)([Object(r.T)({name:"titlecase"})],e)}(),ut=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw ke(t,e);return e.toUpperCase()},e=t=Object(i.b)([Object(r.T)({name:"uppercase"})],e)}(),ct=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 U(e,n,i||this.locale,r)}catch(o){throw ke(t,o.message)}},e=t=Object(i.b)([Object(r.T)({name:"date",pure:!0}),Object(i.e)(0,Object(r.z)(r.G)),Object(i.d)("design:paramtypes",[String])],e)}(),lt=/#/g,pt=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 ke(t,n);return n[ve(e,Object.keys(n),this._localization,r)].replace(lt,e.toString())},e=t=Object(i.b)([Object(r.T)({name:"i18nPlural",pure:!0}),Object(i.d)("design:paramtypes",[de])],e)}(),ht=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 ke(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},e=t=Object(i.b)([Object(r.T)({name:"i18nSelect",pure:!0})],e)}(),ft=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e=Object(i.b)([Object(r.T)({name:"json",pure:!1})],e)}();var dt=function(){function e(e){this.differs=e,this.keyValues=[]}return e.prototype.transform=function(e,t){var n=this;if(void 0===t&&(t=vt),!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=Object(i.b)([Object(r.T)({name:"keyvalue",pure:!1}),Object(i.d)("design:paramtypes",[r.F])],e)}();function vt(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=0&&n<=1?y.One:y.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?y.One:y.Other;case"ar":return 0===n?y.Zero:1===n?y.One:2===n?y.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?y.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?y.Many:y.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?y.One:y.Other;case"be":return n%10==1&&n%100!=11?y.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?y.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?y.Many:y.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?y.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?y.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)?y.Few:0!==n&&n%1e6==0?y.Many:y.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?y.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)?y.Few:y.Other;case"cs":case"sk":return 1===i&&0===o?y.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?y.Few:0!==o?y.Many:y.Other;case"cy":return 0===n?y.Zero:1===n?y.One:2===n?y.Two:3===n?y.Few:6===n?y.Many:y.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?y.One:y.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?y.One:0===o&&i%100==2||s%100==2?y.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?y.Few:y.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?y.One:y.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?y.One:y.Other;case"ga":return 1===n?y.One:2===n?y.Two:n===Math.floor(n)&&n>=3&&n<=6?y.Few:n===Math.floor(n)&&n>=7&&n<=10?y.Many:y.Other;case"gd":return 1===n||11===n?y.One:2===n||12===n?y.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?y.Few:y.Other;case"gv":return 0===o&&i%10==1?y.One:0===o&&i%10==2?y.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?y.Many:y.Other:y.Few;case"he":return 1===i&&0===o?y.One:2===i&&0===o?y.Two:0!==o||n>=0&&n<=10||n%10!=0?y.Other:y.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?y.One:y.Other;case"ksh":return 0===n?y.Zero:1===n?y.One:y.Other;case"kw":case"naq":case"se":case"smn":return 1===n?y.One:2===n?y.Two:y.Other;case"lag":return 0===n?y.Zero:0!==i&&1!==i||0===n?y.Other:y.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)?y.Few:0!==s?y.Many:y.Other:y.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?y.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?y.One:y.Other;case"mk":return 0===o&&i%10==1||s%10==1?y.One:y.Other;case"mt":return 1===n?y.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?y.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?y.Many:y.Other;case"pl":return 1===i&&0===o?y.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?y.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?y.Many:y.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?y.One:y.Other;case"ro":return 1===i&&0===o?y.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?y.Few:y.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?y.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?y.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?y.Many:y.Other;case"shi":return 0===i||1===n?y.One:n===Math.floor(n)&&n>=2&&n<=10?y.Few:y.Other;case"si":return 0===n||1===n||0===i&&1===s?y.One:y.Other;case"sl":return 0===o&&i%100==1?y.One:0===o&&i%100==2?y.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?y.Few:y.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?y.One:y.Other;default:return y.Other}},Ot=(function(){function e(){}e=Object(i.b)([Object(r.I)({declarations:[et],exports:[et],providers:[{provide:fe,useValue:Ct}]})],e)}(),new r.B("DocumentToken")),xt="browser",St="server";function jt(e){return e===St}new r.jb("7.2.14");var At=function(){function e(){}return e.ngInjectableDef=Object(r.ob)({providedIn:"root",factory:function(){return new Tt(Object(r.sb)(Ot),window,Object(r.sb)(r.u))}}),e}(),Tt=function(){function e(e,t,n){this.document=e,this.window=t,this.errorHandler=n,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()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{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)}catch(r){this.errorHandler.handleError(r)}}},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}();!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){}}()},JcRv:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("xTla"),i=function(e){return function(t){var n=e[r.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}},K9Ia:function(e,t,n){"use strict";var r=n("mrSG"),i=n("6blF"),o=n("FFOo"),s=n("pugT"),a=n("8g8A"),u=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.c(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}(s.a),c=n("L/V9");n.d(t,"b",function(){return l}),n.d(t,"a",function(){return p});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.c(t,e),t}(o.a),p=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 r.c(t,e),t.prototype[c.a]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i",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"},h="\ue500";p.ngsp=h;var f,d,v=function(){function e(e){var t=void 0===e?{}:e,n=t.closedByChildren,i=t.requiredParents,o=t.implicitNamespacePrefix,s=t.contentType,a=void 0===s?r.PARSABLE_DATA:s,u=t.closedByParent,c=void 0!==u&&u,l=t.isVoid,p=void 0!==l&&l,h=t.ignoreFirstLf,f=void 0!==h&&h,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(e){return d.closedByChildren[e]=!0}),this.isVoid=p,this.closedByParent=c||p,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return d.requiredParents[e]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=a,this.ignoreFirstLf=f}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 m(e){return d||(f=new v,d={base:new v({isVoid:!0}),meta:new v({isVoid:!0}),area:new v({isVoid:!0}),embed:new v({isVoid:!0}),link:new v({isVoid:!0}),img:new v({isVoid:!0}),input:new v({isVoid:!0}),param:new v({isVoid:!0}),hr:new v({isVoid:!0}),br:new v({isVoid:!0}),source:new v({isVoid:!0}),track:new v({isVoid:!0}),wbr:new v({isVoid:!0}),p:new v({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 v({closedByChildren:["tbody","tfoot"]}),tbody:new v({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new v({closedByChildren:["tbody"],closedByParent:!0}),tr:new v({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new v({closedByChildren:["td","th"],closedByParent:!0}),th:new v({closedByChildren:["td","th"],closedByParent:!0}),col:new v({requiredParents:["colgroup"],isVoid:!0}),svg:new v({implicitNamespacePrefix:"svg"}),math:new v({implicitNamespacePrefix:"math"}),li:new v({closedByChildren:["li"],closedByParent:!0}),dt:new v({closedByChildren:["dt","dd"]}),dd:new v({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new v({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new v({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new v({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new v({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new v({closedByChildren:["optgroup"],closedByParent:!0}),option:new v({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new v({ignoreFirstLf:!0}),listing:new v({ignoreFirstLf:!0}),style:new v({contentType:r.RAW_TEXT}),script:new v({contentType:r.RAW_TEXT}),title:new v({contentType:r.ESCAPABLE_RAW_TEXT}),textarea:new v({contentType:r.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),d[e.toLowerCase()]||f}var y,g,b=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),_=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(b.lastIndex=0;n=b.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":"<"+e+t+n+">"},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;t1&&(n=new E(e),this._listContexts.push(n));for(var r=0;r0)||this.listContext&&this.listContext.alreadyMatched||(n=!w.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}(),O=$("Inject",function(e){return{token:e}}),x=$("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),S=$("Attribute",function(e){return{attributeName:e}}),j=$("ContentChildren",function(e,t){return void 0===t&&(t={}),Object(i.a)({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),A=$("ContentChild",function(e,t){return void 0===t&&(t={}),Object(i.a)({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),T=$("ViewChildren",function(e,t){return void 0===t&&(t={}),Object(i.a)({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),D=$("ViewChild",function(e,t){return Object(i.a)({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),P=$("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"}(y||(y={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(g||(g={}));var N,M,k=$("Component",function(e){return void 0===e&&(e={}),Object(i.a)({changeDetection:g.Default},e)}),I=$("Pipe",function(e){return Object(i.a)({pure:!0},e)}),F=$("Input",function(e){return{bindingPropertyName:e}}),R=$("Output",function(e){return{bindingPropertyName:e}}),L=$("HostBinding",function(e){return{hostPropertyName:e}}),V=$("HostListener",function(e,t){return{eventName:e,args:t}}),B=$("NgModule",function(e){return e}),U=$("Injectable",function(e){return void 0===e&&(e={}),e}),H={name:"custom-elements"},q={name:"no-errors-schema"},z=$("Optional"),W=$("Self"),G=$("SkipSelf"),K=$("Host"),Q=Function;function $(e,t){function n(){for(var n=[],r=0;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 Lt(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(Lt).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 Vt(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function Bt(e){return!!e&&"function"==typeof e.then}var Ut=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(".")}}(),Ht="undefined"!=typeof window&&window,qt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,zt="undefined"!=typeof global&&global||Ht||qt,Wt={},Gt=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return Object(i.c)(t,e),t.prototype.visitExpression=function(e,t){return t===Wt?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}(de),Kt=function(){function e(){this.statements=[],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 Se||e instanceof Gt)return e;var n=this.keyOf(e),r=this.literals.get(n),i=!1;if(r||(r=new Gt(e),this.literals.set(n,r),i=!0),!i&&!r.shared||i&&t){var o=this.freshName();this.statements.push(pt(o).set(e).toDeclStmt(ae,[Ee.Final])),r.fixup(pt(o))}return r},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 Gt(n.importExpr(e).prop(a)),i.set(e,o),s=!0}if(!s&&!o.shared||s&&r){var u=this.freshName();this.statements.push(pt(u).set(o.resolved).toDeclStmt(ae,[Ee.Final])),o.fixup(pt(u))}return o},e.prototype.getLiteralFactory=function(e){if(e instanceof Le){var t=e.entries.map(function(e){return e.isConstant()?e:bt(null)}),n=this.keyOf(vt(t));return this._getLiteralFactory(n,e.entries,function(e){return vt(e)})}var r=mt(e.entries.map(function(e){return{key:e.key,value:e.value.isConstant()?e.value:bt(null),quoted:e.quoted}}));n=this.keyOf(r);return this._getLiteralFactory(n,e.entries.map(function(e){return e.value}),function(t){return mt(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):pt("a"+t)}),a=yt(s.filter(Zt).map(function(e){return new Me(e.name,se)}),[new Qe(n(s))],ae),u=this.freshName();this.statements.push(pt(u).set(a).toDeclStmt(ae,[Ee.Final])),i=pt(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 Pt("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 Pt("Unknown definition kind "+e),""},e.prototype.freshName=function(){return this.uniqueName("_c")},e.prototype.keyOf=function(e){return e.visitExpression(new Qt,Wt)},e}(),Qt=function(){function e(){this.visitWrappedNodeExpr=$t,this.visitWriteVarExpr=$t,this.visitWriteKeyExpr=$t,this.visitWritePropExpr=$t,this.visitInvokeMethodExpr=$t,this.visitInvokeFunctionExpr=$t,this.visitInstantiateExpr=$t,this.visitConditionalExpr=$t,this.visitNotExpr=$t,this.visitAssertNotNullExpr=$t,this.visitCastExpr=$t,this.visitFunctionExpr=$t,this.visitBinaryOperatorExpr=$t,this.visitReadPropExpr=$t,this.visitReadKeyExpr=$t,this.visitCommaExpr=$t}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 $t(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function Zt(e){return e instanceof me}var Yt="@angular/core",Xt=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:Yt},e.ElementRef={name:"ElementRef",moduleName:Yt},e.NgModuleRef={name:"NgModuleRef",moduleName:Yt},e.ViewContainerRef={name:"ViewContainerRef",moduleName:Yt},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:Yt},e.QueryList={name:"QueryList",moduleName:Yt},e.TemplateRef={name:"TemplateRef",moduleName:Yt},e.Renderer2={name:"Renderer2",moduleName:Yt},e.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:Yt},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:Yt},e.ComponentFactory={name:"ComponentFactory",moduleName:Yt},e.ComponentRef={name:"ComponentRef",moduleName:Yt},e.NgModuleFactory={name:"NgModuleFactory",moduleName:Yt},e.createModuleFactory={name:"\u0275cmf",moduleName:Yt},e.moduleDef={name:"\u0275mod",moduleName:Yt},e.moduleProviderDef={name:"\u0275mpd",moduleName:Yt},e.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:Yt},e.inject={name:"inject",moduleName:Yt},e.INJECTOR={name:"INJECTOR",moduleName:Yt},e.Injector={name:"Injector",moduleName:Yt},e.defineInjectable={name:"defineInjectable",moduleName:Yt},e.InjectableDef={name:"\u0275InjectableDef",moduleName:Yt},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Yt},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Yt},e.SecurityContext={name:"SecurityContext",moduleName:Yt},e.LOCALE_ID={name:"LOCALE_ID",moduleName:Yt},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:Yt},e.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:Yt},e.interpolate={name:"\u0275interpolate",moduleName:Yt},e.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:Yt},e.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:Yt},e.Renderer={name:"Renderer",moduleName:Yt},e.viewDef={name:"\u0275vid",moduleName:Yt},e.elementDef={name:"\u0275eld",moduleName:Yt},e.anchorDef={name:"\u0275and",moduleName:Yt},e.textDef={name:"\u0275ted",moduleName:Yt},e.directiveDef={name:"\u0275did",moduleName:Yt},e.providerDef={name:"\u0275prd",moduleName:Yt},e.queryDef={name:"\u0275qud",moduleName:Yt},e.pureArrayDef={name:"\u0275pad",moduleName:Yt},e.pureObjectDef={name:"\u0275pod",moduleName:Yt},e.purePipeDef={name:"\u0275ppd",moduleName:Yt},e.pipeDef={name:"\u0275pid",moduleName:Yt},e.nodeValue={name:"\u0275nov",moduleName:Yt},e.ngContentDef={name:"\u0275ncd",moduleName:Yt},e.unwrapValue={name:"\u0275unv",moduleName:Yt},e.createRendererType2={name:"\u0275crt",moduleName:Yt},e.RendererType2={name:"RendererType2",moduleName:Yt},e.ViewDefinition={name:"\u0275ViewDefinition",moduleName:Yt},e.createComponentFactory={name:"\u0275ccf",moduleName:Yt},e.setClassMetadata={name:"\u0275setClassMetadata",moduleName:Yt},e}();function Jt(e){return{identifier:{reference:e}}}function en(e,t){return Jt(e.resolveExternalReference(t))}var tn=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}(),nn=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 tn(e,t,n),this.cache.set(r,i)),i},e}(),rn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function on(e){return e.replace(/\W/g,"_")}var sn,an=0;function un(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof tn)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Lt(t);return n.indexOf("(")>=0?(n="anonymous_"+an++,t.__anonymousType=n):n=on(n),n}function cn(e){var t=e.reference;return t instanceof tn?t.filePath:"./"+Lt(t)}function ln(e,t){return"View_"+un({reference:e})+"_"+t}function pn(e){return"RenderType_"+un({reference:e})}function hn(e){return un({reference:e})+"NgFactory"}function fn(e){return null!=e.value?on(e.value):un(e.identifier)}function dn(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"}(sn||(sn={}));var vn=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=wn(r),this.styleUrls=wn(i)}}(),mn=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=wn(o),this.styleUrls=wn(s),this.externalStylesheets=wn(a),this.animations=u?Cn(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}(),yn=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,b=e.componentViewType,_=e.rendererType,w=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=wn(h),this.viewProviders=wn(f),this.queries=wn(d),this.guards=v,this.viewQueries=wn(m),this.entryComponents=wn(y),this.template=g,this.componentViewType=b,this.rendererType=_,this.componentFactory=w}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,b=t.rendererType,_=t.componentFactory,w={},E={},C={};null!=l&&Object.keys(l).forEach(function(e){var t=l[e],n=e.match(rn);null===n?C[e]=t:null!=n[1]?E[n[1]]=t:null!=n[2]&&(w[n[2]]=t)});var O={};null!=u&&u.forEach(function(e){var t=Et(e,[e,e]);O[t[0]]=t[1]});var x={};return null!=c&&c.forEach(function(e){var t=Et(e,[e,e]);x[t[0]]=t[1]}),new e({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:O,outputs:x,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:b,componentFactory:_})},e.prototype.toSummary=function(){return{summaryKind:sn.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}(),gn=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:sn.Pipe,type:this.type,name:this.name,pure:this.pure}},e}(),bn=(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=wn(r),this.exportedDirectives=wn(i),this.declaredPipes=wn(o),this.exportedPipes=wn(s),this.providers=wn(n),this.entryComponents=wn(a),this.bootstrapComponents=wn(u),this.importedModules=wn(c),this.exportedModules=wn(l),this.schemas=wn(p),this.id=f||null,this.transitiveModule=h||null}return e.prototype.toSummary=function(){var e=this.transitiveModule;return{summaryKind:sn.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}},e}()),_n=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 wn(e){return e||[]}var En=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 Cn(e){return e.reduce(function(e,t){var n=Array.isArray(t)?Cn(t):t;return e.concat(n)},[])}function On(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function xn(e,t,n){var r;return r=n.isInline?t.type.reference instanceof tn?t.type.reference.filePath+"."+t.type.reference.name+".html":un(e)+"/"+un(t.type)+".html":n.templateUrl,t.type.reference instanceof tn?r:On(r)}var Sn="@angular/core",jn=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"\u0275namespaceHTML",moduleName:Sn},e.namespaceMathML={name:"\u0275namespaceMathML",moduleName:Sn},e.namespaceSVG={name:"\u0275namespaceSVG",moduleName:Sn},e.element={name:"\u0275element",moduleName:Sn},e.elementStart={name:"\u0275elementStart",moduleName:Sn},e.elementEnd={name:"\u0275elementEnd",moduleName:Sn},e.elementProperty={name:"\u0275elementProperty",moduleName:Sn},e.componentHostSyntheticProperty={name:"\u0275componentHostSyntheticProperty",moduleName:Sn},e.elementAttribute={name:"\u0275elementAttribute",moduleName:Sn},e.elementClassProp={name:"\u0275elementClassProp",moduleName:Sn},e.elementContainerStart={name:"\u0275elementContainerStart",moduleName:Sn},e.elementContainerEnd={name:"\u0275elementContainerEnd",moduleName:Sn},e.elementStyling={name:"\u0275elementStyling",moduleName:Sn},e.elementHostAttrs={name:"\u0275elementHostAttrs",moduleName:Sn},e.elementStylingMap={name:"\u0275elementStylingMap",moduleName:Sn},e.elementStyleProp={name:"\u0275elementStyleProp",moduleName:Sn},e.elementStylingApply={name:"\u0275elementStylingApply",moduleName:Sn},e.containerCreate={name:"\u0275container",moduleName:Sn},e.nextContext={name:"\u0275nextContext",moduleName:Sn},e.templateCreate={name:"\u0275template",moduleName:Sn},e.text={name:"\u0275text",moduleName:Sn},e.textBinding={name:"\u0275textBinding",moduleName:Sn},e.bind={name:"\u0275bind",moduleName:Sn},e.enableBindings={name:"\u0275enableBindings",moduleName:Sn},e.disableBindings={name:"\u0275disableBindings",moduleName:Sn},e.allocHostVars={name:"\u0275allocHostVars",moduleName:Sn},e.getCurrentView={name:"\u0275getCurrentView",moduleName:Sn},e.restoreView={name:"\u0275restoreView",moduleName:Sn},e.interpolation1={name:"\u0275interpolation1",moduleName:Sn},e.interpolation2={name:"\u0275interpolation2",moduleName:Sn},e.interpolation3={name:"\u0275interpolation3",moduleName:Sn},e.interpolation4={name:"\u0275interpolation4",moduleName:Sn},e.interpolation5={name:"\u0275interpolation5",moduleName:Sn},e.interpolation6={name:"\u0275interpolation6",moduleName:Sn},e.interpolation7={name:"\u0275interpolation7",moduleName:Sn},e.interpolation8={name:"\u0275interpolation8",moduleName:Sn},e.interpolationV={name:"\u0275interpolationV",moduleName:Sn},e.pureFunction0={name:"\u0275pureFunction0",moduleName:Sn},e.pureFunction1={name:"\u0275pureFunction1",moduleName:Sn},e.pureFunction2={name:"\u0275pureFunction2",moduleName:Sn},e.pureFunction3={name:"\u0275pureFunction3",moduleName:Sn},e.pureFunction4={name:"\u0275pureFunction4",moduleName:Sn},e.pureFunction5={name:"\u0275pureFunction5",moduleName:Sn},e.pureFunction6={name:"\u0275pureFunction6",moduleName:Sn},e.pureFunction7={name:"\u0275pureFunction7",moduleName:Sn},e.pureFunction8={name:"\u0275pureFunction8",moduleName:Sn},e.pureFunctionV={name:"\u0275pureFunctionV",moduleName:Sn},e.pipeBind1={name:"\u0275pipeBind1",moduleName:Sn},e.pipeBind2={name:"\u0275pipeBind2",moduleName:Sn},e.pipeBind3={name:"\u0275pipeBind3",moduleName:Sn},e.pipeBind4={name:"\u0275pipeBind4",moduleName:Sn},e.pipeBindV={name:"\u0275pipeBindV",moduleName:Sn},e.i18n={name:"\u0275i18n",moduleName:Sn},e.i18nAttributes={name:"\u0275i18nAttributes",moduleName:Sn},e.i18nExp={name:"\u0275i18nExp",moduleName:Sn},e.i18nStart={name:"\u0275i18nStart",moduleName:Sn},e.i18nEnd={name:"\u0275i18nEnd",moduleName:Sn},e.i18nApply={name:"\u0275i18nApply",moduleName:Sn},e.i18nPostprocess={name:"\u0275i18nPostprocess",moduleName:Sn},e.load={name:"\u0275load",moduleName:Sn},e.loadQueryList={name:"\u0275loadQueryList",moduleName:Sn},e.pipe={name:"\u0275pipe",moduleName:Sn},e.projection={name:"\u0275projection",moduleName:Sn},e.projectionDef={name:"\u0275projectionDef",moduleName:Sn},e.reference={name:"\u0275reference",moduleName:Sn},e.inject={name:"inject",moduleName:Sn},e.injectAttribute={name:"\u0275injectAttribute",moduleName:Sn},e.directiveInject={name:"\u0275directiveInject",moduleName:Sn},e.templateRefExtractor={name:"\u0275templateRefExtractor",moduleName:Sn},e.defineBase={name:"\u0275defineBase",moduleName:Sn},e.BaseDef={name:"\u0275BaseDef",moduleName:Sn},e.defineComponent={name:"\u0275defineComponent",moduleName:Sn},e.ComponentDefWithMeta={name:"\u0275ComponentDefWithMeta",moduleName:Sn},e.defineDirective={name:"\u0275defineDirective",moduleName:Sn},e.DirectiveDefWithMeta={name:"\u0275DirectiveDefWithMeta",moduleName:Sn},e.InjectorDef={name:"\u0275InjectorDef",moduleName:Sn},e.defineInjector={name:"defineInjector",moduleName:Sn},e.NgModuleDefWithMeta={name:"\u0275NgModuleDefWithMeta",moduleName:Sn},e.defineNgModule={name:"\u0275defineNgModule",moduleName:Sn},e.PipeDefWithMeta={name:"\u0275PipeDefWithMeta",moduleName:Sn},e.definePipe={name:"\u0275definePipe",moduleName:Sn},e.query={name:"\u0275query",moduleName:Sn},e.queryRefresh={name:"\u0275queryRefresh",moduleName:Sn},e.registerContentQuery={name:"\u0275registerContentQuery",moduleName:Sn},e.NgOnChangesFeature={name:"\u0275NgOnChangesFeature",moduleName:Sn},e.InheritDefinitionFeature={name:"\u0275InheritDefinitionFeature",moduleName:Sn},e.ProvidersFeature={name:"\u0275ProvidersFeature",moduleName:Sn},e.listener={name:"\u0275listener",moduleName:Sn},e.getFactoryOf={name:"\u0275getFactoryOf",moduleName:Sn},e.getInheritedFactory={name:"\u0275getInheritedFactory",moduleName:Sn},e.sanitizeHtml={name:"\u0275sanitizeHtml",moduleName:Sn},e.sanitizeStyle={name:"\u0275sanitizeStyle",moduleName:Sn},e.defaultStyleSanitizer={name:"\u0275defaultStyleSanitizer",moduleName:Sn},e.sanitizeResourceUrl={name:"\u0275sanitizeResourceUrl",moduleName:Sn},e.sanitizeScript={name:"\u0275sanitizeScript",moduleName:Sn},e.sanitizeUrl={name:"\u0275sanitizeUrl",moduleName:Sn},e}(),An=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=[]}}(),Tn=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Dn=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),Pn=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}(),Nn=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}(),Mn=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}(),kn=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}(),In=function(){function e(){}return e.prototype.visitText=function(e,t){return new Tn(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 Dn(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 Pn(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 Nn(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new Mn(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new kn(e.value,e.name,e.sourceSpan)},e}(),Fn=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}();function Rn(e){return e.id||function(e){var t,n,r=Rt(e),o=function(e,t){for(var n=Array(e.length+3>>>2),r=0;r>5]|=128<<24-s%32,o[15+(s+64>>9<<4)]=s;for(var d=0;d>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(Jn([c,l,p,h,f]))}((t=e.nodes,t.map(function(e){return e.visit(Bn,null)})).join("")+"["+e.meaning+"]");var t}function Ln(e){if(e.id)return e.id;var t=new Hn;return function(e,t){var n,r=Object(i.f)(zn(e),2),o=r[0],s=r[1];if(t){var a=Object(i.f)(zn(t),2),u=a[0],c=a[1];n=Object(i.f)(function(e,t){var n=Object(i.f)(e,2),r=n[0],o=n[1],s=Object(i.f)(t,2),a=s[0],u=s[1],c=Object(i.f)(Qn(o,u),2),l=c[0],p=c[1];return[Kn(Kn(r,a),l),p]}(function(e,t){var n=Object(i.f)(e,2),r=n[0],o=n[1];return[r<>>32-t,o<>>32-t]}([o,s],1),[u,c]),2),o=n[0],s=n[1]}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=er(t,tr(Yn(e,r),n)),n=tr(256,n);return t.split("").reverse().join("")}(Jn([2147483647&o,s]))}(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}var Vn=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?'':''+e.children.map(function(e){return e.visit(n)}).join(", ")+''},e.prototype.visitPlaceholder=function(e,t){return e.value?''+e.value+"":''},e.prototype.visitIcuPlaceholder=function(e,t){return''+e.value.visit(this)+""},e}(),Bn=new Vn;var Un,Hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(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}(Vn);function qn(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 zn(e){var t=Rt(e),n=Object(i.f)([Wn(t,0),Wn(t,102072)],2),r=n[0],o=n[1];return 0!=r||0!=o&&1!=o||(r^=319790063,o^=-1801410264),[r,o]}function Wn(e,t){var n,r,o=Object(i.f)([2654435769,2654435769],2),s=o[0],a=o[1],u=e.length;for(r=0;r+12<=u;r+=12)s=Kn(s,Xn(e,r,Un.Little)),a=Kn(a,Xn(e,r+4,Un.Little)),t=Kn(t,Xn(e,r+8,Un.Little)),s=(n=Object(i.f)(Gn([s,a,t]),3))[0],a=n[1],t=n[2];return s=Kn(s,Xn(e,r,Un.Little)),a=Kn(a,Xn(e,r+4,Un.Little)),t=Kn(t,u),Gn([s,a,t=Kn(t,Xn(e,r+8,Un.Little)<<8)])[2]}function Gn(e){var t=Object(i.f)(e,3),n=t[0],r=t[1],o=t[2];return n=$n(n,r),n=$n(n,o),n^=o>>>13,r=$n(r,o),r=$n(r,n),r^=n<<8,o=$n(o,n),o=$n(o,r),o^=r>>>13,n=$n(n,r),n=$n(n,o),n^=o>>>12,r=$n(r,o),r=$n(r,n),r^=n<<16,o=$n(o,n),o=$n(o,r),o^=r>>>5,n=$n(n,r),n=$n(n,o),n^=o>>>3,r=$n(r,o),r=$n(r,n),r^=n<<10,o=$n(o,n),o=$n(o,r),[n,r,o^=r>>>15]}function Kn(e,t){return Qn(e,t)[1]}function Qn(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function $n(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function Zn(e,t){return e<>>32-t}function Yn(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function Xn(e,t,n){var r=0;if(n===Un.Big)for(var i=0;i<4;i++)r+=Yn(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=Yn(e,t+i)<<8*i;return r}function Jn(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 er(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function tr(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=er(n,r)),r=er(r,r);return n}!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(Un||(Un={}));var nr=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),rr=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 Object(i.c)(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}(Fn),ir=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.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return""},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""},e}());function or(e){return e.map(function(e){return e.visit(ir)}).join("")}var sr=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=hr(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),ar=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),ur=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]=hr(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),cr=function(){function e(e){this.value=hr(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),lr=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return Object(i.c)(t,e),t}(cr),pr=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]];function hr(e){return pr.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.write=function(e,t){var n=new mr,r=new dr,o=new ur("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 ur("source",{},[new cr(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),o.children.push(new lr(2),new ur("msg",t,Object(i.g)(n,r.serialize(e.nodes))))}),o.children.push(new lr),or([new sr({version:"1.0",encoding:"UTF-8"}),new lr,new ar("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new lr,n.addDefaultExamples(o),new lr])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return vr(e)},t.prototype.createNameMapper=function(e){return new rr(e,yr)},t}(nr),dr=function(){function e(){}return e.prototype.visitText=function(e,t){return[new cr(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,Object(i.g)(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new cr("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,Object(i.g)([new cr(t+" {")],e.cases[t].visit(n),[new cr("} ")]))}),r.push(new cr("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new cr("<"+e.tag+">"),r=new ur("ex",{},[n]),o=new ur("ph",{name:e.startName},[r,n]);if(e.isVoid)return[o];var s=new cr(""),a=new ur("ex",{},[s]),u=new ur("ph",{name:e.closeName},[a,s]);return Object(i.g)([o],this.serialize(e.children),[u])},e.prototype.visitPlaceholder=function(e,t){var n=new cr("{{"+e.value+"}}"),r=new ur("ex",{},[n]);return[new ur("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 cr("{"+n+", "+r+", "+i+"}"),s=new ur("ex",{},[o]);return[new ur("ph",{name:e.name},[s,o])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],Object(i.g)(e.map(function(e){return e.visit(t)})))},e}();function vr(e){return Ln(e)}var mr=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 cr(e.attrs.name||"...");e.children=[new ur("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 yr(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function gr(e,t){return void 0===t&&(t=!1),mt(Object.keys(e).map(function(n){return{key:n,quoted:t,value:e[n]}}))}var br="MSG_",_r=new RegExp("^"+br),wr="I18N_",Er="goog.getMsg",Cr="|",Or="@@",xr="i18n",Sr="i18n-",jr="\ufffd";function Ar(e,t,n){var r=[bt(t)];n&&Object.keys(n).length&&r.push(gr(n,!0));var i=pt(Er).callFn(r);return e.set(i).toDeclStmt(ae,[Ee.Final])}function Tr(e){return e===xr||e.startsWith(Sr)}function Dr(e){return e instanceof An}function Pr(e){return Dr(e)&&1===e.nodes.length&&e.nodes[0]instanceof Pn}function Nr(e,t){return void 0===t&&(t=null),{id:"string"==typeof t?t:e.id||"",meaning:e.meaning||"",description:e.description||""}}function Mr(e){return e.nodes[0]}function kr(e,t){return void 0===t&&(t=0),""+jr+e+(t>0?":"+t:"")+jr}function Ir(e){void 0===e&&(e=0);var t=e;return function(){return t++}}function Fr(e){var t={};return e.forEach(function(e,n){t[n]=bt(e.length>1?"["+e.join("|")+"]":e[0])}),t}function Rr(e,t){for(var n=[],r=2;r0?function(e,t){return mt(Object.getOwnPropertyNames(e).map(function(n){var r,o,s,a,u=e[n];return Array.isArray(u)?(r=Object(i.f)(u,2),a=r[0],s=r[1]):(o=Object(i.f)(Et(n,[n,u]),2),s=o[0],a=o[1]),{key:s,quoted:!1,value:t&&a!==s?vt([Qr(a),Qr(s)]):Qr(a)}}))}(e,t):null}function Zr(e){for(;(t=e[e.length-1])instanceof Se&&null===t.value;)e.pop();var t;return e}var Yr,Xr,Jr=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 mt(this.values)},e}();function ei(e){var t={};return e.attributes.forEach(function(e){Tr(e.name)||(t[e.name]=e.value)}),e.inputs.forEach(function(e){t[e.name]=""}),e.outputs.forEach(function(e){t[e.name]=""}),t}function ti(e){var t=pt("t"),n=[],r=ii(e)?t:new Ie(te.Or,t,e.type),o=null;if(null!==e.deps)o=new xe(r,ni(e.deps,e.injectFn));else{var s=pt("\u0275"+e.name+"_BaseFactory"),a=ht(jn.getInheritedFactory),u=s.set(a.callFn([e.type])).toDeclStmt(ae,[Ee.Exported,Ee.Final]);n.push(u),o=s.callFn([r])}var c=o,l=[],p=null;function h(e){var n=pt("r");return l.push(n.set(He).toDeclStmt()),l.push(gt(t,[n.set(c).toStmt()],[n.set(e).toStmt()])),n}if(ii(e)&&e.delegateType===Yr.Factory){var f=pt("\u0275"+e.name+"_BaseFactory"),d=ht(jn.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(ae,[Ee.Exported,Ee.Final]);n.push(v),p=h(f.callFn([]))}else if(ii(e)){var m=ni(e.delegateDeps,e.injectFn);p=h(new(e.delegateType===Yr.Class?xe:Oe)(e.delegate,m))}else p=function(e){return void 0!==e.expression}(e)?h(e.expression):o;return{factory:yt([new Me("t",se)],Object(i.g)(l,[new Qe(p)]),ae,void 0,e.name+"_Factory"),statements:n}}function ni(e,t){return e.map(function(e){return function(e,t){switch(e.resolved){case Xr.Token:var n=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0),r=[e.token];return(0!==n||e.optional)&&r.push(bt(n)),ht(t).callFn(r);case Xr.Attribute:return ht(jn.injectAttribute).callFn([e.token]);default:return Gr("Unknown R3ResolvedDependencyType: "+Xr[e.resolved])}}(e,t)})}function ri(e,t,n){n.resolveExternalReference(Xt.Injector);var r,o,s=[];try{for(var a=Object(i.h)(e.diDeps),u=a.next();!u.done;u=a.next()){var c=u.value;if(c.token){var l=dn(c.token),p=c.isAttribute?Xr.Attribute:Xr.Token,h=l instanceof tn?t.importExpr(l):bt(l);s.push({token:h,resolved:p,host:!!c.isHost,optional:!!c.isOptional,self:!!c.isSelf,skipSelf:!!c.isSkipSelf})}else Gr("dependency without a token")}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return s}function ii(e){return void 0!==e.delegateType}function oi(e){return mt(Object.keys(e).map(function(t){return{key:t,value:e[t],quoted:!1}}))}function si(e,t){if(Array.isArray(e))return vt(e.map(function(e){return si(e,t)}));if(e instanceof tn)return t.importExpr(e);if(null==e)return bt(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function ai(e,t){var n=null;if(t>0){n=[];for(var r=0;r]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function di(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];fi.forEach(function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}var vi=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(di("interpolation",t),new e(t[0],t[1])):mi},e}(),mi=new vi("{{","}}"),yi=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>2),t+=_i((3&r)<<4|(isNaN(i)?0:i>>4)),t+=isNaN(i)?"=":_i((15&i)<<2|o>>6),t+=isNaN(i)||isNaN(o)?"=":_i(63&o)}return t}(JSON.stringify(this,null,0)):""},e}();function gi(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=_i(n)}while(e>0);return t}var bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function _i(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return bi[e]}var wi=/'|\\|\n|\r|\$/g,Ei=/^[$A-Z_][0-9A-Z_$]*$/i,Ci=" ",Oi=pt("error",null,null),xi=pt("stack",null,null),Si=function(){return function(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),ji=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new Si(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*Ci.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 Si(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?Di(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new yi(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;or)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}(),Ai=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 fe.Super:n="super";break;case fe.This:n="this";break;case fe.CatchError:n=Oi.name;break;case fe.CatchStack:n=xi.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,Ti(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 te.Equals:n="==";break;case te.Identical:n="===";break;case te.NotEquals:n="!=";break;case te.NotIdentical:n="!==";break;case te.And:n="&&";break;case te.BitwiseAnd:n="&";break;case te.Or:n="||";break;case te.Plus:n="+";break;case te.Minus:n="-";break;case te.Divide:n="/";break;case te.Multiply:n="*";break;case te.Modulo:n="%";break;case te.Lower:n="<";break;case te.LowerEquals:n="<=";break;case te.Bigger:n=">";break;case te.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,Ti(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;o0&&(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 Ti(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(wi,function(){for(var e=[],n=0;n0&&(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===fe.This)n.print(t,"self");else{if(t.builtin===fe.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 me&&r.builtin===fe.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 ("+Oi.name+") {"),t.incIndent();var n=[xi.set(Oi.prop("stack")).toDeclStmt(null,[Ee.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 ve.ConcatArray:t="concat";break;case ve.SubscribeObservable:t="subscribe";break;case ve.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(Ai)),Mi=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 ki(e,t,n,r){return Pi(n,Object(i.g)(r,[new We("$def",e,void 0,[Ee.Exported])]),new Mi(t),!1).$def}function Ii(e){var t=e.map(function(e){return t=e.type,new ye(t);var t});return e.length>0?dt(vt(t)):le}function Fi(e){var t=[];t.push({key:"name",value:bt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=ti({name:e.name,type:e.type,deps:e.deps,injectFn:jn.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:bt(e.pure),quoted:!1}),{expression:ht(jn.definePipe).callFn([mt(t)]),type:new re(ht(jn.PipeDefWithMeta,[new re(e.type),new re(new Se(e.pipeName))])),statements:n.statements}}var Ri=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}}(),Li=function(){return function(e,t){this.start=e,this.end=t}}(),Vi=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}(),Bi=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 Object(i.c)(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}(Vi),Ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(Vi),Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Vi),qi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Vi),zi=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Vi),Wi=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Vi),Gi=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Vi),Ki=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Vi),Qi=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.obj=n,i.key=r,i}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Vi),$i=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Vi),Zi=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Vi),Yi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Vi),Xi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Vi),Ji=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keys=n,i.values=r,i}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Vi),eo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.strings=n,i.expressions=r,i}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Vi),to=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Vi),no=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Vi),ro=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(Vi),io=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(Vi),oo=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 Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(Vi),so=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.target=n,i.args=r,i}return Object(i.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(Vi),ao=function(e){function t(t,n,r,i){var o=e.call(this,new Li(0,null==n?0:n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=i,o}return Object(i.c)(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}(Vi),uo=function(){return function(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i}}(),co=(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}()),lo=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new eo(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new Yi(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new Wi(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new Gi(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new Ki(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new io(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new oo(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new so(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new Xi(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new Ji(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new to(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new no(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new ro(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new zi(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new Zi(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new Qi(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new $i(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=0;r--)n.unshift(jo(t,r))}(s.temporaryCount,r,a);var u=a.length-1,c=null;if(u>=0){var l=function(e){if(e instanceof Ke)return e.expr;if(e instanceof Qe)return e.value;return null}(a[u]);l&&(c=function(e){return pt("pd_"+e)}(r),a[u]=c.set(l.cast(se).notIdentical(bt(!1))).toDeclStmt(null,[Ee.Final]))}return new bo(a,c)}function wo(e,t){return function(e,t){var n=new Do(e);return t.visit(n)}(e,t)}var Eo,Co,Oo=function(){return function(e,t){this.stmts=e,this.currValExpr=t}}();function xo(e,t,n,r,i,o){e||(e=new No);var s=function(e){return pt("currVal_"+e)}(r),a=[],u=new Po(e,t,r,o),c=n.visit(u,Co.Expression);if(u.temporaryCount)for(var l=0;l":n=te.Bigger;break;case"<=":n=te.LowerEquals;break;case">=":n=te.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return To(t,new Ie(n,this._visit(e.left,Co.Expression),this._visit(e.right,Co.Expression)))},e.prototype.visitChain=function(e,t){return function(e,t){if(e!==Co.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return To(t,this._visit(e.condition,Co.Expression).conditional(this._visit(e.trueExp,Co.Expression),this._visit(e.falseExp,Co.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,Co.Expression);return To(t,e instanceof ko?e.converter(n):this._visit(e.target,Co.Expression).callFn(n))},e.prototype.visitImplicitReceiver=function(e,t){return Ao(t,e),this._implicitReceiver},e.prototype.visitInterpolation=function(e,t){Ao(t,e);for(var n=[bt(e.expressions.length)],r=0;r=Lo&&e<=qo||e==vs}function gs(e){return Jo<=e&&e<=es}function bs(e){return e>=ss&&e<=fs||e>=ts&&e<=is}var _s,ws=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))==Vo){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Vo));s=a>0?i-a:i}else s--}for(;i0;){var u=n.charCodeAt(i);i++,t--,u==Vo?(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;o0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o]"+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 xs(e,t){var n=cn(t),r=null!=n?"in "+e+" "+un(t)+" in "+n:"in "+e+" "+un(t),i=new Es("",r);return new Cs(new ws(i,-1,-1,-1),new ws(i,-1,-1,-1))}var Ss=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,n){void 0===n&&(n="");var r=e.match(Ws)||[];e=function(e){return e.replace(zs,"")}(e),e=this._insertDirectives(e);var o=this._scopeCssText(e,t,n);return Object(i.g)([o],r).join("\n")},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return e.replace(As,function(){for(var e=[],t=0;t-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Ps,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Ls.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 Ys(r,i)},i=function(e){for(var t=e.split(Ks),n=[],r=[],i=0,o=[],s=0;s0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Zs),o=[]),n.push(a)),a==Qs&&i++}o.length>0&&(r.push(o.join("")),n.push(Zs));return new Xs(n.join(""),r)}(e),o=0,i.escapedString.replace(Gs,function(){for(var e=[],t=0;t-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(Us,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new js(e),u="",c=0,l=/( |>|\+|~(?!=))\s*/g,p=!((e=a.content()).indexOf(Fs)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(c,r.index).trim();u+=((p=p||f.indexOf(Fs)>-1)?s(f):f)+" "+h+" ",c=l.lastIndex}var d=e.substring(c);return u+=(p=p||d.indexOf(Fs)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(qs,Ns).replace(Hs,Ps)},e}(),js=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}(),As=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Ts=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ds=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ps="-shadowcsshost",Ns="-shadowcsscontext",Ms=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ks=new RegExp("("+Ps+Ms,"gim"),Is=new RegExp("("+Ns+Ms,"gim"),Fs=Ps+"-no-combinator",Rs=/-shadowcsshost-no-combinator([^\s]*)/,Ls=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Vs=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Bs="([>\\s~+[.,{:][\\s\\S]*)?$",Us=/-shadowcsshost/gim,Hs=/:host/gim,qs=/:host-context/gim,zs=/\/\*\s*[\s\S]*?\*\//g;var Ws=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var Gs=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ks=/([{}])/g,Qs="{",$s="}",Zs="%BLOCK%",Ys=function(){return function(e,t){this.selector=e,this.content=t}}();var Xs=function(){return function(e,t){this.escapedString=e,this.blocks=t}}();var Js="_nghost-%COMP%",ea="_ngcontent-%COMP%",ta=function(){return function(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n}}(),na=function(){return function(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),ra=function(){function e(e){this._urlResolver=e,this._shadowCss=new Ss}return e.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new vn({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:cn(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===y.Emulated},e.prototype._compileStyles=function(e,t,n,r,i){var o=this,s=n.styles.map(function(e){return bt(o._shimIfNeeded(e,r))}),a=[];n.styleUrls.forEach(function(t){var n=s.length;s.push(null),a.push(new ta(ia(null),t,function(t){return s[n]=e.importExpr(t)}))});var u=ia(i?t:null),c=pt(u).set(vt(s,new ie(se,[X.Const]))).toDeclStmt(null,i?[Ee.Final]:[Ee.Final,Ee.Exported]);return e.statements.push(c),new na(e,u,a,r,n)},e.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,ea,Js):e},e}();function ia(e){var t="styles";return e&&(t+="_"+un(e.type)),t}function oa(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 sa(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}var aa,ua=function(){function e(e,t){this._elementIndexExpr=e,this._directiveExpr=t,this._hasInitialValues=!1,this._hasBindings=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[],this._useDefaultSanitizer=!1}return e.prototype.hasBindingsOrInitialValues=function(){return this._hasBindings||this._hasInitialValues},e.prototype.registerBoundInput=function(e){var t=e.name,n=null;switch(e.type){case 0:"style"==t?n=this.registerStyleInput(null,e.value,"",e.sourceSpan):function(e){return"className"==e||"class"==e}(e.name)&&(n=this.registerClassInput(null,e.value,e.sourceSpan));break;case 3:n=this.registerStyleInput(e.name,e.value,e.unit,e.sourceSpan);break;case 2:n=this.registerClassInput(e.name,e.value,e.sourceSpan)}return!!n},e.prototype.registerStyleInput=function(e,t,n,r){var i,o={name:e,unit:n,value:t,sourceSpan:r};return e?((this._singleStyleInputs=this._singleStyleInputs||[]).push(o),this._useDefaultSanitizer=this._useDefaultSanitizer||("background-image"===(i=e)||"background"===i||"border-image"===i||"filter"===i||"list-style"===i||"list-style-image"===i),ca(this._stylesIndex,e)):(this._useDefaultSanitizer=!0,this._styleMapInput=o),this._lastStylingInput=o,this._hasBindings=!0,o},e.prototype.registerClassInput=function(e,t,n){var r={name:e,value:t,sourceSpan:n};return e?((this._singleClassInputs=this._singleClassInputs||[]).push(r),ca(this._classesIndex,e)):this._classMapInput=r,this._lastStylingInput=r,this._hasBindings=!0,r},e.prototype.registerStyleAttr=function(e){this._initialStyleValues=function(e){for(var t=[],n=0,r=0,i=0,o=0,s=0,a=null,u=!1;n0,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=sa(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.push(a,u?oa(c):c),s=n,o=0,a=null,u=!1}}a&&o&&(c=e.substr(o).trim(),t.push(a,u?oa(c):c));return t}(e),this._hasInitialValues=!0},e.prototype.registerClassAttr=function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0},e.prototype.populateInitialStylingAttrs=function(e){if(this._initialClassValues.length){e.push(bt(1));for(var t=0;t0,la(t,r),1,i),pa(o,e.length>0,la(t,e),2,i),pa(o,n._useDefaultSanitizer,ht(jn.defaultStyleSanitizer),3,i),n._directiveExpr&&o.push(n._directiveExpr),o}}:null},e.prototype.buildElementStylingMapInstruction=function(e){var t=this;if(this._classMapInput||this._styleMapInput){var n=this._classMapInput||this._styleMapInput,r=this._classMapInput?this._classMapInput.value.visit(e):null,i=this._styleMapInput?this._styleMapInput.value.visit(e):null;return{sourceSpan:n.sourceSpan,reference:jn.elementStylingMap,buildParams:function(e){var n=[t._elementIndexExpr];return r?n.push(e(r)):t._styleMapInput&&n.push(He),i?n.push(e(i)):t._directiveExpr&&n.push(He),t._directiveExpr&&n.push(t._directiveExpr),n}}}return null},e.prototype._buildSingleInputs=function(e,t,n,r,i){var o=this;return t.map(function(t){var s=n.get(t.name),a=t.value.visit(i);return{sourceSpan:t.sourceSpan,reference:e,buildParams:function(e){var n=[o._elementIndexExpr,bt(s),e(a)];return r&&(t.unit?n.push(bt(t.unit)):o._directiveExpr&&n.push(He)),o._directiveExpr&&n.push(o._directiveExpr),n}}})},e.prototype._buildClassInputs=function(e){return this._singleClassInputs?this._buildSingleInputs(jn.elementClassProp,this._singleClassInputs,this._classesIndex,!1,e):[]},e.prototype._buildStyleInputs=function(e){return this._singleStyleInputs?this._buildSingleInputs(jn.elementStyleProp,this._singleStyleInputs,this._stylesIndex,!0,e):[]},e.prototype._buildApplyFn=function(){var e=this;return{sourceSpan:this._lastStylingInput?this._lastStylingInput.sourceSpan:null,reference:jn.elementStylingApply,buildParams:function(){var t=[e._elementIndexExpr];return e._directiveExpr&&t.push(e._directiveExpr),t}}},e.prototype.buildUpdateLevelInstructions=function(e){var t=[];if(this._hasBindings){var n=this.buildElementStylingMapInstruction(e);n&&t.push(n),t.push.apply(t,Object(i.g)(this._buildStyleInputs(e))),t.push.apply(t,Object(i.g)(this._buildClassInputs(e))),t.push(this._buildApplyFn())}return t},e}();function ca(e,t){e.has(t)||e.set(t,e.size)}function la(e,t){return t.length?e.getConstLiteral(vt(t),!0):He}function pa(e,t,n,r,i){t?e.push(n):r=this.length?Ro:this.input.charCodeAt(this.index)},e.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=qo;){if(++r>=t){n=Ro;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(ba(n))return this.scanIdentifier();if(gs(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),gs(this.peek)?this.scanNumber(i):va(i,46);case 40:case 41:case ds:case 125:case 91:case 93:case 44:case 58:case Zo:return this.scanCharacter(i,n);case Go:case zo:return this.scanString();case 35:case Ko:case Qo:case 42:case $o:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Xo:return this.scanComplexOperator(i,String.fromCharCode(n),Yo,"=");case 33:case Yo:return this.scanComplexOperator(i,String.fromCharCode(n),Yo,"=",Yo,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case vs:for(;ys(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(),va(e,t)},e.prototype.scanOperator=function(e,t){return this.advance(),ma(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),ma(e,s)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();_a(this.peek);)this.advance();var t,n=this.input.substring(e,this.index);return ha.indexOf(n)>-1?(t=n,new da(e,aa.Keyword,0,t)):function(e,t){return new da(e,aa.Identifier,0,t)}(e,n)},e.prototype.scanNumber=function(e){var t,n=this.index===e;for(this.advance();;){if(gs(this.peek));else if(46==this.peek)n=!1;else{if((t=this.peek)!=as&&t!=ns)break;if(this.advance(),wa(this.peek)&&this.advance(),!gs(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 da(e,aa.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=Ea(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Ro)return this.error("Unterminated quote",0);this.advance()}var u,c=i.substring(r,this.index);return this.advance(),u=n+c,new da(e,aa.String,0,u)},e.prototype.error=function(e,t){var n=this.index+t;return function(e,t){return new da(e,aa.Error,0,t)}(n,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}();function ba(e){return ss<=e&&e<=fs||ts<=e&&e<=is||e==os||e==Wo}function _a(e){return bs(e)||gs(e)||e==os||e==Wo}function wa(e){return e==Qo||e==Ko}function Ea(e){switch(e){case cs:return Vo;case us:return Uo;case ls:return Ho;case ps:return Lo;case hs:return Bo;default:return e}}var Ca=function(){return function(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}(),Oa=function(){return function(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}();function xa(e){var t=It(e.start)+"([\\s\\S]*?)"+It(e.end);return new RegExp(t,"g")}var Sa=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=mi),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new ja(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new ao(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=mi);var r=this._parseBindingAst(e,t,n);return new ao(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=mi);var r=this._parseBindingAst(e,t,n),i=Aa.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new ao(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new Ri(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 ja(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 ga(e);if(!ba(t.peek))return!1;for(t.advance();t.peek!==Ro;){if(!_a(t.peek))return!1;t.advance()}return!0}(r))return null;var i=e.substring(n+1);return new Bi(new Li(0,e.length),r,i,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);return new ja(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=mi);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var i=[],o=0;o0?(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 Ca(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t){return new ao(new Yi(new Li(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;r1&&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":case"<=":case">=":this.advance();var n=this.parseAdditive();e=new to(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==aa.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var n=this.parseMultiplicative();e=new to(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==aa.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();e=new to(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parsePrefix=function(){if(this.next.type==aa.Operator){var e=this.inputIndex,t=this.next.strValue,n=void 0;switch(t){case"+":return this.advance(),n=this.parsePrefix(),new to(this.span(e),"-",n,new Yi(new Li(e,e),0));case"-":return this.advance(),n=this.parsePrefix(),new to(this.span(e),t,new Yi(new Li(e,e),0),n);case"!":return this.advance(),n=this.parsePrefix(),new no(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 $i(this.span(e.span.start),e,t,n)}else e=new Qi(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 so(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new ro(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 Yi(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Yi(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Yi(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Yi(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new Hi(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Xi(this.span(e),n)}if(this.next.isCharacter(ds))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Hi(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Yi(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Yi(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ui(this.span(e))):(this.error("Unexpected token "+this.next),new Ui(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(ds),!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 Ji(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 oo(o,e,r,i):new io(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ui(this.span(n))):new Ki(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ui(this.span(n));var s=this.parseConditional();return new Gi(this.span(n),e,r,s)}return new Wi(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!==ya&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new ao(l,p,this.location,this.errors)}if(n.push(new uo(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new uo(this.span(h),f,!0,o,null))}this.optionalCharacter(Zo)||this.optionalCharacter(44)}while(this.index=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,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}()),Da=function(){function e(e,t,n,r,i,o){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i,this.i18n=o}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),Pa=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}(),Na=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),Ma=function(){function e(e,t,n,r,i,o,s){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,this.i18n=s}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),ka=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 Ia(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 Fa;!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(Ia(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"}(Fa||(Fa={}));var Ra=function(){return function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n}}(),La=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return Object(i.c)(t,e),t}(Os),Va=function(){return function(e,t){this.tokens=e,this.errors=t}}();var Ba=/\r\n?/g;function Ua(e){return'Unexpected character "'+(e===Ro?"EOF":String.fromCharCode(e))+'"'}function Ha(e){return'Unknown entity "'+e+'" - use the "&#;" or "&#x;" syntax'}var qa=function(){return function(e){this.error=e}}(),za=function(){function e(e,t,n){this._file=e,this._getTagDefinition=t,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||mi,this._input=e.content,this._length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return e.replace(Ba,"\n")},e.prototype.tokenize=function(){for(;this._peek!==Ro;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(Qo)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode($o)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof qa))throw t;this.errors.push(t.error)}}return this._beginToken(Fa.EOF),this._endToken([]),new Va(function(e){for(var t=[],n=void 0,r=0;r=this._length)throw this._createError(Ua(Ro),this._getSpan());this._peek===Vo?(this._line++,this._column=0):this._peek!==Vo&&this._peek!==Ho&&this._column++,this._index++,this._peek=this._index>=this._length?Ro:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ro: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,Za(t)==Za(n)&&(this._advance(),!0);var t,n},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(Ua(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;rr.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(Fa.COMMENT_START,e),this._requireCharCode(Qo),this._endToken([]);var n=this._consumeRawText(!1,Qo,function(){return t._attemptStr("->")});this._beginToken(Fa.COMMENT_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(Fa.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(Fa.CDATA_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(Fa.DOC_TYPE,e),this._attemptUntilChar(Xo),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)es));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(Ga,this._index===t?1:0),[r,this._input.substring(t,this._index)]},e.prototype._consumeTagOpen=function(e){var t,n,i=this._savePosition();try{if(!bs(this._peek))throw this._createError(Ua(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(e),n=(t=this._input.substring(o,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Wa);this._peek!==$o&&this._peek!==Xo;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Wa),this._attemptCharCode(Yo)&&(this._attemptCharCodeUntilFn(Wa),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Wa);this._consumeTagOpenEnd()}catch(a){if(a instanceof qa)return this._restorePosition(i),this._beginToken(Fa.TEXT,e),void this._endToken(["<"]);throw a}var s=this._getTagDefinition(t).contentType;s===r.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):s===r.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($o)&&(n._attemptCharCodeUntilFn(Wa),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(Wa),n._attemptCharCode(Xo)))});this._beginToken(Fa.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(Fa.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(Fa.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(Fa.ATTR_VALUE),this._peek===Go||this._peek===zo){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(Ga,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode($o)?Fa.TAG_OPEN_END_VOID:Fa.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Xo),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(Fa.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Wa);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Wa),this._requireCharCode(Xo),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(Fa.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ds),this._endToken([]),this._expansionCaseStack.push(Fa.EXPANSION_FORM_START),this._beginToken(Fa.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Wa),this._beginToken(Fa.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Wa)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(Fa.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(ds).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(Wa),this._beginToken(Fa.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ds),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Wa),this._expansionCaseStack.push(Fa.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Fa.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Wa),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(Fa.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(Fa.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===Ro)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if($a(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];t0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Fa.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Fa.EXPANSION_FORM_START},e}();function Wa(e){return!ys(e)||e===Ro}function Ga(e){return ys(e)||e===Xo||e===$o||e===Go||e===zo||e===Yo}function Ka(e){return e==Zo||e==Ro||!function(e){return e>=ss&&e<=us||e>=ts&&e<=rs||gs(e)}(e)}function Qa(e){return e==Zo||e==Ro||!bs(e)}function $a(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==ds&&!r}function Za(e){return e>=ss&&e<=fs?e-ss+ts:e}var Ya=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return Object(i.c)(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(Os),Xa=function(){return function(e,t){this.rootNodes=e,this.errors=t}}(),Ja=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n){var r=function(e,t,n,r){return void 0===r&&(r={}),new za(new Es(e,t),n,r).tokenize()}(e,t,this.getTagDefinition,n),i=new eu(r.tokens,this.getTagDefinition).build();return new Xa(i.rootNodes,r.errors.concat(i.errors))},e}(),eu=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!==Fa.EOF;)this._peek.type===Fa.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Fa.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Fa.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Fa.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Fa.TEXT||this._peek.type===Fa.RAW_TEXT||this._peek.type===Fa.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Fa.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Xa(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index0)return this._errors=this._errors.concat(o.errors),null;var s=new Cs(t.sourceSpan.start,i.sourceSpan.end),a=new Cs(n.sourceSpan.start,i.sourceSpan.end);return new Pa(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[Fa.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Fa.EXPANSION_FORM_START&&this._peek.type!==Fa.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Fa.EXPANSION_CASE_EXP_END){if(!tu(n,Fa.EXPANSION_CASE_EXP_START))return this._errors.push(Ya.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===Fa.EXPANSION_FORM_END){if(!tu(n,Fa.EXPANSION_FORM_START))return this._errors.push(Ya.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Fa.EOF)return this._errors.push(Ya.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 Ta(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===Fa.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===Fa.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==c(i)||s.isVoid||this._errors.push(Ya.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===Fa.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new Cs(e.sourceSpan.start,a),l=new Ma(i,r,[],u,u,void 0);this._pushElement(l),o&&(this._popElement(i),l.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 Ma(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(Ya.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(Ya.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=l(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===Fa.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Na(t,r,new Cs(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(!s(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=c(n.name)),l(e,t)},e}();function tu(e,t){return e.length>0&&e[e.length-1]===t}var nu=function(e){function t(){return e.call(this,m)||this}return Object(i.c)(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(Ja),ru="ngPreserveWhitespaces",iu=new Set(["pre","template","textarea","script","style"]),ou=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",su=new RegExp("[^"+ou+"]"),au=new RegExp("["+ou+"]{2,}","g");function uu(e){return e.replace(new RegExp(h,"g")," ")}var cu,lu=function(){function e(){}return e.prototype.visitElement=function(e,t){return iu.has(e.name)||e.attrs.some(function(e){return e.name===ru})?new Ma(e.name,Ia(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Ma(e.name,e.attrs,Ia(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)},e.prototype.visitAttribute=function(e,t){return e.name!==ru?e:null},e.prototype.visitText=function(e,t){return e.value.match(su)?new Ta(uu(e.value).replace(au," "),e.sourceSpan,e.i18n):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 pu(e){return new Xa(Ia(new lu,e.rootNodes),e.errors)}function hu(){return cu||(cu={},fu(N.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),fu(N.STYLE,["*|style"]),fu(N.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"]),fu(N.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"])),cu}function fu(e,t){var n,r;try{for(var o=Object(i.h)(t),s=o.next();!s.done;s=o.next()){var a=s.value;cu[a.toLowerCase()]=e}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var du=function(){return function(){}}(),vu="boolean",mu="number",yu="string",gu="object",bu=["[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:|"],_u={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},wu=function(e){function t(){var t=e.call(this)||this;return t._schema={},bu.forEach(function(e){var n={},r=Object(i.f)(e.split("|"),2),o=r[0],s=r[1].split(","),a=Object(i.f)(o.split("^"),2),u=a[0],c=a[1];u.split(",").forEach(function(e){return t._schema[e.toLowerCase()]=n});var l=c&&t._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(e){n[e]=l[e]}),s.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=vu;break;case"#":n[e.substring(1)]=mu;break;case"%":n[e.substring(1)]=gu;break;default:n[e]=yu}})}),t}return Object(i.c)(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return e.name===q.name}))return!0;if(e.indexOf("-")>-1){if(s(e)||a(e))return!1;if(n.some(function(e){return e.name===H.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===q.name}))return!0;if(e.indexOf("-")>-1){if(s(e)||a(e))return!0;if(t.some(function(e){return e.name===H.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=hu()[e+"|"+t];return r||((r=hu()["*|"+t])||N.NONE)},t.prototype.getMappedPropName=function(e){return _u[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(wt,function(){for(var e=[],t=0;t1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,t.sourceSpan,!0),s=xu(this._schemaRegistry,e,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),c=i.substring(a+1);i=l(u,c)}r=1}else"class"==o[0]?(i=o[1],r=2,s=[N.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=3,s=[N.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(t.name),s=xu(this._schemaRegistry,e,i,!1),r=0,this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)),new yo(i,r,s[0],t.expression,n,t.sourceSpan)},e.prototype.parseEvent=function(e,t,n,r,i){Ou(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=Ct(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 vo(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,o){var s=Object(i.f)(Et(e,[null,e]),2),a=s[0],u=s[1],c=this._parseAction(t,n);r.push([e,c.source]),o.push(new vo(u,a,0,c,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 Ui?(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=_s.ERROR),this.errors.push(new Os(t,e,n))},e.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var o=Object(i.h)(e),s=o.next();!s.done;s=o.next()){var a=s.value;this._reportError(a.message,t)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new Cu;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 Cs(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,_s.ERROR)},e}(),Cu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return Object(i.c)(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}(co);function Ou(e){return"@"==e[0]}function xu(e,t,n,r){var o=[];return _.parse(t).forEach(function(t){var s=t.element?[t.element]:e.allKnownElementNames(),a=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),u=s.filter(function(e){return!a.has(e)});o.push.apply(o,Object(i.g)(u.map(function(t){return e.securityContext(t,n,r)})))}),0===o.length?[N.NONE]:Array.from(new Set(o)).sort()}var Su=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),ju=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e){return e.visitBoundText(this)},e}(),Au=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e){return e.visitTextAttribute(this)},e}(),Tu=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.i18n=s}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),Du=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=o}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.type,t.handler,n,r,t.sourceSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),Pu=function(){function e(e,t,n,r,i,o,s,a,u,c){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,this.i18n=c}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),Nu=function(){function e(e,t,n,r,i,o,s,a,u,c,l){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.variables=s,this.sourceSpan=a,this.startSourceSpan=u,this.endSourceSpan=c,this.i18n=l}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),Mu=function(){function e(e,t,n,r){this.selector=e,this.attributes=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitContent(this)},e}(),ku=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}(),Iu=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}(),Fu=function(){function e(e,t,n,r){this.vars=e,this.placeholders=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitIcu(this)},e}();function Ru(e,t){var n,r,o,s,a=[];if(e.visit)try{for(var u=Object(i.h)(t),c=u.next();!c.done;c=u.next())var l=c.value,p=e.visit(l)||l.visit(e)}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else try{for(var h=Object(i.h)(t),f=h.next();!f.done;f=h.next()){(p=(l=f.value).visit(e))&&a.push(p)}}catch(v){o={error:v}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}return a}var Lu=function(){return function(e,t){this.style=e,this.styleUrls=t}}();function Vu(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(qu);return null===t||"package"==t[1]||"asset"==t[1]}var Bu,Uu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Hu=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,qu=/^([^:\/?#]+):/,zu="select",Wu="link",Gu="rel",Ku="href",Qu="stylesheet",$u="style",Zu="script",Yu="ngNonBindable",Xu="ngProjectAs";function Ju(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==zu?t=e.value:s==Ku?n=e.value:s==Gu?r=e.value:e.name==Yu?i=!0:e.name==Xu&&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(),u=Bu.OTHER;return a(s)?u=Bu.NG_CONTENT:s==$u?u=Bu.STYLE:s==Zu?u=Bu.SCRIPT:s==Wu&&r==Qu&&(u=Bu.STYLESHEET),new ec(u,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"}(Bu||(Bu={}));var ec=function(){return function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}();var tc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function nc(e,t){var n=new ic(t),r=Ia(n,e),i=t.errors.concat(n.errors),o=i.filter(function(e){return e.level===_s.ERROR});if(o.length>0)throw Nt("Template parse errors:\n"+o.join("\n"),o);return{nodes:r,errors:i}}var rc,ic=function(){function e(e){this.bindingParser=e,this.errors=[]}return e.prototype.visitElement=function(e){var t,n,r=this,o=Ju(e);if(o.type===Bu.SCRIPT||o.type===Bu.STYLE)return null;if(o.type===Bu.STYLESHEET&&Vu(o.hrefAttr))return null;var s=u(e.name),a=[],c=[],l=[],p=[],h=[],f={},d=[],v=[],m=!1;try{for(var y=Object(i.h)(e.attrs),g=y.next();!g.done;g=y.next()){var b=g.value,_=!1,w=sc(b.name),E=!1;if(b.i18n&&(f[b.name]=b.i18n),w.startsWith("*")){m&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",b.sourceSpan),E=!0,m=!0;var C=b.value,O=w.substring("*".length),x=[];this.bindingParser.parseInlineTemplateBinding(O,C,b.sourceSpan,[],d,x),v.push.apply(v,Object(i.g)(x.map(function(e){return new ku(e.name,e.value,e.sourceSpan)})))}else _=this.parseAttribute(s,b,[],a,c,l,p);_||E||h.push(this.visitAttribute(b))}}catch(D){t={error:D}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}var S,j=Ia(o.nonBindable?oc:this,e.children);if(o.type===Bu.NG_CONTENT){e.children&&!e.children.every(uc)&&this.reportError(" element cannot have content.",e.sourceSpan);var A=o.selectAttr,T=e.attrs.map(function(e){return r.visitAttribute(e)});S=new Mu(A,T,e.sourceSpan,e.i18n)}else if(s){T=this.extractAttributes(e.name,a,f);S=new Nu(e.name,h,T.bound,c,j,p,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{T=this.extractAttributes(e.name,a,f);S=new Pu(e.name,h,T.bound,c,j,p,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(m){T=this.extractAttributes("ng-template",d,f);S=new Nu(S.name,T.literal,T.bound,[],[S],[],v,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}return S},e.prototype.visitAttribute=function(e){return new Au(e.name,e.value,e.sourceSpan,e.valueSpan,e.i18n)},e.prototype.visitText=function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)},e.prototype.visitExpansion=function(e){var t=this,n=e.i18n;if(!n)return null;var r={},i={};return Object.keys(n.placeholders).forEach(function(o){var s=n.placeholders[o];if(o.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig,u=""+a.start+s+a.end;r[o]=t._visitTextWithInterpolation(u,e.sourceSpan)}else i[o]=t._visitTextWithInterpolation(s,e.sourceSpan)}),new Fu(r,i,e.sourceSpan,n)},e.prototype.visitExpansionCase=function(e){return null},e.prototype.visitComment=function(e){return null},e.prototype.extractAttributes=function(e,t,n){var r=this,i=[],o=[];return t.forEach(function(t){var s=n[t.name];if(t.isLiteral)o.push(new Au(t.name,t.expression.source||"",t.sourceSpan,void 0,s));else{var a=r.bindingParser.createBoundElementProperty(e,t);i.push(Tu.fromBoundElementProperty(a,s))}}),{bound:i,literal:o}},e.prototype.parseAttribute=function(e,t,n,r,i,o,s){var a=sc(t.name),u=t.value,c=t.sourceSpan,l=a.match(tc),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),ac(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),ac(f,i)}}else p=this.bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p},e.prototype._visitTextWithInterpolation=function(e,t,n){var r=uu(e),i=this.bindingParser.parseInterpolation(r,t);return i?new ju(i,t,n):new Su(r,t)},e.prototype.parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in variable names',n),r.push(new ku(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 Iu(e,t,n))},e.prototype.parseAssignmentEvent=function(e,t,n,r,i){var o=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r,o),ac(o,i)},e.prototype.reportError=function(e,t,n){void 0===n&&(n=_s.ERROR),this.errors.push(new Os(t,e,n))},e}(),oc=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=Ju(e);if(t.type===Bu.SCRIPT||t.type===Bu.STYLE||t.type===Bu.STYLESHEET)return null;var n=Ia(this,e.children,null);return new Pu(e.name,Ia(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new Au(e.name,e.value,e.sourceSpan,void 0,e.i18n)},e.prototype.visitText=function(e){return new Su(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function sc(e){return/^data-/i.test(e)?e.substring(5):e}function ac(e,t){t.push.apply(t,Object(i.g)(e.map(function(e){return Du.fromParsedEvent(e)})))}function uc(e){return e instanceof Ta&&0==e.value.trim().length}!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE"}(rc||(rc={}));var cc=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=null),this.index=e,this.ref=t,this.level=n,this.templateIndex=r,this.meta=i,this.registry=o,this.bindings=new Set,this.placeholders=new Map,this._unresolvedCtxCount=0,this._registry=o||{getUniqueId:Ir(),icus:new Map},this.id=this._registry.getUniqueId()}return e.prototype.appendTag=function(e,t,n,r){if(!t.isVoid||!r){var i=t.isVoid||!r?t.startName:t.closeName,o={type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r};Rr(this.placeholders,i,o)}},Object.defineProperty(e.prototype,"icus",{get:function(){return this._registry.icus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResolved",{get:function(){return 0===this._unresolvedCtxCount},enumerable:!0,configurable:!0}),e.prototype.getSerializedPlaceholders=function(){var e=new Map;return this.placeholders.forEach(function(t,n){return e.set(n,t.map(fc))}),e},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.appendIcu=function(e,t){Rr(this._registry.icus,e,t)},e.prototype.appendBoundText=function(e){var t=this;Lr(e,this.bindings.size,this.id).forEach(function(e,n){return Rr.apply(void 0,Object(i.g)([t.placeholders,n],e))})},e.prototype.appendTemplate=function(e,t){this.appendTag(rc.TEMPLATE,e,t,!1),this.appendTag(rc.TEMPLATE,e,t,!0),this._unresolvedCtxCount++},e.prototype.appendElement=function(e,t,n){this.appendTag(rc.ELEMENT,e,t,n)},e.prototype.forkChildContext=function(t,n,r){return new e(t,this.ref,this.level+1,n,r,this._registry)},e.prototype.reconcileChildContext=function(e){var t=this;["start","close"].forEach(function(n){var r=e.meta[n+"Name"],i=(t.placeholders.get(r)||[]).find(hc(t.id,e.templateIndex));i&&(i.ctx=e.id)}),e.placeholders.forEach(function(n,r){var o=t.placeholders.get(r);if(o){var s=function(e,t){for(var n=0;n=0){var a=r.startsWith("CLOSE");if(r.endsWith("NG-TEMPLATE"))o.splice.apply(o,Object(i.g)([s+(a?0:1),0],n));else n[a?n.length-1:0].tmpl=o[s],o.splice.apply(o,Object(i.g)([s,1],n))}else o.push.apply(o,Object(i.g)(n));t.placeholders.set(r,o)}else t.placeholders.set(r,n)}),this._unresolvedCtxCount--},e}();function lc(e,t,n,r){return kr(""+(r?"/":"")+e+t,n)}function pc(e,t,n){var r=t.index,i=t.ctx;return t.isVoid?lc(e,r,i)+lc(e,r,i,!0):lc(e,r,i,n)}function hc(e,t){return function(n){return"object"==typeof n&&n.type===rc.TEMPLATE&&n.index===t&&n.ctx===e}}function fc(e){var t=function(e,t){return pc("#",e,t)},n=function(e,t){return pc("*",e,t)};switch(e.type){case rc.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?n(e.tmpl,!0):""):e.tmpl?n(e.tmpl)+t(e)+(e.isVoid?n(e.tmpl,!0):""):t(e);case rc.TEMPLATE:return n(e,e.closed);default:return e}}var dc={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"},vc=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=dc[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=dc[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.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}(),mc=new Sa(new fa);function yc(e){var t=new gc(mc,e);return function(e,n,r,i,o){return t.toI18nMessage(e,n,r,i,o)}}var gc=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){this._isIcu=1==e.length&&e[0]instanceof Da,this._icuDepth=0,this._placeholderRegistry=new vc,this._placeholderToContent={},this._placeholderToMessage={},this._visitNodeFn=i;var o=Ia(this,e,{});return new An(o,this._placeholderToContent,this._placeholderToMessage,t,n,r)},e.prototype._visitNode=function(e,t){return this._visitNodeFn&&this._visitNodeFn(e,t),t},e.prototype.visitElement=function(e,t){var n=Ia(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=m(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="");var a=new Nn(e.name,r,o,s,n,i,e.sourceSpan);return this._visitNode(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new Pn(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new Dn(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,this._visitNode(t,o)}var a=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);this._placeholderToMessage[a]=u.toI18nMessage([t],"","","");var c=new kn(o,a,t.sourceSpan);return this._visitNode(t,c)},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 Tn(e,t);for(var r=[],i=new Dn(r,t),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u-1?[e.slice(0,a),e.slice(a+2)]:[e,""],2))[0],r=t[1],o=(n=Object(i.f)(u>-1?[c.slice(0,u),c.slice(u+1)]:["",c],2))[0],s=n[1]}return{id:r,meaning:o,description:s}}(t):Nr(t),o=this._createI18nMessage(e,r.meaning||"",r.description||"",r.id||"",n);return o.id||(o.id="string"!=typeof t&&t.id||Ln(o)),o},e.prototype.visitElement=function(e,t){var n,r,o,s;if(function(e){return e.attrs.some(function(e){return Tr(e.name)})}(e)){var a=[],u={};try{for(var c=Object(i.h)(e.attrs),l=c.next();!l.done;l=c.next()){if((v=l.value).name===xr){var p=e.i18n||v.value,h=this._generateI18nMessage(e.children,p,_c);h.nodes.length&&(e.i18n=h)}else if(v.name.startsWith(Sr)){u[v.name.slice(Sr.length)]=v.value}else a.push(v)}}catch(y){n={error:y}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(Object.keys(u).length)try{for(var f=Object(i.h)(a),d=f.next();!d.done;d=f.next()){var v,m=u[(v=d.value).name];void 0!==m&&v.value&&(v.i18n=this._generateI18nMessage([v],v.i18n||m))}}catch(g){o={error:g}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}this.keepI18nAttrs||(e.attrs=a)}return Ia(this,e.children),e},e.prototype.visitExpansion=function(e,t){var n,r=e.i18n;if(r instanceof kn){var i=r.name;Mr(n=this._generateI18nMessage([e],r)).name=i}else n=this._generateI18nMessage([e],r);return e.i18n=n,e},e.prototype.visitText=function(e,t){return e},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Ec=function(e){return"{$"+Vr(e)+"}"},Cc=new(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.expressionPlaceholder+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?Ec(e.startName):""+Ec(e.startName)+e.children.map(function(e){return e.visit(n)}).join("")+Ec(e.closeName)},e.prototype.visitPlaceholder=function(e,t){return Ec(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return Ec(e.name)},e}());function Oc(e,t){return gt(pt(zr).bitwiseAnd(bt(e),null,!1),t)}var xc=function(){function e(e,t,n,r,i,o,s,a,u,c,l,p,h,f,d){void 0===n&&(n=0);var v=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.i18nUseExternalIds=d,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=Gr,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._hasNgContent=!1,this._ngContentSelectors=[],this._ngContentSelectorsOffset=0,this.visitReference=Kr,this.visitVariable=Kr,this.visitTextAttribute=Kr,this.visitBoundAttribute=Kr,this.visitBoundEvent=Kr,this._dataIndex=a.length,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=f.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Sc(e,function(){return v.allocateDataSlot()},function(e){return v.allocatePureFunctionSlots(e)},function(e,t,n,r){var i=l.get(e);i&&v.pipes.add(i),v._bindingScope.set(v.level,t,r),v.creationInstruction(null,jn.pipe,[bt(n),bt(e)])})}return e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=pt(e.name+t);this._bindingScope.set(n,e.name,r,1,function(t,i){var o;if(t.bindingLevel===n)o=pt(qr);else{var s=t.getSharedContextName(n);o=s||Dc(i)}return[r.set(o.prop(e.value||"$implicit")).toConstDecl()]})},e.prototype.buildTemplateFunction=function(e,t,n,r){var o=this;void 0===n&&(n=0),this._ngContentSelectorsOffset=n,this._namespace!==jn.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(function(e){return o.registerContextVariables(e)});var s,a=this.i18nContext||Dr(r)&&!Pr(r)&&!(1===(s=e).length&&s[0]instanceof Pu&&e[0].i18n===r),u=Fc(e);if(a&&this.i18nStart(null,r,u),Ru(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(e){return e()}),0===this.level&&this._hasNgContent){var c=[];if(this._ngContentSelectors.length){var l=this._ngContentSelectors.map(function(e){return Y(e)}),p=this.constantPool.getConstLiteral(Qr(l),!0),h=this.constantPool.getConstLiteral(Qr(this._ngContentSelectors),!0);c.push(p,h)}this.creationInstruction(null,jn.projectionDef,c,!0)}a&&this.i18nEnd(null,u);var f=this._creationCodeFns.map(function(e){return e()}),d=this._updateCodeFns.map(function(e){return e()}),v=this._bindingScope.viewSnapshotStatements(),m=this._bindingScope.variableDeclarations().concat(this._tempVariables),y=f.length>0?[Oc(1,v.concat(f))]:[],g=d.length>0?[Oc(2,m.concat(d))]:[];return yt([new Me(zr,ce),new Me(qr,null)],Object(i.g)(this._prefixCode,y,g),ae,null,this.templateName)},e.prototype.getLocal=function(e){return this._bindingScope.get(e)},e.prototype.i18nTranslate=function(e,t,n,r){var o;void 0===t&&(t={});var s=n||this.i18nAllocateRef(e.id),a={};t&&Object.keys(t).length&&Object.keys(t).forEach(function(e){return a[Vr(e)]=t[e]});var u=Nr(e),c=Ur(s,function(e){return e.nodes.map(function(e){return e.visit(Cc,null)}).join("")}(e),u,a,r);return(o=this.constantPool.statements).push.apply(o,Object(i.g)(c)),s},e.prototype.i18nAppendBindings=function(e){var t=this;if(this.i18n&&e.length){var n=pt(qr);e.forEach(function(e){var r=t.convertExpressionBinding(n,e);t.i18n.appendBinding(r)})}},e.prototype.i18nBindProps=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){var i=e[r];if(i instanceof Su)n[r]=bt(i.value);else{var o=i.value.visit(t._valueConverter);if(t.allocateBindingSlots(o),o instanceof eo){var s=o.strings,a=o.expressions,u=t.i18n,c=u.id,l=function(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;o1})||Object.keys(s).length)&&(u=function(e){var t=[e];return Object.keys(s).length&&t.push(gr(s,!0)),Tc(null,jn.i18nPostprocess,t)}),this.i18nTranslate(n,a,e.ref,u)}},e.prototype.i18nStart=function(e,t,n){void 0===e&&(e=null);var r=this.allocateDataSlot();if(this.i18nContext)this.i18n=this.i18nContext.forkChildContext(r,this.templateIndex,t);else{var i=this.i18nAllocateRef(t.id);this.i18n=new cc(r,i,0,this.templateIndex,t)}var o=this.i18n,s=o.id,a=o.ref,u=[bt(r),a];s>0&&u.push(bt(s)),this.creationInstruction(e,n?jn.i18n:jn.i18nStart,u)},e.prototype.i18nEnd=function(e,t){var n=this;if(void 0===e&&(e=null),!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var r=this.i18n,i=r.index,o=r.bindings;o.size&&(o.forEach(function(t){return n.updateInstruction(e,jn.i18nExp,[t])}),this.updateInstruction(e,jn.i18nApply,[bt(i)])),t||this.creationInstruction(e,jn.i18nEnd),this.i18n=null},e.prototype.visitContent=function(e){this._hasNgContent=!0;var t=this.allocateDataSlot(),n="*"===e.selector?0:this._ngContentSelectors.push(e.selector)+this._ngContentSelectorsOffset,r=[bt(t)],i=[];e.attributes.forEach(function(e){var t=e.name,n=e.value;"select"!==t.toLowerCase()&&i.push(t,n)}),i.length>0?r.push(bt(n),Qr(i)):0!==n&&r.push(bt(n)),this.creationInstruction(e.sourceSpan,jn.projection,r)},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return jn.namespaceMathML;case"svg":return jn.namespaceSVG;default:return jn.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,a=this.allocateDataSlot(),u=new ua(bt(a),null),c=!1,l=Dr(e.i18n)&&!Pr(e.i18n);if(l&&this.i18n)throw new Error("Could not mark an element as translatable inside of a translatable section");var p=[],h=[],f=Object(i.f)(o(e.name),2),d=f[0],v=f[1],m=s(e.name);try{for(var y=Object(i.h)(e.attributes),g=y.next();!g.done;g=y.next()){var b=g.value,_=b.name,w=b.value;"ngNonBindable"===_?c=!0:"style"===_?u.registerStyleAttr(w):"class"===_?u.registerClassAttr(w):b.i18n?p.push(b):h.push(b)}}catch(F){t={error:F}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var E=[bt(a)];m||E.push(bt(v));var C=[],O=[];e.inputs.forEach(function(e){u.registerBoundInput(e)||(0===e.type&&e.i18n?p.push(e):O.push(e))}),h.forEach(function(e){return C.push(bt(e.name),bt(e.value))}),C.push.apply(C,Object(i.g)(this.prepareSyntheticAndSelectOnlyAttrs(O,e.outputs,u))),E.push(this.toAttrsParam(C)),E.push(this.prepareRefsParameter(e.references));var x=this._namespace,S=this.getNamespaceInstruction(d);S!==x&&this.addNamespaceInstruction(S,e);var j=pt(qr);this.i18n&&this.i18n.appendElement(e.i18n,a);var A=!u.hasBindingsOrInitialValues()&&!m&&0===e.outputs.length&&0===p.length&&!(!l&&r.i18n?!Fc(e.children):e.children.length>0),T=!A&&!u.hasBindingsOrInitialValues()&&Fc(e.children);if(A)this.creationInstruction(e.sourceSpan,jn.element,Zr(E));else{if(this.creationInstruction(e.sourceSpan,m?jn.elementContainerStart:jn.elementStart,Zr(E)),c&&this.creationInstruction(e.sourceSpan,jn.disableBindings),l&&this.i18nStart(e.sourceSpan,e.i18n,T),p.length){var D=!1,P=[];if(p.forEach(function(t){var n=t.i18n;if(t instanceof Au)P.push(bt(t.name),r.i18nTranslate(n));else{var i=t.value.visit(r._valueConverter);if(r.allocateBindingSlots(i),i instanceof eo){var o=Fr(Lr(n));P.push(bt(t.name),r.i18nTranslate(n,o)),i.expressions.forEach(function(t){D=!0;var n=r.convertExpressionBinding(j,t);r.updateInstruction(e.sourceSpan,jn.i18nExp,[n])})}}}),P.length){var M=bt(this.allocateDataSlot()),k=this.constantPool.getConstLiteral(vt(P),!0);this.creationInstruction(e.sourceSpan,jn.i18nAttributes,[M,k]),D&&this.updateInstruction(e.sourceSpan,jn.i18nApply,[M])}}this.processStylingInstruction(j,u.buildElementStylingInstruction(e.sourceSpan,this.constantPool),!0),e.outputs.forEach(function(t){r.creationInstruction(t.sourceSpan,jn.listener,r.prepareListenerParameter(e.name,t,a))})}if(u.buildUpdateLevelInstructions(this._valueConverter).forEach(function(e){r.processStylingInstruction(j,e,!1)}),O.forEach(function(e){var t=function(e){switch(e){case 0:case 4:return jn.elementProperty;case 2:return jn.elementClassProp;case 1:return jn.elementAttribute;default:return}}(e.type);if(4===e.type){var n=e.value.visit(r._valueConverter);if(n.name||n.value){var o=ci(e.name);r.allocateBindingSlots(n),r.updateInstruction(e.sourceSpan,jn.elementProperty,function(){return[bt(a),bt(o),r.convertPropertyBinding(j,n)]})}}else if(t){var s=[],u=function(e,t){switch(t){case N.HTML:return ht(jn.sanitizeHtml);case N.SCRIPT:return ht(jn.sanitizeScript);case N.STYLE:return 1===e.type?ht(jn.sanitizeStyle):null;case N.URL:return ht(jn.sanitizeUrl);case N.RESOURCE_URL:return ht(jn.sanitizeResourceUrl);default:return null}}(e,e.securityContext);u&&s.push(u);var c=e.value.visit(r._valueConverter);r.allocateBindingSlots(c),r.updateInstruction(e.sourceSpan,t,function(){return Object(i.g)([bt(a),bt(e.name),r.convertPropertyBinding(j,c)],s)})}else r._unsupported("binding type "+e.type)}),Ru(this,e.children),!l&&this.i18n&&this.i18n.appendElement(e.i18n,a,!0),!A){var I=e.endSourceSpan||e.sourceSpan;l&&this.i18nEnd(I,T),c&&this.creationInstruction(I,jn.enableBindings),this.creationInstruction(I,m?jn.elementContainerEnd:jn.elementEnd)}},e.prototype.visitTemplate=function(t){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(t.i18n,r);var o=on(t.tagName||""),s=(o?this.contextName+"_"+o:"")+"_"+r,a=s+"_Template",u=[bt(r),pt(a),bt(t.tagName)];this.matchDirectives("ng-template",t);var c=[];t.attributes.forEach(function(e){c.push(Qr(e.name),Qr(e.value))}),c.push.apply(c,Object(i.g)(this.prepareSyntheticAndSelectOnlyAttrs(t.inputs,t.outputs))),u.push(this.toAttrsParam(c)),t.references&&t.references.length&&(u.push(this.prepareRefsParameter(t.references)),u.push(ht(jn.templateRefExtractor)));var l=pt(qr);t.inputs.forEach(function(e){var i=e.value.visit(n._valueConverter);n.allocateBindingSlots(i),n.updateInstruction(t.sourceSpan,jn.elementProperty,function(){return[bt(r),bt(e.name),n.convertPropertyBinding(l,i)]})});var p=new e(this.constantPool,this._bindingScope,this.level+1,s,this.i18n,r,a,[],this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds);this._nestedTemplateFns.push(function(){var e,r=p.buildTemplateFunction(t.children,t.variables,n._ngContentSelectors.length+n._ngContentSelectorsOffset,t.i18n);n.constantPool.statements.push(r.toDeclStmt(a,null)),p._hasNgContent&&(n._hasNgContent=!0,(e=n._ngContentSelectors).push.apply(e,Object(i.g)(p._ngContentSelectors)))}),this.creationInstruction(t.sourceSpan,jn.templateCreate,function(){return u.splice(2,0,bt(p.getConstCount()),bt(p.getVarCount())),Zr(u)}),t.outputs.forEach(function(e){n.creationInstruction(e.sourceSpan,jn.listener,n.prepareListenerParameter("ng_template",e,r))})},e.prototype.visitBoundText=function(e){var t=this;if(this.i18n){var n=e.value.visit(this._valueConverter);return this.allocateBindingSlots(n),void(n instanceof eo&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(n.expressions)))}var r=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,jn.text,[bt(r)]);var i=e.value.visit(this._valueConverter);this.allocateBindingSlots(i),this.updateInstruction(e.sourceSpan,jn.textBinding,function(){return[bt(r),t.convertPropertyBinding(pt(qr),i)]})},e.prototype.visitText=function(e){this.i18n||this.creationInstruction(e.sourceSpan,jn.text,[bt(this.allocateDataSlot()),bt(e.value)])},e.prototype.visitIcu=function(e){var t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));var n=this.i18n,r=this.i18nBindProps(e.vars),i=this.i18nBindProps(e.placeholders),o=e.i18n,s=function(e){return Tc(null,jn.i18nPostprocess,[e,gr(r,!0)])};if(Pr(n.meta))this.i18nTranslate(o,i,n.ref,s);else{var a=this.i18nTranslate(o,i,void 0,s);n.appendIcu(Mr(o).name,a)}return t&&this.i18nEnd(null,!0),null},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,i){void 0===i&&(i=!1),e[i?"unshift":"push"](function(){var e=Array.isArray(r)?r:r();return Tc(t,n,e).toStmt()})},e.prototype.processStylingInstruction=function(e,t,n){var r=this;if(t){var i=function(){return t.buildParams(function(t){return r.convertPropertyBinding(e,t,!0)})};n?this.creationInstruction(t.sourceSpan,t.reference,i):this.updateInstruction(t.sourceSpan,t.reference,i)}},e.prototype.creationInstruction=function(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)},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 eo?e.expressions.length:1},e.prototype.convertExpressionBinding=function(e,t){var n=xo(this,e,t,this.bindingContext(),Eo.TrySimple).currValExpr;return ht(jn.bind).callFn([n])},e.prototype.convertPropertyBinding=function(e,t,n){var r,o=t instanceof eo?Mc:function(){return Pt("Unexpected interpolation")},s=xo(this,e,t,this.bindingContext(),Eo.TrySimple,o);(r=this._tempVariables).push.apply(r,Object(i.g)(s.stmts));var a=s.currValExpr;return t instanceof eo||n?a:ht(jn.bind).callFn([a])},e.prototype.matchDirectives=function(e,t){var n,r,i,o=this;if(this.directiveMatcher){var s=(n=e,r=ei(t),(i=new _).setElement(n),Object.getOwnPropertyNames(r).forEach(function(e){var t=r[e];i.addAttribute(e,t),"class"===e.toLowerCase()&&t.trim().split(/\s+/).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,n){var r=[],i=[],o=new Set;function s(e,t){"string"==typeof e?o.has(e)||(r.push(bt(e)),void 0!==t&&r.push(t),o.add(e)):r.push(bt(e))}if(e.length){var a=Qr("");e.forEach(function(e){if(4===e.type){var t=e.value;if(t instanceof ao){var n=t.ast;(function(e){return e instanceof Yi})(n)&&void 0===n.value&&s(ci(e.name),a)}}else i.push(e)})}return n&&n.populateInitialStylingAttrs(r),(i.length||t.length)&&(s(3),i.forEach(function(e){return s(e.name)}),t.forEach(function(e){s(1===e.type?function(e){var t=e.indexOf(".");return(e=t>0?e.substring(0,t):e).charAt(0)!==ui&&(e=ui+e),e}(e.name):e.name)})),r},e.prototype.toAttrsParam=function(e){return e.length>0?this.constantPool.getConstLiteral(vt(e),!0):qe},e.prototype.prepareRefsParameter=function(e){var t=this;if(!e||0===e.length)return qe;var n=Cn(e.map(function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=pt(r);return t._bindingScope.set(i,e.name,o,0,function(e,t){var r=t>0?[Dc(t).toStmt()]:[],i=o.set(ht(jn.reference).callFn([bt(n)]));return r.concat(i.toConstDecl())},!0),[e.name,e.value]}));return this.constantPool.getConstLiteral(Qr(n),!0)},e.prototype.prepareListenerParameter=function(e,t,n){var r,o=this,s=t.name;1===t.type?(r=pi(s,t.phase),s=li(s,t.phase)):r=on(s);var a=on(e),u=this.templateName+"_"+a+"_"+r+"_"+n+"_listener";return function(){var e=o._bindingScope.nestedScope(o._bindingScope.bindingLevel),n=_o(e,pt(qr),t.handler,"b",function(){return Pt("Unexpected interpolation")}),r=Object(i.g)(e.restoreViewStatement(),e.variableDeclarations(),n.render3Stmts),a=yt([new Me("$event",se)],r,ae,null,u);return[bt(s),a]}},e}(),Sc=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 Object(i.c)(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,o=this.allocatePureFunctionSlots(2+e.args.length),s=new Wi(e.span,new Hi(e.span),r),a=function(e){var t=jc[e.length];return{identifier:t||jn.pipeBindV,isVarLength:!t}}(e.args),u=a.identifier,c=a.isVarLength;this.definePipe(e.name,r,n,ht(u));var l=Object(i.g)([e.exp],e.args),p=c?this.visitAll([new Xi(e.span,l)]):this.visitAll(l),h=new so(e.span,s,Object(i.g)([new Yi(e.span,n),new Yi(e.span,o)],p));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 ko(e.span,this.visitAll(e.expressions),function(e){var t=vt(e);return e.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(t,!0):Pc(n.constantPool,t,n.allocatePureFunctionSlots)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new ko(e.span,this.visitAll(e.values),function(t){var r=mt(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):Pc(n.constantPool,r,n.allocatePureFunctionSlots)})},t}(po),jc=[jn.pipeBind1,jn.pipeBind2,jn.pipeBind3,jn.pipeBind4];var Ac=[jn.pureFunction0,jn.pureFunction1,jn.pureFunction2,jn.pureFunction3,jn.pureFunction4,jn.pureFunction5,jn.pureFunction6,jn.pureFunction7,jn.pureFunction8];function Tc(e,t,n){return ht(t,null,e).callFn(n,e)}function Dc(e){return ht(jn.nextContext).callFn(e>1?[bt(e)]:[])}function Pc(e,t,n){var r=e.getLiteralFactory(t),o=r.literalFactory,s=r.literalFactoryArguments,a=n(1+s.length);s.length>0||Pt("Expected arguments to a literal factory function");var u=function(e){var t=Ac[e.length];return{identifier:t||jn.pureFunctionV,isVarLength:!t}}(s),c=u.identifier,l=u.isVarLength,p=[bt(a),o];return l?p.push(vt(s)):p.push.apply(p,Object(i.g)(s)),ht(c).callFn(p)}var Nc=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",pt("$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,localRef:n.localRef},this.map.set(e,n),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel,n.localRef)),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,o){return void 0===r&&(r=0),!this.map.has(t)||Pt("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,localRef:o||!1}),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=pt(qr+this.freshReferenceName());this.map.set("$$shared_ctx$$"+e,{retrievalLevel:e,lhs:t,declareLocalCallback:function(e,n){return[t.set(Dc(n)).toConstDecl()]},declare:!1,priority:2,localRef:!1})},e.prototype.getComponentProperty=function(e){var t=this.map.get("$$shared_ctx$$0");return t.declare=!0,this.maybeRestoreView(0,!1),t.lhs.prop(e)},e.prototype.maybeRestoreView=function(e,t){this.isListenerScope()&&(e=19&&e.length%2==1||Pt("Invalid interpolation argument length "+e.length),ht(jn.interpolationV).callFn([vt(e)])}function kc(e){return void 0===e&&(e=mi),new Eu(new Sa(new fa),e,new wu,null,[])}function Ic(e){return e instanceof Su||e instanceof ju||e instanceof Fu}function Fc(e){return e.every(Ic)}var Rc=[],Lc=/attr\.([^\]]+)/;function Vc(e){return e.substring(0,5).toLowerCase()}function Bc(e,t,n){var r=new Jr;r.set("type",e.type),r.set("selectors",Qr(Y(e.selector)));var o=ti({name:e.name,type:e.type,deps:e.deps,injectFn:jn.directiveInject});r.set("factory",o.factory),r.set("contentQueries",function(e,t){if(e.queries.length){var n=e.queries.map(function(e){var n=Kc(e,t,null);return ht(jn.registerContentQuery).callFn([n,pt("dirIndex")]).toStmt()}),r=e.name,i=[new Me("dirIndex",ce)];return yt(i,n,ae,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 Me("dirIndex",ce),new Me("queryStartIndex",ce)],i=pt("instance"),o=Wr(t,Hr);return t.push(i.set(ht(jn.load).callFn([pt("dirIndex")])).toDeclStmt(ae,[Ee.Final])),e.queries.forEach(function(e,n){var r=pt("queryStartIndex"),s=ht(jn.loadQueryList).callFn([n>0?r.plus(bt(n)):r]),a=o().set(s),u=ht(jn.queryRefresh).callFn([a]),c=i.prop(e.propertyName).set(e.first?o().prop("first"):o()),l=u.and(c);t.push(l.toStmt())}),yt(r,t,ae,null,n?n+"_ContentQueriesRefresh":null)}return null}(e));for(var s=Object.keys(e.host.properties).filter(function(e){var t=Vc(e);return"style"!==t&&"class"!==t}).length,a=pt("elIndex"),u=pt(qr),c=new ua(a,u),l={},p=Object.getOwnPropertyNames(e.host.attributes),h=0;h0)return vt(r);return null}(l)),r.set("hostBindings",function(e,t,n,r,o,s,a){var u,c,l=[],p=[],h=a,f=e.typeSourceSpan,d=function(e){return{hostAttributes:e.host.attributes,hostListeners:e.host.listeners,hostProperties:e.host.properties}}(e),v=o.createDirectiveHostEventAsts(d,f);if(v&&v.length){var m=function(e,t,n){return t.map(function(t){var r=_o(null,e,t.handler,"b",function(){return Pt("Unexpected interpolation")}),o=t.name&&on(t.name),s=o;1===t.type&&(s=pi(o,t.targetOrPhase),o=li(o,t.targetOrPhase));var a=n.name,u=a&&o?a+"_"+s+"_HostBindingHandler":null,c=yt([new Me("$event",se)],Object(i.g)(r.render3Stmts),ae,null,u);return ht(jn.listener).callFn([bt(o),c]).toStmt()})}(n,v,e);l.push.apply(l,Object(i.g)(m))}var y=o.createBoundHostProperties(d,f),g=function(e,t){return xo(null,e,t,"b",Eo.TrySimple,function(){return Pt("Unexpected interpolation")})};if(y){var b=new Sc(s,function(){return Pt("Unexpected node")},function(e){var t=h;return h+=e,t},function(){return Pt("Unexpected pipe")});try{for(var _=Object(i.h)(y),w=_.next();!w.done;w=_.next()){var E=w.value,C=E.name,O=Vc(C);if("style"===O){var x=tl(C),S=x.propertyName,j=x.unit;r.registerStyleInput(S,E.expression,j,E.sourceSpan)}else if("class"===O)r.registerClassInput(tl(C).propertyName,E.expression,E.sourceSpan);else{var A=E.expression.visit(b),T=g(n,A),D=Xc(E),P=D.bindingName,N=D.instruction,M=D.extraParams,k=[t,bt(P),ht(jn.bind).callFn([T.currValExpr])];p.push.apply(p,Object(i.g)(T.stmts)),p.push(ht(N).callFn(k.concat(M)).toStmt())}}}catch(V){u={error:V}}finally{try{w&&!w.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(r.hasBindingsOrInitialValues()){var I=r.buildDirectiveHostAttrsInstruction(null,s);I&&l.push(Yc(I,n,g));var F=r.buildElementStylingInstruction(null,s);F&&l.push(Yc(F,n,g)),r.buildUpdateLevelInstructions(b).forEach(function(e){p.push(Yc(e,n,g))})}}h&&l.unshift(ht(jn.allocHostVars).callFn([bt(h)]).toStmt());if(l.length>0||p.length>0){var R=e.name?e.name+"_HostBindings":null,L=[];return l.length>0&&L.push(Oc(1,l)),p.length>0&&L.push(Oc(2,p)),yt([new Me(zr,ce),new Me(qr,null),new Me(t.name,ce)],L,ae,null,R)}return null}(e,a,u,c,n,t,s)),r.set("inputs",$r(e.inputs,!0)),r.set("outputs",$r(e.outputs)),null!==e.exportAs&&r.set("exportAs",bt(e.exportAs)),{definitionMap:r,statements:o.statements}}function Uc(e,t){var n=[],r=t.providers,i=t.viewProviders;if(r||i){var o=[r||new Le([])];i&&o.push(i),n.push(ht(jn.ProvidersFeature).callFn(o))}t.usesInheritance&&n.push(ht(jn.InheritDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(ht(jn.NgOnChangesFeature)),n.length&&e.set("features",vt(n))}function Hc(e,t,n){var r=Bc(e,t,n),i=r.definitionMap,o=r.statements;Uc(i,e);var s=ht(jn.defineDirective).callFn([i.toLiteralMap()]);(e.selector||"").replace(/\n/g,"");return{expression:s,type:Zc(e,jn.DirectiveDefWithMeta),statements:o}}function qc(e,t,n){var r,o,s=Bc(e,t,n),a=s.definitionMap,u=s.statements;Uc(a,e);var c=e.selector&&_.parse(e.selector),l=c&&c[0];if(l){var p=l.getAttrs();p.length&&a.set("attrs",t.getConstLiteral(vt(p.map(function(e){return bt(null!=e?e:void 0)})),!0))}var h=null;if(e.directives.length>0){var f=new w;try{for(var d=Object(i.h)(e.directives),v=d.next();!v.done;v=d.next()){var m=v.value,b=m.selector,E=m.expression;f.addSelectables(_.parse(b),E)}}catch(k){r={error:k}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}h=f}e.viewQueries.length&&a.set("viewQuery",function(e,t){for(var n=[],r=[],i=Wr(r,Hr),o=0;o0?new ge(e.providers):null}}function Wc(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:Gc(e.selectors,t),descendants:e.descendants,read:n}})}function Gc(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})&&Pt("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(vt(n.map(function(e){return bt(e)})))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return Pt("Unexpected query form"),He}function Kc(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 bt(e.trim())});n.push.apply(n,Object(i.g)(t))}),t.getConstLiteral(vt(n),!0)}return e.predicate}(e,t),o=[bt(n,ae),r,bt(e.descendants)];return e.read&&o.push(e.read),ht(jn.query).callFn(o)}function Qc(e){return dt(bt(e))}function $c(e){return dt(mt(Object.keys(e).map(function(t){return{key:t,value:bt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}})))}function Zc(e,t){var n,r=(e.selector||"").replace(/\n/g,"");return dt(ht(t,[ai(e.type,e.typeArgumentCount),Qc(r),null!==e.exportAs?Qc(e.exportAs):le,$c(e.inputs),$c(e.outputs),(n=e.queries.map(function(e){return e.propertyName}),n.length>0?dt(vt(n.map(function(e){return bt(e)}))):le)]))}function Yc(e,t,n){var r=e.buildParams(function(e){return n(t,e).currValExpr});return ht(e.reference,null,e.sourceSpan).callFn(r,e.sourceSpan).toStmt()}function Xc(e){var t,n=e.name,r=[],i=n.match(Lc);return i?(n=i[1],t=jn.elementAttribute):(e.isAnimation?(n=ci(n),t=jn.componentHostSyntheticProperty):t=jn.elementProperty,r.push(bt(null),bt(!0))),{bindingName:n,instruction:t,extraParams:r}}function Jc(e,t){var n=Array.from(e).map(function(e){var n=Object(i.f)(e,2),r=n[0],o=n[1];return[r,t.importExpr(o)]});return new Map(n)}var el=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function tl(e){var t="",n="",r=e.indexOf(".");if(r>0){var i=e.lastIndexOf(".");i!==r?(t=e.substring(i+1,e.length),n=e.substring(r+1,i)):n=e.substring(r+1,e.length)}return{propertyName:n,unit:t}}var nl=function(){function e(){this.R3ResolvedDependencyType=Xr,this.elementSchemaRegistry=new wu}return e.prototype.compilePipe=function(e,t,n){var r=Fi({name:n.name,type:new ge(n.type),deps:fl(n.deps),pipeName:n.pipeName,pure:n.pure});return ki(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:Xt.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),o=e.userDeps||r&&e.ctorDeps||void 0;t=ti(void 0!==o?Object(i.a)({},n,{delegate:e.useClass,delegateDeps:o,delegateType:Yr.Class}):Object(i.a)({},n,{delegate:e.useClass,delegateType:Yr.Factory}))}else t=void 0!==e.useFactory?ti(Object(i.a)({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:Yr.Function})):void 0!==e.useValue?ti(Object(i.a)({},n,{expression:e.useValue})):void 0!==e.useExisting?ti(Object(i.a)({},n,{expression:ht(Xt.inject).callFn([e.useExisting])})):ti(n);var s=e.type,a=e.providedIn;return{expression:ht(Xt.defineInjectable).callFn([oi({token:s,factory:t.factory,providedIn:a})]),type:new re(ht(Xt.InjectableDef,[ai(e.type,e.typeArgumentCount)])),statements:t.statements}}({name:n.name,type:new ge(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:pl(n.providedIn),useClass:ll(n,rl),useFactory:ll(n,il),useValue:ll(n,ol),useExisting:ll(n,sl),ctorDeps:fl(n.ctorDeps),userDeps:fl(n.userDeps)||void 0});return ki(r.expression,e,t,r.statements)},e.prototype.compileInjector=function(e,t,n){var r=function(e){var t=ti({name:e.name,type:e.type,deps:e.deps,injectFn:jn.inject});return{expression:ht(jn.defineInjector).callFn([oi({factory:t.factory,providers:e.providers,imports:e.imports})]),type:new re(ht(jn.InjectorDef,[new re(e.type)])),statements:t.statements}}({name:n.name,type:new ge(n.type),deps:fl(n.deps),providers:new ge(n.providers),imports:new ge(n.imports)});return ki(r.expression,e,t,r.statements)},e.prototype.compileNgModule=function(e,t,n){return ki(function(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports;return{expression:ht(jn.defineNgModule).callFn([oi({type:t,bootstrap:vt(n.map(function(e){return e.value})),declarations:vt(r.map(function(e){return e.value})),imports:vt(i.map(function(e){return e.value})),exports:vt(o.map(function(e){return e.value}))})]),type:new re(ht(jn.NgModuleDefWithMeta,[new re(t),Ii(r),Ii(i),Ii(o)])),additionalStatements:[]}}({type:new ge(n.type),bootstrap:n.bootstrap.map(al),declarations:n.declarations.map(al),imports:n.imports.map(al),exports:n.exports.map(al),emitInline:!0}).expression,e,t,[])},e.prototype.compileDirective=function(e,t,n){var r=new Kt,o=kc(),s=Hc(cl(n),r,o),a=Object(i.g)(r.statements,s.statements);return ki(s.expression,e,t,a)},e.prototype.compileComponent=function(e,t,n){var r=new Kt,o=n.interpolation?vi.fromArray(n.interpolation):mi,s=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,o=n.preserveWhitespaces,s=kc(r),a=(new nu).parse(e,t,Object(i.a)({},n,{tokenizeExpansionForms:!0}));if(a.errors&&a.errors.length>0)return{errors:a.errors,nodes:[]};var u=a.rootNodes;u=Ia(new wc(r,!o),u),o||(u=Ia(new lu,u),u=Ia(new wc(r,!1),u));var c=nc(u,s),l=c.nodes,p=c.errors;return p&&p.length>0?{errors:p,nodes:[]}:{nodes:l}}(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:o});if(void 0!==s.errors){var a=s.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+a)}var u=qc(Object(i.a)({},n,cl(n),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,viewQueries:n.viewQueries.map(ul),wrapDirectivesAndPipesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,interpolation:o,changeDetection:n.changeDetection,animations:null!=n.animations?new ge(n.animations):null,viewProviders:null!=n.viewProviders?new ge(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,kc(o)),c=Object(i.g)(r.statements,u.statements);return ki(u.expression,e,t,c)},e}(),rl=Object.keys({useClass:null})[0],il=Object.keys({useFactory:null})[0],ol=Object.keys({useValue:null})[0],sl=Object.keys({useExisting:null})[0],al=function(e){var t=new ge(e);return{value:t,type:t}};function ul(e){return Object(i.a)({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new ge(e.predicate),read:e.read?new ge(e.read):null})}function cl(e){var t=vl(e.inputs||[]),n=vl(e.outputs||[]),r=e.propMetadata,o={},s={},a=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){"Input"===t.ngMetadataName?o[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 Object(i.a)({},e,{typeSourceSpan:null,type:new ge(e.type),deps:fl(e.deps),host:dl(e.host,e.propMetadata),inputs:Object(i.a)({},t,o),outputs:Object(i.a)({},n,s),queries:e.queries.map(ul),providers:null!=e.providers?new ge(e.providers):null})}function ll(e,t){return e.hasOwnProperty(t)?new ge(e[t]):void 0}function pl(e){return null==e||"string"==typeof e?new Se(e):new ge(e)}function hl(e){return{token:null===e.token?new Se(null):e.resolved===Xr.Attribute?new Se(e.token):new ge(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function fl(e){return null==e?null:e.map(hl)}function dl(e,t){var n=function(e){var t={},n={},r={};return Object.keys(e).forEach(function(i){var o=e[i],s=i.match(el);null===s?t[i]=o:null!=s[1]?r[s[1]]=o:null!=s[2]&&(n[s[2]]=o)}),{attributes:t,listeners:n,properties:r}}(e||{}),r=n.attributes,i=n.listeners,o=n.properties,s=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 a in t)s(a);return{attributes:r,listeners:i,properties:o}}function vl(e){return e.reduce(function(e,t){var n=Object(i.f)(t.split(",").map(function(e){return e.trim()}),2),r=n[0],o=n[1];return e[r]=o||r,e},{})}new Ut("7.2.14");var ml,yl,gl=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}(),bl=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}(),_l=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}(),wl=((ml={})[4]=4,ml[1]=1,ml[2]=2,ml[0]=0,ml[3]=3,ml),El=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=wl[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}(),Cl=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}(),Ol=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}(),xl=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}(),Sl=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}(),jl=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}(),Al=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}(),Tl=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}(),Dl=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"}(yl||(yl={}));var Pl=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}Object(i.c)(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(Nl(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 Nl(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 Ml=function(){return function(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=void 0===n?y.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=kl(St(l)),this.strictInjectionParameters=!0===p}}();function kl(e,t){return void 0===t&&(t=!1),null===e?t:e}var Il=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(xt(e.template)){if(xt(e.templateUrl))throw Nt("'"+Lt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Nt("The template specified for component "+Lt(e.componentType)+" is not a string")}else{if(!xt(e.templateUrl))throw Nt("No template specified for component "+Lt(e.componentType));if("string"!=typeof e.templateUrl)throw Nt("The templateUrl specified for component "+Lt(e.componentType)+" is not a string")}if(xt(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Nt("The preserveWhitespaces option for component "+Lt(e.componentType)+" must be a boolean");return Tt(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)),Tt(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=vi.fromArray(e.interpolation),o=xn({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),s=this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:i});if(s.errors.length>0)throw Nt("Template parse errors:\n"+s.errors.join("\n"));var a=this._normalizeStylesheet(new vn({styles:e.styles,moduleUrl:e.moduleUrl})),u=new Fl;Ia(u,s.rootNodes);var c=this._normalizeStylesheet(new vn({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:s,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new vn({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Tt(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,o=Object(i.g)(t.styles);this._inlineStyles(t.inlineStyleUrls,n,o);var s=t.styleUrls,a=s.map(function(e){var t=n.get(e),o=Object(i.g)(t.styles);return r._inlineStyles(t.styleUrls,n,o),new vn({moduleUrl:e,styles:o})}),u=e.encapsulation;return null==u&&(u=this._config.defaultEncapsulation),u===y.Emulated&&0===o.length&&0===s.length&&(u=y.None),new mn({encapsulation:u,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:o,styleUrls:s,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:a,preserveWhitespaces:kl(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),Tt(Dt(e.filter(function(e){return!t.has(e)}).map(function(e){return Tt(n._fetch(e),function(r){var i=n._normalizeStylesheet(new vn({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(Vu).map(function(e){return t._urlResolver.resolve(n,e)}),o=e.styles.map(function(e){var o,s,a,u,c=(o=t._urlResolver,s=n,a=[],u=e.replace(Hu,"").replace(Uu,function(){for(var e=[],t=0;t', or 'attr.'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return V.isTypeOf(e)}).forEach(function(t){var n=t.args||[];s["("+t.eventName+")"]=e+"("+n.join(",")+")"});var u=Bl(t[e],function(e){return Rl.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 Et(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,o,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?Object(i.a)({},e.host,r):r,p=e.queries?Object(i.a)({},e.queries,o):o;if(k.isTypeOf(e)){var h=e;return k({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 P({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,queries:p,providers:e.providers,guards:s})},e}();function Vl(e){return P.isTypeOf(e)||k.isTypeOf(e)}function Bl(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}var Ul=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(i.c)(t,e),t}(Os),Hl="i18n",ql=/^i18n:?/,zl="|",Wl="@@",Gl=!1;var Kl,Ql=function(){return function(e,t){this.messages=e,this.errors=t}}();!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Kl||(Kl={}));var $l=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(Kl.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Ql(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(Kl.Merge,n),this._translations=t;var r=new Ma("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Xa(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=Ia(this,e.expression,t);if(this._mode===Kl.Merge)return new Pa(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=Ia(this,e.cases,t);return this._mode===Kl.Merge&&(e=new Da(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 ka&&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 ka&&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 Ia(this,this._translateMessage(e,o))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(r){if(!Gl&&console&&console.warn){Gl=!0;var s=e.sourceSpan.details?", "+e.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an element instead ("+e.sourceSpan.start+s+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(ql,"").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===Hl})||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==Kl.Extract&&Ia(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==Kl.Extract){var h=a||l;h&&this._openTranslatableSection(e),Ia(this,e.children),h&&this._closeTranslatableSection(e,e.children)}}this._mode===Kl.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===Kl.Merge){var f=this._translateAttributes(e);return new Ma(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=yc(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 Na&&!e[0].value)return null;var n=Zl(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===Kl.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)]=Zl(e.value))});var i=[];return n.forEach(function(n){if(n.name!==Hl&&!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 Na(n.name,"",n.sourceSpan));else if(l[0]instanceof Ta){var p=l[0].value;i.push(new Na(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 ka?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 Tn)){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 Ul(e.sourceSpan,t))},e}();function Zl(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf(Wl),n=e.indexOf(zl),r=Object(i.f)(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),o=r[0],s=r[1],a=Object(i.f)(n>-1?[o.slice(0,n),o.slice(n+1)]:["",o],2);return{meaning:a[0],description:a[1],id:s}}var Yl=new(function(){function e(){this.closedByParent=!1,this.contentType=r.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 Xl(e){return Yl}var Jl=function(e){function t(){return e.call(this,Xl)||this}return Object(i.c)(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(Ja),ep=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.write=function(e,t){var n=new tp,r=[];e.forEach(function(e){var t,o=[];e.sources.forEach(function(e){var t=new ur("context-group",{purpose:"location"});t.children.push(new lr(10),new ur("context",{"context-type":"sourcefile"},[new cr(e.filePath)]),new lr(10),new ur("context",{"context-type":"linenumber"},[new cr(""+e.startLine)]),new lr(8)),o.push(new lr(8),t)});var s=new ur("trans-unit",{id:e.id,datatype:"html"});(t=s.children).push.apply(t,Object(i.g)([new lr(8),new ur("source",{},n.serialize(e.nodes))],o)),e.description&&s.children.push(new lr(8),new ur("note",{priority:"1",from:"description"},[new cr(e.description)])),e.meaning&&s.children.push(new lr(8),new ur("note",{priority:"1",from:"meaning"},[new cr(e.meaning)])),s.children.push(new lr(6)),r.push(new lr(6),s)});var o=new ur("body",{},Object(i.g)(r,[new lr(4)])),s=new ur("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new lr(4),o,new lr(2)]),a=new ur("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new lr(2),s,new lr]);return or([new sr({version:"1.0",encoding:"UTF-8"}),new lr,a,new lr])},t.prototype.load=function(e,t){var n=(new np).parse(e,t),r=n.locale,o=n.msgIdToHtml,s=n.errors,a={},u=new rp;if(Object.keys(o).forEach(function(e){var n=u.convert(o[e],t),r=n.i18nNodes,c=n.errors;s.push.apply(s,Object(i.g)(c)),a[e]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:a}},t.prototype.digest=function(e){return Rn(e)},t}(nr),tp=function(){function e(){}return e.prototype.visitText=function(e,t){return[new cr(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,Object(i.g)(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new cr("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,Object(i.g)([new cr(t+" {")],e.cases[t].visit(n),[new cr("} ")]))}),r.push(new cr("}")),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 ur("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var r=new ur("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new ur("x",{id:e.closeName,ctype:n,"equiv-text":""});return Object(i.g)([r],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new ur("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 ur("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],Object(i.g)(e.map(function(e){return e.visit(t)})))},e}(),np=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Jl).parse(e,t);return this._errors=n.errors,Ia(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):(Ia(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,' 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),Ia(this,e.children,null);break;default:Ia(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 Ul(e.sourceSpan,t))},e}(),rp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Jl).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],Object(i.g)(Ia(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Tn(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 Mn("",n.value,e.sourceSpan):(this._addError(e,' misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],Object(i.g)(Ia(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return Ia(this,e.cases).forEach(function(t){n[t.value]=new Dn(t.nodes,e.sourceSpan)}),new Pn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Ia(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 Ul(e.sourceSpan,t))},e}();var ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.write=function(e,t){var n=new op,r=[];e.forEach(function(e){var t=new ur("unit",{id:e.id}),i=new ur("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new lr(8),new ur("note",{category:"description"},[new cr(e.description)])),e.meaning&&i.children.push(new lr(8),new ur("note",{category:"meaning"},[new cr(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new lr(8),new ur("note",{category:"location"},[new cr(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new lr(6)),t.children.push(new lr(6),i);var o=new ur("segment");o.children.push(new lr(8),new ur("source",{},n.serialize(e.nodes)),new lr(6)),t.children.push(new lr(6),o,new lr(4)),r.push(new lr(4),t)});var o=new ur("file",{original:"ng.template",id:"ngi18n"},Object(i.g)(r,[new lr(2)])),s=new ur("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new lr(2),o,new lr]);return or([new sr({version:"1.0",encoding:"UTF-8"}),new lr,s,new lr])},t.prototype.load=function(e,t){var n=(new sp).parse(e,t),r=n.locale,o=n.msgIdToHtml,s=n.errors,a={},u=new ap;if(Object.keys(o).forEach(function(e){var n=u.convert(o[e],t),r=n.i18nNodes,c=n.errors;s.push.apply(s,Object(i.g)(c)),a[e]=r}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:a}},t.prototype.digest=function(e){return Ln(e)},t}(nr),op=function(){function e(){}return e.prototype.visitText=function(e,t){return[new cr(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,Object(i.g)(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new cr("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,Object(i.g)([new cr(t+" {")],e.cases[t].visit(n),[new cr("} ")]))}),r.push(new cr("}")),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 ur("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new ur("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:""}),s=[].concat.apply([],Object(i.g)(e.children.map(function(e){return e.visit(n)})));return s.length?s.forEach(function(e){return o.children.push(e)}):o.children.push(new cr("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new ur("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 ur("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([],Object(i.g)(e.map(function(e){return e.visit(t)})))},e}(),sp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Jl).parse(e,t);return this._errors=n.errors,Ia(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):(Ia(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,' 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"):Ia(this,e.children,null)}break;default:Ia(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 Ul(e.sourceSpan,t))},e}(),ap=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Jl).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],Object(i.g)(Ia(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Tn(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 Mn("",r.value,e.sourceSpan)];this._addError(e,' misses the "equiv" attribute');break;case"pc":var o=e.attrs.find(function(e){return"equivStart"===e.name}),s=e.attrs.find(function(e){return"equivEnd"===e.name});if(o){if(s){var a=o.value,u=s.value,c=[];return c.concat.apply(c,Object(i.g)([new Mn("",a,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new Mn("",u,e.sourceSpan)]))}this._addError(e,' misses the "equivEnd" attribute')}else this._addError(e,' misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],Object(i.g)(Ia(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return Ia(this,e.cases).forEach(function(t){n[t.value]=new Dn(t.nodes,e.sourceSpan)}),new Pn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],Object(i.g)(Ia(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 Ul(e.sourceSpan,t))},e}();var up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new cp).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new lp;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 vr(e)},t.prototype.createNameMapper=function(e){return new rr(e,yr)},t}(nr);var cp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Jl).parse(e,t);return this._errors=n.errors,Ia(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," elements can not be nested");var n=e.attrs.find(function(e){return"lang"===e.name});n&&(this._locale=n.value),Ia(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,' 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 Ul(e.sourceSpan,t))},e}(),lp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Jl).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:Ia(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new Tn(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return Ia(this,e.cases).forEach(function(t){n[t.value]=new Dn(t.nodes,e.sourceSpan)}),new Pn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Ia(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 Mn("",n.value,e.sourceSpan);this._addError(e,' 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 Ul(e.sourceSpan,t))},e}(),pp=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=M.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new hp(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}(),hp=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 nu).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:Object(i.g)(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return hr(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("")+""},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===M.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===M.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 Ul(e.sourceSpan,t))},e}(),fp=function(){function e(e,t,n,r,i){if(void 0===r&&(r=M.Warning),this._htmlParser=e,t){var o=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new fr;case"xtb":return new up;case"xliff2":case"xlf2":return new ip;case"xliff":case"xlf":default:return new ep}}(n);this._translationBundle=pp.load(t,"i18n",o,r,i)}else this._translationBundle=new pp({},null,Rn,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||mi,o=this._htmlParser.parse(e,t,Object(i.a)({interpolationConfig:r},n));return o.errors.length?new Xa(o.rootNodes,o.errors):function(e,t,n,r,i){return new $l(r,i).merge(e,t,n)}(o.rootNodes,this._translationBundle,r,[],{})},e}();function dp(e,t,n){return void 0===n&&(n=null),Ot(t,new vp(e),n)}var vp=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return vt(e.map(function(e){return Ot(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 Ve(t,Ot(e[t],n,null),i.has(t)))}),new Be(r,t)},e.prototype.visitPrimitive=function(e,t){return bt(e,t)},e.prototype.visitOther=function(e,t){return e instanceof de?e:this.ctx.importExpr(e)},e}();function mp(e,t){return{key:e,value:t,quoted:!1}}!function(){function e(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(Xt.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;a0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=dp(t,e.useValue);else{var i=e.useClass||e.symbol,o=this.depsArray(this.reflector.parameters(i),t);n=new xe(t.importExpr(i),o)}return yt([],[new Qe(n)],void 0,void 0,e.symbol.name+"_Factory")},e.prototype.injectableDef=function(e,t){var n=He;void 0!==e.providedIn&&(n=null===e.providedIn?He:"string"==typeof e.providedIn?bt(e.providedIn):t.importExpr(e.providedIn));var r=[mp("factory",this.factoryFor(e,t)),mp("token",t.importExpr(e.type.reference)),mp("providedIn",n)];return ht(Xt.defineInjectable).callFn([mt(r)])},e.prototype.compile=function(e,t){if(this.alwaysGenerateDef||void 0!==e.providedIn){var n=un(e.type),r=new Je(n,null,[new Ze("ngInjectableDef",ae,[Ee.Static],this.injectableDef(e,t))],[],new Ye(null,[],[]),[]);t.statements.push(r)}}}();var yp=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,gp=/\.ngfactory\.|\.ngsummary\./,bp=/\.ngsummary\./,_p=/NgSummary$/;function wp(e,t){void 0===t&&(t=!1);var n=Cp(e,t);return n[0]+".ngfactory"+Op(n[1])}function Ep(e){return e.replace(gp,".")}function Cp(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 Op(e){return".tsx"===e?".ts":e}function xp(e){return e.replace(yp,"")+".ngsummary.json"}function Sp(e,t){void 0===t&&(t=!1);var n=Cp(Ep(e),t);return n[0]+".ngsummary"+n[1]}function jp(e){return e+"NgSummary"}var Ap=/\u0275\d+/;var Tp="ngComponentType",Dp=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 "+Lt(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 tn?this._staticSymbolCache.get(wp(e.filePath),t):this._createProxyClass(e,t)},e.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,ln(e,0))},e.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,"HostView_"+un({reference:e}))},e.prototype.getHostComponentType=function(e){var t=un({reference:e})+"_Host";return e instanceof tn?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},e.prototype.getRendererType=function(e){return e instanceof tn?this._staticSymbolCache.get(wp(e.filePath),pn(e)):{}},e.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof tn)return this._staticSymbolCache.get(wp(t.filePath),hn(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(Xt.createComponentFactory)(e,t,i,n,r,[])},e.prototype.initComponentFactory=function(e,t){var n;e instanceof tn||(n=e.ngContentSelectors).push.apply(n,Object(i.g)(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=_.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return yn.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new mn({encapsulation:y.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:g.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:y.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},e.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=Vt(t);var i,o,s=this.getNonNormalizedDirectiveMetadata(t),a=s.annotation,u=s.metadata,c=function(e){var n=new yn({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 Bt(p)&&n?(this._reportError((i=t,(o=Error("Can't compile synchronously as "+Lt(i)+" is still being loaded!"))[Tp]=i,o),t),null):Tt(p,c)}return c(null),null},e.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=Vt(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(k.isTypeOf(r)){hi("styles",(s=r).styles),hi("styleUrls",s.styleUrls),di("interpolation",s.interpolation);var o=s.animations;i=new mn({encapsulation:St(s.encapsulation),template:St(s.template),templateUrl:St(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:St(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:St(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;k.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+kp(e)+'"',[],e)),s.entryComponents&&(c=Pp(s.entryComponents).map(function(e){return t._getEntryComponentMetadata(e)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(Nt("Directive "+kp(e)+" has no selector, please add it!"),e),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+kp(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=yn.create({isHost:!1,selector:l,exportAs:St(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(Nt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+kp(e)+"."),e),t},e.prototype.getDirectiveSummary=function(e){var t=this._loadSummary(e,sn.Directive);return t||this._reportError(Nt("Illegal state: Could not load the summary for directive "+kp(e)+"."),e),t},e.prototype.isDirective=function(e){return!!this._loadSummary(e,sn.Directive)||this._directiveResolver.isDirective(e)},e.prototype.isPipe=function(e){return!!this._loadSummary(e,sn.Pipe)||this._pipeResolver.isPipe(e)},e.prototype.isNgModule=function(e){return!!this._loadSummary(e,sn.NgModule)||this._ngModuleResolver.isNgModule(e)},e.prototype.getNgModuleSummary=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,sn.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=Bl(this._reflector.shallowAnnotations(e),B.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=Vt(e);var o=this._ngModuleCache.get(e);if(o)return o;var s=this._ngModuleResolver.resolve(e,t);if(!s)return null;var a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[],v=[];s.imports&&Pp(s.imports).forEach(function(t){var o=void 0;if(Np(t))o=t;else if(t&&t.ngModule){var s=t;o=s.ngModule,s.providers&&h.push.apply(h,Object(i.g)(r._getProvidersMetadata(s.providers,f,"provider for the NgModule '"+kp(o)+"'",[],t)))}if(o){if(!r._checkSelfImport(e,o))if(n||(n=new Set),n.has(o))r._reportError(Nt(r._getTypeDescriptor(o)+" '"+kp(t)+"' is imported recursively by the module '"+kp(e)+"'."),e);else{n.add(o);var a=r.getNgModuleSummary(o,n);n.delete(o),a?l.push(a):r._reportError(Nt("Unexpected "+r._getTypeDescriptor(t)+" '"+kp(t)+"' imported by the module '"+kp(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(Nt("Unexpected value '"+kp(t)+"' imported by the module '"+kp(e)+"'"),e)}),s.exports&&Pp(s.exports).forEach(function(t){if(Np(t))if(n||(n=new Set),n.has(t))r._reportError(Nt(r._getTypeDescriptor(t)+" '"+Lt(t)+"' is exported recursively by the module '"+kp(e)+"'"),e);else{n.add(t);var i=r.getNgModuleSummary(t,n);n.delete(t),i?p.push(i):u.push(r._getIdentifierMetadata(t))}else r._reportError(Nt("Unexpected value '"+kp(t)+"' exported by the module '"+kp(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(l,p);s.declarations&&Pp(s.declarations).forEach(function(t){if(Np(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))m.addDirective(n),a.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(Nt("Unexpected "+r._getTypeDescriptor(t)+" '"+kp(t)+"' declared by the module '"+kp(e)+"'. Please add a @Pipe/@Directive/@Component annotation."),e);m.addPipe(n),m.pipes.push(n),c.push(n),r._addTypeToModule(t,e)}}else r._reportError(Nt("Unexpected value '"+kp(t)+"' declared by the module '"+kp(e)+"'"),e)});var y=[],g=[];return u.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(Nt("Can't export "+r._getTypeDescriptor(t.reference)+" "+kp(t.reference)+" from "+kp(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}}),s.providers&&h.push.apply(h,Object(i.g)(this._getProvidersMetadata(s.providers,f,"provider for the NgModule '"+kp(e)+"'",[],e))),s.entryComponents&&f.push.apply(f,Object(i.g)(Pp(s.entryComponents).map(function(e){return r._getEntryComponentMetadata(e)}))),s.bootstrap&&Pp(s.bootstrap).forEach(function(t){Np(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(Nt("Unexpected value '"+kp(t)+"' used in the bootstrap property of module '"+kp(e)+"'"),e)}),f.push.apply(f,Object(i.g)(d.map(function(e){return r._getEntryComponentMetadata(e.reference)}))),s.schemas&&v.push.apply(v,Object(i.g)(Pp(s.schemas))),o=new bn({type:this._getTypeMetadata(e),providers:h,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:a,exportedDirectives:y,declaredPipes:c,exportedPipes:g,importedModules:l,exportedModules:p,transitiveModule:m,id:s.id||null}),f.forEach(function(e){return m.addEntryComponent(e)}),h.forEach(function(e){return m.addProvider(e,o.type)}),m.addModule(o.type),this._ngModuleCache.set(e,o),o},e.prototype._checkSelfImport=function(e,t){return e===t&&(this._reportError(Nt("'"+kp(e)+"' module can't import itself"),e),!0)},e.prototype._getTypeDescriptor=function(e){if(Np(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(Nt("Type "+kp(e)+" is part of the declarations of 2 modules: "+kp(n)+" and "+kp(t)+"! Please consider moving "+kp(e)+" to a higher module that imports "+kp(n)+" and "+kp(t)+". You can also create a new NgModule that exports and includes "+kp(e)+" then import that NgModule in "+kp(n)+" and "+kp(t)+"."),t):this._ngModuleOfTypes.set(e,t)},e.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new _n,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=dn(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=Vt(e)}},e.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some(function(e){return U.isTypeOf(e)})},e.prototype.getInjectableSummary=function(e){return{summaryKind:sn.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,sn.Injectable),i=r?r.type:this._getTypeMetadata(e,t,n),o=this._reflector.annotations(e).filter(function(e){return U.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,Io.filter(function(e){return Fo(r,e,i)}))}},e.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=Vt(e),diDeps:this._getDependenciesMetadata(e,t)}},e.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(Nt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+kp(e)+"."),e),t||null},e.prototype.getPipeSummary=function(e){var t=this._loadSummary(e,sn.Pipe);return t||this._reportError(Nt("Illegal state: Could not load the summary for pipe "+kp(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=Vt(e);var t=this._pipeResolver.resolve(e),n=new gn({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){K.isTypeOf(e)?n=!0:W.isTypeOf(e)?o=!0:G.isTypeOf(e)?s=!0:z.isTypeOf(e)?a=!0:S.isTypeOf(e)?(t=!0,u=e.attributeName):O.isTypeOf(e)?u=e.token:x.isTypeOf(e)||e instanceof tn?u=e:Np(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?kp(e.token):"?"}).join(", "),a="Can't resolve all parameters for "+kp(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(Nt(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=Vt(e))?{value:e}:{identifier:{reference:e}}},e.prototype._getProvidersMetadata=function(e,t,n,r,o){var s=this;return void 0===r&&(r=[]),e.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,t,n,r);else{var c=void 0;if((a=Vt(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new En(a.provide,a);else{if(!Np(a)){if(void 0===a)return void s._reportError(Nt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var l=e.reduce(function(e,t,n){return n0&&o++,r=r._parent;return(t=this.viewContext.viewQueries.get(dn(e)))&&n.push.apply(n,Object(i.g)(t)),n},e.prototype._getOrCreateLocalProvider=function(e,t,n){var r=this,i=this._allProviders.get(dn(t));if(!i||(e===yl.Directive||e===yl.PublicService)&&i.providerType===yl.PrivateService||(e===yl.PrivateService||e===yl.PublicService)&&i.providerType===yl.Builtin)return null;var o=this._transformedProviders.get(dn(t));if(o)return o;if(null!=this._seenProviders.get(dn(t)))return this.viewContext.errors.push(new Ip("Cannot instantiate cyclic dependency! "+fn(t),this._sourceSpan)),null;this._seenProviders.set(dn(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 Vp(e,{useExisting:o,useValue:t,deps:s})});return o=Bp(i,{eager:n,providers:s}),this._transformedProviders.set(dn(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===yl.Directive||e===yl.Component){if(dn(t.token)===this.viewContext.reflector.resolveExternalReference(Xt.Renderer)||dn(t.token)===this.viewContext.reflector.resolveExternalReference(Xt.ElementRef)||dn(t.token)===this.viewContext.reflector.resolveExternalReference(Xt.ChangeDetectorRef)||dn(t.token)===this.viewContext.reflector.resolveExternalReference(Xt.TemplateRef))return t;dn(t.token)===this.viewContext.reflector.resolveExternalReference(Xt.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(dn(t.token)===this.viewContext.reflector.resolveExternalReference(Xt.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(yl.PublicService,t,i)}o||(o=!t.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===dn(t.token)||null!=this.viewContext.viewProviders.get(dn(t.token))?t:t.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Ip("No provider for "+fn(t.token),this._sourceSpan)),o},e}(),Lp=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){Up([{token:{identifier:e},useClass:e}],yl.PublicService,!0,r,i._errors,i._allProviders,!0)}),Up(t.transitiveModule.providers.map(function(e){return e.provider}).concat(n),yl.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(dn(e));if(!r)return null;var i=this._transformedProviders.get(dn(e));if(i)return i;if(null!=this._seenProviders.get(dn(e)))return this._errors.push(new Ip("Cannot instantiate cyclic dependency! "+fn(e),r.sourceSpan)),null;this._seenProviders.set(dn(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 Vp(e,{useExisting:o,useValue:i,deps:s})});return i=Bp(r,{eager:t,providers:o}),this._transformedProviders.set(dn(e),i),i},e.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||dn(e.token)===this.reflector.resolveExternalReference(Xt.Injector)||dn(e.token)===this.reflector.resolveExternalReference(Xt.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},e}();function Vp(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 Bp(e,t){var n=t.eager,r=t.providers;return new Dl(e.token,e.multiProvider,e.eager||n,r,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function Up(e,t,n,r,i,o,s){e.forEach(function(e){var a=o.get(dn(e.token));if(null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new Ip("Mixing multi and non multi provider is not possible for token "+fn(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 Dl(e.token,!!e.multi,n||c,[e],t,u,r,s),o.set(dn(e.token),a)}})}function Hp(e,t){t.meta.selectors.forEach(function(n){var r=e.get(dn(n));r||(r=[],e.set(dn(n),r)),r.push(t)})}function qp(e,t){var n=0;t.eager||(n|=4096),t.providerType===yl.PrivateService&&(n|=8192),t.isModule&&(n|=1073741824),t.lifecycleHooks.forEach(function(e){e!==Mo.OnDestroy&&t.providerType!==yl.Directive&&t.providerType!==yl.Component||(n|=Kp(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=dp(e,t.useValue);return r});return{providerExpr:yt(i,[new Qe(vt(o))],ae),flags:1024|t,depsExpr:vt(r)};function s(t,n){return n.map(function(n,o){var s="p"+t+"_"+o;return i.push(new Me(s,se)),r.push(Gp(e,n)),pt(s)})}}(e,n,t.providers):zp(e,n,t.providerType,t.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:Wp(e,t.token)}}function zp(e,t,n,r){var i,o;return n===yl.Directive||n===yl.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=He,t|=2048,o=[{token:r.useExisting}]):(i=dp(e,r.useValue),t|=256,o=[]),{providerExpr:i,flags:t,depsExpr:vt(o.map(function(t){return Gp(e,t)}))}}function Wp(e,t){return t.identifier?e.importExpr(t.identifier.reference):bt(t.value)}function Gp(e,t){var n=t.isValue?dp(e,t.value):Wp(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:vt([bt(r),n])}function Kp(e){var t=0;switch(e){case Mo.AfterContentChecked:t=2097152;break;case Mo.AfterContentInit:t=1048576;break;case Mo.AfterViewChecked:t=8388608;break;case Mo.AfterViewInit:t=4194304;break;case Mo.DoCheck:t=262144;break;case Mo.OnChanges:t=524288;break;case Mo.OnDestroy:t=131072;break;case Mo.OnInit:t=65536}return t}function Qp(e,t,n,r){var i=r.map(function(e){return t.importExpr(e.componentFactory)}),o=en(e,Xt.ComponentFactoryResolver),s={diDeps:[{isValue:!0,value:vt(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:en(e,Xt.NgModuleRef)}],lifecycleHooks:[],reference:e.resolveExternalReference(Xt.CodegenComponentFactoryResolver)},a=zp(t,n,yl.PrivateService,{token:o,multi:!1,useClass:s});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:Wp(t,o)}}var $p=function(){return function(e){this.ngModuleFactoryVar=e}}(),Zp=pt("_l"),Yp=function(){function e(e){this.reflector=e}return e.prototype.compile=function(e,t,n){var r=xs("NgModule",t.type),i=t.transitiveModule.entryComponents,o=t.bootstrapComponents,s=new Lp(this.reflector,t,n,r),a=[Qp(this.reflector,e,0,i)].concat(s.parse().map(function(t){return qp(e,t)})).map(function(e){var t=e.providerExpr,n=e.depsExpr,r=e.flags,i=e.tokenExpr;return ht(Xt.moduleProviderDef).callFn([bt(r),i,t,n])}),u=ht(Xt.moduleDef).callFn([vt(a)]),c=yt([new Me(Zp.name)],[new Qe(u)],ae),l=un(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,ht(Xt.createModuleFactory).callFn([e.importExpr(t.type.reference),vt(o.map(function(t){return e.importExpr(t.reference)})),c])),t.id){var p="string"==typeof t.id?bt(t.id):e.importExpr(t.id),h=ht(Xt.RegisterModuleFactoryFn).callFn([p,pt(l)]).toStmt();e.statements.push(h)}return new $p(l)},e.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,He)},e.prototype._createNgModuleFactory=function(e,t,n){var r=pt(un({reference:t})+"NgFactory").set(n).toDeclStmt(ft(Xt.NgModuleFactory,[dt(e.importExpr(t))],[X.Const]),[Ee.Final,Ee.Exported]);e.statements.push(r)},e}(),Xp=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some(B.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=Bl(this._reflector.annotations(e),B.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+Lt(e)+"'.");return null},e}();!function(){function e(){}e.prototype.emitStatementsAndContext=function(e,t,n,r,o,s){void 0===n&&(n=""),void 0===r&&(r=!0);var a=new Jp(o,s),u=ji.createRoot();a.visitAllStatements(t,u);var c=n?n.split("\n"):[];a.reexports.forEach(function(e,t){var n=e.map(function(e){return e.name+" as "+e.as}).join(",");c.push("export {"+n+"} from '"+t+"';")}),a.importsWithPrefixes.forEach(function(e,t){c.push("import * as "+e+" from '"+t+"';")});var l=r?u.toSourceMapGenerator(e,c.length).toJsComment():"",p=Object(i.g)(c,[u.toSource(),l]);return l&&p.push(""),u.setPreambleLineCount(c.length),{sourceText:p.join("\n"),context:u}},e.prototype.emitStatements=function(e,t,n){return void 0===n&&(n=""),this.emitStatementsAndContext(e,t,n).sourceText}}();var Jp=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 Object(i.c)(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!=ae?(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(Ee.Exported)&&e.value instanceof je&&!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(Ee.Exported)&&t.print(e,"export "),e.hasModifier(Ee.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(Ee.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(Ee.Private)&&t.print(null,"/*private*/ "),e.hasModifier(Ee.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(Ee.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(Ee.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(Ee.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 ("+Oi.name+") {"),t.incIndent();var n=[xi.set(Oi.prop("stack",null)).toDeclStmt(null,[Ee.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 J.Bool:n="boolean";break;case J.Dynamic:n="any";break;case J.Function:n="Function";break;case J.Number:case J.Int:n="number";break;case J.String:n="string";break;case J.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 ve.ConcatArray:t="concat";break;case ve.SubscribeObservable:t="subscribe";break;case ve.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!==ae&&(t.print(null,":"),this.visitType(e,t,n))},t}(Ai),eh=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(Vt(e));return t&&t.some(I.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Vt(e));if(n){var r=Bl(n,I.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Lt(e));return null},e}(),th=["zero","one","two","few","many","other"];function nh(e){var t=new oh;return new rh(Ia(t,e),t.isExpanded,t.errors)}var rh=function(){return function(e,t,n){this.nodes=e,this.expanded=t,this.errors=n}}(),ih=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(i.c)(t,e),t}(Os),oh=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new Ma(e.name,e.attrs,Ia(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,o=n.cases.map(function(e){-1!=th.indexOf(e.value)||e.value.match(/^=\d+$/)||r.push(new ih(e.valueSourceSpan,'Plural cases should be "=" or one of '+th.join(", ")));var t=nh(e.expression);return r.push.apply(r,Object(i.g)(t.errors)),new Ma("ng-template",[new Na("ngPluralCase",""+e.value,e.valueSourceSpan)],t.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),s=new Na("[ngPlural]",n.switchValue,n.switchValueSourceSpan),new Ma("ng-container",[s],o,n.sourceSpan,n.sourceSpan,n.sourceSpan)):function(e,t){var n=e.cases.map(function(e){var n=nh(e.expression);return t.push.apply(t,Object(i.g)(n.errors)),"other"===e.value?new Ma("ng-template",[new Na("ngSwitchDefault","",e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan):new Ma("ng-template",[new Na("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Na("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new Ma("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors);var n,r,o,s},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}();var sh,ah=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,uh="class";function ch(){return sh||(sh=_.parse("*")[0]),sh}var lh=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return Object(i.c)(t,e),t}(Os),ph=function(){return function(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n}}(),hh=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===_s.WARNING}),c=a.errors.filter(function(e){return e.level===_s.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw Nt("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,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return s||(a=pu(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},e.prototype.tryParseHtml=function(e,t,n,r,o){var s,a=e.errors,u=[];if(e.rootNodes.length>0){var c=wh(n),l=wh(r),p=new Fp(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 Eu(this._exprParser,h,this._schemaRegistry,l,a),d=new fh(this._reflector,this._config,p,c,f,this._schemaRegistry,o,a);s=Ia(d,e.rootNodes,gh),a.push.apply(a,Object(i.g)(p.errors)),u.push.apply(u,Object(i.g)(f.getUsedPipes()))}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new ph(s,u,a):(this.transforms&&this.transforms.forEach(function(e){s=Nl(e,s)}),new ph(s,u,a))},e.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=nh(e.rootNodes);n.push.apply(n,Object(i.g)(r.errors)),e=new Xa(r.nodes,n)}return e},e.prototype.getInterpolationConfig=function(e){if(e.template)return vi.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 lh('Reference "#'+r+'" is defined several times',e.sourceSpan,_s.ERROR);t.push(i)}})})},e}(),fh=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 w,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(e,t){var n=_.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(ch()),r=uu(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new bl(i,n,e.sourceSpan):new gl(r,n,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return new _l(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,o=e.name,s=Ju(e);if(s.type===Bu.SCRIPT||s.type===Bu.STYLE)return null;if(s.type===Bu.STYLESHEET&&Vu(s.hrefAttr))return null;var a=[],c=[],l=[],p=[],h=[],f=[],d=[],v=[],m=!1,y=[],g=u(e.name);e.attrs.forEach(function(e){var t,r,o=n._parseAttr(g,e,a,c,h,l,p);p.push.apply(p,Object(i.g)([].map(function(e){return xl.fromParsedVariable(e)})));var s=n._normalizeAttributeName(e.name);s.startsWith("*")&&(t=e.value,r=s.substring("*".length));var u=null!=t;if(u){m&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),m=!0;var b=[];n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,d,f,b),v.push.apply(v,Object(i.g)(b.map(function(e){return xl.fromParsedVariable(e)})))}o||u||(y.push(n.visitAttribute(e,null)),a.push([e.name,e.value]))});var b=yh(o,a),w=this._parseDirectives(this.selectorMatcher,b),E=w.directives,C=w.matchElement,O=[],x=new Set,S=this._createDirectiveAsts(g,e.name,E,c,l,e.sourceSpan,O,x),j=this._createElementPropertyAsts(e.name,c,x),A=t.isTemplateElement||m,T=new Rp(this.providerViewContext,t.providerContext,A,S,y,O,g,r,e.sourceSpan),D=Ia(s.nonBindable?bh:this,e.children,mh.create(g,S,g?t.providerContext:T));T.afterElement();var P,N=""!=s.projectAs?_.parse(s.projectAs)[0]:b,M=t.findNgContentIndex(N);if(s.type===Bu.NG_CONTENT)e.children&&!e.children.every(_h)&&this._reportError(" element cannot have content.",e.sourceSpan),P=new Pl(this.ngContentCount++,m?null:M,e.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(S,h),this._assertNoComponentsNorElementBindingsOnTemplate(S,j,e.sourceSpan),P=new jl(y,h,O,p,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,D,m?null:M,e.sourceSpan);else{this._assertElementExists(C,e),this._assertOnlyOneComponent(S,e.sourceSpan);var k=m?null:t.findNgContentIndex(N);P=new Sl(o,y,j,h,O,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,D,m?null:k,e.sourceSpan,e.endSourceSpan||null)}if(m){var I=this.contentQueryStartId,F=yh("ng-template",d),R=this._parseDirectives(this.selectorMatcher,F).directives,L=new Set,V=this._createDirectiveAsts(!0,o,R,f,[],e.sourceSpan,[],L),B=this._createElementPropertyAsts(o,f,L);this._assertNoComponentsNorElementBindingsOnTemplate(V,B,e.sourceSpan);var U=new Rp(this.providerViewContext,t.providerContext,t.isTemplateElement,V,[],[],!0,I,e.sourceSpan);U.afterElement(),P=new jl([],[],[],v,U.transformedDirectiveAsts,U.transformProviders,U.transformedHasViewContainer,U.queryMatches,[P],M,e.sourceSpan)}return P},e.prototype._parseAttr=function(e,t,n,r,o,s,a){var u=this._normalizeAttributeName(t.name),c=t.value,l=t.sourceSpan,p=[],h=u.match(ah),f=!1;if(null!==h)if(f=!0,null!=h[1])this._bindingParser.parsePropertyBinding(h[7],c,!1,l,n,r);else if(h[2])if(e){var d=h[7];this._parseVariable(d,c,l,a)}else this._reportError('"let-" is only supported on ng-template elements.',l);else if(h[3]){d=h[7];this._parseReference(d,c,l,s)}else h[4]?this._bindingParser.parseEvent(h[7],c,l,n,p):h[5]?(this._bindingParser.parsePropertyBinding(h[7],c,!1,l,n,r),this._parseAssignmentEvent(h[7],c,l,n,p)):h[6]?this._bindingParser.parseLiteralAttr(u,c,l,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],c,!1,l,n,r),this._parseAssignmentEvent(h[8],c,l,n,p)):h[9]?this._bindingParser.parsePropertyBinding(h[9],c,!1,l,n,r):h[10]&&this._bindingParser.parseEvent(h[10],c,l,n,p);else f=this._bindingParser.parsePropertyInterpolation(u,c,l,n,r);return f||this._bindingParser.parseLiteralAttr(u,c,l,n,r),o.push.apply(o,Object(i.g)(p.map(function(e){return Cl.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 xl(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 vh(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 Cs(o.start,o.end,"Directive "+un(e.type));e.isComponent&&(l=e);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map(function(e){return El.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 Ol(t.name,Jt(e.type.reference),t.value,t.sourceSpan)),c.add(t.name))});var d=f.map(function(e){return Cl.fromParsedEvent(e)}),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new Tl(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=en(u.reflector,Xt.TemplateRef)),s.push(new Ol(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),Eh(s.expression)||n.push(new Al(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(El.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 un(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!Eh(t.value)})},e.prototype._reportError=function(e,t,n){void 0===n&&(n=_s.ERROR),this._targetErrors.push(new Os(t,e,n))},e}(),dh=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=Ju(e);if(n.type===Bu.SCRIPT||n.type===Bu.STYLE||n.type===Bu.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=yh(e.name,r),o=t.findNgContentIndex(i),s=Ia(this,e.children,gh);return new Sl(e.name,Ia(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 _l(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(ch());return new gl(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),vh=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 mh=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 w,o=null,s=n.find(function(e){return e.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?t[0]:null},e}();function yh(e,t){var n=new _,r=o(e)[1];n.setElement(r);for(var i=0;i0?se:dt(t.importExpr(this.component.type.reference)),this.viewName=ln(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 a=(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|Bh(a,n,e.first);o.nodes.push(function(){return{sourceSpan:null,nodeFlags:i,nodeDef:ht(Xt.queryDef).callFn([bt(i),bt(n),new Be([new Ve(e.propertyName,bt(r),!1)])])}})})}Nl(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];if(n instanceof jl)return n.hasViewContainer;if(n instanceof Sl)return s(n.name)&&n.children.length?e(n.children):n.hasViewContainer;return n instanceof Pl}(t))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:ht(Xt.anchorDef).callFn([bt(0),He,He,bt(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!==g.OnPush||(a|=2);var u=new Ge(this.viewName,[new Me(Th.name)],[new Qe(ht(Xt.viewDef).callFn([bt(a),vt(i),s,o]))],ft(Xt.ViewDefinition),0===this.embeddedViewIndex?[Ee.Exported]:[]);return e.push(u),e},e.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&st(e).has(Nh.name)&&n.push(Nh.set(Dh.prop("component")).toDeclStmt(this.compType)),t=yt([new Me(Ph.name,ae),new Me(Dh.name,ae)],Object(i.g)(n,e),ae)}else t=He;return t},e.prototype.visitNgContent=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:ht(Xt.ngContentDef).callFn([bt(e.ngContentIndex),bt(e.index)])}})},e.prototype.visitText=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:ht(Xt.textDef).callFn([bt(-1),bt(e.ngContentIndex),vt([bt(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:Nh,value:t})}),s=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:ht(Xt.textDef).callFn([bt(s),bt(e.ngContentIndex),vt(i.strings.map(function(e){return bt(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:ht(Xt.anchorDef).callFn([bt(o),s,bt(e.ngContentIndex),bt(c),n._createElementHandleEventFn(r,a),pt(u.viewName)])}}},e.prototype.visitElement=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var o=s(e.name)?null:e.name,a=this._visitElementOrTemplate(r,e),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],v=[];if(o){var m=e.inputs.map(function(e){return{context:Nh,inputAst:e,dirAst:null}}).concat(p);m.length&&(d=m.map(function(e,t){return n._preprocessUpdateExpression({context:e.context,nodeIndex:r,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})}),f=m.map(function(e){return function(e,t){var n=e.type;switch(n){case 1:return vt([bt(1),bt(e.name),bt(e.securityContext)]);case 0:return vt([bt(8),bt(e.name),bt(e.securityContext)]);case 4:var r=8|(t&&t.directive.isComponent?32:16);return vt([bt(r),bt("@"+e.name),bt(e.securityContext)]);case 2:return vt([bt(2),bt(e.name),He]);case 3:return vt([bt(4),bt(e.name),bt(e.unit)]);default:var i=n;throw new Error("unexpected "+i)}}(e.inputAst,e.dirAst)})),v=c.map(function(e){var t=Object(i.f)(e,2),n=t[0],r=t[1];return vt([bt(n),bt(r)])})}Nl(this,e.children);var y=this.nodes.length-r-1,g=e.directives.find(function(e){return e.directive.isComponent}),b=He,_=He;g&&(_=this.outputCtx.importExpr(g.directive.componentViewType),b=this.outputCtx.importExpr(g.directive.rendererType));var w=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|u,nodeDef:ht(Xt.elementDef).callFn([bt(w),bt(u),l,bt(e.ngContentIndex),bt(y),bt(o),o?Fh(e):He,f.length?vt(f):He,v.length?vt(v):He,n._createElementHandleEventFn(r,h),_,b]),updateRenderer:d}}},e.prototype._visitElementOrTemplate=function(e,t){var n=this,r=0;t.hasViewContainer&&(r|=16777216);var o=new Map;t.outputs.forEach(function(e){var t=Vh(e,null),n=t.name,r=t.target;o.set(Uh(r,n),[r,n])}),t.directives.forEach(function(e){e.hostEvents.forEach(function(t){var n=Vh(t,e),r=n.name,i=n.target;o.set(Uh(i,r),[i,r])})});var s=[],a=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach(function(r,u){var c=void 0,l=void 0;if(t.directives.forEach(function(e,t){e.directive.type.reference===dn(r.token)&&(c=e,l=t)}),c){var p=n._visitDirective(r,c,l,e,t.references,t.queryMatches,o,n.staticQueryIds.get(t)),h=p.hostBindings,f=p.hostEvents;s.push.apply(s,Object(i.g)(h)),a.push.apply(a,Object(i.g)(f))}else n._visitProvider(r,t.queryMatches)});var u=[];return t.queryMatches.forEach(function(e){var t=void 0;dn(e.value)===n.reflector.resolveExternalReference(Xt.ElementRef)?t=0:dn(e.value)===n.reflector.resolveExternalReference(Xt.ViewContainerRef)?t=3:dn(e.value)===n.reflector.resolveExternalReference(Xt.TemplateRef)&&(t=2),null!=t&&u.push(vt([bt(e.queryId),bt(t)]))}),t.references.forEach(function(t){var r=void 0;t.value?dn(t.value)===n.reflector.resolveExternalReference(Xt.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,u.push(vt([bt(t.name),bt(r)])))}),t.outputs.forEach(function(e){a.push({context:Nh,eventAst:e,dirAst:null})}),{flags:r,usedEvents:Array.from(o.values()),queryMatchesExpr:u.length?vt(u):He,hostBindings:s,hostEvents:a}},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|Bh(a,r,e.first),o=e.first?0:1;u.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:ht(Xt.queryDef).callFn([bt(i),bt(r),new Be([new Ve(e.propertyName,bt(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&&dn(t.value)===dn(e.token)&&(u.refNodeIndices[t.name]=c,f.push(vt([bt(t.name),bt(4)])))}),t.directive.isComponent&&(h|=32768);var m=t.inputs.map(function(e,t){var n=vt([bt(t),bt(e.directiveName)]);return new Ve(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 Ve(e,bt(t),!1))});var b=[];(t.inputs.length||(327680&h)>0)&&(b=t.inputs.map(function(e,t){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:t,sourceSpan:e.sourceSpan,context:Nh,value:e.value})}));var _=ht(Xt.nodeValue).callFn([Dh,bt(c)]),w=t.hostProperties.map(function(e){return{context:_,dirAst:t,inputAst:e}}),E=t.hostEvents.map(function(e){return{context:_,eventAst:e,dirAst:t}}),C=c;return this.nodes[c]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:16384|h,nodeDef:ht(Xt.directiveDef).callFn([bt(C),bt(h),f.length?vt(f):He,bt(l),d,v,m.length?new Be(m):He,y.length?new Be(y):He]),updateDirectives:b,directive:t.directive.type}},{hostBindings:w,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=Qp(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:ht(Xt.providerDef).callFn([bt(e.flags),e.queryMatchExprs.length?vt(e.queryMatchExprs):He,e.tokenExpr,e.providerExpr,e.depsExpr])}})},e.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach(function(t){dn(t.value)===dn(e.token)&&n.push(vt([bt(t.queryId),bt(4)]))});var r=qp(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==go.event.name)return go.event;for(var t=Dh,n=this;n;n=n.parent,t=t.prop("parent").cast(se)){var r=n.refNodeIndices[e];if(null!=r)return ht(Xt.nodeValue).callFn([t,bt(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=ht(Xt.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:32,nodeDef:ht(Xt.pureArrayDef).callFn([bt(r),bt(t)])}}),function(e){return Rh(r,e)}},e.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=ht(Xt.EMPTY_MAP);return function(){return n}}var r=mt(t.map(function(e,t){return Object(i.a)({},e,{value:bt(t)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:64,nodeDef:ht(Xt.pureObjectDef).callFn([bt(o),r])}}),function(e){return Rh(o,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:ht(Xt.purePipeDef).callFn([bt(i),bt(n)])}});for(var o=Dh,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(se);var a=s.purePipeNodeIndices[t],u=ht(Xt.nodeValue).callFn([o,bt(a)]);return function(t){return Lh(e.nodeIndex,e.bindingIndex,Rh(i,[u].concat(t)))}}var c=this._createPipe(e.sourceSpan,r),l=ht(Xt.nodeValue).callFn([Dh,bt(c)]);return function(t){return Lh(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===Mo.OnDestroy&&(i|=Kp(e))});var o=t.type.diDeps.map(function(e){return Gp(n.outputCtx,e)});return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:16,nodeDef:ht(Xt.pipeDef).callFn([bt(i),n.outputCtx.importExpr(t.type.reference),vt(o)])}}),r},e.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:wo({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=[],o=this.nodes.map(function(e,t){var o=e(),a=o.nodeDef,u=o.nodeFlags,c=o.updateDirectives,l=o.updateRenderer,p=o.sourceSpan;return l&&n.push.apply(n,Object(i.g)(s(t,p,l,!1))),c&&r.push.apply(r,Object(i.g)(s(t,p,c,(327680&u)>0))),ct(3&u?new Ue([Th.callFn([]).callFn([]),a]):a,p)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:o};function s(n,r,o,s){var a=[],u=o.map(function(n){var r=n.sourceSpan,o=n.context,s=n.value,u=""+t++,c=xo(o===Nh?e:null,o,s,u,Eo.General),l=c.stmts,p=c.currValExpr;return a.push.apply(a,Object(i.g)(l.map(function(e){return ut(e,r)}))),ct(p,r)});return(o.length||s)&&a.push(ut(Rh(n,u).toStmt(),r)),a}},e.prototype._createElementHandleEventFn=function(e,t){var n,r=this,o=[],s=0;if(t.forEach(function(e){var t=e.context,n=e.eventAst,i=e.dirAst,a=""+s++,u=_o(t===Nh?r:null,t,n.handler,a),c=u.stmts,l=u.allowDefault,p=c;l&&p.push(kh.set(l.and(kh)).toStmt());var h=Vh(n,i),f=Uh(h.target,h.name);o.push(ut(new et(bt(f).identical(Mh),p),n.sourceSpan))}),o.length>0){var a=[kh.set(bt(!0)).toDeclStmt(ue)];!this.component.isHost&&st(o).has(Nh.name)&&a.push(Nh.set(Dh.prop("component")).toDeclStmt(this.compType)),n=yt([new Me(Dh.name,ae),new Me(Mh.name,ae),new Me(go.event.name,ae)],Object(i.g)(a,o,[new Qe(kh)]),ae)}else n=He;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 Fh(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)==xh||r==Sh?i+" "+o:o):s})}),vt(Object.keys(t).sort().map(function(e){return vt([bt(e),bt(t[e])])}))}function Rh(e,t){return t.length>10?Ph.callFn([Dh,bt(e),bt(1),vt(t)]):Ph.callFn(Object(i.g)([Dh,bt(e),bt(0)],t))}function Lh(e,t,n){return ht(Xt.unwrapValue).callFn([Dh,bt(e),bt(t),n])}function Vh(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function Bh(e,t,n){var r=0;return!n||!e.staticQueryIds.has(t)&&e.dynamicQueryIds.has(t)?r|=536870912:r|=268435456,r}function Uh(e,t){return e?e+":"+t:t}var Hh=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,o=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:n});if(o.errors.length)return o.errors;var s=function(e,t,n,r){return new $l(n,r).extract(e,t)}(o.rootNodes,n,this._implicitTags,this._implicitAttrs);return s.errors.length?s.errors:((r=this._messages).push.apply(r,Object(i.g)(s.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new qh;this._messages.forEach(function(t){var r,o=e.digest(t);n.hasOwnProperty(o)?(r=n[o].sources).push.apply(r,Object(i.g)(t.sources)):n[o]=t});var o=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 An(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(o,this._locale)},e}(),qh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(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 Nn(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new Mn(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new kn(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(In),zh=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&&he(this.stmts,e.stmts))},e}();function Wh(e,t){var n,r,o,s,a=[];try{for(var u=Object(i.h)(e.transitiveModule.providers),c=u.next();!c.done;c=u.next()){var l=c.value,p=l.provider,h=l.module;if(dn(p.token)===t.ROUTES){var f=Gh(p.useValue);try{for(var d=Object(i.h)(f),v=d.next();!v.done;v=d.next()){var m=v.value;a.push(Kh(m,t,h.reference))}}catch(y){o={error:y}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}function Gh(e,t){var n,r;if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var o=Object(i.h)(e),s=o.next();!s.done;s=o.next()){Gh(s.value,t)}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}else e.loadChildren?Gh(e.loadChildren,t):e.children&&Gh(e.children,t);return t}function Kh(e,t,n){var r=Object(i.f)(e.split("#"),2),o=r[0],s=r[1],a=t.resolveExternalReference({moduleName:o,name:s},n?n.filePath:void 0);return{route:e,module:n||a,referencedModule:a}}var Qh=/^(?!.*\.d\.ts$).*\.ts$/,$h=function(){return function(e,t){this.symbol=e,this.metadata=t}}(),Zh=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(bp,".");if(r!==e.filePath){var i,o=e.name.replace(_p,"");n=this.getStaticSymbol(r,o,e.members);return(i=this.getImportAs(n,t))?this.getStaticSymbol(Sp(i.filePath),jp(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,gp.test(t))return null;for(var t,n=Xh(this.resolveSymbol(e));n&&n.metadata instanceof tn;)n=Xh(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 o=Object(i.h)(r),s=o.next();!s.done;s=o.next()){var a=s.value;this.resolvedSymbols.delete(a),this.importAs.delete(a),this.symbolResourcePaths.delete(a)}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}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=Xh(n.metadata);if(r instanceof tn)return new $h(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o=0?{__symbolic:"reference",name:f}:n.has(f)?l.getStaticSymbol(t,f):void 0},o}(jt)),[]),h=Xh(p);return h instanceof tn?this.createExport(e,h):new $h(e,p)},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 $h(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 Yh(e){return e.startsWith("___")?e.substr(1):e}function Xh(e){return e&&"resolved"===e.__symbolic?e.symbol:e}function Jh(e,t,n){var r=jp(t.name);e.statements.push(yt([],[new Qe(n)],new ie(se)).toDeclStmt(r,[Ee.Final,Ee.Exported]))}var ef=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 Object(i.c)(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 rf(s)&&(rf(n=s)&&Xh(n.expression)instanceof tn||function(e){return rf(e)&&e.expression&&"select"===e.expression.__symbolic&&Xh(e.expression.expression)instanceof tn}(s)||(s={__symbolic:"error",message:"Complex function calls are not supported."}));if(i.metadata=s,o.metadata=this.processValue(s,1),s instanceof tn&&this.summaryResolver.isLibraryFile(s.filePath)){var u=this.symbols[this.indexBySymbol.get(s)];t=u.name,Ap.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===sn.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(e){var t=this,n=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(r,i){r.assertNoMembers();var o=void 0;if(t.summaryResolver.isLibraryFile(r.filePath)){var s=t.reexportedBy.get(r);if(s)o=t.indexBySymbol.get(s);else if(e){var a=t.unprocessedSymbolSummariesBySymbol.get(r);a&&a.metadata&&"interface"===a.metadata.__symbolic||(o=r.name+"_"+i,n.push({symbol:r,exportAs:o}))}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:o}})}),exportAs:n}},t.prototype.processValue=function(e,t){return Ot(e,this,t)},t.prototype.visitOther=function(e,t){if(e instanceof tn){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?Ot(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 tn&&(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}(jt),tf=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,o,s,a,u=this,c=new Map;try{for(var l=Object(i.h)(e),p=l.next();!p.done;p=l.next()){var h=p.value,f=h.symbol,d=h.exportAs;c.set(f,d)}}catch(S){t={error:S}}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=Object(i.h)(this.data),y=m.next();!y.done;y=m.next()){var g=y.value,b=g.summary,_=g.metadata,w=g.isLibrary;if(b.summaryKind===sn.NgModule){v.add(b.type.reference);var E=b;try{for(var C=Object(i.h)(E.modules),O=C.next();!O.done;O=C.next()){var x=O.value;v.add(x.reference)}}catch(j){s={error:j}}finally{try{O&&!O.done&&(a=C.return)&&a.call(C)}finally{if(s)throw s.error}}}if(!w){jp(b.type.reference.name);Jh(this.outputCtx,b.type.reference,this.serializeSummaryWithDeps(b,_))}}}catch(A){r={error:A}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}v.forEach(function(e){if(u.summaryResolver.isLibraryFile(e.filePath)){var t=jp(c.get(e)||e.name);u.outputCtx.statements.push(pt(t).set(u.serializeSummaryRef(e)).toDeclStmt(null,[Ee.Exported]))}})},e.prototype.serializeSummaryWithDeps=function(e,t){var n=this,r=[this.serializeSummary(e)],o=[];if(t instanceof bn)r.push.apply(r,Object(i.g)(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)}))),o=t.providers;else if(e.summaryKind===sn.Directive){var s=e;o=s.providers.concat(s.viewProviders)}return r.push.apply(r,Object(i.g)(o.filter(function(e){return!!e.useClass}).map(function(e){return n.serializeSummary({summaryKind:sn.Injectable,type:e.useClass})}))),vt(r)},e.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(Sp(e.filePath),jp(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 vt(e.map(function(e){return Ot(e,n,t)}))},e.prototype.visitStringMap=function(e,t){var n=this;return new Be(Object.keys(e).map(function(r){return new Ve(r,Ot(e[r],n,t),!1)}))},e.prototype.visitPrimitive=function(e,t){return bt(e)},e.prototype.visitOther=function(e,n){if(e instanceof tn)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}();return Ot(e,new n,null)},e}(),nf=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return Object(i.c)(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(wp(e),s)})});var o=Ot(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}(jt);function rf(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=cf(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=cf(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=pf(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(wp(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(Sp(r.fileName,!0)));var i=Op(Cp(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 Nt("Couldn't resolve resource "+e+" relative to "+r.fileName);var a=(o.template.encapsulation||t._config.defaultEncapsulation)===y.Emulated;n.push(af(s,a,i)),t._options.allowEmptyCodegenFiles&&n.push(af(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);of(n),r.ngModules.forEach(function(e){!function(e,t){Jh(e,t,He)}(n,e.type.reference)})}}else e.endsWith(".ngstyle.ts")&&of(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:ff(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:ff(r),analyzedInjectables:i}},e.prototype._createNgFactoryStub=function(e,t,n){var r=this,o=0;t.ngModules.forEach(function(t,s){r._ngModuleCompiler.createStub(e,t.type.reference);var a=Object(i.g)(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([Xt.TemplateRef,Xt.ElementRef])),u=new Map;a.forEach(function(e,t){u.set(e,"_decl"+s+"_"+t)}),u.forEach(function(t,n){e.statements.push(pt(t).set(He.cast(se)).toDeclStmt(dt(e.importExpr(n,null,!1))))}),2&n&&t.declaredDirectives.forEach(function(n){var i=r._metadataResolver.getDirectiveMetadata(n.reference);i.isComponent&&(o++,r._createTypeCheckBlock(e,i.type.reference.name+"_Host_"+o,t,r._metadataResolver.getHostComponentMetadata(i),[i.type],u),r._createTypeCheckBlock(e,i.type.reference.name+"_"+o,t,i,t.transitiveModule.directives,u))})}),0===e.statements.length&&of(e)},e.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var o=Object(i.h)(e),s=o.next();!s.done;s=o.next()){var a=s.value,u=en(this.reflector,a);u.identifier&&r.push(u.identifier.reference)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},e.prototype._createTypeCheckBlock=function(e,t,n,r,o,s){var a,u=this._parseTemplate(r,n,o),c=u.template,l=u.pipes;(a=e.statements).push.apply(a,Object(i.g)(this._typeCheckCompiler.compileComponent(t,r,c,l,s,e)))},e.prototype.emitMessageBundle=function(e,t){var n=this,r=[],o=new nu,s=new Hh(o,[],{},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,o=vi.fromArray(e.template.interpolation);r.push.apply(r,Object(i.g)(s.updateFromTemplate(t,n,o)))})}),r.length)throw new Error(r.map(function(e){return e.toString()}).join("\n"));return s},e.prototype.emitAllPartialModules=function(e,t){var n=this,r=e.ngModuleByPipeOrDirective,o=e.files,s=new Map,a=function(e){return s.has(e)||s.set(e,n._createOutputContext(e)),s.get(e)};return o.forEach(function(e){return n._compilePartialModule(e.fileName,r,e.directives,e.pipes,e.ngModules,e.injectables,a(e.fileName))}),t.forEach(function(e){return n._compileShallowModules(e.fileName,e.shallowModules,a(e.fileName))}),Array.from(s.values()).map(function(e){return{fileName:e.genFilePath,statements:Object(i.g)(e.constantPool.statements,e.statements)}})},e.prototype._compileShallowModules=function(e,t,n){var r=this;t.forEach(function(e){return t=n,o=e,s=r._injectableCompiler,a=un(o.type),u=o.rawImports?[o.rawImports]:[],c=o.rawExports?[o.rawExports]:[],l=gr({factory:s.factoryFor({type:o.type,symbol:o.type.reference},t),providers:si(o.rawProviders,t),imports:si(Object(i.g)(u,c),t)}),p=ht(jn.defineInjector).callFn([l]),void t.statements.push(new Je(a,null,[new Ze("ngInjectorDef",ae,[Ee.Static],p)],[],new Ye(null,[],[]),[]));var t,o,s,a,u,c,l,p})},e.prototype._compilePartialModule=function(e,t,n,r,o,s,a){var u=this,c=new wu,l=new Eu(this._templateParser.expressionParser,mi,c,[],[]);n.forEach(function(e){var n=u._metadataResolver.getDirectiveMetadata(e);if(n.isComponent){var r=t.get(e);r||Pt("Cannot determine the module for component '"+un(n.type)+"'");var o=n.template.htmlAst;n.template.preserveWhitespaces||(o=pu(o));var s=nc(o.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,o,s,a){var u=un(t.type);u||Pt("Cannot resolver the name of "+t.type);var c=e.constantPool.propertyNameOf(2),l=t.toSummary(),p=qc(Object(i.a)({},zc(t,e,r),{selector:t.selector,template:{nodes:n.nodes},directives:[],pipes:Jc(a,e),viewQueries:Wc(t.viewQueries,e),wrapDirectivesAndPipesInClosure:!1,styles:l.template&&l.template.styles||Rc,encapsulation:l.template&&l.template.encapsulation||y.Emulated,interpolation:mi,animations:null,viewProviders:t.viewProviders.length>0?new ge(t.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),e.constantPool,o);e.statements.push(new Je(u,null,[new Ze(c,ae,[Ee.Static],p.expression)],[],new Ye(null,[],[]),[]))}(a,n,s,u.reflector,l,0,p)}else!function(e,t,n,r){var i=un(t.type);i||Pt("Cannot resolver the name of "+t.type);var o=e.constantPool.propertyNameOf(1),s=Hc(zc(t,e,n),e.constantPool,r);e.statements.push(new Je(i,null,[new Ze(o,ae,[Ee.Static],s.expression)],[],new Ye(null,[],[]),[]))}(a,n,u.reflector,l)}),r.forEach(function(e){var t=u._metadataResolver.getPipeMetadata(e);t&&function(e,t,n){var r=un(t.type);if(!r)return Pt("Cannot resolve the name of "+t.type);var i=Fi({name:r,pipeName:t.name,type:e.importExpr(t.type.reference),deps:ri(t.type,e,n),pure:t.pure}),o=e.constantPool.propertyNameOf(3);e.statements.push(new Je(r,null,[new Ze(o,ae,[Ee.Static],i.expression)],[],new Ye(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,Object(i.g)(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:Object(i.g)(r.constantPool.statements,r.statements)}]:[]},e.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return Cn(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,o,s){var a=this,u=Op(Cp(e,!0)[1]),c=[],l=this._createOutputContext(wp(e,!0));if(c.push.apply(c,Object(i.g)(this._createSummary(e,n,r,o,s,l))),o.forEach(function(e){return a._compileModule(l,e)}),n.forEach(function(n){var r=a._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+un(r.type)+"!");var o=a._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach(function(t){var n=a._styleCompiler.needsStyleShim(r);c.push(a._codegenStyles(e,r,t,n,u)),a._options.allowEmptyCodegenFiles&&c.push(a._codegenStyles(e,r,t,!n,u))});a._compileComponent(l,r,i,i.transitiveModule.directives,o,u);a._compileComponentFactory(l,r,i,u)}}),l.statements.length>0||this._options.allowEmptyCodegenFiles){var p=this._codegenSourceModule(e,l);c.unshift(p)}return c},e.prototype._createSummary=function(e,t,n,r,o,s){var a=this,u=this._symbolResolver.getSymbolsOf(e).map(function(e){return a._symbolResolver.resolveSymbol(e)}),c=Object(i.g)(r.map(function(e){return{summary:a._metadataResolver.getNgModuleSummary(e.type.reference),metadata:a._metadataResolver.getNgModuleMetadata(e.type.reference)}}),t.map(function(e){return{summary:a._metadataResolver.getDirectiveSummary(e),metadata:a._metadataResolver.getDirectiveMetadata(e)}}),n.map(function(e){return{summary:a._metadataResolver.getPipeSummary(e),metadata:a._metadataResolver.getPipeMetadata(e)}}),o.map(function(e){return{summary:a._metadataResolver.getInjectableSummary(e.symbol),metadata:a._metadataResolver.getInjectableSummary(e.symbol).type}})),l=this._options.enableSummariesForJit?this._createOutputContext(Sp(e,!0)):null,p=function(e,t,n,r,i,o,s){void 0===s&&(s=!0);var a=new ef(r,n,e);i.forEach(function(e){return a.addSummary({symbol:e.symbol,metadata:e.metadata})}),o.forEach(function(e){var t=e.summary;e.metadata,a.addSummary({symbol:t.type.reference,metadata:void 0,type:t})});var u=a.serialize(s),c=u.json,l=u.exportAs;if(t){var p=new tf(t,r,n);o.forEach(function(e){var t=e.summary,n=e.metadata;p.addSourceType(t,n)}),a.unprocessedSymbolSummariesBySymbol.forEach(function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&p.addLibType(e.type)}),p.serialize(l)}return{json:c,exportAs:l}}(e,l,this._summaryResolver,this._symbolResolver,u,c,this._options.createExternalSymbolFactoryReexports),h=p.json;p.exportAs.forEach(function(e){s.statements.push(pt(e.exportAs).set(s.importExpr(e.symbol)).toDeclStmt(null,[Ee.Exported]))});var f=[new zh(e,xp(e),h)];return l&&f.push(this._codegenSourceModule(e,l)),f},e.prototype._compileModule=function(e,t){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:en(this.reflector,Xt.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:en(this.reflector,Xt.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=hn(t.type.reference),a=[];for(var u in t.inputs){var c=t.inputs[u];a.push(new Ve(u,bt(c),!1))}var l=[];for(var u in t.outputs){c=t.outputs[u];l.push(new Ve(u,bt(c),!1))}e.statements.push(pt(s).set(ht(Xt.createComponentFactory).callFn([bt(t.selector),e.importExpr(t.type.reference),pt(o),new Be(a),new Be(l),vt(t.template.ngContentSelectors.map(function(e){return bt(e)}))])).toDeclStmt(ft(Xt.ComponentFactory,[dt(e.importExpr(t.type.reference))],[X.Const]),[Ee.Final,Ee.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?pt(i.stylesVar):vt([]),l=this._viewCompiler.compileComponent(e,t,a,c,u);return i&&sf(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,xn(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 tn))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(se));return c.reduce(function(e,t){return e.prop(t)},ht(new Ae(p,u,null),d))},constantPool:new Kt}},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(af(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,t,n,r);return sf(this._symbolResolver,s,r,i),this._codegenSourceModule(e,o)},e.prototype._codegenSourceModule=function(e,t){return new zh(e,t.genFilePath,t.statements)},e.prototype.listLazyRoutes=function(e,t){var n,r,o,s,a=this;if(e)return function e(t,n,r){void 0===n&&(n=new Set);void 0===r&&(r=[]);var o,s;if(n.has(t)||!t.name)return r;n.add(t);var u=Wh(a._metadataResolver.getNgModuleMetadata(t,!0),a.reflector);try{for(var c=Object(i.h)(u),l=c.next();!l.done;l=c.next()){var p=l.value;r.push(p),e(p.referencedModule,n,r)}}catch(h){o={error:h}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}return r}(Kh(e,this.reflector).referencedModule);if(t){var u=[];try{for(var c=Object(i.h)(t.ngModules),l=c.next();!l.done;l=c.next()){var p=Wh(l.value,this.reflector);try{for(var h=Object(i.h)(p),f=h.next();!f.done;f=h.next()){var d=f.value;u.push(d)}}catch(v){o={error:v}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}}}catch(m){n={error:m}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u}throw new Error("Either route or analyzedModules has to be specified!")}}();function of(e){e.statements.push(ht(Xt.ComponentFactory).toStmt())}function sf(e,t,n,r){t.dependencies.forEach(function(t){t.setValue(e.getStaticSymbol(af(t.moduleUrl,n,r),t.name))})}function af(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function uf(e,t,n,r){return hf(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=pf(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 cf(e,t,n,r){return lf(uf(e,t,n,r))}function lf(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw Nt(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 pf(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 Ot(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return Ot(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof tn&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return Ot(t,new r,null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}function hf(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 ff(e){return lf(hf(e))}var df="ngFormattedMessage";function vf(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"+vf(e.next,t+2)||"")}var mf="@angular/core",yf=/^\$.*\$$/,gf={__symbolic:"ignore"},bf="useValue",_f="provide",wf=new Set([bf,"useFactory","data","id","loadChildren"]);function Ef(e){return e&&"ignore"==e.__symbolic}var Cf=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(sn.Directive,[P,k]),this.annotationForParentClassWithSummaryKind.set(sn.Pipe,[I]),this.annotationForParentClassWithSummaryKind.set(sn.NgModule,[B]),this.annotationForParentClassWithSummaryKind.set(sn.Injectable,[U,I,P,k,B])}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 tn)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 o=this.getTypeMetadata(e),s=this.findParentType(e,o);if(s){var a=this.annotations(s);r.push.apply(r,Object(i.g)(a))}var u=[];if(o.decorators&&(u=t(e,o.decorators))&&r.push.apply(r,Object(i.g)(u)),s&&!this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){var c=this.summaryResolver.resolveSummary(s);if(c&&c.type){var l=this.annotationForParentClassWithSummaryKind.get(c.type.summaryKind);l.some(function(e){return u.some(function(t){return e.isTypeOf(t)})})||this.reportError(Lf(xf("Class "+e.name+" in "+e.filePath+" extends from a "+sn[c.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+l.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 o=this.findParentType(e,r);if(o){var s=this.propMetadata(o);Object.keys(s).forEach(function(e){n[e]=s[e]})}var a=r.members||{};Object.keys(a).forEach(function(r){var o=a[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),s=[];n[r]&&s.push.apply(s,Object(i.g)(n[r])),n[r]=s,o&&o.decorators&&s.push.apply(s,Object(i.g)(t.simplify(e,o.decorators)))}),this.propertyCache.set(e,n)}return n},e.prototype.parameters=function(e){var t=this;if(!(e instanceof tn))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),o=this.findParentType(e,r),s=r?r.members:null,a=s?s.__ctor__:null;if(a){var u=a.find(function(e){return"constructor"==e.__symbolic}),c=u.parameters||[],l=this.simplify(e,u.parameterDecorators||[]);n=[],c.forEach(function(r,o){var s=[],a=t.trySimplify(e,r);a&&s.push(a);var u=l?l[o]:null;u&&s.push.apply(s,Object(i.g)(u)),n.push(s)})}else o&&(n=this.parameters(o));n||(n=[]),this.parameterCache.set(e,n)}return n}catch(p){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+p),p}},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 tn)return n},e.prototype.hasLifecycleHook=function(e,t){e instanceof tn||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 tn))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var r=this._staticMembers(e),o={};try{for(var s=Object(i.h)(r),a=s.next();!a.done;a=s.next()){var u=a.value;if(u.endsWith("TypeGuard")){var c=u.substr(0,u.length-"TypeGuard".length),l=void 0;c.endsWith("UseIf")?(c=u.substr(0,c.length-"UseIf".length),l="UseIf"):l=this.getStaticSymbol(e.filePath,e.name,[u]),o[c]=l}}}catch(p){t={error:p}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},e.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,Object(i.g)([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(mf,"Injectable"),U),this.injectionToken=this.findDeclaration(mf,"InjectionToken"),this.opaqueToken=this.findDeclaration(mf,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(mf,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Host"),K),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Self"),W),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Inject"),O),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Optional"),z),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Attribute"),S),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"ContentChild"),A),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"ContentChildren"),j),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"ViewChild"),D),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"ViewChildren"),T),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Input"),F),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Output"),R),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Pipe"),I),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"HostBinding"),L),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"HostListener"),V),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Directive"),P),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Component"),k),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"NgModule"),B),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Host"),K),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Self"),W),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(mf,"Optional"),z)},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,o=this,s=If.empty,a=new Map;try{r=function e(t,n,r,u){function c(e){var t=o.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function l(n){return e(t,n,r,0)}function p(n,i){if(n===t)return e(n,i,r+1,u);try{return e(n,i,r+1,u)}catch(c){if(!Sf(c))throw c;var s=c.chain?"references '"+c.symbol.name+"'":function(e){if(e.summary)return e.summary;switch(e.message){case jf:if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case Af:return"is not initialized";case Tf:return"is a destructured variable";case Df:return"could not be resolved";case Pf:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case Nf:return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(c),a={message:"'"+n.name+"' "+s,position:c.position,next:c.chain};o.error({message:c.message,advise:c.advise,context:c.context,chain:a,symbol:n},t)}}function h(n){var f,d,v,m;if(kf(n))return n;if(n instanceof Array){var y=[];try{for(var g=Object(i.h)(n),b=g.next();!b.done;b=g.next()){var _=b.value;if(_&&"spread"===_.__symbolic){var w=l(_.expression);if(Array.isArray(w)){try{for(var E=Object(i.h)(w),C=E.next();!C.done;C=E.next()){var O=C.value;y.push(O)}}catch(z){v={error:z}}finally{try{C&&!C.done&&(m=E.return)&&m.call(E)}finally{if(v)throw v.error}}continue}}var x=h(_);Ef(x)||y.push(x)}}catch(W){f={error:W}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(f)throw f.error}}return y}if(n instanceof tn)return n===o.injectionToken||o.conversionMap.has(n)||u>0&&!n.members.length?n:null!=(F=c(S=n))?p(S,F):S;if(n){if(n.__symbolic){var S=void 0;switch(n.__symbolic){case"binop":var j=h(n.left);if(Ef(j))return j;var A=h(n.right);if(Ef(A))return A;switch(n.operator){case"&&":return j&&A;case"||":return j||A;case"|":return j|A;case"^":return j^A;case"&":return j&A;case"==":return j==A;case"!=":return j!=A;case"===":return j===A;case"!==":return j!==A;case"<":return j":return j>A;case"<=":return j<=A;case">=":return j>=A;case"<<":return j<>":return j>>A;case"+":return j+A;case"-":return j-A;case"*":return j*A;case"/":return j/A;case"%":return j%A}return null;case"if":var T=h(n.condition);return h(T?n.thenExpression:n.elseExpression);case"pre":var D=h(n.operand);if(Ef(D))return D;switch(n.operator){case"+":return D;case"-":return-D;case"!":return!D;case"~":return~D}return null;case"index":var P=l(n.expression),N=l(n.index);return P&&kf(N)?P[N]:null;case"select":var M=n.member,k=t,I=h(n.expression);if(I instanceof tn){var F,R=I.members.concat(M);return null!=(F=c(k=o.getStaticSymbol(I.filePath,I.name,R)))?p(k,F):k}return I&&kf(M)?p(k,I[M]):null;case"reference":var L=n.name,V=s.resolve(L);if(V!=If.missing)return V;break;case"resolved":try{return h(n.symbol)}catch(G){throw Sf(G)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(G.position={fileName:n.fileName,line:n.line,column:n.character}),G}case"class":case"function":return t;case"new":case"call":if((S=e(t,n.expression,r+1,0))instanceof tn){if(S===o.injectionToken||S===o.opaqueToken)return t;var B=n.arguments||[],U=o.conversionMap.get(S);if(U){var H=B.map(function(e){return p(t,e)}).map(function(e){return Ef(e)?void 0:e});return U(t,H)}return function(e,n,u,c){if(n&&"function"==n.__symbolic){a.get(e)&&o.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:n},e);try{var l=n.value;if(l&&(0!=r||"error"!=l.__symbolic)){var f=n.parameters,d=n.defaults;u=u.map(function(e){return p(t,e)}).map(function(e){return Ef(e)?void 0:e}),d&&d.length>u.length&&u.push.apply(u,Object(i.g)(d.slice(u.length).map(function(e){return h(e)}))),a.set(e,!0);for(var v=If.build(),m=0;m0?new Ff(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Ff=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return Object(i.c)(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):If.missing},t}(If);function Rf(e,t){return{message:""+function(e,t){switch(e){case jf:if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case Af:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Tf:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Df:if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case Pf:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case Nf:if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case Mf: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?Rf(e.next,t):t?{message:t}:void 0}}function Lf(e,t){if(Sf(e)){var n=e.position;return function(e){var t=Nt(vf(e)+".");return t[df]=!0,t.chain=e,t.position=e.position,t}(Rf({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 jf:if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case Tf:return"Consider simplifying to avoid destructuring";case Nf:if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case Mf:return"Consider changing the function expression into an exported function"}}(e.message,e.context)))}return e}var Vf=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(Ep(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=xp(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 nf(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 Bf(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Nt("Couldn't resolve resource "+n+" from "+t);return r}}}var Uf=function(){return function(){}}(),Hf=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 qf(e,t,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;si();case te.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;n0&&(n=function(e,t){var n=id(encodeURI(t)),r=id(e);if(null!=n[nd.Scheme])return od(n);n[nd.Scheme]=r[nd.Scheme];for(var i=nd.Scheme;i<=nd.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[nd.Path][0])return od(n);var o=r[nd.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[nd.Path],n[nd.Path]=o,od(n)}(e,n));var r=id(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[nd.Scheme]){var o=r[nd.Path];return(i=i.replace(/\/+$/,""))+"/"+(o=o.replace(/^\/+/,""))}return n},e}();var nd,rd=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function id(e){return e.match(rd)}function od(e){var t,n,r,i,o,s,a,u,c=e[nd.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;s0?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[nd.Path]=c,t=e[nd.Scheme],n=e[nd.UserInfo],r=e[nd.Domain],i=e[nd.Port],o=c,s=e[nd.QueryData],a=e[nd.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"}(nd||(nd={}));var sd=function(){function e(){}return e.prototype.get=function(e){return""},e}(),ad=(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=cf(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,o=n.ngModules;return Promise.all(o.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,o=n.template.templateUrl,s=vi.fromArray(n.template.interpolation);e.push.apply(e,Object(i.g)(t.messageBundle.updateFromTemplate(r,o,s)))})}),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 nu,i=Bf(t),o=new nn,s=new Vf(t,o),a=new Zh(t,o,s),u=new Cf(s,a),c=new Ml({defaultEncapsulation:y.Emulated,useJit:!1}),l=new Il({get:function(e){return t.loadResource(e)}},i,r,c),p=new wu,h=new Dp(c,r,new Xp(u),new Ll(u),new eh(u),s,p,l,console,o,u),f=new Hh(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=ad.apply(e.template),n=ud.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,o=n.references,s=cd.apply(e.template,t),a=s.expressions,u=s.symbols,c=s.nestingLevel;return new ld(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 Nu?(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.visitIcu=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}()),ud=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 _;r.setElement(e);var o=ei(t);Object.getOwnPropertyNames(o).forEach(function(e){var t=o[e];(r.addAttribute(e,t),"class"===e.toLowerCase())&&t.trim().split(/\s+/g).forEach(function(e){return r.addClassName(e)})});var s=[];this.matcher.match(r,function(e,t){return s.push(t)}),s.length>0&&this.directives.set(t,s),t.references.forEach(function(e){var r=null;if(""===e.value.trim())r=s.find(function(e){return e.isComponent})||null;else if(null===(r=s.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)}),Object(i.g)(t.attributes,t.inputs).forEach(function(e){var r=s.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=s.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.prototype.visitIcu=function(e){},e}(),cd=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 Object(i.c)(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 Nu?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:o}},t.prototype.ingest=function(e){e instanceof Nu?(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.visitIcu=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 Hi){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}},t}(co),ld=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 nl}(zt);var pd=n("CcnG"),hd=n("Ip0R"),fd=n("ZYjt");n.d(t,"a",function(){return Td});var dd,vd=((dd=new Map).set(Xt.ANALYZE_FOR_ENTRY_COMPONENTS,pd.a),dd.set(Xt.ElementRef,pd.t),dd.set(Xt.NgModuleRef,pd.L),dd.set(Xt.ViewContainerRef,pd.kb),dd.set(Xt.ChangeDetectorRef,pd.k),dd.set(Xt.Renderer2,pd.W),dd.set(Xt.QueryList,pd.U),dd.set(Xt.TemplateRef,pd.gb),dd.set(Xt.CodegenComponentFactoryResolver,pd.xb),dd.set(Xt.ComponentFactoryResolver,pd.p),dd.set(Xt.ComponentFactory,pd.o),dd.set(Xt.ComponentRef,pd.q),dd.set(Xt.NgModuleFactory,pd.J),dd.set(Xt.createModuleFactory,pd.Hb),dd.set(Xt.moduleDef,pd.Sb),dd.set(Xt.moduleProviderDef,pd.Tb),dd.set(Xt.RegisterModuleFactoryFn,pd.cc),dd.set(Xt.Injector,pd.C),dd.set(Xt.ViewEncapsulation,pd.lb),dd.set(Xt.ChangeDetectionStrategy,pd.j),dd.set(Xt.SecurityContext,pd.ab),dd.set(Xt.LOCALE_ID,pd.G),dd.set(Xt.TRANSLATIONS_FORMAT,pd.fb),dd.set(Xt.inlineInterpolate,pd.Mb),dd.set(Xt.interpolate,pd.Nb),dd.set(Xt.EMPTY_ARRAY,pd.zb),dd.set(Xt.EMPTY_MAP,pd.Ab),dd.set(Xt.Renderer,pd.V),dd.set(Xt.viewDef,pd.gc),dd.set(Xt.elementDef,pd.Kb),dd.set(Xt.anchorDef,pd.Fb),dd.set(Xt.textDef,pd.ec),dd.set(Xt.directiveDef,pd.Jb),dd.set(Xt.providerDef,pd.ac),dd.set(Xt.queryDef,pd.bc),dd.set(Xt.pureArrayDef,pd.Wb),dd.set(Xt.pureObjectDef,pd.Yb),dd.set(Xt.purePipeDef,pd.Zb),dd.set(Xt.pipeDef,pd.Xb),dd.set(Xt.nodeValue,pd.Vb),dd.set(Xt.ngContentDef,pd.Ub),dd.set(Xt.unwrapValue,pd.fc),dd.set(Xt.createRendererType2,pd.Ib),dd.set(Xt.createComponentFactory,pd.Gb),dd),md=function(){function e(){this.reflectionCapabilities=new pd.Bb}return e.prototype.componentModuleUrl=function(e,t){var n,r=t.moduleId;if("string"==typeof r)return(n=id(r))&&n[nd.Scheme]||""?r:"package:"+r;if(null!=r)throw Nt('moduleId should be a string in "'+Object(pd.dc)(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"./"+Object(pd.dc)(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 vd.get(e)||e.runtime},e}();var yd=new pd.B("ErrorCollector"),gd={provide:pd.Q,useValue:"/"},bd={get:function(e){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+e+'"')}},_d=new pd.B("HtmlParser"),wd=function(){function e(e,t,n,r,i,o,s,a,u,c){this._metadataResolver=t,this._delegate=new Zf(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 En(pd.l,{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}(),Ed=[{provide:ed,useValue:new md},{provide:sd,useValue:bd},{provide:Hf,deps:[]},{provide:Uf,useExisting:Hf},{provide:pd.yb,deps:[]},{provide:fa,deps:[]},{provide:Sa,deps:[fa]},{provide:_d,useClass:nu,deps:[]},{provide:fp,useFactory:function(e,t,n,r,i){var o=(t=t||"")?r.missingTranslation:pd.H.Ignore;return new fp(e,t,n,o,i)},deps:[_d,[new pd.O,new pd.z(pd.eb)],[new pd.O,new pd.z(pd.fb)],[Ml],[pd.yb]]},{provide:nu,useExisting:fp},{provide:hh,deps:[Ml,ed,Sa,du,fp,pd.yb]},{provide:Il,deps:[sd,td,nu,Ml]},{provide:Dp,deps:[Ml,nu,Xp,Ll,eh,Uf,du,Il,pd.yb,[pd.O,nn],ed,[pd.O,yd]]},gd,{provide:ra,deps:[td]},{provide:Ah,deps:[ed]},{provide:Yp,deps:[ed]},{provide:Ml,useValue:new Ml},{provide:pd.l,useClass:wd,deps:[pd.C,Dp,hh,ra,Ah,Yp,Uf,ed,Ml,pd.yb]},{provide:wu,deps:[]},{provide:du,useExisting:wu},{provide:td,deps:[pd.Q]},{provide:Ll,deps:[ed]},{provide:eh,deps:[ed]},{provide:Xp,deps:[ed]}],Cd=function(){function e(e){var t={useJit:!0,defaultEncapsulation:pd.lb.Emulated,missingTranslation:pd.H.Warning};this._defaultOptions=Object(i.g)([t],e)}return e.prototype.createCompiler=function(e){void 0===e&&(e=[]);var t,n={useJit:Od((t=this._defaultOptions.concat(e)).map(function(e){return e.useJit})),defaultEncapsulation:Od(t.map(function(e){return e.defaultEncapsulation})),providers:xd(t.map(function(e){return e.providers})),missingTranslation:Od(t.map(function(e){return e.missingTranslation})),preserveWhitespaces:Od(t.map(function(e){return e.preserveWhitespaces}))};return pd.C.create([Ed,{provide:Ml,useFactory:function(){return new Ml({useJit:n.useJit,jitDevMode:Object(pd.tb)(),defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,preserveWhitespaces:n.preserveWhitespaces})},deps:[]},n.providers]).get(pd.l)},e}();function Od(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function xd(e){var t=[];return e.forEach(function(e){return e&&t.push.apply(t,Object(i.g)(e))}),t}var Sd=Object(pd.nb)(pd.ub,"coreDynamic",[{provide:pd.i,useValue:{},multi:!0},{provide:pd.m,useClass:Cd,deps:[pd.i]}]),jd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(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=Object(i.b)([Object(pd.A)()],t)}(sd),Ad=[fd.b,{provide:pd.i,useValue:{providers:[{provide:sd,useClass:jd,deps:[]}]},multi:!0},{provide:pd.R,useValue:hd.l}],Td=(function(e){function t(){var t=e.call(this)||this;if(t._cache=pd.Lb.$templateCache,null==t._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return t}Object(i.c)(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)}}(sd),new pd.jb("7.2.14"),Object(pd.nb)(Sd,"browserDynamic",Ad))},"VnD/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){return n.lift(new s(e,t))}}var s=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=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 r.c(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}(i.a)},ZYCi:function(e,t,n){"use strict";var r=n("mrSG"),i=n("Ip0R"),o=n("CcnG"),s=n("F/XL"),a=n("0/uQ"),u=n("K9Ia"),c=n("8g8A"),l=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.c(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 c.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(u.a),p=n("6blF");function h(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}h.prototype=Object.create(Error.prototype);var f=h,d=n("nkY7"),v=n("isby"),m=n("MGBS"),y=n("zotm"),g=n("IUTb"),b={};var _=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new w(e,this.resultSelector))},e}(),w=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.c(t,e),t.prototype._next=function(e){this.values.push(b),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?Object(j.a)(function(t,n){return e(t,n,r)}):z.a,P(1),n?U(t):V(function(){return new f}))}}var G=n("rPjj");function K(e){return function(t){var n=new Q(e),r=t.lift(n);return n.caught=r}}var Q=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new $(e,this.selector,this.caught))},e}(),$=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.c(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 G.a(this,void 0,void 0);this.add(r),Object(y.a)(this,n,void 0,void 0,r)}},t}(m.a);function Z(e){return function(t){return 0===e?Object(E.b)():t.lift(new Y(e))}}var Y=function(){function e(e){if(this.total=e,this.total<0)throw new D}return e.prototype.call=function(e,t){return t.subscribe(new X(e,this.total))},e}(),X=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.c(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}(A.a);function J(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(j.a)(function(t,n){return e(t,n,r)}):z.a,Z(1),n?U(t):V(function(){return new f}))}}var ee=n("psW0");var te=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 ne(e,this.predicate,this.thisArg,this.source))},e}(),ne=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 r.c(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}(A.a);function re(e,t){return"function"==typeof t?function(n){return n.pipe(re(function(n,r){return Object(a.a)(e(n,r)).pipe(Object(O.a)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new ie(e))}}var ie=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new oe(e,this.project))},e}(),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.c(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 G.a(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(y.a)(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}(m.a),se=n("PU8L");function ae(){for(var e=[],t=0;t=2&&(n=!0),function(r){return r.lift(new ce(e,t,n))}}var ce=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 le(e,this.accumulator,this.seed,this.hasSeed))},e}(),le=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 r.c(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}(A.a),pe=n("Phjn"),he=n("y3By");var fe=n("pugT");var de=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new ve(e,this.callback))},e}(),ve=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new fe.a(n)),r}return r.c(t,e),t}(A.a),me=n("ZYjt");n.d(t,"b",function(){return qn}),n.d(t,"c",function(){return ur}),n.d(t,"a",function(){return St});var ye=function(){return function(e,t){this.id=e,this.url=t}}(),ge=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 Object(r.c)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(ye),be=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return Object(r.c)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(ye),_e=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return Object(r.c)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(ye),we=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return Object(r.c)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(ye),Ee=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 Object(r.c)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(ye),Ce=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 Object(r.c)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(ye),Oe=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 Object(r.c)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(ye),xe=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 Object(r.c)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(ye),Se=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 Object(r.c)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(ye),je=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),Ae=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),Te=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),De=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Pe=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Ne=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Me=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}(),ke=function(){function e(){}return e=Object(r.b)([Object(o.n)({template:""})],e)}(),Ie="primary",Fe=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 Re(e){return new Fe(e)}var Le="ngNavigationCancelingError";function Ve(e){var t=Error("NavigationCancelingError: "+e);return t[Le]=!0,t}function Be(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function $e(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ze(e){return Object(o.Pb)(e)?e:Object(o.Qb)(e)?Object(a.a)(Promise.resolve(e)):Object(s.a)(e)}function Ye(e,t,n){return n?function(e,t){return Ge(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!nt(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)&&Xe(e.root,t.root)}function Xe(e,t){return function e(t,n,r){if(t.segments.length>r.length){var i=t.segments.slice(0,r.length);return!!nt(i,r)&&!n.hasChildren()}if(t.segments.length===r.length){if(!nt(t.segments,r))return!1;for(var o in n.children){if(!t.children[o])return!1;if(!Xe(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!!nt(t.segments,i)&&(!!t.children[Ie]&&e(t.children[Ie],n,s))}(e,t,t.segments)}var Je=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=Re(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return st.serialize(this)},e}(),et=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,$e(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 at(this)},e}(),tt=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Re(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ft(this)},e}();function nt(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function rt(e,t){var n=[];return $e(e.children,function(e,r){r===Ie&&(n=n.concat(t(e,r)))}),$e(e.children,function(e,r){r!==Ie&&(n=n.concat(t(e,r)))}),n}var it=function(){return function(){}}(),ot=function(){function e(){}return e.prototype.parse=function(e){var t=new gt(e);return new Je(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n,r;return""+("/"+function e(t,n){if(!t.hasChildren())return at(t);if(n){var r=t.children[Ie]?e(t.children[Ie],!1):"",i=[];return $e(t.children,function(t,n){n!==Ie&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=rt(t,function(n,r){return r===Ie?[e(t.children[Ie],!1)]:[r+":"+e(n,!1)]});return at(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 ct(e)+"="+ct(t)}).join("&"):ct(e)+"="+ct(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+(r=e.fragment,encodeURI(r)):"")},e}(),st=new ot;function at(e){return e.segments.map(function(e){return ft(e)}).join("/")}function ut(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ct(e){return ut(e).replace(/%3B/gi,";")}function lt(e){return ut(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt(e){return decodeURIComponent(e)}function ht(e){return pt(e.replace(/\+/g,"%20"))}function ft(e){return""+lt(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+lt(e)+"="+lt(t[e])}).join(""));var t}var dt=/^[^\/()?;=#]+/;function vt(e){var t=e.match(dt);return t?t[0]:""}var mt=/^[^=?&#]+/;var yt=/^[^?&#]+/;var gt=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 et([],{}):new et([],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[Ie]=new et(e,t)),n},e.prototype.parseSegment=function(){var e=vt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new tt(pt(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=vt(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=vt(this.remaining);r&&(n=r,this.capture(n))}e[pt(t)]=pt(n)}},e.prototype.parseQueryParam=function(e){var t,n,r=(t=this.remaining,(n=t.match(mt))?n[0]:"");if(r){this.capture(r);var i="";if(this.consumeOptional("=")){var o=function(e){var t=e.match(yt);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}var s=ht(r),a=ht(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=vt(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=Ie);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Ie]:new et([],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}(),bt=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=_t(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=_t(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=wt(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 wt(e,this._root).map(function(e){return e.value})},e}();function _t(e,t){var n,i;if(e===t.value)return t;try{for(var o=Object(r.h)(t.children),s=o.next();!s.done;s=o.next()){var a=_t(e,s.value);if(a)return a}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}function wt(e,t){var n,i;if(e===t.value)return[t];try{for(var o=Object(r.h)(t.children),s=o.next();!s.done;s=o.next()){var a=wt(e,s.value);if(a.length)return a.unshift(t),a}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return[]}var Et=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Ct(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Ot=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,Dt(r,t),r}return Object(r.c)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(bt);function xt(e,t){var n=function(e,t){var n=new At([],{},{},"",{},Ie,t,null,e.root,-1,{});return new Tt("",new Et(n,[]))}(e,t),r=new l([new tt("",{})]),i=new l({}),o=new l({}),s=new l({}),a=new l(""),u=new St(r,i,s,a,o,Ie,t,n.root);return u.snapshot=n.root,new Ot(new Et(u,[]),n)}var St=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(Object(O.a)(function(e){return Re(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(O.a)(function(e){return Re(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function jt(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var o=n[i],s=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(s.component)break;i--}}return function(e){return e.reduce(function(e,t){var n=Object(r.a)({},e.params,t.params),i=Object(r.a)({},e.data,t.data),o=Object(r.a)({},e.resolve,t._resolvedData);return{params:n,data:i,resolve:o}},{params:{},data:{},resolve:{}})}(n.slice(i))}var At=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=Re(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Re(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}(),Tt=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,Dt(r,n),r}return Object(r.c)(t,e),t.prototype.toString=function(){return Pt(this._root)},t}(bt);function Dt(e,t){t.value._routerState=e,t.children.forEach(function(t){return Dt(e,t)})}function Pt(e){var t=e.children.length>0?" { "+e.children.map(Pt).join(", ")+" } ":"";return""+e.value+t}function Nt(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ge(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ge(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;ni;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Vt(r,!1,i-o)}(n.snapshot._urlSegment,i,e.numberOfDoubleDots)}(s,t,e),u=a.processChildren?Ht(a.segmentGroup,a.index,s.commands):Ut(a.segmentGroup,a.index,s.commands);return Rt(a.segmentGroup,u,t,i,o)}function Ft(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Rt(e,t,n,r,i){var o={};return r&&$e(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),n.root===e?new Je(t,o,i):new Je(function e(t,n,r){var i={};$e(t.children,function(t,o){i[o]=t===n?r:e(t,n,r)});return new et(t.segments,i)}(n.root,e,t),o,i)}var Lt=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ft(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!==Qe(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 Vt=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function Bt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Ie]:""+e}function Ut(e,t,n){if(e||(e=new et([],{})),0===e.segments.length&&e.hasChildren())return Ht(e,t,n);var r=function(e,t,n){var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;var s=e.segments[i],a=Bt(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Gt(a,u,s))return o;r+=2}else{if(!Gt(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.pathIndex0?new et([],((r={})[Ie]=e,r)):e;return new Je(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(O.a)(function(e){return new et([],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 Object(s.a)({});var n=[],r=[],i={};return $e(e,function(e,o){var s=t(o,e).pipe(Object(O.a)(function(e){return i[o]=e}));o===Ie?n.push(s):r.push(s)}),s.a.apply(null,n.concat(r)).pipe(S(),W(),Object(O.a)(function(){return i}))}(n.children,function(n,i){return r.expandSegmentGroup(e,t,i,n)})},e.prototype.expandSegment=function(e,t,n,i,o,a){var u=this;return s.a.apply(void 0,Object(r.g)(n)).pipe(Object(O.a)(function(r){return u.expandSegmentAgainstRoute(e,t,n,r,i,o,a).pipe(K(function(e){if(e instanceof Yt)return Object(s.a)(null);throw e}))}),S(),J(function(e){return!!e}),K(function(e,n){if(e instanceof f||"EmptyError"===e.name){if(u.noLeftoversInUrl(t,i,o))return Object(s.a)(new et([],{}));throw new Yt(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 an(r)!==o?Jt(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Jt(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("/")?en(o):this.lineralizeSegments(n,o).pipe(Object(ee.a)(function(n){var o=new et(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=this,a=rn(t,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,p=a.positionalParamSegments;if(!u)return Jt(t);var h=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?en(h):this.lineralizeSegments(r,h).pipe(Object(ee.a)(function(r){return s.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(O.a)(function(e){return n._loadedConfig=e,new et(i,{})})):Object(s.a)(new et(i,{}));var a=rn(t,n,i),u=a.matched,c=a.consumedSegments,l=a.lastChild;if(!u)return Jt(t);var p=i.slice(l);return this.getChildConfig(e,n,i).pipe(Object(ee.a)(function(e){var n=e.module,i=e.routes,a=function(e,t,n,i){if(n.length>0&&function(e,t,n){return n.some(function(n){return sn(e,t,n)&&an(n)!==Ie})}(e,n,i)){var o=new et(t,function(e,t){var n,i,o={};o[Ie]=t;try{for(var s=Object(r.h)(e),a=s.next();!a.done;a=s.next()){var u=a.value;""===u.path&&an(u)!==Ie&&(o[an(u)]=new et([],{}))}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}(i,new et(n,e.children)));return{segmentGroup:on(o),slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return sn(e,t,n)})}(e,n,i)){var o=new et(e.segments,function(e,t,n,i){var o,s,a={};try{for(var u=Object(r.h)(n),c=u.next();!c.done;c=u.next()){var l=c.value;sn(e,t,l)&&!i[an(l)]&&(a[an(l)]=new et([],{}))}}catch(p){o={error:p}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}return Object(r.a)({},i,a)}(e,n,i,e.children));return{segmentGroup:on(o),slicedSegments:n}}return{segmentGroup:e,slicedSegments:n}}(t,c,p,i),u=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&u.hasChildren()?o.expandChildren(n,i,u).pipe(Object(O.a)(function(e){return new et(c,e)})):0===i.length&&0===l.length?Object(s.a)(new et(c,{})):o.expandSegment(n,u,i,l,Ie,!0).pipe(Object(O.a)(function(e){return new et(c.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?Object(s.a)(new Ue(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(s.a)(t._loadedConfig):function(e,t,n){var r=t.canLoad;return r&&0!==r.length?Object(a.a)(r).pipe(Object(O.a)(function(r){var i,o=e.get(r);if(function(e){return e&&$t(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!$t(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return Ze(i)})).pipe(S(),(i=function(e){return!0===e},function(e){return e.lift(new te(i,o,e))})):Object(s.a)(!0);var i,o}(e.injector,t,n).pipe(Object(ee.a)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(O.a)(function(e){return t._loadedConfig=e,e})):function(e){return new p.a(function(t){return t.error(Ve("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}(t)})):Object(s.a)(new Ue([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(s.a)(n);if(r.numberOfChildren>1||!r.children[Ie])return tn(e.redirectTo);r=r.children[Ie]}},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 Je(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return $e(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 $e(t.children,function(t,o){s[o]=i.createSegmentGroup(e,t,n,r)}),new et(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,i,o=0;try{for(var s=Object(r.h)(t),a=s.next();!a.done;a=s.next()){var u=a.value;if(u.path===e.path)return t.splice(o),u;o++}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return e},e}();function rn(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||Be)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function on(e){if(1===e.numberOfChildren&&e.children[Ie]){var t=e.children[Ie];return new et(e.segments.concat(t.segments),t.children)}return e}function sn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function an(e){return e.outlet||Ie}function un(e,t,n,i){return function(o){return o.pipe(re(function(o){return function(e,t,n,r,i){return new nn(e,t,n,r,i).apply()}(e,t,n,o.extractedUrl,i).pipe(Object(O.a)(function(e){return Object(r.a)({},o,{urlAfterRedirects:e})}))}))}}var cn=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),ln=function(){return function(e,t){this.component=e,this.route=t}}();function pn(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 hn(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=Ct(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){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!nt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!nt(e.url,t.url)||!Ge(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mt(e,t)||!Ge(e.queryParams,t.queryParams);case"paramsChange":default:return!Mt(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);if(u?i.canActivateChecks.push(new cn(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?hn(e,t,a?a.children:null,r,i):hn(e,t,n,r,i),u){var c=a&&a.outlet&&a.outlet.component||null;i.canDeactivateChecks.push(new ln(c,s))}}else s&&fn(t,a,i),i.canActivateChecks.push(new cn(r)),o.component?hn(e,null,a?a.children:null,r,i):hn(e,null,n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),$e(o,function(e,t){return fn(e,n.getContext(t),i)}),i}function fn(e,t,n){var r=Ct(e),i=e.value;$e(r,function(e,r){i.component?fn(e,t?t.children.getContext(r):null,n):fn(e,t,n)}),i.component&&t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new ln(t.outlet.component,i)):n.canDeactivateChecks.push(new ln(null,i))}var dn=Symbol("INITIAL_VALUE");function vn(){return re(function(e){return(function(){for(var e=[],t=0;t0?Object(g.a)(e,n):Object(E.b)(n):Object(se.a)(e[0]),t)}}(dn))}))).pipe(ue(function(e,t){var n=!1;return t.reduce(function(e,r,i){if(e!==dn)return e;if(r===dn&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||Zt(r))return r}return e},e)},dn),Object(j.a)(function(e){return e!==dn}),Object(O.a)(function(e){return Zt(e)?e:!0===e}),Z(1))})}function mn(e,t){return function(n){return n.pipe(Object(ee.a)(function(n){var i=n.targetSnapshot,o=n.currentSnapshot,u=n.guards,c=u.canActivateChecks,l=u.canDeactivateChecks;return 0===l.length&&0===c.length?Object(s.a)(Object(r.a)({},n,{guardsResult:!0})):function(e,t,n,r){return Object(a.a)(e).pipe(Object(ee.a)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);var a=o.map(function(o){var s,a=pn(o,t,i);if(function(e){return e&&$t(e.canDeactivate)}(a))s=Ze(a.canDeactivate(e,t,n,r));else{if(!$t(a))throw new Error("Invalid CanDeactivate guard");s=Ze(a(e,t,n,r))}return s.pipe(J())});return Object(s.a)(a).pipe(vn())}(e.component,e.route,n,t,r)}),J(function(e){return!0!==e},!0))}(l,i,o,e).pipe(Object(ee.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(a.a)(t).pipe(Object(pe.a)(function(t){return Object(a.a)([gn(t.route.parent,r),yn(t.route,r),_n(e,t.path,n),bn(e,t.route,n)]).pipe(S(),J(function(e){return!0!==e},!0))}),J(function(e){return!0!==e},!0))}(i,c,e,t):Object(s.a)(n)}),Object(O.a)(function(e){return Object(r.a)({},n,{guardsResult:e})}))}))}}function yn(e,t){return null!==e&&t&&t(new Pe(e)),Object(s.a)(!0)}function gn(e,t){return null!==e&&t&&t(new Te(e)),Object(s.a)(!0)}function bn(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(s.a)(!0);var i=r.map(function(r){return C(function(){var i,o=pn(r,t,n);if(function(e){return e&&$t(e.canActivate)}(o))i=Ze(o.canActivate(t,e));else{if(!$t(o))throw new Error("Invalid CanActivate guard");i=Ze(o(t,e))}return i.pipe(J())})});return Object(s.a)(i).pipe(vn())}function _n(e,t,n){var r=t[t.length-1],i=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}).map(function(t){return C(function(){var i=t.guards.map(function(i){var o,s=pn(i,t.node,n);if(function(e){return e&&$t(e.canActivateChild)}(s))o=Ze(s.canActivateChild(r,e));else{if(!$t(s))throw new Error("Invalid CanActivateChild guard");o=Ze(s(r,e))}return o.pipe(J())});return Object(s.a)(i).pipe(vn())})});return Object(s.a)(i).pipe(vn())}var wn=function(){return function(){}}();var En=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=xn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Ie),n=new At([],Object.freeze({}),Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ie,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Et(n,t),o=new Tt(this.url,i);return this.inheritParamsAndData(o._root),Object(s.a)(o)}catch(a){return new p.a(function(e){return e.error(a)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=jt(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=rt(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===Ie?-1:t.value.outlet===Ie?1:e.value.outlet.localeCompare(t.value.outlet)})}(i),i},e.prototype.processSegment=function(e,t,n,i){var o,s;try{for(var a=Object(r.h)(e),u=a.next();!u.done;u=a.next()){var c=u.value;try{return this.processSegmentAgainstRoute(c,t,n,i)}catch(l){if(!(l instanceof wn))throw l}}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(t,n,i))return[];throw new wn},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,i){if(e.redirectTo)throw new wn;if((e.outlet||Ie)!==i)throw new wn;var o,s=[],a=[];if("**"===e.path){var u=n.length>0?Qe(n).parameters:{};o=new At(n,u,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,An(e),i,e.component,e,Cn(t),On(t)+n.length,Tn(e))}else{var c=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new wn;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||Be)(n,e,t);if(!i)throw new wn;var o={};$e(i.posParams,function(e,t){o[t]=e.path});var s=i.consumed.length>0?Object(r.a)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(t,e,n);s=c.consumedSegments,a=n.slice(c.lastChild),o=new At(s,c.parameters,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,An(e),i,e.component,e,Cn(t),On(t)+s.length,Tn(e))}var l=function(e){if(e.children)return e.children;if(e.loadChildren)return e._loadedConfig.routes;return[]}(e),p=xn(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 Et(o,d)]}if(0===l.length&&0===f.length)return[new Et(o,[])];var v=this.processSegment(l,h,f,Ie);return[new Et(o,v)]},e}();function Cn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function On(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 xn(e,t,n,i,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return Sn(e,t,n)&&jn(n)!==Ie})}(e,n,i)){var s=new et(t,function(e,t,n,i){var o,s,a={};a[Ie]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;try{for(var u=Object(r.h)(n),c=u.next();!c.done;c=u.next()){var l=c.value;if(""===l.path&&jn(l)!==Ie){var p=new et([],{});p._sourceSegment=e,p._segmentIndexShift=t.length,a[jn(l)]=p}}}catch(h){o={error:h}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}return a}(e,t,i,new et(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 Sn(e,t,n)})}(e,n,i)){var a=new et(e.segments,function(e,t,n,i,o,s){var a,u,c={};try{for(var l=Object(r.h)(i),p=l.next();!p.done;p=l.next()){var h=p.value;if(Sn(e,n,h)&&!o[jn(h)]){var f=new et([],{});f._sourceSegment=e,f._segmentIndexShift="legacy"===s?e.segments.length:t.length,c[jn(h)]=f}}}catch(d){a={error:d}}finally{try{p&&!p.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}return Object(r.a)({},o,c)}(e,t,n,i,e.children,o));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new et(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Sn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function jn(e){return e.outlet||Ie}function An(e){return e.data||{}}function Tn(e){return e.resolve||{}}function Dn(e,t,n,i,o){return function(s){return s.pipe(Object(ee.a)(function(s){return function(e,t,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new En(e,t,n,r,i,o).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,o).pipe(Object(O.a)(function(e){return Object(r.a)({},s,{targetSnapshot:e})}))}))}}function Pn(e,t){return function(n){return n.pipe(Object(ee.a)(function(n){var i=n.targetSnapshot,o=n.guards.canActivateChecks;return o.length?Object(a.a)(o).pipe(Object(pe.a)(function(n){return function(e,t,n,i){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(s.a)({});if(1===i.length){var o=i[0];return Nn(e[o],t,n,r).pipe(Object(O.a)(function(e){var t;return(t={})[o]=e,t}))}var u={};return Object(a.a)(i).pipe(Object(ee.a)(function(i){return Nn(e[i],t,n,r).pipe(Object(O.a)(function(e){return u[i]=e,e}))})).pipe(W(),Object(O.a)(function(){return u}))}(e._resolve,e,t,i).pipe(Object(O.a)(function(t){return e._resolvedData=t,e.data=Object(r.a)({},e.data,jt(e,n).resolve),null}))}(n.route,i,e,t)}),function(e,t){return arguments.length>=2?function(n){return Object(he.a)(ue(e,t),P(1),U(t))(n)}:function(t){return Object(he.a)(ue(function(t,n,r){return e(t,n,r+1)}),P(1))(t)}}(function(e,t){return e}),Object(O.a)(function(e){return n})):Object(s.a)(n)}))}}function Nn(e,t,n,r){var i=pn(e,t,r);return i.resolve?Ze(i.resolve(t,n)):Ze(i(t,n))}function Mn(e){return function(t){return t.pipe(re(function(t){var n=e(t);return n?Object(a.a)(n).pipe(Object(O.a)(function(){return t})):Object(a.a)([t])}))}}var kn=function(){return function(){}}(),In=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}(),Fn=new o.B("ROUTES"),Rn=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(Object(O.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Ue(Ke(i.injector.get(Fn)).map(We),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(a.a)(this.loader.load(e)):Ze(e()).pipe(Object(ee.a)(function(e){return e instanceof o.J?Object(s.a)(e):Object(a.a)(t.compiler.compileModuleAsync(e))}))},e}(),Ln=function(){return function(){}}(),Vn=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 Bn(e){throw e}function Un(e,t,n){return t.parse("/")}function Hn(e,t){return Object(s.a)(null)}var qn=function(){function e(e,t,n,r,i,s,a,c){var p=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new u.a,this.errorHandler=Bn,this.malformedUriErrorHandler=Un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hn,afterPreactivation:Hn},this.urlHandlingStrategy=new Vn,this.routeReuseStrategy=new In,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy";this.ngModule=i.get(o.L),this.console=i.get(o.yb);var h=i.get(o.N);this.isNgZoneEnabled=h instanceof o.N,this.resetConfig(c),this.currentUrlTree=new Je(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Rn(s,a,function(e){return p.triggerEvent(new je(e))},function(e){return p.triggerEvent(new Ae(e))}),this.routerState=xt(this.currentUrlTree,this.rootComponentType),this.transitions=new l({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",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(Object(j.a)(function(e){return 0!==e.id}),Object(O.a)(function(e){return Object(r.a)({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),re(function(e){var i,o,a,u,c=!1,l=!1;return Object(s.a)(e).pipe(F(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object(r.a)({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}}),re(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(s.a)(e).pipe(re(function(e){var r=t.transitions.getValue();return n.next(new ge(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?E.a:[e]}),re(function(e){return Promise.resolve(e)}),un(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),F(function(e){t.currentNavigation=Object(r.a)({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})}),Dn(t.rootComponentType,t.config,function(e){return t.serializeUrl(e)},t.paramsInheritanceStrategy,t.relativeLinkResolution),F(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id),t.browserUrlTree=e.urlAfterRedirects)}),F(function(e){var r=new Ee(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var o=e.id,a=e.extractedUrl,u=e.source,c=e.restoredState,l=e.extras,p=new ge(o,t.serializeUrl(a),u,c);n.next(p);var h=xt(a,t.rootComponentType).snapshot;return Object(s.a)(Object(r.a)({},e,{targetSnapshot:h,urlAfterRedirects:a,extras:Object(r.a)({},l,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,e.resolve(null),E.a}),Mn(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})}),F(function(e){var n=new Ce(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(O.a)(function(e){return Object(r.a)({},e,{guards:(n=e.targetSnapshot,i=e.currentSnapshot,o=t.rootContexts,s=n._root,hn(s,i?i._root:null,o,[s.value]))});var n,i,o,s}),mn(t.ngModule.injector,function(e){return t.triggerEvent(e)}),F(function(e){if(Zt(e.guardsResult)){var n=Ve('Redirecting to "'+t.serializeUrl(e.guardsResult)+'"');throw n.url=e.guardsResult,n}}),F(function(e){var n=new Oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Object(j.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new _e(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Mn(function(e){if(e.guards.canActivateChecks.length)return Object(s.a)(e).pipe(F(function(e){var n=new xe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Pn(t.paramsInheritanceStrategy,t.ngModule.injector),F(function(e){var n=new Se(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Mn(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})}),Object(O.a)(function(e){var n,i,o,s,a=(n=t.routeReuseStrategy,i=e.targetSnapshot,o=e.currentRouterState,s=kt(n,i._root,o?o._root:void 0),new Ot(s,i));return Object(r.a)({},e,{targetRouterState:a})}),F(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,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(o=t.rootContexts,a=t.routeReuseStrategy,u=function(e){return t.triggerEvent(e)},Object(O.a)(function(e){return new Kt(a,e.targetRouterState,e.currentRouterState,u).activate(o),e})),F({next:function(){c=!0},complete:function(){c=!0}}),(i=function(){if(!c&&!l){t.resetUrlToCurrentUrlTree();var r=new _e(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)}t.currentNavigation=null},function(e){return e.lift(new de(i))}),K(function(r){if(l=!0,(a=r)&&a[Le]){var i=Zt(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new _e(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),e.resolve(!1),i&&t.navigateByUrl(r.url)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var s=new we(e.id,t.serializeUrl(e.extractedUrl),r);n.next(s);try{e.resolve(t.errorHandler(r))}catch(u){e.reject(u)}}var a;return E.a}))}))},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(Object(r.a)({},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?t.state: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.getCurrentNavigation=function(){return this.currentNavigation},e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){He(e),this.config=e.map(We),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,i=t.queryParams,s=t.fragment,a=t.preserveQueryParams,u=t.queryParamsHandling,c=t.preserveFragment;Object(o.tb)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=Object(r.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),It(l,this.currentUrlTree,e,h,p)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),Object(o.tb)()&&this.isNgZoneEnabled&&!o.N.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Zt(e)?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;t0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[a]=[]);var l=X(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:l,handler:s});else{for(var p=!1,h=0;h-1},t=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(m)),Object(r.e)(1,Object(o.z)(ne)),Object(r.e)(3,Object(o.O)()),Object(r.e)(3,Object(o.z)(re)),Object(r.d)("design:paramtypes",[Object,ie,o.yb,Object])],t)}(D),se=["alt","control","meta","shift"],ae={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},ue=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.c)(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 a().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(se.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=a().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),se.forEach(function(r){r!=n&&((0,ae[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=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(m)),Object(r.d)("design:paramtypes",[Object])],t)}(D),ce=function(){return function(){}}(),le=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.ab.NONE:return t;case o.ab.HTML:return t instanceof he?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(o.Cb)(this._doc,String(t)));case o.ab.STYLE:return t instanceof fe?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(o.Db)(t));case o.ab.SCRIPT:if(t instanceof de)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case o.ab.URL:return t instanceof me||t instanceof ve?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(o.Eb)(String(t)));case o.ab.RESOURCE_URL:if(t instanceof me)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 pe)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 he(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new fe(e)},t.prototype.bypassSecurityTrustScript=function(e){return new de(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new ve(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new me(e)},t=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(m)),Object(r.d)("design:paramtypes",[Object])],t)}(ce),pe=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}(),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(pe),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(pe),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(pe),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(pe),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(pe),ye=[{provide:o.R,useValue:i.l},{provide:o.S,useValue:function(){d.makeCurrent(),w.init()},multi:!0},{provide:i.i,useClass:g,deps:[m]},{provide:m,useFactory:function(){return document},deps:[]}],ge=[{provide:o.Z,useExisting:ce},{provide:ce,useClass:le,deps:[m]}];Object(o.nb)(o.ub,"browser",ye);var be=[ge,{provide:o.wb,useValue:!0},{provide:o.u,useFactory:function(){return new o.u},deps:[]},{provide:A,useClass:ee,multi:!0,deps:[m,o.N,o.R]},{provide:A,useClass:ue,multi:!0,deps:[m]},{provide:A,useClass:oe,multi:!0,deps:[m,ne,o.yb,[new o.O,re]]},{provide:ne,useClass:ie,deps:[]},{provide:V,useClass:V,deps:[T,N,o.c]},{provide:o.X,useExisting:V},{provide:P,useExisting:N},{provide:N,useClass:N,deps:[m]},{provide:o.hb,useClass:o.hb,deps:[o.N]},{provide:T,useClass:T,deps:[A,o.N]},j],_e=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:o.c,useValue:e.appId},{provide:b,useExisting:o.c},_]}},e=t=Object(r.b)([Object(o.I)({providers:be,exports:[i.b,o.f]}),Object(r.e)(0,Object(o.O)()),Object(r.e)(0,Object(o.cb)()),Object(r.e)(0,Object(o.z)(t)),Object(r.d)("design:paramtypes",[Object])],e)}();function we(){return new Ee(Object(o.sb)(m))}var Ee=function(){function e(e){this._doc=e,this._dom=a()}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=Object(o.ob)({factory:we,token:e,providedIn:"root"}),e=Object(r.b)([Object(o.A)({providedIn:"root",useFactory:we,deps:[]}),Object(r.e)(0,Object(o.z)(m)),Object(r.d)("design:paramtypes",[Object])],e)}();function Ce(){return new Oe(Object(o.sb)(m))}var Oe=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return a().getTitle(this._doc)},e.prototype.setTitle=function(e){a().setTitle(this._doc,e)},e.ngInjectableDef=Object(o.ob)({factory:Ce,token:e,providedIn:"root"}),e=Object(r.b)([Object(o.A)({providedIn:"root",useFactory:Ce,deps:[]}),Object(r.e)(0,Object(o.z)(m)),Object(r.d)("design:paramtypes",[Object])],e)}(),xe="undefined"!=typeof window&&window||{},Se=function(){return function(e,t){this.msPerTick=e,this.numTicks=t}}();!function(){function e(e){this.appRef=e.injector.get(o.g)}e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=xe.console.profile;t&&n&&xe.console.profile("Change Detection");for(var r=a().performanceNow(),i=0;i<5||a().performanceNow()-r<500;)this.appRef.tick(),i++;var o=a().performanceNow();t&&n&&xe.console.profileEnd("Change Detection");var s=(o-r)/i;return xe.console.log("ran "+i+" change detection cycles"),xe.console.log(s.toFixed(2)+" ms per check"),new Se(s,i)}}();var je=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=Object(r.b)([Object(o.A)()],e)}();function Ae(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 je.init(o)}(function(){function e(){}e=Object(r.b)([Object(o.I)({providers:[{provide:je,useFactory:Ae,deps:[m,o.c]}]})],e)})(),function(){function e(){}e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&a().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}}}(),new o.jb("7.2.14")},Zn8D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("psW0"),i=n("mChF");function o(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(i.a,e)}},gIcY:function(e,t,n){"use strict";var r=n("mrSG"),i=n("CcnG"),o=n("6blF"),s=n("isby"),a=n("G5J1"),u=n("zotm"),c=n("MGBS"),l=n("67Y/");var p=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;oe?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return m(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return m(e.value)?null:b.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(m(t.value))return null;var n=t.value?t.value.length:0;return ne?{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(m(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(w);return 0==t.length?null:function(e){return C(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(w);return 0==t.length?null:function(e){return function e(){for(var t,n=[],r=0;r=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=Object(r.b)([Object(i.A)()],e)}(),L=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(I),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: \n ')},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",String)],e.prototype,"name",void 0),Object(r.b)([Object(i.D)(),Object(r.d)("design:type",String)],e.prototype,"formControlName",void 0),Object(r.b)([Object(i.D)(),Object(r.d)("design:type",Object)],e.prototype,"value",void 0),e=Object(r.b)([Object(i.s)({selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[F]}),Object(r.d)("design:paramtypes",[i.W,i.t,R,i.C])],e)}(),V={provide:O,useExisting:Object(i.qb)(function(){return B}),multi:!0},B=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=Object(r.b)([Object(i.s)({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:[V]}),Object(r.d)("design:paramtypes",[i.W,i.t])],e)}(),U='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',H='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',q='\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',z='\n
\n
\n \n
\n
',W='\n
\n \n \n
\n ',G=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 "+U)},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 '+H+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+z)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+U)},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 "+H)},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 "+q)},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}(),K={provide:O,useExisting:Object(i.qb)(function(){return $}),multi:!0};function Q(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var $=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=i.Rb}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=Q(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 i=Object(r.h)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var s=o.value;if(this._compareWith(this._optionMap.get(s),e))return s}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}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},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",Function),Object(r.d)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(r.b)([Object(i.s)({selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[K]}),Object(r.d)("design:paramtypes",[i.W,i.t])],e)}(),Z=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(Q(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))},Object(r.b)([Object(i.D)("ngValue"),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(r.b)([Object(i.D)("value"),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(r.b)([Object(i.s)({selector:"option"}),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.w)()),Object(r.d)("design:paramtypes",[i.t,i.W,$])],e)}(),Y={provide:O,useExisting:Object(i.qb)(function(){return J}),multi:!0};function X(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var J=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=i.Rb}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;o1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function ae(e){return null!=e?_.compose(e.map(D)):null}function ue(e){return null!=e?_.composeAsync(e.map(P)):null}function ce(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i.Rb)(t,n.currentValue)}var le=[S,B,M,$,J,L];function pe(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 he(e,t){if(!t)return null;Array.isArray(t)||se(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===T?n=t:(o=t,le.some(function(e){return o.constructor===e})?(r&&se(e,"More than one built-in value accessor matches form control with"),r=t):(i&&se(e,"More than one custom value accessor matches form control with"),i=t))}),i||(r||(n||(se(e,"No valid value accessor for form control with"),null)))}function fe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function de(e,t,n,r){Object(i.tb)()&&"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(G.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(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 te(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 ae(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ue(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(v),me=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}(),ye={"[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"},ge=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),t=Object(r.b)([Object(i.s)({selector:"[formControlName],[ngModel],[formControl]",host:ye}),Object(r.e)(0,Object(i.bb)()),Object(r.d)("design:paramtypes",[I])],t)}(me),be=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),t=Object(r.b)([Object(i.s)({selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ye}),Object(r.e)(0,Object(i.bb)()),Object(r.d)("design:paramtypes",[v])],t)}(me);function _e(e){var t=Ee(e)?e.validators:e;return Array.isArray(t)?ae(t):t||null}function we(e,t){var n=Ee(t)?t.asyncValidators:e;return Array.isArray(n)?ue(n):n||null}function Ee(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ce=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=_e(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=we(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(Object(r.a)({},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(Object(r.a)({},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=E(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 xe?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Se&&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 i.v,this.statusChanges=new i.v},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){Ee(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),Oe=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,_e(n),we(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.c)(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}(Ce),xe=function(e){function t(t,n,r){var i=e.call(this,_e(n),we(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(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 Oe?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=Object(r.h)(Object.keys(this.controls)),i=n.next();!i.done;i=n.next()){var o=i.value;if(this.controls[o].enabled)return!1}}catch(s){e={error:s}}finally{try{i&&!i.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}(Ce),Se=function(e){function t(t,n,r){var i=e.call(this,_e(n),we(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(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 Oe?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=Object(r.h)(this.controls),i=n.next();!i.done;i=n.next()){if(i.value.enabled)return!1}}catch(o){e={error:o}}finally{try{i&&!i.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}(Ce),je={provide:v,useExisting:Object(i.qb)(function(){return Te})},Ae=Promise.resolve(null),Te=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.v,r.form=new xe({},ae(t),ue(n)),r}return Object(r.c)(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;Ae.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ne(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;Ae.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),fe(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;Ae.then(function(){var n=t._findContainer(e.path),r=new xe({});ie(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;Ae.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;Ae.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,pe(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},Object(r.b)([Object(i.D)("ngFormOptions"),Object(r.d)("design:type",Object)],t.prototype,"options",void 0),t=Object(r.b)([Object(i.s)({selector:"form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]",providers:[je],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.bb)()),Object(r.e)(0,Object(i.z)(y)),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(g)),Object(r.d)("design:paramtypes",[Array,Array])],t)}(v),De=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 '+U+"\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 "+W)},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 "+H+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+z)},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: \n Example 2: ')},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 "+H+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+z)},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 \n\n After:\n \n ")},e}(),Pe=new i.B("NgFormSelectorWarning"),Ne=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(De.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e=t=Object(r.b)([Object(i.s)({selector:"ngForm"}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.z)(Pe)),Object(r.d)("design:paramtypes",[Object])],e)}(),Me={provide:v,useExisting:Object(i.qb)(function(){return ke})},ke=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 Object(r.c)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Te||De.modelGroupParentException()},Object(r.b)([Object(i.D)("ngModelGroup"),Object(r.d)("design:type",String)],t.prototype,"name",void 0),t=n=Object(r.b)([Object(i.s)({selector:"[ngModelGroup]",providers:[Me],exportAs:"ngModelGroup"}),Object(r.e)(0,Object(i.w)()),Object(r.e)(0,Object(i.cb)()),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(y)),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.bb)()),Object(r.e)(2,Object(i.z)(g)),Object(r.d)("design:paramtypes",[v,Array,Array])],t)}(ve),Ie={provide:I,useExisting:Object(i.qb)(function(){return Re})},Fe=Promise.resolve(null),Re=function(e){function t(t,n,r,o){var s=e.call(this)||this;return s.control=new Oe,s._registered=!1,s.update=new i.v,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=he(s,o),s}return Object(r.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ce(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?te(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 ae(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ue(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(){ne(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 ke)&&this._parent instanceof ve?De.formGroupNameException():this._parent instanceof ke||this._parent instanceof Te||De.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||De.missingNameException()},t.prototype._updateValue=function(e){var t=this;Fe.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;Fe.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",String)],t.prototype,"name",void 0),Object(r.b)([Object(i.D)("disabled"),Object(r.d)("design:type",Boolean)],t.prototype,"isDisabled",void 0),Object(r.b)([Object(i.D)("ngModel"),Object(r.d)("design:type",Object)],t.prototype,"model",void 0),Object(r.b)([Object(i.D)("ngModelOptions"),Object(r.d)("design:type",Object)],t.prototype,"options",void 0),Object(r.b)([Object(i.P)("ngModelChange"),Object(r.d)("design:type",Object)],t.prototype,"update",void 0),t=Object(r.b)([Object(i.s)({selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ie],exportAs:"ngModel"}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.w)()),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(y)),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.bb)()),Object(r.e)(2,Object(i.z)(g)),Object(r.e)(3,Object(i.O)()),Object(r.e)(3,Object(i.bb)()),Object(r.e)(3,Object(i.z)(O)),Object(r.d)("design:paramtypes",[v,Array,Array,Array])],t)}(I),Le=new i.B("NgModelWithFormControlWarning"),Ve={provide:I,useExisting:Object(i.qb)(function(){return Be})},Be=function(e){function t(t,n,r,o){var s=e.call(this)||this;return s._ngModelWarningConfig=o,s.update=new i.v,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=n||[],s.valueAccessor=he(s,r),s}var n;return Object(r.c)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){G.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(ne(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),ce(e,this.viewModel)&&(de("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 ae(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ue(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,Object(r.b)([Object(i.D)("formControl"),Object(r.d)("design:type",Oe)],t.prototype,"form",void 0),Object(r.b)([Object(i.D)("disabled"),Object(r.d)("design:type",Boolean),Object(r.d)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(r.b)([Object(i.D)("ngModel"),Object(r.d)("design:type",Object)],t.prototype,"model",void 0),Object(r.b)([Object(i.P)("ngModelChange"),Object(r.d)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(r.b)([Object(i.s)({selector:"[formControl]",providers:[Ve],exportAs:"ngForm"}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.bb)()),Object(r.e)(0,Object(i.z)(y)),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(g)),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.bb)()),Object(r.e)(2,Object(i.z)(O)),Object(r.e)(3,Object(i.O)()),Object(r.e)(3,Object(i.z)(Le)),Object(r.d)("design:paramtypes",[Array,Array,Array,Object])],t)}(I),Ue={provide:v,useExisting:Object(i.qb)(function(){return He})},He=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 i.v,r}return Object(r.c)(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 ne(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){fe(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);ie(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);ie(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,pe(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 oe(t)}),t.valueAccessor.registerOnTouched(function(){return oe(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&&ne(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=ae(this._validators);this.form.validator=_.compose([this.form.validator,e]);var t=ue(this._asyncValidators);this.form.asyncValidator=_.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||G.missingFormException()},Object(r.b)([Object(i.D)("formGroup"),Object(r.d)("design:type",xe)],t.prototype,"form",void 0),Object(r.b)([Object(i.P)(),Object(r.d)("design:type",Object)],t.prototype,"ngSubmit",void 0),t=Object(r.b)([Object(i.s)({selector:"[formGroup]",providers:[Ue],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.bb)()),Object(r.e)(0,Object(i.z)(y)),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(g)),Object(r.d)("design:paramtypes",[Array,Array])],t)}(v),qe={provide:v,useExisting:Object(i.qb)(function(){return ze})},ze=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 Object(r.c)(t,e),t.prototype._checkParentType=function(){Ke(this._parent)&&G.groupParentException()},Object(r.b)([Object(i.D)("formGroupName"),Object(r.d)("design:type",String)],t.prototype,"name",void 0),t=Object(r.b)([Object(i.s)({selector:"[formGroupName]",providers:[qe]}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.w)()),Object(r.e)(0,Object(i.cb)()),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(y)),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.bb)()),Object(r.e)(2,Object(i.z)(g)),Object(r.d)("design:paramtypes",[v,Array,Array])],t)}(ve),We={provide:v,useExisting:Object(i.qb)(function(){return Ge})},Ge=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 Object(r.c)(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 te(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ae(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ue(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){Ke(this._parent)&&G.arrayParentException()},Object(r.b)([Object(i.D)("formArrayName"),Object(r.d)("design:type",String)],t.prototype,"name",void 0),t=Object(r.b)([Object(i.s)({selector:"[formArrayName]",providers:[We]}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.w)()),Object(r.e)(0,Object(i.cb)()),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(y)),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.bb)()),Object(r.e)(2,Object(i.z)(g)),Object(r.d)("design:paramtypes",[v,Array,Array])],t)}(v);function Ke(e){return!(e instanceof ze||e instanceof He||e instanceof Ge)}var Qe={provide:I,useExisting:Object(i.qb)(function(){return $e})},$e=function(e){function t(t,n,r,o,s){var a=e.call(this)||this;return a._ngModelWarningConfig=s,a._added=!1,a.update=new i.v,a._ngModelWarningSent=!1,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=he(a,o),a}var n;return Object(r.c)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){G.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),ce(e,this.viewModel)&&(de("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 te(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 ae(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ue(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof ze)&&this._parent instanceof ve?G.ngModelGroupException():this._parent instanceof ze||this._parent instanceof He||this._parent instanceof Ge||G.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,Object(r.b)([Object(i.D)("formControlName"),Object(r.d)("design:type",String)],t.prototype,"name",void 0),Object(r.b)([Object(i.D)("disabled"),Object(r.d)("design:type",Boolean),Object(r.d)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(r.b)([Object(i.D)("ngModel"),Object(r.d)("design:type",Object)],t.prototype,"model",void 0),Object(r.b)([Object(i.P)("ngModelChange"),Object(r.d)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(r.b)([Object(i.s)({selector:"[formControlName]",providers:[Qe]}),Object(r.e)(0,Object(i.O)()),Object(r.e)(0,Object(i.w)()),Object(r.e)(0,Object(i.cb)()),Object(r.e)(1,Object(i.O)()),Object(r.e)(1,Object(i.bb)()),Object(r.e)(1,Object(i.z)(y)),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.bb)()),Object(r.e)(2,Object(i.z)(g)),Object(r.e)(3,Object(i.O)()),Object(r.e)(3,Object(i.bb)()),Object(r.e)(3,Object(i.z)(O)),Object(r.e)(4,Object(i.O)()),Object(r.e)(4,Object(i.z)(Le)),Object(r.d)("design:paramtypes",[v,Array,Array,Array,Object])],t)}(I),Ze={provide:y,useExisting:Object(i.qb)(function(){return Xe}),multi:!0},Ye={provide:y,useExisting:Object(i.qb)(function(){return Je}),multi:!0},Xe=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?_.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"required",null),e=Object(r.b)([Object(i.s)({selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Ze],host:{"[attr.required]":'required ? "" : null'}})],e)}(),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.validate=function(e){return this.required?_.requiredTrue(e):null},t=Object(r.b)([Object(i.s)({selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ye],host:{"[attr.required]":'required ? "" : null'}})],t)}(Xe),et={provide:y,useExisting:Object(i.qb)(function(){return tt}),multi:!0},tt=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?_.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"email",null),e=Object(r.b)([Object(i.s)({selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[et]})],e)}(),nt={provide:y,useExisting:Object(i.qb)(function(){return rt}),multi:!0},rt=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=_.minLength(parseInt(this.minlength,10))},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",String)],e.prototype,"minlength",void 0),e=Object(r.b)([Object(i.s)({selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[nt],host:{"[attr.minlength]":"minlength ? minlength : null"}})],e)}(),it={provide:y,useExisting:Object(i.qb)(function(){return ot}),multi:!0},ot=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=_.maxLength(parseInt(this.maxlength,10))},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",String)],e.prototype,"maxlength",void 0),e=Object(r.b)([Object(i.s)({selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[it],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}})],e)}(),st={provide:y,useExisting:Object(i.qb)(function(){return at}),multi:!0},at=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=_.pattern(this.pattern)},Object(r.b)([Object(i.D)(),Object(r.d)("design:type",Object)],e.prototype,"pattern",void 0),e=Object(r.b)([Object(i.s)({selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[st],host:{"[attr.pattern]":"pattern ? pattern : null"}})],e)}();var ut=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(!function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null):(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0)),new xe(n,{asyncValidators:i,updateOn:o,validators:r})},e.prototype.control=function(e,t,n){return new Oe(e,t,n)},e.prototype.array=function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Se(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 Oe||e instanceof xe||e instanceof Se)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=Object(r.b)([Object(i.A)()],e)}(),ct=(new i.jb("7.2.14"),[function(){function e(){}return e=Object(r.b)([Object(i.s)({selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}})],e)}(),Z,ee,T,M,B,S,$,J,L,ge,be,Xe,rt,ot,at,Je,tt]),lt=[Re,ke,Te,Ne],pt=[Be,He,$e,ze,Ge],ht=function(){function e(){}return e=Object(r.b)([Object(i.I)({declarations:ct,exports:ct})],e)}(),ft=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Pe,useValue:e.warnOnDeprecatedNgFormSelector}]}},e=t=Object(r.b)([Object(i.I)({declarations:lt,providers:[R],exports:[ht,lt]})],e)}();!function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Le,useValue:e.warnOnNgModelWithFormControl}]}},e=t=Object(r.b)([Object(i.I)({declarations:[pt],providers:[ut,R],exports:[ht,pt]})],e)}()},iLxQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},isby:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},mChF:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},mrSG:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return a}),n.d(t,"d",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return p});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=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;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.a)},pugT:function(e,t,n){"use strict";var r,i=n("isby"),o=n("McSo"),s=n("2Bdj"),a={e:{}};function u(){try{return r.apply(this,arguments)}catch(e){return a.e=e,a}}function c(e){return r=e,u}function l(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}l.prototype=Object.create(Error.prototype);var p=l;n.d(t,"a",function(){return h});var h=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,u=this._unsubscribe,l=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,d=r?r.length:0;n;)n.remove(this),n=++h0){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 i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,Object(r.g)(n)),this.headers.set(t,i);break;case"d":var o=e.value;if(o){var s=this.headers.get(t);if(!s)return;0===(s=s.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}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}(),d=function(){function e(){}return e.prototype.encodeKey=function(e){return v(e)},e.prototype.encodeValue=function(e){return v(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function v(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 m=function(){function e(e){void 0===e&&(e={});var t,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new d,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,i=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),o=Object(r.f)(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),s=o[0],a=o[1],u=i.get(s)||[];u.push(a),i.set(s,u)}),i)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];o.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=this.updates=null)},e}();function y(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function g(e){return"undefined"!=typeof Blob&&e instanceof Blob}function b(e){return"undefined"!=typeof FormData&&e instanceof FormData}var _,w=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 f),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?"),a=-1===s?"?":s=200&&this.status<300}}(),C=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=_.ResponseHeader,n}return Object(r.c)(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}(E),O=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=_.Response,n.body=void 0!==t.body?t.body:null,n}return Object(r.c)(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}(E),x=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 Object(r.c)(t,e),t}(E);function S(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var j=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 w)r=e;else{var s=void 0;s=n.headers instanceof f?n.headers:new f(n.headers);var l=void 0;n.params&&(l=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new w(e,t,void 0!==n.body?n.body:null,{headers:s,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var p=Object(o.a)(r).pipe(Object(a.a)(function(e){return i.handler.handle(e)}));if(e instanceof w||"events"===n.observe)return p;var h=p.pipe(Object(u.a)(function(e){return e instanceof O}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return h.pipe(Object(c.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return h.pipe(Object(c.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return h.pipe(Object(c.a)(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 h.pipe(Object(c.a)(function(e){return e.body}))}case"response":return h;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 m).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,S(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,S(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,S(n,t))},e=Object(r.b)([Object(i.A)(),Object(r.d)("design:paramtypes",[p])],e)}(),A=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}(),T=new i.B("HTTP_INTERCEPTORS"),D=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e=Object(r.b)([Object(i.A)()],e)}(),P=0,N=function(){return function(){}}(),M=function(){function e(e,t){this.callbackMap=e,this.document=t}return e.prototype.nextCallback=function(){return"ng_jsonp_callback_"+P++},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 s.a(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 O({body:s,status:200,statusText:"OK",url:i})),n.complete()):n.error(new x({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 x({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:_.Sent}),function(){u=!0,o.removeEventListener("load",l),o.removeEventListener("error",p),c()}})},e=Object(r.b)([Object(i.A)(),Object(r.e)(1,Object(i.z)(l.c)),Object(r.d)("design:paramtypes",[N,Object])],e)}(),k=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=Object(r.b)([Object(i.A)(),Object(r.d)("design:paramtypes",[M])],e)}(),I=/^\)\]\}',?\n/;var F=function(){return function(){}}(),R=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e=Object(r.b)([Object(i.A)(),Object(r.d)("design:paramtypes",[])],e)}(),L=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 s.a(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 f(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 C({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(I,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=p,l&&(l=!1,c={error:h,text:c})}}l?(n.next(new O({body:c,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new x({error:c,headers:i,status:o,statusText:s,url:a||void 0}))},l=function(e){var t=u().url,i=new x({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},p=!1,h=function(t){p||(n.next(u()),p=!0);var i={type:_.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:_.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",d)),r.send(s),n.next({type:_.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},e=Object(r.b)([Object(i.A)(),Object(r.d)("design:paramtypes",[F])],e)}(),V=new i.B("XSRF_COOKIE_NAME"),B=new i.B("XSRF_HEADER_NAME"),U=function(){return function(){}}(),H=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=Object(l.m)(e,this.cookieName),this.lastCookieString=e),this.lastToken},e=Object(r.b)([Object(i.A)(),Object(r.e)(0,Object(i.z)(l.c)),Object(r.e)(1,Object(i.z)(i.R)),Object(r.e)(2,Object(i.z)(V)),Object(r.d)("design:paramtypes",[Object,String,String])],e)}(),q=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=Object(r.b)([Object(i.A)(),Object(r.e)(1,Object(i.z)(B)),Object(r.d)("design:paramtypes",[U,String])],e)}(),z=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(T,[]);this.chain=t.reduceRight(function(e,t){return new A(e,t)},this.backend)}return this.chain.handle(e)},e=Object(r.b)([Object(i.A)(),Object(r.d)("design:paramtypes",[h,i.C])],e)}();function W(){return"object"==typeof window?window:{}}var G=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:q,useClass:D}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:V,useValue:e.cookieName}:[],e.headerName?{provide:B,useValue:e.headerName}:[]]}},e=t=Object(r.b)([Object(i.I)({providers:[q,{provide:T,useExisting:q,multi:!0},{provide:U,useClass:H},{provide:V,useValue:"XSRF-TOKEN"},{provide:B,useValue:"X-XSRF-TOKEN"}]})],e)}(),K=function(){function e(){}return e=Object(r.b)([Object(i.I)({imports:[G.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[j,{provide:p,useClass:z},L,{provide:h,useExisting:L},R,{provide:F,useExisting:R}]})],e)}();!function(){function e(){}e=Object(r.b)([Object(i.I)({providers:[M,{provide:N,useFactory:W},{provide:T,useClass:k,multi:!0}]})],e)}()},u67D:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("En8+"),i=function(e){return function(t){for(var n=e[r.a]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}},xTla:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},y3By:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("+umK");function i(){for(var e=[],t=0;t