You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
941 KiB
2 lines
941 KiB
(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;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}}},"+umK":function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},"/WYv":function(e,t,n){"use strict";function r(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},"0/uQ":function(e,t,n){"use strict";var r=n("6blF"),i=n("/WYv"),o=n("2ePl"),s=n("xTla");var a=n("En8+");var u=n("IUTb"),c=n("pugT"),l=n("S5XQ");var p=n("u67D");var h=n("JcRv");var f=n("Fxb1");function d(e,t){if(!t)return e instanceof r.a?e:new r.a(Object(f.a)(e));if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return t?new r.a(function(n){var r=new c.a;return r.add(t.schedule(function(){var i=e[s.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r}):new r.a(Object(h.a)(e))}(e,t);if(Object(i.a)(e))return function(e,t){return t?new r.a(function(n){var r=new c.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r}):new r.a(Object(l.a)(e))}(e,t);if(Object(o.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[a.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return t?new r.a(function(n){var r,i=new c.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[a.a](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i}):new r.a(Object(p.a)(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}n.d(t,"a",function(){return d})},"2Bdj":function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},"2ePl":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},"67Y/":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){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}var s=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},"6ahw":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},"6blF":function(e,t,n){"use strict";var r=n("FFOo");var i=n("L/V9"),o=n("6ahw");var s=n("xTla"),a=n("y3By"),u=n("iLxQ");n.d(t,"a",function(){return c});var c=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var s=this.operator,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(s?s.call(a,this.source):a.add(this.source||u.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),u.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.a?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=l(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:Object(a.b)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=l(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function l(e){if(e||(e=u.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},"8g8A":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},CcnG:function(e,t,n){"use strict";var r=n("mrSG"),i=n("pugT"),o=n("K9Ia"),s=n("6blF"),a=n("nkY7"),u=n("Zn8D"),c=n("IUTb");var l=n("FFOo");function p(){return function(e){return e.lift(new h(e))}}var h=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new f(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),f=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._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(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<arguments.length;n++)t[n]=arguments[n];if(this instanceof a)return s.call.apply(s,Object(r.g)([this],t)),this;var u=new((e=a).bind.apply(e,Object(r.g)([void 0],t)));return function(e){return o&&o.apply(void 0,Object(r.g)([e],t)),(e.hasOwnProperty(M)?e[M]:Object.defineProperty(e,M,{value:[]})[M]).push(u),i&&i(e),e}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a}function R(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var i=e.apply(void 0,Object(r.g)(t));for(var o in i)this[o]=i[o]}}}function L(e,t,n){var i=R(t);function o(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof o)return i.apply(this,t),this;var s=new((e=o).bind.apply(e,Object(r.g)([void 0],t)));return a.annotation=s,a;function a(e,t,n){for(var r=e.hasOwnProperty(k)?e[k]:Object.defineProperty(e,k,{value:[]})[k];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(s),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}function V(e,t,n,i){var o=R(t);function s(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof s)return o.apply(this,t),this;var a=new((e=s).bind.apply(e,Object(r.g)([void 0],t)));return function(e,n){var o=e.constructor,s=o.hasOwnProperty(I)?o[I]:Object.defineProperty(o,I,{value:{}})[I];s[n]=s.hasOwnProperty(n)&&s[n]||[],s[n].unshift(a),i&&i.apply(void 0,Object(r.g)([e,n],t))}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}var B,U,H=new N("AnalyzeForEntryComponents"),q=L("Attribute",function(e){return{attributeName:e}}),z=function(){return function(){}}(),W=V("ContentChildren",function(e,t){return void 0===t&&(t={}),Object(r.a)({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},z);V("ContentChild",function(e,t){return void 0===t&&(t={}),Object(r.a)({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},z),V("ViewChildren",function(e,t){return void 0===t&&(t={}),Object(r.a)({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},z),V("ViewChild",function(e,t){return Object(r.a)({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},z);!function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(B||(B={})),function(e){e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed"}(U||(U={}));var G="undefined"!=typeof window&&window,K="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Q="undefined"!=typeof global&&global||G||K,$=Promise.resolve(0),Z=null;function Y(){if(!Z){var e=Q.Symbol;if(e&&e.iterator)Z=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Z=r)}}return Z}function X(e){"undefined"==typeof Zone?$.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function J(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function ee(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(ee).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}var te=_({__forward_ref__:_});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return ee(this())},e}function re(e){var t=e;return"function"==typeof t&&t.hasOwnProperty(te)&&t.__forward_ref__===ne?t():e}var ie;new Set;!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(ie||(ie={}));var oe=[];function se(e){return e[E]||null}function ae(e,t){var n=e[x]||null;if(!n&&!0===t)throw new Error("Type "+ee(e)+" does not have 'ngModuleDef' property.");return n}var ue=0,ce=1,le=2,pe=3,he=4,fe=5,de=6,ve=7,me=8,ye=9,ge=10,be=11,_e=12,we=13,Ee=14,Ce=15,Oe=17,xe=18,Se=0,je=1,Ae=6,Te=7,De=8,Pe="__ngContext__",Ne=8,Me=8,ke=9,Ie=-1,Fe=function(){return function(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}(),Re=Fe.prototype;function Le(e){return"function"==typeof e?e.name||e:"string"==typeof e?e:null==e?"":"object"==typeof e&&"function"==typeof e.type?e.type.name||e.type:""+e}function Ve(e){for(;Array.isArray(e);)e=e[fe];return e}function Be(e,t){return Ve(t[e.index])}function Ue(e,t){return t[ue].data[e+xe]}function He(e,t){var n=t[e];return n.length>=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<e.length;n++){var r=e[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=it.Default,s=0;s<r.length;s++){var a=r[s];a instanceof st||"Optional"===a.ngMetadataName?o|=it.Optional:a instanceof ut||"SkipSelf"===a.ngMetadataName?o|=it.SkipSelf:a instanceof at||"Self"===a.ngMetadataName?o|=it.Self:i=a instanceof ot?a.token:a}t.push(dt(i,o))}else t.push(dt(r))}return t}function yt(e,t,n,r){t&&(r.initHooks||(r.initHooks=[])).push(e,t),n&&((r.initHooks||(r.initHooks=[])).push(e,n),(r.checkHooks||(r.checkHooks=[])).push(e,n))}function gt(e,t){if(e.firstTemplatePass)for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n];bt(i,e,n),_t(i,e,n),wt(i,e,n)}}function bt(e,t,n){e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked))}function _t(e,t,n){e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked))}function wt(e,t,n){null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}function Et(e,t,n){!n&&32&e[ce]&&(Ct(e,t.initHooks,t.checkHooks,n),e[ce]&=-33)}function Ct(e,t,n,r){if(!r){var i=2&e[ce]?t:n;i&&Ot(e,i)}}function Ot(e,t){for(var n=0;n<t.length;n+=2)t[n+1].call(e[t[n]])}var xt,St,jt;function At(e){e}function Tt(){return jt}function Dt(){return xt}function Pt(e){xt=e}function Nt(e,t){xt=e,jt=t}function Mt(){return St}function kt(e){St=e}function It(e){return void 0===e&&(e=jt),1==(1&e[ce])}var Ft=!1;function Rt(){return Ft}function Lt(e){Ft=e}var Vt=!0;function Bt(){return Vt}function Ut(e){Vt=e}function Ht(e){e}function qt(e,t){var n=jt;if(e){var r=e[ue];Vt=r.firstTemplatePass,r.bindingStartIndex}return xt=t,St=!0,jt=e,n}function zt(e){var t=jt[ue];It(jt)?jt[ce]&=-2:(Ct(jt,t.viewHooks,t.viewCheckHooks,Ft),jt[ce]&=-11,jt[ce]|=32,jt[ve]=t.bindingStartIndex),qt(e,null)}var Wt=!0;function Gt(e){var t=Wt;return Wt=e,t}var Kt=255,Qt=0;function $t(e,t){var n=Yt(e,t);if(-1!==n)return n;var r=t[ue];r.firstTemplatePass&&(e.injectorIndex=t.length,Zt(r.data,e),Zt(t,null),Zt(r.blueprint,null));var i=Xt(e,t),o=Xe(i),s=et(i,t),a=e.injectorIndex;if(Ye(i))for(var u=s[ue].data,c=0;c<8;c++)t[a+c]=s[o+c]|u[o+c];return t[a+Me]=i,a}function Zt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Yt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Me]?-1:e.injectorIndex}function Xt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[de],r=1;n&&-1===n.injectorIndex;)n=(t=t[Oe])?t[de]:null,r++;return n?n.injectorIndex|r<<16:-1}function Jt(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[j]:n.charCodeAt(0)||0;null==r&&(r=n[j]=Qt++);var i=r&Kt,o=1<<i,s=128&i,a=64&i,u=32&i,c=t.data;s?a?u?c[e+7]|=o:c[e+6]|=o:u?c[e+5]|=o:c[e+4]|=o:a?u?c[e+3]|=o:c[e+2]|=o:u?c[e+1]|=o:c[e]|=o}(e,t[ue],n)}function en(e,t,n,r,i){if(void 0===r&&(r=it.Default),e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[j];return"number"==typeof t?t&Kt:t}(n);if("function"==typeof o){var s=Dt(),a=Tt();Nt(e,t);try{var u=o();if(null!=u||r&it.Optional)return u;throw new Error("No provider for "+Le(n)+"!")}finally{Nt(s,a)}}else if("number"==typeof o){var c=null,l=Yt(e,t),p=Ie,h=r&it.Host?rt(t)[de]:null;for((-1===l||r&it.SkipSelf)&&(p=-1===l?Xt(e,t):t[l+Me],an(r,!1)?(c=t[ue],l=Xe(p),t=et(p,t)):l=-1);-1!==l;){p=t[l+Me];var f=t[ue];if(sn(o,l,f.data)){var d=nn(l,t,n,c,r,h);if(d!==tn)return d}an(r,t[ue].data[l+Ne]===h)&&sn(o,l,t)?(c=f,l=Xe(p),t=et(p,t)):l=-1}}}if(r&it.Optional&&void 0===i&&(i=null),0==(r&(it.Self|it.Host))){var v=t[ge];return v?v.get(n,i,r&it.Optional):vt(n,i,r&it.Optional)}if(r&it.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+Le(n)+"]")}var tn={};function nn(e,t,n,r,i,o){var s=t[ue],a=s.data[e+Ne],u=rn(a,t,n,null==r?ze(a)&&Wt:r!=s&&3===a.type,i&it.Host&&o===a);return null!==u?on(s.data,t,u,a):tn}function rn(e,t,n,r,i){for(var o=t[ue],s=e.providerIndexes,a=o.data,u=65535&s,c=e.directiveStart,l=e.directiveEnd,p=s>>16,h=i?u+p:l,f=r?u:u+p;f<h;f++){var d=a[f];if(f<c&&n===d||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<<e,i=64&e,o=32&e;return!!((128&e?i?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:i?o?n[t+3]:n[t+2]:o?n[t+1]:n[t])&r)}function an(e,t){return!(e&it.Self||e&it.Host&&t)}var un=function(){function e(e,t){this._tNode=e,this._lView=t}return e.prototype.get=function(e,t){return en(this._tNode,this._lView,e,void 0,t)},e}();function cn(e){var t,n=$e(e);if(n){if(Array.isArray(n)){var r=n,i=void 0,o=void 0,s=void 0;if((t=e)&&t.constructor&&t.constructor.ngComponentDef){if(-1==(i=vn(r,e)))throw new Error("The provided component was not found in the application");o=e}else if(function(e){return e&&e.constructor&&e.constructor.ngDirectiveDef}(e)){if(-1==(i=function(e,t){var n=e[ue].firstChild;for(;n;){for(var r=n.directiveStart,i=n.directiveEnd,o=r;o<i;o++)if(e[o]===t)return n.index;n=dn(n)}return-1}(r,e)))throw new Error("The provided directive was not found in the application");s=mn(i,r,!1)}else if(-1==(i=fn(r,e)))return null;var a=$e(d=Ve(r[i])),u=a&&!Array.isArray(a)?a:ln(r,i,d);if(o&&void 0===u.component&&(u.component=o,hn(u.component,u)),s&&void 0===u.directives){u.directives=s;for(var c=0;c<s.length;c++)hn(s[c],u)}hn(u.native,u),n=u}}else for(var l=e,p=l;p=p.parentNode;){var h=$e(p);if(h){r=void 0;if(!(r=Array.isArray(h)?h:h.lView))return null;var f=fn(r,l);if(f>=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<n.length;r++){var i=n[r];if(He(i,e)[ye]===t)return i}else if(He(xe,e)[ye]===t)return xe;return-1}function mn(e,t,n){var r=t[ue].data[e],i=r.directiveStart;if(0==i)return oe;var o=r.directiveEnd;return!n&&1&r.flags&&i++,t.slice(i,o)}function yn(e){var t,n,r,i,o=En(e);return void 0===o.component&&(o.component=(t=o.nodeIndex,n=o.lView,r=n[ue].data[t],i=r.directiveStart,1&r.flags?n[i]:null)),o.component}function gn(e){return En(e).lView[ye]}function bn(e){var t=_n(e),n=t.lView[ue].data[t.nodeIndex];return new un(n,t.lView)}function _n(e,t){void 0===t&&(t=!0);var n=cn(e);if(!n&&t)throw new Error("Invalid ng target");return n}function wn(e){var t=_n(e);return void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[ue].data[t];if(n&&n.localNames){for(var r={},i=0;i<n.localNames.length;i+=2){var o=n.localNames[i],s=n.localNames[i+1];r[o]=-1===s?Be(n,e):e[s]}return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{}}function En(e){if(!(e instanceof Node))throw new Error("Expecting instance of DOM Node");return _n(e)}function Cn(e){return"boolean"==typeof e.useCapture}function On(e){var t=En(e).lView,n=t[ue],r=t[me],i=n.cleanup,o=[];if(i&&r)for(var s=0;s<i.length;){var a=i[s++],u=i[s++];if("string"==typeof a){var c=a,l=Ve(t[u]),p=r[i[s++]],h=i[s++],f="boolean"==typeof h?h:!(h>=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<t.name?-1:1}function Sn(e){var t;return t=e.replace(/[$@]/g,"_"),"ng-reflect-"+(e=t.replace(jn,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()}))}var jn=/([A-Z])/g;function An(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Tn(e,t){var n=Nn(e),r=Nn(t);return n&&r?function(e,t,n){var r=e[Y()](),i=t[Y()]();for(;;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(e,t,Tn):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||J(e,t)}var Dn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Pn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Nn(e){return!!Mn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Y()in e)}function Mn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var kn={};var In,Fn="ngProjectAs";function Rn(e){return!!e.listen}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(In||(In={}));var Ln={createRenderer:function(e,t){return document}};function Vn(e,t){if(-1===e.index){var n=t[Ce];return n>-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<o.length?(e[pe]=o[r],o.splice(r,0,e)):(o.push(e),e[pe]=null),i>-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<t.length-1;r+=2)if("string"==typeof t[r]){var i=t[r+1],o=n[t[r+2]],s=Ve(e[i]),a=t[r+3];"boolean"==typeof a?s.removeEventListener(t[r],o,a):a>=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<this._players.length;e++){var t=this._players[e];t.parent||0!==t.state||t.play()}this._players.length=0},e.prototype.queuePlayer=function(e){this._players.push(e)}})();var Qn="@";function $n(e,t,n,r){return[0,[null,-1,!1,t||null],n||[null],r||[null],[0,0],e||null,null,null,null]}function Zn(e,t){for(var n=e,r=t[n],i=t;Array.isArray(r);)i=r,r=r[fe];if(a=i,Array.isArray(a)&&"number"==typeof a[0]&&Array.isArray(a[2]))return i;var o,s,a,u=Ue(e-xe,t).stylingTemplate;return i!==t&&(n=fe),i[n]=u?(o=r,(s=u.slice())[5]=o,s[0]|=32,s):$n(r)}function Yn(e){return e[0]===Qn}function Xn(e,t){return 2==(2&e[t>=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<xe&&-1===t[Se])for(var n=t,r=0;r<n[je].length;r++){var i=n[je][r];sr(i,i[ue],i[ye])}}(e),function(e){if(null!=e.contentQueries)for(var t=0;t<e.contentQueries.length;t+=2){var n=e.contentQueries[t],r=e.data[n];r.contentQueriesRefresh(n-xe,e.contentQueries[t+1])}}(t),Ct(e,t.contentHooks,t.contentCheckHooks,n),function(e,t){if(e.expandoInstructions){var n=t[ve]=e.expandoStartIndex;Ht(n);for(var r=-1,i=-1,o=0;o<e.expandoInstructions.length;o++){var s=e.expandoInstructions[o];if("number"==typeof s){if(s<=0){i=-s;var a=e.expandoInstructions[++o];r=n+=ke+a}else n+=s;Ht(n)}else null!==s&&(t[ve]=n,s(2,Ve(t[r]),i)),r++}}}(t,e)}!function(e){if(null!=e)for(var t=0;t<e.length;t++)Er(e[t])}(t.components)}function rr(e,t,n,r,i,o,s,a){var u=t.blueprint.slice();return u[ce]=51|r,u[le]=u[Oe]=e,u[ye]=n,u[be]=i||e&&e[be],u[_e]=o||e&&e[_e],u[we]=s||e&&e[we]||null,u[ge]=a||e&&e[ge]||null,u}function ir(e,t,n,r,i){var o=Tt(),s=o[ue],a=e+xe;o[a]=n;var u=s.data[a];null==u&&(u=s.data[a]=mr(o,t,a,r,i,null));var c=Dt(),l=Mt();return c&&(!l||null!=c.child||null===u.parent&&2!==c.type?l||(c.next=u):c.child=u),null==s.firstChild&&(s.firstChild=u),Pt(u),kt(!0),u}function or(e,t){return null==t[ue].node&&(t[ue].node=mr(t,2,e,null,null,null)),t[de]=t[ue].node}function sr(e,t,n){var r,i=Mt(),o=Dt();if(kt(!0),Pt(null),128&e[ce])Sr(Qe(e));else try{kt(!0),Pt(null),r=qt(e,e[de]),lr(),t.template(ur(e),n),e[ue].firstTemplatePass=!1,Ut(!1),nr(e)}finally{zt(r),kt(i),Pt(o)}}function ar(e,t,n){var r=e[be],i=qt(e,e[de]),o=!Rt();try{o&&r.begin&&r.begin(),It(e)&&(n&&(lr(),n(1,t)),nr(e),e[ce]&=-2),n&&n(2,t),nr(e)}finally{o&&r.end&&r.end(),zt(i)}}function ur(e){return It(e)?1:2}var cr=null;function lr(){cr=null}function pr(e,t){var n=t||Tt()[_e];return Rn(n)?n.createElement(e,cr):null===cr?n.createElement(e):n.createElementNS(cr,e)}function hr(e,t,n,r,i,o){return e.ngPrivateData||(e.ngPrivateData=fr(-1,e,t,n,r,i,o))}function fr(e,t,n,r,i,o,s){var a=xe+n,u=a+r,c=function(e,t){var n=new Array(t).fill(null,0,e).fill(kn,e);return n[Ce]=-1,n[ve]=e,n}(a,u);return c[ue]={id:e,blueprint:c,template:t,viewQuery:s,node:null,data:c.slice(),childIndex:-1,bindingStartIndex:a,expandoStartIndex:u,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null}}function dr(e,t){for(var n=Tt()[_e],r=Rn(n),i=0;i<t.length;){var o=t[i++];if("number"==typeof o){if(0!==o)break;var s=t[i++],a=t[i++],u=t[i++];r?n.setAttribute(e,a,u,s):e.setAttributeNS(s,a,u)}else{u=t[i++];o!==Fn&&(Yn(o)?r&&n.setProperty(e,o,u):r?n.setAttribute(e,o,u):e.setAttribute(o,u))}}}function vr(e,t){var n=e.createRenderer(null,null),r="string"==typeof t?Rn(n)?n.selectRootElement(t):n.querySelector(t):t;return r}function mr(e,t,n,r,i,o){var s=Dt(),a=Mt()?s:s&&s.parent,u=a&&e&&a!==e[de]?a:null;return{type:t,index:n,injectorIndex:u?u.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,flags:0,providerIndexes:0,tagName:r,attrs:i,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:u,detached:null,stylingTemplate:null,projection:null}}function yr(e,t,n){var r=-(t.index-xe),i=65535&t.providerIndexes,o=e.data.length-i;(e.expandoInstructions||(e.expandoInstructions=[])).push(r,o,n)}function gr(e,t,n,r){var i=Be(t,e);hn(n,e),i&&hn(i,e),null!=r.attributes&&3==t.type&&dr(i,r.attributes)}function br(e){var t=Tt()[ue];(t.components||(t.components=[])).push(e.index)}function _r(e,t,n){var r=e.flags;e.flags=1&r,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function wr(e,t,n,r){e.data.push(n);var i=new Fe(r,We(n),null);e.blueprint.push(i),t.push(i)}function Er(e){var t=Tt(),n=He(e,t);16==(16&n[ce])&&12&n[ce]&&(!function(e){for(var t=e[ue],n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),Dr(n,n[ye]))}function Cr(e,t,n){var r=e[ue],i=Bt();return e[Ee]?e[Ee][pe]=n:i&&(r.childIndex=t),e[Ee]=n,n}function Or(e){for(;e&&!(128&e[ce]);)e[ce]|=8,e=e[le];e[ce]|=8,xr(e[ye],1)}function xr(e,t){var n,r=0===e.flags;(e.flags|=t,r&&e.clean==tr)&&(e.clean=new Promise(function(e){return n=e}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,Sr(e)),2&e.flags){e.flags&=-3;var t=e.playerHandler;t&&t.flushPlayers()}e.clean=tr,n(null)}))}function Sr(e){for(var t=0;t<e.components.length;t++){var n=e.components[t];ar(Ze(n),n)}}function jr(e,t){var n=e[be];n.begin&&n.begin(),It(e)&&Dr(e,t),Dr(e,t),n.end&&n.end()}function Ar(e){Sr(e[ye])}function Tr(e){Lt(!0);try{!function(e){jr(pn(e),e)}(e)}finally{Lt(!1)}}function Dr(e,t){var n=e[ue],r=qt(e,e[de]),i=n.template,o=n.viewQuery;try{lr(),function(e,t,n){e&&It(t)&&e(1,n)}(o,e,t),i(ur(e),t),nr(e),function(e,t,n){e&&!It(t)&&e(2,n)}(o,e,t)}finally{zt(r)}}var Pr=tr;function Nr(e){return e[me]||(e[me]=[])}function Mr(e){return e[ue].cleanup||(e[ue].cleanup=[])}function kr(e,t,n,r,i,o){St=!1,xt=null,0,!0;var s=n[ue],a=rr(n,hr(t.template,t.consts,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery),null,t.onPush?8:4,r,i,o),u=ir(0,3,e,null,null);return s.firstTemplatePass&&(Jt($t(u,n),n,t.type),u.flags=1,_r(u,n.length,1),br(u)),a[fe]=n[xe],a[de]=u,n[xe]=a}function Ir(e,t,n,r,i){var o=n[ue],s=function(e,t,n){var r=Dt();e.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),yr(e,r,1),wr(e,t,n,n.factory));var i=on(e.data,t,t.length-1,r);return gr(t,r,i,n),i}(o,n,t);if(r.components.push(s),e[ye]=s,i&&i.forEach(function(e){return e(s,t)}),o.firstTemplatePass&&t.hostBindings){var a=Dt();At(t),t.hostBindings(1,s,a.index-xe),At(null)}return s}function Fr(e,t){return{components:[],scheduler:e||nt,clean:Pr,playerHandler:t||null,flags:0}}function Rr(e,t){var n=Ze(e)[ue],r=n.data.length-1;yt(r,t.onInit,t.doCheck,n),gt(n,{directiveStart:r,directiveEnd:r+1})}var Lr="__ngOnChanges_";function Vr(e){var t=e.declaredInputs,n=e.inputs,r=e.type.prototype,i=function(e){if(t.hasOwnProperty(e)){for(var i=n[e],o=t[e],s=Lr+i,a=void 0,u=r;!a&&u&&Object.getPrototypeOf(u)!==Object.getPrototypeOf(Object.prototype);)a=Object.getOwnPropertyDescriptor(u,i),u=Object.getPrototypeOf(u);var c=a&&a.get,l=a&&a.set;Object.defineProperty(r,i,{get:c||(l?void 0:function(){return this[s]}),set:function(e){var t=this[Lr];t||(t={},Object.defineProperty(this,Lr,{value:t,writable:!0}));var n=!this.hasOwnProperty(s),r=t[o];r?r.currentValue=e:t[o]=new Pn(this[s],e,n),n?Object.defineProperty(this,s,{value:e,writable:!0}):this[s]=e,l&&l.call(this,e)},configurable:!1})}};for(var o in t)i(o);null!=e.onInit&&(e.onInit=Br(e.onInit)),e.doCheck=Br(e.doCheck)}function Br(e){return function(){var t=this[Lr];null!=t&&(this.ngOnChanges(t),this[Lr]=null),e&&e.apply(this)}}function Ur(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}Vr.ngInherit=!0;var Hr="__source",qr=new Object,zr=qr,Wr=new N("INJECTOR"),Gr=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=qr),t===qr)throw new Error("NullInjectorError: No provider for "+ee(e)+"!");return t},e}(),Kr=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new ii(e,t):new ii(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=qr,e.NULL=new Gr,e.ngInjectableDef=A({providedIn:"any",factory:function(){return dt(Wr)}}),e.__NG_ELEMENT_ID__=function(){return Qr()},e}(),Qr=Ur,$r=function(e){return e},Zr=[],Yr=$r,Xr=function(){return Array.prototype.slice.call(arguments)},Jr=_({provide:String,useValue:_}),ei="ngTempTokenPath",ti=Kr.NULL,ni=/\n/gm,ri="\u0275",ii=function(){function e(e,t,n){void 0===t&&(t=ti),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(Kr,{token:Kr,fn:$r,deps:Zr,value:this,useNew:!1}),r.set(Wr,{token:Wr,fn:$r,deps:Zr,value:this,useNew:!1}),function e(t,n){if(n)if((n=re(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw ui("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw ui("Unexpected provider",n);var i=re(n.provide),o=function(e){var t=function(e){var t=Zr,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var i=6,o=re(n[r]);if(o instanceof Array)for(var s=0,a=o;s<a.length;s++){var u=a[s];u instanceof st||u==st?i|=1:u instanceof ut||u==ut?i&=-3:u instanceof at||u==at?i&=-5:o=u instanceof ot?u.token:re(u)}t.push({token:o,options:i})}}else if(e.useExisting){var o=re(e.useExisting);t=[{token:o,options:6}]}else if(!(n||Jr in e))throw ui("'deps' required",e);return t}(e),n=$r,r=Zr,i=!1,o=re(e.provide);if(Jr in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=re(e.useClass);else{if("function"!=typeof o)throw ui("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=o}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var s=t.get(i);if(s){if(s.fn!==Xr)throw oi(i)}else t.set(i,s={token:n.provide,deps:[],useNew:!1,fn:Xr,value:Zr});i=n,s.deps.push({token:i,options:6})}var a=t.get(i);if(a&&a.fn==Xr)throw oi(i);t.set(i,o)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=it.Default);var r=this._records.get(e);try{return si(e,r,this._records,this.parent,t,n)}catch(o){var i=o[ei];throw e[Hr]&&i.unshift(e[Hr]),o.message=ai("\n"+o.message,i,this.source),o.ngTokenPath=i,o[ei]=null,o}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(ee(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function oi(e){return ui("Cannot mix multi providers and regular providers",e)}function si(e,t,n,i,o,s){try{return function(e,t,n,i,o,s){var a,u;if(!t||s&it.SkipSelf)s&it.Self||(u=i.get(e,o,it.Default));else{if((u=t.value)==Yr)throw Error(ri+"Circular dependency");if(u===Zr){t.value=Yr;var c=void 0,l=t.useNew,p=t.fn,h=t.deps,f=Zr;if(h.length){f=[];for(var d=0;d<h.length;d++){var v=h[d],m=v.options,y=2&m?n.get(v.token):void 0;f.push(si(v.token,y,n,y||4&m?i:ti,1&m?null:Kr.THROW_IF_NOT_FOUND,it.Default))}}t.value=u=l?new((a=p).bind.apply(a,Object(r.g)([void 0],f))):p.apply(c,f)}}return u}(e,t,n,i,o,s)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[ei]=a[ei]||[]).unshift(e),t&&t.value==Yr&&(t.value=Zr),a}}function ai(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==ri?e.substr(2):e;var r=ee(t);if(t instanceof Array)r=t.map(ee).join(" -> ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):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<e.length;r++){var i=e[r];this._factories.set(i.componentType,i)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Oi(e);return new Pi(t,this._ngModule)},e}(),Pi=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return Object(r.c)(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(Ci),Ni=function(){return function(){}}(),Mi=function(){return function(){}}(),ki=function(){function e(e,t,n){this._context=t,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._lView=e}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){if(null==this._lView[fe]){var e=this._lView[de];return function e(t,n,r){var i=n.child;for(;i;)r.push(Be(i,t)),4===i.type&&e(t,i,r),i=i.next;return r}(this._lView,e,[])}return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 64==(64&this._lView[ce])},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}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;_<t.length;_++){for(var w=t[_],E=null,C=null,O=0;O<w.length;O++){g.firstTemplatePass&&(g.expandoStartIndex++,g.blueprint.splice(++y+xe,0,null),g.data.splice(y+xe,0,null),d.splice(y+xe,0,null));var x=ir(y,3,w[O],null,null);C?C.next=x:E=x,C=x}b.push(E)}h=Ir(m,this.componentDef,d,l,[Rr]),Cr(d,xe,m),nr(d)}finally{zt(v),s.end&&s.end()}var S=new to(this.componentType,h,Fi(Vi,f,d),d,f);return i&&(S.hostView._tViewNode.child=f),S},t}(Ci),to=(new $i,function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s.location=r,s._rootLView=i,s._tNode=o,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new Ii(i),s.hostView._tViewNode=or(-1,i),s.componentType=t,s}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"injector",{get:function(){return new un(this._tNode,this._rootLView)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null,this.hostView.destroy()},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(Ei)),no=!0,ro=!1;function io(){return ro=!0,no}function oo(){if(ro)throw new Error("Cannot enable prod mode after platform setup.");no=!1}var so=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement=this.getInertBodyElement_DOMParser:this.getInertBodyElement=this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},e}();var ao=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,uo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function co(e){return(e=String(e)).match(ao)||e.match(uo)?e:(io()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function lo(e){return(e=String(e)).split(",").map(function(e){return co(e.trim())}).join(", ")}function po(e){var t,n,i={};try{for(var o=Object(r.h)(e.split(",")),s=o.next();!s.done;s=o.next()){i[s.value]=!0}}catch(a){t={error:a}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}function ho(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o={};try{for(var s=Object(r.h)(n),a=s.next();!a.done;a=s.next()){var u=a.value;for(var c in u)u.hasOwnProperty(c)&&(o[c]=!0)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return o}var fo,vo=po("area,br,col,hr,img,wbr"),mo=po("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yo=po("rp,rt"),go=ho(yo,mo),bo=ho(mo,po("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),_o=ho(yo,po("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wo=ho(vo,bo,_o,go),Eo=po("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Co=po("srcset"),Oo=po("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xo=ho(Eo,Co,Oo),So=po("script,style,template"),jo=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t=e.nodeName.toLowerCase();if(!wo.hasOwnProperty(t))return this.sanitizedSomething=!0,!So.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n=e.attributes,r=0;r<n.length;r++){var i=n.item(r),o=i.name,s=o.toLowerCase();if(xo.hasOwnProperty(s)){var a=i.value;Eo[s]&&(a=co(a)),Co[s]&&(a=lo(a)),this.buf.push(" ",o,'="',Do(a),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();wo.hasOwnProperty(t)&&!vo.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(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,"<").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<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function zo(e,t,n){var r=e[j];if("function"==typeof r)return r();var i=rn(t,n,e,!1,!1);return null!==i?on(n[ue].data,n,i,t):null}function Wo(e,t,n,r){var i=e[j]();return r?i?zo(r,t,n):null:i}function Go(e,t,n,r){return n?zo(n,e,t):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;a<s.length;a++){var u;if(null!==(u=qo(t,s[a])))null!==(o=Go(t,n,r.read,u))&&Qo(e,o)}e=e.next}}function Qo(e,t){e.values.push(t),e.list.setDirty()}function $o(e,t){var n=Array.isArray(e);return{type:n?null:e,selector:n?e:null,read:t}}function Zo(e,t,n,r){return{next:e,list:t,predicate:$o(n,r),values:t._valuesTree,containerValues:null}}!function(){function e(){this.dirty=!0,this.changes=new Fo,this._values=[],this._valuesTree=[]}Object.defineProperty(e.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){var e=this._values;return e.length?e[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){var e=this._values;return e.length?e[e.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._values.map(e)},e.prototype.filter=function(e){return this._values.filter(e)},e.prototype.find=function(e){return this._values.find(e)},e.prototype.reduce=function(e,t){return this._values.reduce(e,t)},e.prototype.forEach=function(e){this._values.forEach(e)},e.prototype.some=function(e){return this._values.some(e)},e.prototype.toArray=function(){return this._values.slice(0)},e.prototype[Y()]=function(){return this._values[Y()]()},e.prototype.toString=function(){return this._values.toString()},e.prototype.reset=function(e){this._values=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];Array.isArray(r)?r.length>0?(e=r.concat(e.slice(n+1)),n=0):n++:(t.push(r),n++)}return t}(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()}}();var 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;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(io()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}var es=function(){return function(){}}(),ts=new Map;function ns(e,t){var n=ts.get(e);rs(e,n&&n.moduleType),ts.set(e,t)}function rs(e,t){if(t)throw new Error("Duplicate module registered for "+e+" - "+ee(t)+" vs "+ee(t.name))}var is=Function;function os(e){return"function"==typeof e}var ss=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,as=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,us=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,cs=function(){function e(e){this._reflect=e||Q.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,Object(r.g)([void 0],t)))}},e.prototype._zipTypesAndAnnotations=function(e,t){var n;n=void 0===e?new Array(t.length):new Array(e.length);for(var r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n},e.prototype._ownParameters=function(e,t){var n=e.toString();if(ss.exec(n)||as.exec(n)&&!us.exec(n))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var r=e.ctorParameters;if(r&&r!==t.ctorParameters){var i="function"==typeof r?r():r,o=i.map(function(e){return e&&e.type}),s=i.map(function(e){return e&&ls(e.decorators)});return this._zipTypesAndAnnotations(o,s)}var a=e.hasOwnProperty(k)&&e[k],u=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return u||a?this._zipTypesAndAnnotations(u,a):new Array(e.length).fill(void 0)},e.prototype.parameters=function(e){if(!os(e))return[];var t=ps(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]},e.prototype._ownAnnotations=function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?ls(e.decorators):e.hasOwnProperty(M)?e[M]:null},e.prototype.annotations=function(e){if(!os(e))return[];var t=ps(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)},e.prototype._ownPropMetadata=function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var r=e.propDecorators,i={};return Object.keys(r).forEach(function(e){i[e]=ls(r[e])}),i}return e.hasOwnProperty(I)?e[I]:null},e.prototype.propMetadata=function(e){if(!os(e))return{};var t=ps(e),n={};if(t!==Object){var i=this.propMetadata(t);Object.keys(i).forEach(function(e){n[e]=i[e]})}var o=this._ownPropMetadata(e,t);return o&&Object.keys(o).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,Object(r.g)(n[e])),t.push.apply(t,Object(r.g)(o[e])),n[e]=t}),n},e.prototype.hasLifecycleHook=function(e,t){return e instanceof is&&t in e.prototype},e.prototype.guards=function(e){return{}},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){return new Function("o","args","if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n return o."+e+".apply(o, args);")},e.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+ee(e)},e.prototype.resourceUri=function(e){return"./"+ee(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return r},e.prototype.resolveEnum=function(e,t){return e[t]},e}();function ls(e){return e?e.map(function(e){var t=e.type.annotationCls,n=e.args?e.args:[];return new(t.bind.apply(t,Object(r.g)([void 0],n)))}):[]}function ps(e){var t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}new Map,new Map;var hs=F("Directive",function(e){return void 0===e&&(e={}),e},void 0,void 0,function(e,t){return ws(e,t)}),fs=F("Component",function(e){return void 0===e&&(e={}),Object(r.a)({changeDetection:B.Default},e)},hs,void 0,function(e,t){return _s(e,t)}),ds=F("Pipe",function(e){return Object(r.a)({pure:!0},e)},void 0,void 0,function(e,t){return Es(e,t)}),vs=function(e){return function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=t.constructor;o.hasOwnProperty(S)||function(e){var t=e.constructor,n=t.ngBaseDef,r=t.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(w(r.inputs,n.inputs),w(r.outputs,n.outputs),w(r.declaredInputs,n.declaredInputs))}(t);var s=o.ngBaseDef;e(s)[n]=r[0]}},ms=V("Input",function(e){return{bindingPropertyName:e}},void 0,vs(function(e){return e.inputs||{}})),ys=V("Output",function(e){return{bindingPropertyName:e}},void 0,vs(function(e){return e.outputs||{}})),gs=V("HostBinding",function(e){return{hostPropertyName:e}}),bs=V("HostListener",function(e,t){return{eventName:e,args:t}}),_s=Ur,ws=Ur,Es=Ur,Cs=_({provide:String,useValue:_}),Os=[];function xs(e,t){if(!t){var n=(c=new cs).parameters(e);return function(){return new(e.bind.apply(e,Object(r.g)([void 0],mt(n))))}}if(Cs in t){var i=t;return function(){return i.useValue}}if(t.useExisting){var o=t;return function(){return dt(o.useExisting)}}if(t.useFactory){var s=t;return function(){return s.useFactory.apply(s,Object(r.g)(mt(s.deps||Os)))}}if(t.useClass){var a=t,u=t.deps;if(!u){var c=new cs;u=c.parameters(e)}return function(){var e;return new((e=a.useClass).bind.apply(e,Object(r.g)([void 0],mt(u))))}}var l=t.deps;if(!l){c=new cs;l=c.parameters(e)}return function(){return new(e.bind.apply(e,Object(r.g)([void 0],mt(l))))}}var Ss=F("NgModule",function(e){return e},void 0,void 0,function(e,t){return js(e,t)});var js=function(e,t){var n=t&&t.imports||[];t&&t.exports&&(n=Object(r.g)(n,[t.exports])),e.ngInjectorDef=T({factory:xs(e,{useClass:e}),providers:t&&t.providers,imports:n})};_({provide:String,useValue:_});var As=F("Injectable",void 0,void 0,void 0,function(e,t){return Ts(e,t)});var Ts=function(e,t){t&&void 0!==t.providedIn&&!D(e)&&(e.ngInjectableDef=A({providedIn:t.providedIn,factory:xs(e,t)}))},Ds="ngDebugContext",Ps="ngOriginalError",Ns="ngErrorLogger";function Ms(e){return e[Ds]}function ks(e){return e[Ps]}function Is(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,Object(r.g)(t))}var Fs=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ns]||Is}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Ms(e)?Ms(e):this._findContext(ks(e)):null},e.prototype._findOriginalError=function(e){for(var t=ks(e);t&&ks(t);)t=ks(t);return t},e}();function Rs(e){return e.length>1?" ("+function(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return 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<i;r++){var o=t[r];o&&0!=o.length?n.push(o.map(ee).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+ee(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+ee(e)+"' is decorated with Injectable.")}var Us=function(){function e(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=ee(this.token)}return e.get=function(e){return Hs.get(re(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return Hs.numberOfKeys},enumerable:!0,configurable:!0}),e}(),Hs=new(function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof Us)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new Us(e,Us.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}()),qs=new(function(){function e(e){this.reflectionCapabilities=e}return e.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},e.prototype.factory=function(e){return this.reflectionCapabilities.factory(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.getter=function(e){return this.reflectionCapabilities.getter(e)},e.prototype.setter=function(e){return this.reflectionCapabilities.setter(e)},e.prototype.method=function(e){return this.reflectionCapabilities.method(e)},e.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},e.prototype.resourceUri=function(e){return this.reflectionCapabilities.resourceUri(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)},e.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},e}())(new cs),zs=function(){function e(e,t,n){this.key=e,this.optional=t,this.visibility=n}return e.fromKey=function(t){return new e(t,!1,null)},e}(),Ws=[],Gs=function(){return function(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}(),Ks=function(){return function(e,t){this.factory=e,this.dependencies=t}}();function Qs(e){var t,n;if(e.useClass){var r=re(e.useClass);t=qs.factory(r),n=Ys(r)}else e.useExisting?(t=function(e){return e},n=[zs.fromKey(Us.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return Xs(e,t,n)})}return Ys(e)}(e.useFactory,e.deps)):(t=function(){return e.useValue},n=Ws);return new Ks(t,n)}function $s(e){return new Gs(Us.get(e.provide),[Qs(e)],e.multi||!1)}function Zs(e){var t=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else t.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new Gs(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,s)}}return t}(function e(t,n){t.forEach(function(t){if(t instanceof is)n.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)n.push(t);else{if(!(t instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t);e(t,n)}});return n}(e,[]).map($s),new Map);return Array.from(t.values())}function Ys(e){var t=qs.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw Bs(e,t);return t.map(function(n){return Xs(e,n,t)})}function Xs(e,t,n){var r=null,i=!1;if(!Array.isArray(t))return Js(t instanceof ot?t.token:t,i,null);for(var o=null,s=0;s<t.length;++s){var a=t[s];a instanceof is?r=a:a instanceof ot?r=a.token:a instanceof st?i=!0:a instanceof at||a instanceof ut?o=a:a instanceof N&&(r=a)}if(null!=(r=re(r)))return Js(r,i,o);throw Bs(e,n)}function Js(e,t,n){return new zs(Us.get(e),t,n)}var ea=new Object,ta=function(){function e(){}return e.resolve=function(e){return Zs(e)},e.resolveAndCreate=function(t,n){var r=e.resolve(t);return e.fromResolvedProviders(r,n)},e.fromResolvedProviders=function(e,t){return new na(e,t)},e}(),na=function(){function e(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;var n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=ea}return e.prototype.get=function(e,t){return void 0===t&&(t=zr),this._getByKey(Us.get(e),null,t)},e.prototype.resolveAndCreateChild=function(e){var t=ta.resolve(e);return this.createChildFromResolved(t)},e.prototype.createChildFromResolved=function(t){var n=new e(t);return n.parent=this,n},e.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(ta.resolve([e])[0])},e.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},e.prototype.getProviderAtIndex=function(e){if(e<0||e>=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw t=this,n=e.key,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;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])},e.prototype._instantiate=function(e,t){var n,i,o,s,a,u=this,c=t.factory;try{n=t.dependencies.map(function(e){return u._getByReflectiveDependency(e)})}catch(l){throw l.addKey&&l.addKey(this,e.key),l}try{i=c.apply(void 0,Object(r.g)(n))}catch(l){throw o=this,s=l,l.stack,a=e.key,Ls(o,a,function(e){var t=ee(e[0].token);return s.message+": Error during instantiation of "+t+"!"+Rs(e)+"."},s)}return i},e.prototype._getByReflectiveDependency=function(e){return this._getByKey(e.key,e.visibility,e.optional?null:zr)},e.prototype._getByKey=function(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof at?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)},e.prototype._getObjByKeyId=function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===ea&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return ea},e.prototype._throwOrNull=function(e,t){if(t!==zr)return t;throw function(e,t){return Ls(e,t,function(e){return"No provider for "+ee(e[0].token)+"!"+Rs(e)})}(this,e)},e.prototype._getByKeySelf=function(e,t){var n=this._getObjByKeyId(e.id);return n!==ea?n:this._throwOrNull(e,t)},e.prototype._getByKeyDefault=function(t,n,r){var i;for(i=r instanceof ut?this.parent:this;i instanceof e;){var o=i,s=o._getObjByKeyId(t.id);if(s!==ea)return s;i=o.parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)},Object.defineProperty(e.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(e,t){for(var n=new Array(e._providers.length),r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.displayName},e.INJECTOR_KEY=Us.get(Kr),e}();function ra(e){return!!e&&"function"==typeof e.then}function ia(e){return!!e&&"function"==typeof e.subscribe}var oa=new N("Application Initializer"),sa=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();ra(i)&&t.push(i)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e=Object(r.b)([As(),Object(r.e)(0,ot(oa)),Object(r.e)(0,st()),Object(r.d)("design:paramtypes",[Array])],e)}(),aa=new N("AppId");var ua={provide:aa,useFactory:function(){return""+ca()+ca()+ca()},deps:[]};function ca(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var la=new N("Platform Initializer"),pa=new N("Platform ID"),ha=new N("appBootstrapListener"),fa=new N("Application Packages Root URL"),da=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e=Object(r.b)([As()],e)}();function va(){throw new Error("Runtime compiler is not loaded")}var ma,ya,ga=va,ba=va,_a=va,wa=va,Ea=function(){function e(){this.compileModuleSync=ga,this.compileModuleAsync=ba,this.compileModuleAndAllComponentsSync=_a,this.compileModuleAndAllComponentsAsync=wa}return e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e=Object(r.b)([As()],e)}(),Ca=new N("compilerOptions"),Oa=function(){return function(){}}();var xa,Sa=!(!(xa=Q.wtf)||!(ma=xa.trace)||(ya=ma.events,0));function ja(e,t){return null}var Aa=Sa?function(e,t){return void 0===t&&(t=null),ya.createScope(e,t)}:function(e,t){return ja},Ta=Sa?function(e,t){return ma.leaveScope(e,t),t}:function(e,t){return t},Da=function(){function e(e){var t=e.enableLongStackTrace,n=void 0!==t&&t;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fo(!1),this.onMicrotaskEmpty=new Fo(!1),this.onStable=new Fo(!1),this.onError=new Fo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var r;this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(r=this)._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,o,s){try{return ka(r),e.invokeTask(n,i,o,s)}finally{Ia(r)}},onInvoke:function(e,t,n,i,o,s,a){try{return ka(r),e.invoke(n,i,o,s,a)}finally{Ia(r)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(r.hasPendingMicrotasks=i.microTask,Ma(r)):"macroTask"==i.change&&(r.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),r.runOutsideAngular(function(){return r.onError.emit(i)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Na,Pa,Pa);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Pa(){}var Na={};function Ma(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function ka(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ia(e){e._nesting--,Ma(e)}var Fa=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fo,this.onMicrotaskEmpty=new Fo,this.onStable=new Fo,this.onError=new Fo}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),Ra=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(function(){t.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Da.assertNotInAngularZone(),X(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())X(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]},e.prototype.addCallback=function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e=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;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return Object(a.a)(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof 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<arguments.length;t++)e[t]=arguments[t]},su=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(r.c)(t,e)}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(iu)),function(){return function(e,t){this.name=e,this.callback=t}}()),au=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof uu&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),uu=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(r.c)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.g)([o+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof uu&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof uu&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof uu&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(au);var cu=function(){function e(e){this.nativeNode=e}return Object.defineProperty(e.prototype,"parent",{get:function(){var e=this.nativeNode.parentNode;return e?new lu(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return bn(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){var e=this.nativeNode;return e&&yn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return gn(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listeners",{get:function(){return On(this.nativeNode).filter(Cn)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return wn(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return function(e){var t=_n(e,!1);if(!t)return[];for(var n,r=t.lView[ue],i=r.data[t.nodeIndex],o=[],s=65535&i.providerIndexes,a=i.directiveEnd,u=s;u<a;u++){var c=r.data[u];void 0!==(n=c).type&&void 0!==n.template&&void 0!==n.declaredInputs&&(c=c.type),o.push(c)}return o}(this.nativeNode)},enumerable:!0,configurable:!0}),e}(),lu=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.nativeElement.nodeName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){var e=_n(this.nativeNode);e.lView[ue].data[e.nodeIndex];return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e={},t=this.nativeElement;if(t)for(var n=t.attributes,r=0;r<n.length;r++){var i=n[r];e[i.name]=i.value}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){var e={},t=this.nativeElement;if(t){var n=En(t),r=n.lView[n.nodeIndex];if(Zn(n.nodeIndex,n.lView)){for(var i=9;i<r.length;i+=4)if(Xn(r,i)){var o=er(r,i),s=Jn(r,i);"boolean"==typeof s&&(e[o]=s)}}else{var a=t.classList;for(i=0;i<a.length;i++)e[a[i]]=!0}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){var e={},t=this.nativeElement;if(t){var n=En(t),r=n.lView[n.nodeIndex];if(Zn(n.nodeIndex,n.lView)){for(var i=9;i<r.length;i+=4)if(!Xn(r,i)){var o=er(r,i),s=Jn(r,i);null!==s&&(e[o]=s)}}else{var a=t.style;for(i=0;i<a.length;i++){var u=a.item(i);e[u]=a.getPropertyValue(u)}}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){for(var e=this.nativeNode.childNodes,t=[],n=0;n<e.length;n++){var r=e[n];t.push(fu(r))}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=this.nativeElement;if(!e)return[];for(var t=e.children,n=[],r=0;r<t.length;r++){var i=t[r];n.push(fu(i))}return n},enumerable:!0,configurable:!0}),t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return pu(this,e,t,!0),t},t.prototype.queryAllNodes=function(e){var t=[];return pu(this,e,t,!1),t},t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name===e&&n.callback(t)})},t}(cu);function pu(e,t,n,r){e instanceof lu&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof lu&&(r&&!e.nativeElement||pu(e,t,n,r))})}var hu=new Map;function fu(e){return e instanceof Node?e.nodeType==Node.ELEMENT_NODE?new lu(e):new cu(e):null}var du=function(e){return hu.get(e)||null};function vu(e){hu.set(e.nativeNode,e)}var mu=function(){function e(){}return e.prototype.supports=function(e){return Nn(e)},e.prototype.create=function(e){return new gu(e)},e}(),yu=function(e,t){return t},gu=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yu}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<Eu(n,r,i)?t:n,s=Eu(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&e(o,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!Nn(e))throw new Error("Error trying to diff '"+ee(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)r=e[a],i=this._trackByFn(a,r),null!==o&&J(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),J(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[Y()](),i=void 0;!(i=r.next()).done;)t(i.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&J(o.trackById,i)?(s&&(o=t._verifyReinsertion(o,e,i,n)),J(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(J(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(J(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new bu(t,n),i,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wu),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},e}(),bu=function(){return function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),_u=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&J(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),wu=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new _u,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function Eu(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var Cu=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Mn(e)},e.prototype.create=function(){return new Ou},e}(),Ou=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Mn(e)))throw new Error("Error trying to diff '"+ee(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new xu(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){J(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),xu=function(){return function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),Su=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ut,new st]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e.ngInjectableDef=A({providedIn:"root",factory:function(){return new e([new mu])}}),e}();var ju,Au=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ut,new st]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e.ngInjectableDef=A({providedIn:"root",factory:function(){return new e([new Cu])}}),e}(),Tu=[new Cu],Du=[new mu],Pu=new Su(Du),Nu=new Au(Tu),Mu=Wa(null,"core",[{provide:pa,useValue:"unknown"},{provide:Ka,deps:[Kr]},{provide:La,deps:[]},{provide:da,deps:[]}]),ku=new N("LocaleId"),Iu=new N("Translations"),Fu=new N("TranslationsFormat");!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(ju||(ju={}));var Ru=[{provide:$a,useClass:$a,deps:[Da,da,Kr,Fs,Ti,sa]},{provide:sa,useClass:sa,deps:[[new st,oa]]},{provide:Ea,useClass:Ea,deps:[]},ua,{provide:Su,useFactory:function(){return Pu},deps:[]},{provide:Au,useFactory:function(){return Nu},deps:[]},{provide:ku,useFactory:function(e){return e||"en-US"},deps:[[new ot(ku),new st,new ut]]}],Lu=function(){function e(e){}return e=Object(r.b)([Ss({providers:Ru}),Object(r.d)("design:paramtypes",[$a])],e)}();function Vu(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Bu(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Uu(e,t){return e.nodes[t]}function Hu(e,t){return e.nodes[t]}function qu(e,t){return e.nodes[t]}function zu(e,t){return e.nodes[t]}function Wu(e,t){return e.nodes[t]}var Gu={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Ku(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Qu(n,t),n}(i,e)}function Qu(e,t){e[Ds]=t,e[Ns]=t.logError.bind(t)}function $u(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Zu=function(){},Yu=new Map;function Xu(e){var t=Yu.get(e);return t||(t=ee(e)+"_"+Yu.size,Yu.set(e,t)),t}function Ju(e,t,n,r){if(Dn.isWrapped(r)){r=Dn.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=Dn.unwrap(e.oldValues[i]);e.oldValues[i]=new Dn(o)}return r}var ec="$$undefined",tc="$$empty";function nc(e){return{id:ec,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var rc=0;function ic(e,t,n,r){var i=e.oldValues;return!(!(2&e.state)&&J(i[t.bindingIndex+n],r))}function oc(e,t,n,r){return!!ic(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function sc(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Tn(i,r)){var o=t.bindings[n].name;throw Ku(Gu.createDebugContext(e,t.nodeIndex),o+": "+i,o+": "+r,0!=(1&e.state))}}function ac(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function uc(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function cc(e,t,n,r){try{return ac(33554432&e.def.nodes[t].flags?Hu(e,t).componentView:e),Gu.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function lc(e){return e.parent?Hu(e.parent,e.parentNodeDef.nodeIndex):null}function pc(e){return e.parent?e.parentNodeDef.parent:null}function hc(e,t){switch(201347067&t.flags){case 1:return Hu(e,t.nodeIndex).renderElement;case 2:return Uu(e,t.nodeIndex).renderText}}function fc(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function dc(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function vc(e){return 1<<e%32}function mc(e){var t={},n=0,i={};return e&&e.forEach(function(e){var o=Object(r.f)(e,2),s=o[0],a=o[1];"number"==typeof s?(t[s]=a,n|=vc(s)):i[s]=a}),{matchedQueries:t,references:i,matchedQueryIds:n}}function yc(e,t){return e.map(function(e){var n,i,o;return Array.isArray(e)?(o=(n=Object(r.f)(e,2))[0],i=n[1]):(o=0,i=e),i&&("function"==typeof i||"object"==typeof i)&&t&&Object.defineProperty(i,Hr,{value:t,configurable:!0}),{flags:o,token:i,tokenKey:Xu(i)}})}function gc(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===ie.Native?Hu(e,n.renderParent.nodeIndex).renderElement:void 0:t}var bc=new WeakMap;function _c(e){var t=bc.get(e);return t||((t=e(function(){return Zu})).factory=e,bc.set(e,t)),t}function wc(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(hc(e,e.def.lastRenderRootNode))),Ec(e,t,0,e.def.nodes.length-1,n,r,i)}function Ec(e,t,n,r,i,o,s){for(var a=n;a<=r;a++){var u=e.def.nodes[a];11&u.flags&&Oc(e,u,t,i,o,s),a+=u.childCount}}function Cc(e,t,n,r,i,o){for(var s=e;s&&!fc(s);)s=s.parent;for(var a=s.parent,u=pc(s),c=u.nodeIndex+1,l=u.nodeIndex+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===t&&Oc(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var f=e.root.projectableNodes[t];if(f)for(p=0;p<f.length;p++)xc(e,f[p],n,r,i,o)}}function Oc(e,t,n,r,i,o){if(8&t.flags)Cc(e,t.ngContent.index,n,r,i,o);else{var s=hc(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags){if(16&t.bindingFlags&&xc(e,s,n,r,i,o),32&t.bindingFlags)xc(Hu(e,t.nodeIndex).componentView,s,n,r,i,o)}else xc(e,s,n,r,i,o);if(16777216&t.flags)for(var a=Hu(e,t.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)wc(a[u],n,r,i,o);1&t.flags&&!t.element.name&&Ec(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function xc(e,t,n,r,i,o){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,i);break;case 3:s.removeChild(r,t);break;case 0:o.push(t)}}var Sc=/^:([^:]+):(.+)$/;function jc(e){if(":"===e[0]){var t=e.match(Sc);return[t[1],t[2]]}return["",e]}function Ac(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function Tc(e,t){for(var n="",r=0;r<2*e;r+=2)n=n+t[r]+Pc(t[r+1]);return n+t[2*e]}function Dc(e,t,n,r,i,o,s,a,u,c,l,p,h,f,d,v,m,y,g,b){switch(e){case 1:return t+Pc(n)+r;case 2:return t+Pc(n)+r+Pc(i)+o;case 3:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a;case 4:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a+Pc(u)+c;case 5:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a+Pc(u)+c+Pc(l)+p;case 6:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a+Pc(u)+c+Pc(l)+p+Pc(h)+f;case 7:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a+Pc(u)+c+Pc(l)+p+Pc(h)+f+Pc(d)+v;case 8:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a+Pc(u)+c+Pc(l)+p+Pc(h)+f+Pc(d)+v+Pc(m)+y;case 9:return t+Pc(n)+r+Pc(i)+o+Pc(s)+a+Pc(u)+c+Pc(l)+p+Pc(h)+f+Pc(d)+v+Pc(m)+y+Pc(g)+b;default:throw new Error("Does not support more than 9 expressions")}}function Pc(e){return null!=e?e.toString():""}var Nc=[],Mc={};function kc(e,t,n,r,i,o){e|=1;var s=mc(t),a=s.matchedQueries,u=s.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?_c(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Zu},provider:null,text:null,query:null,ngContent:null}}function Ic(e,t,n,i,o,s,a,u,c,l,p,h){var f;void 0===a&&(a=[]),l||(l=Zu);var d=mc(n),v=d.matchedQueries,m=d.references,y=d.matchedQueryIds,g=null,b=null;s&&(g=(f=Object(r.f)(jc(s),2))[0],b=f[1]),u=u||[];for(var _=new Array(u.length),w=0;w<u.length;w++){var E=Object(r.f)(u[w],3),C=E[0],O=E[1],x=E[2],S=Object(r.f)(jc(O),2),j=S[0],A=S[1],T=void 0,D=void 0;switch(15&C){case 4:D=x;break;case 1:case 8:T=x}_[w]={flags:C,ns:j,name:A,nonMinifiedName:A,securityContext:T,suffix:D}}c=c||[];var P=new Array(c.length);for(w=0;w<c.length;w++){var N=Object(r.f)(c[w],2),M=N[0],k=N[1];P[w]={type:0,target:M,eventName:k,propName:null}}var I=(a=a||[]).map(function(e){var t=Object(r.f)(e,2),n=t[0],i=t[1],o=Object(r.f)(jc(n),2);return[o[0],o[1],i]});return h=function(e){if(e&&e.id===ec){var t=null!=e.encapsulation&&e.encapsulation!==ie.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+rc++:tc}return e&&e.id===tc&&(e=null),e||null}(h),p&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:v,matchedQueryIds:y,references:m,ngContentIndex:i,childCount:o,bindings:_,bindingFlags:Ac(_),outputs:P,element:{ns:g,name:b,attrs:I,template:null,componentProvider:null,componentView:p||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:l||Zu},provider:null,text:null,query:null,ngContent:null}}function Fc(e,t,n){var i,o=n.element,s=e.root.selectorOrNode,a=e.renderer;if(e.parent||!s){i=o.name?a.createElement(o.name,o.ns):a.createComment("");var u=gc(e,t,n);u&&a.appendChild(u,i)}else{var c=!!o.componentRendererType&&o.componentRendererType.encapsulation===ie.ShadowDom;i=a.selectRootElement(s,c)}if(o.attrs)for(var l=0;l<o.attrs.length;l++){var p=Object(r.f)(o.attrs[l],3),h=p[0],f=p[1],d=p[2];a.setAttribute(i,f,d,h)}return i}function Rc(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Lc(e,n.nodeIndex,(l=o.target,p=o.eventName,l?l+":"+p:p)),a=o.target,u=e;"component"===o.target&&(a=null,u=t);var c=u.renderer.listen(a||r,o.eventName,s);e.disposables[n.outputIndex+i]=c}var l,p}function Lc(e,t,n){return function(r){return cc(e,t,n,r)}}function Vc(e,t,n,r){if(!oc(e,t,n,r))return!1;var i=t.bindings[n],o=Hu(e,t.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=e.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(e,i,s,i.ns,a,r);break;case 2:!function(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,i){var o=e.root.sanitizer.sanitize(qi.STYLE,i);if(null!=o){o=o.toString();var s=t.suffix;null!=s&&(o+=s)}else o=null;var a=e.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(e,i,s,a,r);break;case 8:!function(e,t,n,r,i){var o=t.securityContext,s=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,s,a,r)}return!0}var Bc=new Object,Uc=Xu(Kr),Hc=Xu(Wr),qc=Xu(Ni);function zc(e,t,n,r){return n=re(n),{index:-1,deps:yc(r,ee(t)),flags:e,token:t,value:n}}function Wc(e){for(var t={},n=[],r=!1,i=0;i<e.length;i++){var o=e[i];o.token===ci&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,t[Xu(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function Gc(e,t,n){void 0===n&&(n=Kr.THROW_IF_NOT_FOUND);var r,i,o=ht(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var s=t.tokenKey;switch(s){case Uc:case Hc:case qc:return e}var a=e._def.providersByKey[s],u=void 0;if(a){var c=e._providers[a.index];return void 0===c&&(c=e._providers[a.index]=Kc(e,a)),c===Bc?void 0:c}if((u=D(t.token))&&(r=e,null!=(i=u).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(r,i.providedIn)||"root"===i.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:l,token:t.token},e._providers[l]=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;s<i;s++)o[s]=Gc(e,n[s]);return new(t.bind.apply(t,Object(r.g)([void 0],o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var i=n.length;switch(i){case 0:return t();case 1:return t(Gc(e,n[0]));case 2:return t(Gc(e,n[0]),Gc(e,n[1]));case 3:return t(Gc(e,n[0]),Gc(e,n[1]),Gc(e,n[2]));default:for(var o=Array(i),s=0;s<i;s++)o[s]=Gc(e,n[s]);return t.apply(void 0,Object(r.g)(o))}}(e,t.value,t.deps);break;case 2048:n=Gc(e,t.deps[0]);break;case 256:n=t.value}return n===Bc||null==n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Bc:n}function Qc(e,t,n,r){var i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,Xc(i,n,r),function(e,t){var n=lc(t);if(!n||n===e||16&t.state)return;t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]);r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;var n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Gu.dirtyParentQueries(r),Zc(t,n>0?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;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var i=Object(r.f)(jc(t),2),o=i[0],s=i[1];null!=n?this.delegate.setAttribute(e,s,n,o):this.delegate.removeAttribute(e,s,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function vl(e,t,n,r){return new ml(e,t,n,r)}var ml=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Kc(e,i))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=Kr.THROW_IF_NOT_FOUND),void 0===n&&(n=it.Default);var r=0;return n&it.SkipSelf?r|=1:n&it.Self&&(r|=4),Gc(this,{token:e,tokenKey:Xu(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Ti)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+ee(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=e._providers[i];if(o&&o!==Bc){var s=o.ngOnDestroy;"function"!=typeof s||r.has(o)||(s.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),yl=Xu(Ui),gl=Xu(zi),bl=Xu(Vi),_l=Xu(nu),wl=Xu(Ro),El=Xu(iu),Cl=Xu(Kr),Ol=Xu(Wr);function xl(e,t,n,i,o,s,a,u){var c=[];if(a)for(var l in a){var p=Object(r.f)(a[l],2),h=p[0],f=p[1];c[h]={flags:8,name:l,nonMinifiedName:f,ns:null,securityContext:null,suffix:null}}var d=[];if(u)for(var v in u)d.push({type:1,propName:v,target:null,eventName:u[v]});return Al(e,t|=16384,n,i,o,o,s,c,d)}function Sl(e,t,n){return Al(-1,e|=16,null,0,t,t,n)}function jl(e,t,n,r,i){return Al(-1,e,t,0,n,r,i)}function Al(e,t,n,r,i,o,s,a,u){var c=mc(n),l=c.matchedQueries,p=c.references,h=c.matchedQueryIds;u||(u=[]),a||(a=[]),o=re(o);var f=yc(s,ee(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Ac(a),outputs:u,element:null,provider:{token:i,value:o,deps:f},text:null,query:null,ngContent:null}}function Tl(e,t){return Ml(e,t)}function Dl(e,t){for(var n=e;n.parent&&!fc(n);)n=n.parent;return kl(n.parent,pc(n),!0,t.provider.value,t.provider.deps)}function Pl(e,t){var n=(32768&t.flags)>0,r=kl(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i<t.outputs.length;i++){var o=t.outputs[i],s=r[o.propName];if(!ia(s))throw new Error("@Output "+o.propName+" not initialized in '"+r.constructor.name+"'.");var a=s.subscribe(Nl(e,t.parent.nodeIndex,o.eventName));e.disposables[t.outputIndex+i]=a.unsubscribe.bind(a)}return r}function Nl(e,t,n){return function(r){return cc(e,t,n,r)}}function Ml(e,t){var n=(8192&t.flags)>0,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;u<s;u++)a[u]=Rl(e,t,n,o[u]);return i.apply(void 0,Object(r.g)(a))}}(e,t.parent,n,i.value,i.deps);case 2048:return Rl(e,t.parent,n,i.deps[0]);case 256:return i.value}}function kl(e,t,n,i,o){var s=o.length;switch(s){case 0:return new i;case 1:return new i(Rl(e,t,n,o[0]));case 2:return new i(Rl(e,t,n,o[0]),Rl(e,t,n,o[1]));case 3:return new i(Rl(e,t,n,o[0]),Rl(e,t,n,o[1]),Rl(e,t,n,o[2]));default:for(var a=new Array(s),u=0;u<s;u++)a[u]=Rl(e,t,n,o[u]);return new(i.bind.apply(i,Object(r.g)([void 0],a)))}}var Il,Fl={};function Rl(e,t,n,r,i){if(void 0===i&&(i=Kr.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var s=r.tokenKey;s===El&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var a=e;a;){if(t)switch(s){case yl:return fl(Ll(a,t,n));case gl:return Ll(a,t,n).renderer;case bl:return new Vi(Hu(a,t.nodeIndex).renderElement);case _l:return Hu(a,t.nodeIndex).viewContainer;case wl:if(t.element.template)return Hu(a,t.nodeIndex).template;break;case El:return sl(Ll(a,t,n));case Cl:case Ol:return ll(a,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[s];if(u){var c=qu(a,u.nodeIndex);return c||(c={instance:Ml(a,u)},a.nodes[u.nodeIndex]=c),c.instance}}n=fc(a),t=pc(a),a=a.parent,4&r.flags&&(a=null)}var l=o.root.injector.get(r.token,Fl);return l!==Fl||i===Fl?l:o.root.ngModule.injector.get(r.token,i)}function Ll(e,t,n){var r;if(n)r=Hu(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!fc(r);)r=r.parent;return r}function Vl(e,t,n,r,i,o){if(32768&n.flags){var s=Hu(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(t.instance[a]=i,524288&n.flags){o=o||{};var u=Dn.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Pn(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function Bl(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&t&&Hl(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=Ul(e,s,t,r)),s=s.parent}}function Ul(e,t,n,r){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var o=e.def.nodes[i];o.flags&n&&Hl(e,i,o.flags&n,r++),i+=o.childCount}return r}function Hl(e,t,n,r){var i=qu(e,t);if(i){var o=i.instance;o&&(Gu.setCurrentNode(e,t),1048576&n&&Bu(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Bu(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function ql(e,t,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:vc(t),bindings:r},ngContent:null}}function zl(e){for(var t=e.def.nodeMatchedQueries;e.parent&&dc(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++){67108864&(o=e.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&t)===o.query.filterId&&Wu(e,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}}if(134217728&e.def.nodeFlags)for(i=0;i<e.def.nodes.length;i++){var o;134217728&(o=e.def.nodes[i]).flags&&536870912&o.flags&&Wu(e,i).setDirty(),i+=o.childCount}}function Wl(e,t){var n=Wu(e,t.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&t.flags){var o=t.parent.parent;i=Gl(e,o.nodeIndex,o.nodeIndex+o.childCount,t.query,[]),r=qu(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=Gl(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);for(var s=t.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function Gl(e,t,n,r,i){for(var o=t;o<=n;o++){var s=e.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Kl(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Hu(e,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Gl(e,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=lc(p);h&&h===u&&Gl(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];Gl(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Kl(e,t,n){if(null!=n)switch(n){case 1:return Hu(e,t.nodeIndex).renderElement;case 0:return new Vi(Hu(e,t.nodeIndex).renderElement);case 2:return Hu(e,t.nodeIndex).template;case 3:return Hu(e,t.nodeIndex).viewContainer;case 4:return qu(e,t.nodeIndex).instance}}function Ql(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function $l(e,t,n){var r=gc(e,t,n);r&&Cc(e,n.ngContent.index,1,r,null,void 0)}function Zl(e,t){return Jl(128,e,new Array(t+1))}function Yl(e,t){return Jl(32,e,new Array(t))}function Xl(e,t){for(var n=Object.keys(t),r=n.length,i=new Array(r),o=0;o<r;o++){var s=n[o];i[t[s]]=s}return Jl(64,e,i)}function Jl(e,t,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Ac(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function ep(e,t,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function tp(e,t,n){var r,i=e.renderer;r=i.createText(n.text.prefix);var o=gc(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function np(e,t){return(null!=e?e.toString():"")+t.suffix}function rp(e,t,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=null,p=!1,h=!1,f=null,d=0;d<t.length;d++){var v=t[d];if(v.nodeIndex=d,v.parent=c,v.bindingIndex=i,v.outputIndex=o,v.renderParent=l,s|=v.flags,u|=v.matchedQueryIds,v.element){var m=v.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,p=!1,h=!1,v.element.template&&(u|=v.element.template.nodeMatchedQueries)}if(op(c,v,t.length),i+=v.bindings.length,o+=v.outputs.length,!l&&3&v.flags&&(f=v),20224&v.flags){p||(p=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var y=0!=(8192&v.flags),g=0!=(32768&v.flags);!y||g?c.element.publicProviders[Xu(v.provider.token)]=v:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Xu(v.provider.token)]=v),g&&(c.element.componentProvider=v)}if(c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):a|=v.flags,v.childCount>0)c=v,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;o<r.nodes.length;o++){var s=r.nodes[o];Gu.setCurrentNode(e,o);var a=void 0;switch(201347067&s.flags){case 1:var u=Fc(e,t,s),c=void 0;if(33554432&s.flags){var l=_c(s.element.componentView);c=Gu.createComponentView(e,s,l,u)}Rc(e,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?ul(e,s):void 0},16777216&s.flags&&(a.viewContainer=il(e,s,a));break;case 2:a=tp(e,t,s);break;case 512:case 1024:case 2048:case 256:if(!((a=i[o])||4096&s.flags))a={instance:Tl(e,s)};break;case 16:a={instance:Dl(e,s)};break;case 16384:if(!(a=i[o]))a={instance:Pl(e,s)};if(32768&s.flags)lp(Hu(e,s.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new Ya;break;case 8:$l(e,t,s),a=void 0}i[o]=a}bp(e,Il.CreateViewNodes),Cp(e,201326592,268435456,0)}function hp(e){vp(e),Gu.updateDirectives(e,1),_p(e,Il.CheckNoChanges),Gu.updateRenderer(e,1),bp(e,Il.CheckNoChanges),e.state&=-97}function fp(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Vu(e,0,256),vp(e),Gu.updateDirectives(e,0),_p(e,Il.CheckAndUpdate),Cp(e,67108864,536870912,0);var t=Vu(e,256,512);Bl(e,2097152|(t?1048576:0)),Gu.updateRenderer(e,0),bp(e,Il.CheckAndUpdate),Cp(e,134217728,536870912,0),Bl(e,8388608|((t=Vu(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Vu(e,768,1024)}function dp(e,t,n,i,o,s,a,u,c,l,p,h,f){return 0===n?function(e,t,n,r,i,o,s,a,u,c,l,p){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,s,a,u,c,l,p){var h=t.bindings.length,f=!1;return h>0&&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;i<n.length;i++)Vc(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)oc(e,t,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=np(n[o],r[o]);s=t.text.prefix+s;var a=Uu(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return i}(e,t,n);case 16384:return function(e,t,n){for(var r=qu(e,t.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)ic(e,t,a,n[a])&&(o=!0,s=Vl(e,r,t,a,n[a],s));return s&&i.ngOnChanges(s),65536&t.flags&&Bu(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var i=t.bindings,o=!1,s=0;s<n.length;s++)oc(e,t,s,n[s])&&(o=!0);if(o){var a=zu(e,t.nodeIndex),u=void 0;switch(201347067&t.flags){case 32:u=n;break;case 64:for(u={},s=0;s<n.length;s++)u[i[s].name]=n[s];break;case 128:var c=n[0],l=n.slice(1);u=c.transform.apply(c,Object(r.g)(l))}a.value=u}return o}(e,t,n);default:throw"unreachable"}}(e,t,i)}function vp(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var i=Hu(e,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,uc(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function mp(e,t,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function(e,t,n,r,i,o,s,a,u,c,l,p){var h=t.bindings.length;h>0&&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;r<n.length;r++)sc(e,t,r,n[r])}(e,t,r),!1}function yp(e,t){if(Wu(e,t.nodeIndex).dirty)throw Ku(Gu.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function gp(e){if(!(128&e.state)){if(_p(e,Il.Destroy),bp(e,Il.Destroy),Bl(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=lc(e);if(t){var n=t.template._projectedViews;n&&(Jc(n,n.indexOf(e)),Gu.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(Hu(e,n).renderElement):2&r.flags?e.renderer.destroyNode(Uu(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Wu(e,n).destroy()}}(e),fc(e)&&e.renderer.destroy(),e.state|=128}}function bp(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?wp(Hu(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function _p(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Hu(e,r).viewContainer._embeddedViews,s=0;s<o.length;s++)wp(o[s],t);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function wp(e,t){var n=e.state;switch(t){case Il.CheckNoChanges:0==(128&n)&&(12==(12&n)?hp(e):64&n&&Ep(e,Il.CheckNoChangesProjectedViews));break;case Il.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?hp(e):64&n&&Ep(e,t));break;case Il.CheckAndUpdate:0==(128&n)&&(12==(12&n)?fp(e):64&n&&Ep(e,Il.CheckAndUpdateProjectedViews));break;case Il.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?fp(e):64&n&&Ep(e,t));break;case Il.Destroy:gp(e);break;case Il.CreateViewNodes:pp(e)}}function Ep(e,t){_p(e,t),bp(e,t)}function Cp(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var s=e.def.nodes[o];if(s.flags&t&&s.flags&n)switch(Gu.setCurrentNode(e,s.nodeIndex),r){case 0:Wl(e,s);break;case 1:yp(e,s)}s.childFlags&t&&s.childFlags&n||(o+=s.childCount)}}!function(e){e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy"}(Il||(Il={}));var Op=!1;function xp(){if(!Op){Op=!0;var e=io()?{setCurrentNode:Qp,createRootView:jp,createEmbeddedView:Tp,createComponentView:Dp,createNgModuleRef:Pp,overrideProvider:Vp,overrideComponentView:Bp,clearOverrides:Up,checkAndUpdateView:Wp,checkNoChangesView:Gp,destroyView:Kp,createDebugContext:function(e,t){return new nh(e,t)},handleEvent:$p,updateDirectives:Zp,updateRenderer:Yp}:{setCurrentNode:function(){},createRootView:Sp,createEmbeddedView:sp,createComponentView:up,createNgModuleRef:vl,overrideProvider:Zu,overrideComponentView:Zu,clearOverrides:Zu,checkAndUpdateView:fp,checkNoChangesView:hp,destroyView:gp,createDebugContext:function(e,t){return new nh(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?qp:zp,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?qp:zp,e)}};Gu.setCurrentNode=e.setCurrentNode,Gu.createRootView=e.createRootView,Gu.createEmbeddedView=e.createEmbeddedView,Gu.createComponentView=e.createComponentView,Gu.createNgModuleRef=e.createNgModuleRef,Gu.overrideProvider=e.overrideProvider,Gu.overrideComponentView=e.overrideComponentView,Gu.clearOverrides=e.clearOverrides,Gu.checkAndUpdateView=e.checkAndUpdateView,Gu.checkNoChangesView=e.checkNoChangesView,Gu.destroyView=e.destroyView,Gu.resolveDep=Rl,Gu.createDebugContext=e.createDebugContext,Gu.handleEvent=e.handleEvent,Gu.updateDirectives=e.updateDirectives,Gu.updateRenderer=e.updateRenderer,Gu.dirtyParentQueries=zl}}function Sp(e,t,n,r,i,o){var s=i.injector.get(Hi);return ap(Ap(e,i,s,t,n),r,o)}function jp(e,t,n,r,i,o){var s=i.injector.get(Hi),a=Ap(e,i,new sh(s),t,n),u=Hp(r);return ih(Np.create,ap,null,[a,u,o])}function Ap(e,t,n,r,i){var o=t.injector.get(Gi),s=t.injector.get(Fs),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function Tp(e,t,n,r){var i=Hp(n);return ih(Np.create,sp,null,[e,t,i,r])}function Dp(e,t,n,r){var i=Lp.get(t.element.componentProvider.provider.token);return n=i||Hp(n),ih(Np.create,up,null,[e,t,n,r])}function Pp(e,t,n,r){return vl(e,t,n,function(e){var t=function(e){var t=!1,n=!1;if(0===Fp.size)return{hasOverrides:t,hasDeprecatedOverrides:n};return e.providers.forEach(function(e){var r=Fp.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(function(e){Rp.forEach(function(r,i){D(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n}}(e),n=t.hasOverrides,r=t.hasDeprecatedOverrides;if(!n)return e;return function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];r&&(n.flags|=4096);var i=Fp.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=yc(i.deps),n.value=i.value)}if(Rp.size>0){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;r<e.nodes.length;r++){var i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Fp.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Zu});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Fp.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=yc(o.deps),i.value=o.value)}}}}function qp(e,t,n,r,i,o,s,a,u,c,l,p,h){var f=e.def.nodes[t];return dp(e,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?zu(e,t).value:void 0}function zp(e,t,n,r,i,o,s,a,u,c,l,p,h){var f=e.def.nodes[t];return mp(e,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?zu(e,t).value:void 0}function Wp(e){return ih(Np.detectChanges,fp,null,[e])}function Gp(e){return ih(Np.checkNoChanges,hp,null,[e])}function Kp(e){return ih(Np.destroy,gp,null,[e])}function Qp(e,t){kp=e,Ip=t}function $p(e,t,n,r){return Qp(e,t),ih(Np.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Zp(e,t){if(128&e.state)throw $u(Np[Mp]);return Qp(e,eh(e,0)),e.def.updateDirectives(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.def.nodes[n];0===t?Xp(e,s,r,i):Jp(e,s,r,i);16384&s.flags&&Qp(e,eh(e,n));return 224&s.flags?zu(e,s.nodeIndex).value:void 0},e)}function Yp(e,t){if(128&e.state)throw $u(Np[Mp]);return Qp(e,th(e,0)),e.def.updateRenderer(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.def.nodes[n];0===t?Xp(e,s,r,i):Jp(e,s,r,i);3&s.flags&&Qp(e,th(e,n));return 224&s.flags?zu(e,s.nodeIndex).value:void 0},e)}function Xp(e,t,n,i){if(dp.apply(void 0,Object(r.g)([e,t,n],i))){var o=1===n?i[0]:i;if(16384&t.flags){for(var s={},a=0;a<t.bindings.length;a++){var u=t.bindings[a],c=o[a];8&u.flags&&(s[Sn(u.nonMinifiedName)]=An(c))}var l=t.parent,p=Hu(e,l.nodeIndex).renderElement;if(l.element.name)for(var h in s){null!=(c=s[h])?e.renderer.setAttribute(p,h,c):e.renderer.removeAttribute(p,h)}else e.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function Jp(e,t,n,i){mp.apply(void 0,Object(r.g)([e,t,n],i))}function eh(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function th(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}!function(e){e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent"}(Np||(Np={}));var nh=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=pc(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return Hu(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return ll(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){rh(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&rh(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!fc(e);)e=e.parent;if(e.parent)return Hu(e.parent,pc(e).nodeIndex);return null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?hc(this.view,this.nodeDef):hc(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var s=function(e,t){for(var n=-1,r=0;r<=t;r++){var i=e.nodes[r];3&i.flags&&n++}return n}(t,n),a=-1;t.factory(function(){var t;return++a===s?(t=e.error).bind.apply(t,Object(r.g)([e],i)):Zu}),a<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,Object(r.g)(i)))},e}();function rh(e,t,n){for(var r in t.references)n[r]=Kl(e,t,t.references[r])}function ih(e,t,n,r){var i=Mp,o=kp,s=Ip;try{Mp=e;var a=t.apply(n,r);return kp=o,Ip=s,Mp=i,a}catch(u){if(Ms(u)||!kp)throw u;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Qu(e,t),e}(u,oh())}}function oh(){return kp?new nh(kp,Ip):null}var sh=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new ah(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),ah=function(){function e(e){this.delegate=e,this.debugContextFactory=oh,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){!function(e){hu.delete(e.nativeNode)}(du(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var i=new uu(n,null,r);i.name=e,vu(i)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&vu(new au(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&vu(new au(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=du(e),r=du(t);n&&r&&n instanceof uu&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=du(e),i=du(t),o=du(n);r&&i&&r instanceof uu&&r.insertBefore(o,i),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=du(e),r=du(t);n&&r&&n instanceof uu&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=oh();return r&&vu(new uu(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var i=du(e);if(i&&i instanceof uu){var o=r?r+":"+t:t;i.attributes[o]=n}this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=du(e);if(r&&r instanceof uu){var i=n?n+":"+t:t;r.attributes[i]=null}this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=du(e);n&&n instanceof uu&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=du(e);n&&n instanceof uu&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var i=du(e);i&&i instanceof uu&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=du(e);r&&r instanceof uu&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=du(e);r&&r instanceof uu&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=du(e);r&&r.listeners.push(new su(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function uh(e,t,n){return new ch(e,t,n)}var ch=function(e){function t(t,n,r){var i=e.call(this)||this;return i.moduleType=t,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Object(r.c)(t,e),t.prototype.create=function(e){xp();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(_c(this._ngModuleDefFactory));return Gu.createNgModuleRef(this.moduleType,e||Kr.NULL,this._bootstrapComponents,t)},t}(Mi)},DKTb:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e})}n.d(t,"a",function(){return r})},"En8+":function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()},"F/XL":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("nkY7"),i=n("IUTb"),o=n("G5J1"),s=n("PU8L");function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(Object(r.a)(n)?e.pop():n=void 0,e.length){case 0:return Object(o.b)(n);case 1:return n?Object(i.a)(e,n):Object(s.a)(e[0]);default:return Object(i.a)(e,n)}}},FFOo:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("2Bdj"),o=n("6ahw"),s=n("pugT"),a=n("L/V9"),u=n("iLxQ"),c=n("DKTb"),l=function(e){function t(n,r,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,s._parentSubscription=null,arguments.length){case 0:s.destination=o.a;break;case 1:if(!n){s.destination=o.a;break}if("object"==typeof n){n instanceof t?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new p(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new p(s,n,r,i)}return s}return r.c(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this._parentSubscription=null,this},t}(s.a),p=function(e){function t(t,n,r,s){var a,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return Object(i.a)(n)?a=n:n&&(a=n.next,r=n.error,s=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=a,u._error=r,u._complete=s,u}return r.c(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},Fxb1:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("6blF"),i=n("+tJ4"),o=n("S5XQ"),s=n("u67D"),a=n("JcRv"),u=n("2ePl"),c=n("/WYv"),l=n("McSo"),p=n("En8+"),h=n("xTla"),f=function(e){if(e instanceof r.a)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[h.a])return Object(a.a)(e);if(Object(u.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return Object(o.a)(e);if(e&&"function"==typeof e[p.a])return Object(s.a)(e);var t=Object(l.a)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},G5J1:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("6blF"),i=new r.a(function(e){return e.complete()});function o(e){return e?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(e):i}},IUTb:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("6blF"),i=n("pugT"),o=n("+tJ4");function s(e,t){return t?new r.a(function(n){var r=new i.a,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}):new r.a(Object(o.a)(e))}},Ip0R:function(e,t,n){"use strict";n.d(t,"m",function(){return ye}),n.d(t,"b",function(){return Et}),n.d(t,"c",function(){return Ot}),n.d(t,"l",function(){return xt}),n.d(t,"k",function(){return jt}),n.d(t,"j",function(){return At}),n.d(t,"i",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"g",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"d",function(){return p}),n.d(t,"h",function(){return h}),n.d(t,"f",function(){return c});var r=n("CcnG"),i=n("mrSG"),o=function(){return function(){}}(),s=new r.B("Location Initialized"),a=function(){return function(){}}(),u=new r.B("appBaseHref"),c=function(){function e(e){var n=this;this._subject=new r.v,this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(l(i)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})})}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,l(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)},e=t=Object(i.b)([Object(r.A)(),Object(i.d)("design:paramtypes",[a])],e)}();function l(e){return e.replace(/\/index.html$/,"")}var p=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return 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.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=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.length<t;)s="0"+s;return r&&(s=s.substr(s.length-t)),o+s}function z(e,t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,s){var a,u=function(e,t){switch(e){case F.FullYear:return t.getFullYear();case F.Month:return t.getMonth();case F.Date:return t.getDate();case F.Hours:return t.getHours();case F.Minutes:return t.getMinutes();case F.Seconds:return t.getSeconds();case F.FractionalSeconds:return t.getMilliseconds();case F.Day:return t.getDay();default:throw new Error('Unknown DateType value "'+e+'".')}}(e,o);if((n>0||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&&(s<c||s===c&&a<p)&&(u=l[t])}else{var h=e.hours,f=e.minutes;h===s&&f===a&&(u=l[t])}}),u)return u}return function(e,t,n){var r=N(e),i=D([r[1],r[2]],t);return D(i,n)}(t,i,r)[s<12?0:1];case R.Eras:return function(e,t){return D(N(e)[7],t)}(t,r)[e.getFullYear()<=0?0:1];default:var p=n;throw new Error("unexpected translation type "+p)}}(i,o,e,t,n,r)}}function G(e){return function(t,n,r){var i=-1*r,o=j(n,w.MinusSign),s=i>0?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<r.length;u++)r[u]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(var c=1;c<s;c++)r[c]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);var p=0!==o,h=t+e.integerLen,f=r.reduceRight(function(e,t,n,r){return t+=e,r[n]=t<10?t:t-10,p&&(0===r[n]&&n>=h?r.pop():p=!1),t>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}(c,p,h);var y=c.digits,g=c.integerLen,b=c.exponent,_=[];for(u=y.every(function(e){return!e});g<l;g++)y.unshift(0);for(;g<0;g++)y.unshift(0);g>0?_=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<u.length;c++){var l=u.charAt(c);l===re?n.minFrac=n.maxFrac=c+1:l===se?n.maxFrac=c+1:n.posSuf+=l}var p=a.split(oe);if(n.gSize=p[1]?p[1].length:0,n.lgSize=p[2]||p[1]?(p[2]||p[1]).length:0,o){var h=i.length-n.posPre.length-n.posSuf.length,f=o.indexOf(se);n.negPre=o.substr(0,f).replace(/'/g,""),n.negSuf=o.substr(f+h).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function he(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var fe=new r.B("UseV4Plurals"),de=function(){return function(){}}();function ve(e,t,n,r){var i="="+e;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var 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;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngForOf",null),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Function),Object(i.d)("design:paramtypes",[Function])],e.prototype,"ngForTrackBy",null),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",r.gb),Object(i.d)("design:paramtypes",[r.gb])],e.prototype,"ngForTemplate",null),e=Object(i.b)([Object(r.s)({selector:"[ngFor][ngForOf]"}),Object(i.d)("design:paramtypes",[r.kb,r.gb,r.E])],e)}(),Ee=function(){return function(e,t){this.record=e,this.view=t}}();var Ce=function(){function e(e,t){this._viewContainer=e,this._context=new Oe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){xe("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){xe("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e.ngTemplateGuard_ngIf=function(e,t){return!0},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngIf",null),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngIfThen",null),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngIfElse",null),e=Object(i.b)([Object(r.s)({selector:"[ngIf]"}),Object(i.d)("design:paramtypes",[r.kb,r.gb])],e)}(),Oe=function(){return function(){this.$implicit=null,this.ngIf=null}}();function xe(e,t){if(!!(t&&!t.createEmbeddedView))throw new Error(e+" must be a TemplateRef, but received '"+Object(r.dc)(t)+"'.")}var Se=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),je=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++){this._defaultViews[t].enforceState(e)}}},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngSwitch",null),e=Object(i.b)([Object(r.s)({selector:"[ngSwitch]"})],e)}(),Ae=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Se(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object)],e.prototype,"ngSwitchCase",void 0),e=Object(i.b)([Object(r.s)({selector:"[ngSwitchCase]"}),Object(i.e)(2,Object(r.w)()),Object(i.d)("design:paramtypes",[r.kb,r.gb,je])],e)}(),Te=function(){function e(e,t,n){n._addDefault(new Se(e,t))}return e=Object(i.b)([Object(r.s)({selector:"[ngSwitchDefault]"}),Object(i.e)(2,Object(r.w)()),Object(i.d)("design:paramtypes",[r.kb,r.gb,je])],e)}(),De=function(){function e(e){this._localization=e,this._caseViews={}}return Object.defineProperty(e.prototype,"ngPlural",{set:function(e){this._switchValue=e,this._updateView()},enumerable:!0,configurable:!0}),e.prototype.addCase=function(e,t){this._caseViews[e]=t},e.prototype._updateView=function(){this._clearViews();var e=Object.keys(this._caseViews),t=ve(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])},e.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},e.prototype._activateView=function(e){e&&(this._activeView=e,this._activeView.create())},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Number),Object(i.d)("design:paramtypes",[Number])],e.prototype,"ngPlural",null),e=Object(i.b)([Object(r.s)({selector:"[ngPlural]"}),Object(i.d)("design:paramtypes",[de])],e)}(),Pe=function(){function e(e,t,n,r){this.value=e;var i=!isNaN(Number(e));r.addCase(i?"="+e:e,new Se(n,t))}return e=Object(i.b)([Object(r.s)({selector:"[ngPluralCase]"}),Object(i.e)(0,Object(r.h)("ngPluralCase")),Object(i.e)(3,Object(r.w)()),Object(i.d)("design:paramtypes",[String,r.gb,r.kb,De])],e)}(),Ne=function(){function e(e,t,n){this._differs=e,this._ngEl=t,this._renderer=n}return Object.defineProperty(e.prototype,"ngStyle",{set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})},e.prototype._setStyle=function(e,t){var n=Object(i.f)(e.split("."),2),r=n[0],o=n[1];null!=(t=null!=t&&o?""+t+o:t)?this._renderer.setStyle(this._ngEl.nativeElement,r,t):this._renderer.removeStyle(this._ngEl.nativeElement,r)},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object),Object(i.d)("design:paramtypes",[Object])],e.prototype,"ngStyle",null),e=Object(i.b)([Object(r.s)({selector:"[ngStyle]"}),Object(i.d)("design:paramtypes",[r.F,r.t,r.W])],e)}(),Me=[ge,be,we,Ce,function(){function e(e){this._viewContainerRef=e}return e.prototype.ngOnChanges=function(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},e.prototype._shouldRecreateView=function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)},e.prototype._hasContextShapeChanged=function(e){var t,n,r=Object.keys(e.previousValue||{}),o=Object.keys(e.currentValue||{});if(r.length===o.length){try{for(var s=Object(i.h)(o),a=s.next();!a.done;a=s.next()){var u=a.value;if(-1===r.indexOf(u))return!0}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return!1}return!0},e.prototype._updateExistingContext=function(e){var t,n;try{for(var r=Object(i.h)(Object.keys(e)),o=r.next();!o.done;o=r.next()){var s=o.value;this._viewRef.context[s]=this.ngTemplateOutletContext[s]}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},Object(i.b)([Object(r.D)(),Object(i.d)("design:type",Object)],e.prototype,"ngTemplateOutletContext",void 0),Object(i.b)([Object(r.D)(),Object(i.d)("design:type",r.gb)],e.prototype,"ngTemplateOutlet",void 0),e=Object(i.b)([Object(r.s)({selector:"[ngTemplateOutlet]"}),Object(i.d)("design:paramtypes",[r.kb])],e)}(),Ne,je,Ae,Te,De,Pe];function ke(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+Object(r.dc)(e)+"'")}var Ie,Fe=function(){function e(){}return e.format=function(e,t,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:m[n].toLowerCase()};return n==m.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(t,l).format(e)},e}(),Re=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,Le={yMMMdjms:Qe(Ke([We("year",1),Ge("month",3),We("day",1),We("hour",1),We("minute",1),We("second",1)])),yMdjm:Qe(Ke([We("year",1),We("month",1),We("day",1),We("hour",1),We("minute",1)])),yMMMMEEEEd:Qe(Ke([We("year",1),Ge("month",4),Ge("weekday",4),We("day",1)])),yMMMMd:Qe(Ke([We("year",1),Ge("month",4),We("day",1)])),yMMMd:Qe(Ke([We("year",1),Ge("month",3),We("day",1)])),yMd:Qe(Ke([We("year",1),We("month",1),We("day",1)])),jms:Qe(Ke([We("hour",1),We("second",1),We("minute",1)])),jm:Qe(Ke([We("hour",1),We("minute",1)]))},Ve={yyyy:Qe(We("year",4)),yy:Qe(We("year",2)),y:Qe(We("year",1)),MMMM:Qe(Ge("month",4)),MMM:Qe(Ge("month",3)),MM:Qe(We("month",2)),M:Qe(We("month",1)),LLLL:Qe(Ge("month",4)),L:Qe(Ge("month",1)),dd:Qe(We("day",2)),d:Qe(We("day",1)),HH:Be(Ue(Qe(ze(We("hour",2),!1)))),H:Ue(Qe(ze(We("hour",1),!1))),hh:Be(Ue(Qe(ze(We("hour",2),!0)))),h:Ue(Qe(ze(We("hour",1),!0))),jj:Qe(We("hour",2)),j:Qe(We("hour",1)),mm:Be(Qe(We("minute",2))),m:Qe(We("minute",1)),ss:Be(Qe(We("second",2))),s:Qe(We("second",1)),sss:Qe(We("second",3)),EEEE:Qe(Ge("weekday",4)),EEE:Qe(Ge("weekday",3)),EE:Qe(Ge("weekday",2)),E:Qe(Ge("weekday",1)),a:(Ie=Qe(ze(We("hour",1),!0)),function(e,t){return Ie(e,t).split(" ")[1]}),Z:qe("short"),z:qe("long"),ww:Qe({}),w:Qe({}),G:Qe(Ge("era",1)),GG:Qe(Ge("era",2)),GGG:Qe(Ge("era",3)),GGGG:Qe(Ge("era",4))};function Be(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function Ue(e){return function(t,n){return e(t,n).split(" ")[0]}}function He(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function qe(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=He(e,n,t);return r?r.substring(3):""}}function ze(e,t){return e.hour12=t,e}function We(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function Ge(e,t){var n={};return n[e]=t<4?t>1?"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<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;var i=String(n),o=String(r);return i==o?0:i<o?-1:1}var mt=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r){if(bt(e))return null;r=r||this._locale;try{return function(e,t,n){return ce(e,pe(A(t,m.Decimal),j(t,w.MinusSign)),t,w.Group,w.Decimal,n)}(_t(e),r,n)}catch(i){throw ke(t,i.message)}},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)}(),yt=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r){if(bt(e))return null;r=r||this._locale;try{return function(e,t,n){return ce(e,pe(A(t,m.Percent),j(t,w.MinusSign)),t,w.Group,w.Decimal,n,!0).replace(new RegExp(ue,"g"),j(t,w.PercentSign))}(_t(e),r,n)}catch(i){throw ke(t,i.message)}},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)}(),gt=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r,i,o){if(void 0===r&&(r="symbol"),bt(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var s=n||"USD";"code"!==r&&(s="symbol"===r||"symbol-narrow"===r?M(s,"symbol"===r?"wide":"narrow",o):r);try{return le(_t(e),o,s,n,i)}catch(a){throw ke(t,a.message)}},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)}();function bt(e){return null==e||""===e||e!=e}function _t(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(e+" is not a number");return e}var wt=[it,ut,ot,ft,function(){function e(){}var t;return t=e,e.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw ke(t,e);return e.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e=t=Object(i.b)([Object(r.T)({name:"slice",pure:!1})],e)}(),mt,yt,at,gt,ct,pt,ht,dt],Et=function(){function e(){}return e=Object(i.b)([Object(r.I)({declarations:[Me,wt],exports:[Me,wt],providers:[{provide:de,useClass:me}]})],e)}(),Ct=function(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?y.One:y.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&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<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new a.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new a.a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new a.a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new u(this,e))},t.prototype.asObservable=function(){var e=new i.a;return e.source=this,e},t.create=function(e,t){return new h(e,t)},t}(i.a),h=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.c(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):s.a.EMPTY},t}(p)},"L/V9":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},MGBS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("FFOo").a)},McSo:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}n.d(t,"a",function(){return r})},PU8L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("6blF");function i(e){var t=new r.a(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}},Phjn:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("psW0");function i(e,t){return Object(r.a)(e,t,1)}},S5XQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DKTb"),i=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.a),t}}},ToYH:function(e,t,n){"use strict";var r,i=n("mrSG");function o(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function s(e){return"ng-container"===o(e)[1]}function a(e){return"ng-content"===o(e)[1]}function u(e){return"ng-template"===o(e)[1]}function c(e){return null===e?null:o(e)[0]}function l(e,t){return e?":"+e+":"+t:t}!function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(r||(r={}));var p={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"&",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\xc5",aring:"\xe5",asymp:"\u2248",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",brvbar:"\xa6",bull:"\u2022",cap:"\u2229",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\xa9",crarr:"\u21b5",cup:"\u222a",curren:"\xa4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\xb0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:">",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",image:"\u2111",infin:"\u221e",int:"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\xbf",isin:"\u2208",Iuml:"\xcf",iuml:"\xef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"<",macr:"\xaf",mdash:"\u2014",micro:"\xb5",middot:"\xb7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\xa0",ndash:"\u2013",ne:"\u2260",ni:"\u220b",not:"\xac",notin:"\u2209",nsub:"\u2284",Ntilde:"\xd1",ntilde:"\xf1",Nu:"\u039d",nu:"\u03bd",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",OElig:"\u0152",oelig:"\u0153",Ograve:"\xd2",ograve:"\xf2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\xb1",pound:"\xa3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\xae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\xa7",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supe:"\u2287",szlig:"\xdf",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",trade:"\u2122",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\xdc",uuml:"\xfc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"},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<this.attrs.length;r+=2){n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"")}return m(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t<this.attrs.length;t+=2){var n=this.attrs[t],r=this.attrs[t+1];e+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}(),w=function(){function e(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new E(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,o=e.classNames,s=e.attrs,a=new C(e,t,n);i&&((c=0===s.length&&0===o.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i));if(o)for(var u=0;u<o.length;u++){var c=0===s.length&&u===o.length-1,l=o[u];c?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(u=0;u<s.length;u+=2){c=u===s.length-2;var p=s[u],h=s[u+1];if(c){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,m=v.get(p);m||(m=new Map,v.set(p,m)),r=this._addPartial(m,h)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,o=e.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,c,e,t)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",e,t)||n),n=this._matchPartial(p,c,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),E=function(){return function(e){this.selectors=e,this.alreadyMatched=!1}}(),C=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!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<arguments.length;r++)n[r]=arguments[r];var o=t?t.apply(void 0,Object(i.g)(n)):{};return Object(i.a)({ngMetadataName:e},o)}return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}function Z(e){var t=function(e){var t=e.classNames&&e.classNames.length?Object(i.g)([8],e.classNames):[],n=e.element&&"*"!==e.element?e.element:"";return Object(i.g)([n],e.attrs,t)}(e),n=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(function(e){return n=(t=e).classNames&&t.classNames.length?Object(i.g)([8],t.classNames):[],t.element?Object(i.g)([5,t.element],t.attrs,n):t.attrs.length?Object(i.g)([3],t.attrs,n):t.classNames&&t.classNames.length?Object(i.g)([9],t.classNames):[];var t,n}):[];return t.concat.apply(t,Object(i.g)(n))}function Y(e){return e?_.parse(e).map(Z):[]}!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"}(N||(N={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(M||(M={}));var X;!function(e){e[e.Const=0]="Const"}(X||(X={}));var J,ee=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}();!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(J||(J={}));var te,ne=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return Object(i.c)(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(ee),re=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,n)||this;return i.value=t,i.typeParams=r,i}return Object(i.c)(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(ee),ie=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.of=t,r}return Object(i.c)(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(ee),oe=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.valueType=t||null,r}return Object(i.c)(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(ee),se=new ne(J.Dynamic),ae=new ne(J.Inferred),ue=new ne(J.Bool),ce=(new ne(J.Int),new ne(J.Number)),le=(new ne(J.String),new ne(J.Function),new ne(J.None));function pe(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function he(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!e[r].isEquivalent(t[r]))return!1;return!0}!function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals"}(te||(te={}));var fe,de=function(){function e(e,t){this.type=e||null,this.sourceSpan=t||null}return e.prototype.prop=function(e,t){return new Fe(this,e,null,t)},e.prototype.key=function(e,t,n){return new Re(this,e,t,n)},e.prototype.callMethod=function(e,t,n){return new Ce(this,e,t,null,n)},e.prototype.callFn=function(e,t){return new Oe(this,e,null,t)},e.prototype.instantiate=function(e,t,n){return new xe(this,e,t,n)},e.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new Te(this,e,t,null,n)},e.prototype.equals=function(e,t){return new Ie(te.Equals,this,e,null,t)},e.prototype.notEquals=function(e,t){return new Ie(te.NotEquals,this,e,null,t)},e.prototype.identical=function(e,t){return new Ie(te.Identical,this,e,null,t)},e.prototype.notIdentical=function(e,t){return new Ie(te.NotIdentical,this,e,null,t)},e.prototype.minus=function(e,t){return new Ie(te.Minus,this,e,null,t)},e.prototype.plus=function(e,t){return new Ie(te.Plus,this,e,null,t)},e.prototype.divide=function(e,t){return new Ie(te.Divide,this,e,null,t)},e.prototype.multiply=function(e,t){return new Ie(te.Multiply,this,e,null,t)},e.prototype.modulo=function(e,t){return new Ie(te.Modulo,this,e,null,t)},e.prototype.and=function(e,t){return new Ie(te.And,this,e,null,t)},e.prototype.bitwiseAnd=function(e,t,n){return void 0===n&&(n=!0),new Ie(te.BitwiseAnd,this,e,null,t,n)},e.prototype.or=function(e,t){return new Ie(te.Or,this,e,null,t)},e.prototype.lower=function(e,t){return new Ie(te.Lower,this,e,null,t)},e.prototype.lowerEquals=function(e,t){return new Ie(te.LowerEquals,this,e,null,t)},e.prototype.bigger=function(e,t){return new Ie(te.Bigger,this,e,null,t)},e.prototype.biggerEquals=function(e,t){return new Ie(te.BiggerEquals,this,e,null,t)},e.prototype.isBlank=function(e){return this.equals(qe,e)},e.prototype.cast=function(e,t){return new Ne(this,e,t)},e.prototype.toStmt=function(){return new Ke(this,null)},e}();!function(e){e[e.This=0]="This",e[e.Super=1]="Super",e[e.CatchError=2]="CatchError",e[e.CatchStack=3]="CatchStack"}(fe||(fe={}));var ve,me=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return"string"==typeof t?(i.name=t,i.builtin=null):(i.name=null,i.builtin=t),i}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.builtin===e.builtin},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},t.prototype.set=function(e){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new be(this.name,e,null,this.sourceSpan)},t}(de),ye=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.expr=t,i}return Object(i.c)(t,e),t.prototype.visitExpression=function(e,t){return e.visitTypeofExpr(this,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&e.expr.isEquivalent(this.expr)},t.prototype.isConstant=function(){return this.expr.isConstant()},t}(de),ge=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.node=t,i}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.node===e.node},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWrappedNodeExpr(this,t)},t}(de),be=function(e){function t(t,n,r,i){var o=e.call(this,r||n.type,i)||this;return o.name=t,o.value=n,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return new We(this.name,this.value,e,t,this.sourceSpan)},t.prototype.toConstDecl=function(){return this.toDeclStmt(ae,[Ee.Final])},t}(de),_e=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.index=n,s.value=r,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},t}(de),we=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.name=n,s.value=r,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},t}(de);!function(e){e[e.ConcatArray=0]="ConcatArray",e[e.SubscribeObservable=1]="SubscribeObservable",e[e.Bind=2]="Bind"}(ve||(ve={}));var Ee,Ce=function(e){function t(t,n,r,i,o){var s=e.call(this,i,o)||this;return s.receiver=t,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.builtin===e.builtin&&he(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(de),Oe=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,r,i)||this;return s.fn=t,s.args=n,s.pure=o,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&he(this.args,e.args)&&this.pure===e.pure},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(de),xe=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.classExpr=t,o.args=n,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&he(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(de),Se=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value===e.value},t.prototype.isConstant=function(){return!0},t.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},t}(de),je=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,i)||this;return o.value=t,o.typeParams=r,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},t}(de),Ae=function(){return function(e,t,n){this.moduleName=e,this.name=t,this.runtime=n}}(),Te=function(e){function t(t,n,r,i,o){void 0===r&&(r=null);var s=e.call(this,i||n.type,o)||this;return s.condition=t,s.falseCase=r,s.trueCase=n,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&pe(this.falseCase,e.falseCase)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(de),De=function(e){function t(t,n){var r=e.call(this,ue,n)||this;return r.condition=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},t}(de),Pe=function(e){function t(t,n){var r=e.call(this,t.type,n)||this;return r.condition=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitAssertNotNullExpr(this,t)},t}(de),Ne=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},t}(de),Me=function(){function e(e,t){void 0===t&&(t=null),this.name=e,this.type=t}return e.prototype.isEquivalent=function(e){return this.name===e.name},e}(),ke=function(e){function t(t,n,r,i,o){var s=e.call(this,r,i)||this;return s.params=t,s.statements=n,s.name=o,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&he(this.params,e.params)&&he(this.statements,e.statements)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new Ge(e,this.params,this.statements,this.type,t,this.sourceSpan)},t}(de),Ie=function(e){function t(t,n,r,i,o,s){void 0===s&&(s=!0);var a=e.call(this,i||n.type,o)||this;return a.operator=t,a.rhs=r,a.parens=s,a.lhs=n,a}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},t}(de),Fe=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.name=n,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},t.prototype.set=function(e){return new we(this.receiver,this.name,e,null,this.sourceSpan)},t}(de),Re=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.index=n,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},t.prototype.set=function(e){return new _e(this.receiver,this.index,e,null,this.sourceSpan)},t}(de),Le=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i}return Object(i.c)(t,e),t.prototype.isConstant=function(){return this.entries.every(function(e){return e.isConstant()})},t.prototype.isEquivalent=function(e){return e instanceof t&&he(this.entries,e.entries)},t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(de),Ve=function(){function e(e,t,n){this.key=e,this.value=t,this.quoted=n}return e.prototype.isEquivalent=function(e){return this.key===e.key&&this.value.isEquivalent(e.value)},e}(),Be=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i.valueType=null,n&&(i.valueType=n.valueType),i}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&he(this.entries,e.entries)},t.prototype.isConstant=function(){return this.entries.every(function(e){return e.value.isConstant()})},t.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},t}(de),Ue=function(e){function t(t,n){var r=e.call(this,t[t.length-1].type,n)||this;return r.parts=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&he(this.parts,e.parts)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCommaExpr(this,t)},t}(de),He=(new me(fe.This,null,null),new me(fe.Super,null,null),new me(fe.CatchError,null,null),new me(fe.CatchStack,null,null),new Se(null,null,null)),qe=new Se(null,ae,null);!function(e){e[e.Final=0]="Final",e[e.Private=1]="Private",e[e.Exported=2]="Exported",e[e.Static=3]="Static"}(Ee||(Ee={}));var ze=function(){function e(e,t){this.modifiers=e||[],this.sourceSpan=t||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),We=function(e){function t(t,n,r,i,o){void 0===i&&(i=null);var s=e.call(this,i,o)||this;return s.name=t,s.value=n,s.type=r||n&&n.type||null,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)},t.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},t}(ze),Ge=function(e){function t(t,n,r,i,o,s){void 0===o&&(o=null);var a=e.call(this,o,s)||this;return a.name=t,a.params=n,a.statements=r,a.type=i||null,a}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&he(this.params,e.params)&&he(this.statements,e.statements)},t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(ze),Ke=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.expr=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.expr.isEquivalent(e.expr)},t.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},t}(ze),Qe=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.value=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},t}(ze),$e=function(){function e(e,t){this.modifiers=t,t||(this.modifiers=[]),this.type=e||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),Ze=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,r)||this;return o.name=t,o.initializer=i,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name},t}($e),Ye=function(e){function t(t,n,r,i,o){void 0===o&&(o=null);var s=e.call(this,i,o)||this;return s.name=t,s.params=n,s.body=r,s}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&he(this.body,e.body)},t}($e),Xe=function(e){function t(t,n,r,i){void 0===i&&(i=null);var o=e.call(this,r,i)||this;return o.name=t,o.body=n,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&he(this.body,e.body)},t}($e),Je=function(e){function t(t,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=e.call(this,a,u)||this;return c.name=t,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&pe(this.parent,e.parent)&&he(this.fields,e.fields)&&he(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&he(this.methods,e.methods)},t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(ze),et=function(e){function t(t,n,r,i){void 0===r&&(r=[]);var o=e.call(this,null,i)||this;return o.condition=t,o.trueCase=n,o.falseCase=r,o}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&he(this.trueCase,e.trueCase)&&he(this.falseCase,e.falseCase)},t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(ze),tt=(function(e){function t(t,n,r){void 0===n&&(n=!1);var i=e.call(this,null,r)||this;return i.comment=t,i.multiline=n,i}Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t},t.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)}}(ze),function(e){function t(t,n){void 0===t&&(t=[]);var r=e.call(this,null,n)||this;return r.tags=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.toString()===e.toString()},t.prototype.visitStatement=function(e,t){return e.visitJSDocCommentStmt(this,t)},t.prototype.toString=function(){return function(e){var t,n;if(0===e.length)return"";var r="*\n";try{for(var o=Object(i.h)(e),s=o.next();!s.done;s=o.next()){var a=s.value;r+=" *",r+=_t(a).replace(/\n/g,"\n * "),r+="\n"}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r+=" "}(this.tags)},t}(ze)),nt=function(e){function t(t,n,r){var i=e.call(this,null,r)||this;return i.bodyStmts=t,i.catchStmts=n,i}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&he(this.bodyStmts,e.bodyStmts)&&he(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(ze),rt=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.error=t,r}return Object(i.c)(t,e),t.prototype.isEquivalent=function(e){return e instanceof nt&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(ze),it=function(){function e(){}return e.prototype.transformExpr=function(e,t){return e},e.prototype.transformStmt=function(e,t){return e},e.prototype.visitReadVarExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitTypeofExpr=function(e,t){return this.transformExpr(new ye(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new be(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new _e(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWritePropExpr=function(e,t){return this.transformExpr(new we(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeMethodExpr=function(e,t){var n=e.builtin||e.name;return this.transformExpr(new Ce(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return this.transformExpr(new Oe(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInstantiateExpr=function(e,t){return this.transformExpr(new xe(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitExternalExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitConditionalExpr=function(e,t){return this.transformExpr(new Te(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitNotExpr=function(e,t){return this.transformExpr(new De(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new Pe(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new Ne(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new ke(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new Ie(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitReadPropExpr=function(e,t){return this.transformExpr(new Fe(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new Re(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.transformExpr(new Le(this.visitAllExpressions(e.entries,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.map(function(e){return new Ve(e.key,e.value.visitExpression(n,t),e.quoted)}),i=new oe(e.valueType,null);return this.transformExpr(new Be(r,i,e.sourceSpan),t)},e.prototype.visitCommaExpr=function(e,t){return this.transformExpr(new Ue(this.visitAllExpressions(e.parts,t),e.sourceSpan),t)},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value&&e.value.visitExpression(this,t);return this.transformStmt(new We(e.name,n,e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.transformStmt(new Ge(e.name,e.params,this.visitAllStatements(e.statements,t),e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitExpressionStmt=function(e,t){return this.transformStmt(new Ke(e.expr.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitReturnStmt=function(e,t){return this.transformStmt(new Qe(e.value.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitDeclareClassStmt=function(e,t){var n=this,r=e.parent.visitExpression(this,t),i=e.getters.map(function(e){return new Xe(e.name,n.visitAllStatements(e.body,t),e.type,e.modifiers)}),o=e.constructorMethod&&new Ye(e.constructorMethod.name,e.constructorMethod.params,this.visitAllStatements(e.constructorMethod.body,t),e.constructorMethod.type,e.constructorMethod.modifiers),s=e.methods.map(function(e){return new Ye(e.name,e.params,n.visitAllStatements(e.body,t),e.type,e.modifiers)});return this.transformStmt(new Je(e.name,r,e.fields,i,o,s,e.modifiers,e.sourceSpan),t)},e.prototype.visitIfStmt=function(e,t){return this.transformStmt(new et(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e.sourceSpan),t)},e.prototype.visitTryCatchStmt=function(e,t){return this.transformStmt(new nt(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan),t)},e.prototype.visitThrowStmt=function(e,t){return this.transformStmt(new rt(e.error.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitJSDocCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitAllStatements=function(e,t){var n=this;return e.map(function(e){return e.visitStatement(n,t)})},e}(),ot=function(){function e(){}return e.prototype.visitType=function(e,t){return e},e.prototype.visitExpression=function(e,t){return e.type&&e.type.visitType(this,t),e},e.prototype.visitBuiltinType=function(e,t){return this.visitType(e,t)},e.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach(function(e){return n.visitType(e,t)}),this.visitType(e,t)},e.prototype.visitArrayType=function(e,t){return this.visitType(e,t)},e.prototype.visitMapType=function(e,t){return this.visitType(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return e},e.prototype.visitTypeofExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitReadVarExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitLiteralExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitExternalExpr=function(e,t){var n=this;return e.typeParams&&e.typeParams.forEach(function(e){return e.visitType(n,t)}),this.visitExpression(e,t)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitFunctionExpr=function(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return e.entries.forEach(function(e){return e.value.visitExpression(n,t)}),this.visitExpression(e,t)},e.prototype.visitCommaExpr=function(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)},e.prototype.visitAllExpressions=function(e,t){var n=this;e.forEach(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},e.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareClassStmt=function(e,t){var n=this;return e.parent.visitExpression(this,t),e.getters.forEach(function(e){return n.visitAllStatements(e.body,t)}),e.constructorMethod&&this.visitAllStatements(e.constructorMethod.body,t),e.methods.forEach(function(e){return n.visitAllStatements(e.body,t)}),e},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},e.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},e.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitJSDocCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function st(e){var t=new at;return t.visitAllStatements(e,null),t.varNames}var at=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.varNames=new Set,t}return Object(i.c)(t,e),t.prototype.visitDeclareFunctionStmt=function(e,t){return e},t.prototype.visitDeclareClassStmt=function(e,t){return e},t.prototype.visitReadVarExpr=function(e,t){return e.name&&this.varNames.add(e.name),null},t}(ot);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.externalReferences=[],t}Object(i.c)(t,e),t.prototype.visitExternalExpr=function(t,n){return this.externalReferences.push(t.value),e.prototype.visitExternalExpr.call(this,t,n)}}(ot);function ut(e,t){if(!t)return e;var n=new lt(t);return e.visitStatement(n,null)}function ct(e,t){if(!t)return e;var n=new lt(t);return e.visitExpression(n,null)}var lt=function(e){function t(t){var n=e.call(this)||this;return n.sourceSpan=t,n}return Object(i.c)(t,e),t.prototype._clone=function(e){var t=Object.create(e.constructor.prototype);for(var n in e)t[n]=e[n];return t},t.prototype.transformExpr=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t.prototype.transformStmt=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t}(it);function pt(e,t,n){return new me(e,t,n)}function ht(e,t,n){return void 0===t&&(t=null),new je(e,null,t,n)}function ft(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),null!=e?dt(ht(e,t,null),n):null}function dt(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new re(e,t,n)}function vt(e,t,n){return new Le(e,t,n)}function mt(e,t){return void 0===t&&(t=null),new Be(e.map(function(e){return new Ve(e.key,e.value,e.quoted)}),t,null)}function yt(e,t,n,r,i){return new ke(e,t,n,r,i)}function gt(e,t,n){return new et(e,t,n)}function bt(e,t,n){return new Se(e,t,n)}function _t(e){var t="";if(e.tagName&&(t+=" @"+e.tagName),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}var wt=/-+([a-z0-9])/g;function Et(e,t){return Ct(e,":",t)}function Ct(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function Ot(e,t,n){return Array.isArray(e)?t.visitArray(e,n):"object"==typeof(r=e)&&null!==r&&Object.getPrototypeOf(r)===Ft?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n);var r}function xt(e){return null!=e}function St(e){return void 0===e?null:e}var jt=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return Ot(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=Ot(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),At=function(e){if(Bt(e))throw new Error("Illegal state: value cannot be a promise");return e},Tt=function(e,t){return Bt(e)?e.then(t):t(e)},Dt=function(e){return e.some(Bt)?Promise.all(e):e};function Pt(e){throw new Error("Internal Error: "+e)}function Nt(e,t){var n=Error(e);return n[Mt]=!0,t&&(n[kt]=t),n}var Mt="ngSyntaxError",kt="ngParseErrors";function It(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var Ft=Object.getPrototypeOf({});function Rt(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function 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),"<unknown>"},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<n.length;r++)n[r]=Xn(e,4*r,t);return n}(r,Un.Big),s=8*r.length,a=new Array(80),u=Object(i.f)([1732584193,4023233417,2562383102,271733878,3285377520],5),c=u[0],l=u[1],p=u[2],h=u[3],f=u[4];o[s>>5]|=128<<24-s%32,o[15+(s+64>>9<<4)]=s;for(var d=0;d<o.length;d+=16){for(var v=Object(i.f)([c,l,p,h,f],5),m=v[0],y=v[1],g=v[2],b=v[3],_=v[4],w=0;w<80;w++){a[w]=w<16?o[d+w]:Zn(a[w-3]^a[w-8]^a[w-14]^a[w-16],1);var E=Object(i.f)(qn(w,l,p,h),2),C=E[0],O=E[1],x=[Zn(c,5),C,f,O,a[w]].reduce(Kn);t=Object(i.f)([h,p,Zn(l,30),c,x],5),f=t[0],h=t[1],p=t[2],l=t[3],c=t[4]}n=Object(i.f)([Kn(c,m),Kn(l,y),Kn(p,g),Kn(h,b),Kn(f,_)],5),c=n[0],l=n[1],p=n[2],h=n[3],f=n[4]}return function(e){for(var t="",n=0;n<e.length;n++){var r=Yn(e,n);t+=(r>>>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<<t|o>>>32-t,o<<t|r>>>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?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map(function(e){return e.visit(n)}).join(", ")+'</ph name="'+e.closeName+'">'},e.prototype.visitPlaceholder=function(e,t){return e.value?'<ph name="'+e.name+'">'+e.value+"</ph>":'<ph name="'+e.name+'"/>'},e.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},e}(),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<<t|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<r||o;i++){var s=o+ +(e[i]||0)+ +(t[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function 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.name+">"},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},e}());function 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,"<"],[/>/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",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new 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("</"+e.tag+">"),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;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.get(t)||[];o.push.apply(o,Object(i.g)(n)),e.set(t,o)}function Lr(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=t,i=new Map,o=e instanceof An?e.nodes.find(function(e){return e instanceof Dn}):e;return o&&o.children.filter(function(e){return e instanceof Mn}).forEach(function(e,t){var o=kr(r+t,n);Rr(i,e.name,o)}),i}function Vr(e){var t,n=yr(e).split("_");if(1===n.length)return e.toLowerCase();/^\d+$/.test(n[n.length-1])&&(t=n.pop());var r=n.shift().toLowerCase();return n.length&&(r+=n.map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join("")),t?r+"_"+t:r}function Br(e){return(""+br+e).toUpperCase()}function Ur(e,t,n,r,i){void 0===r&&(r={});var o=[],s=function(e){var t=[];return e.description&&t.push({tagName:"desc",text:e.description}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),0==t.length?null:new tt(t)}(n);if(s&&o.push(s),i){o.push(Ar(e,t,r));var a=pt(e.name);e.name=e.name.replace(_r,wr),o.push(e.set(i(a)).toDeclStmt(ae,[Ee.Final]))}else o.push(Ar(e,t,r));return o}var Hr="_t",qr="ctx",zr="rf";function Wr(e,t){var n=null;return function(){return n||(e.push(new We(Hr,void 0,se)),n=pt(t)),n}}function Gr(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}function Kr(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+void 0)}function Qr(e){return Array.isArray(e)?vt(e.map(Qr)):bt(e,ae)}function $r(e,t){return Object.getOwnPropertyNames(e).length>0?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<t;r++)n.push(se)}return dt(e,null,n)}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory"}(Yr||(Yr={})),function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute"}(Xr||(Xr={}));var ui="@";function ci(e){return""+ui+e}function li(e,t){return""+ui+e+"."+t}function pi(e,t){return"animation_"+e+"_"+t}function hi(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '"+e+"' to be an array of strings.")}}var fi=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[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<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(e.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){var e=this;if(!this.hasMappings)return null;var t=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){t.set(i,o),n.push(i),r.push(e.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(e){o=0,i+=e.map(function(e){var n=gi(e.col0-o);return o=e.col0,null!=e.sourceUrl&&(n+=gi(t.get(e.sourceUrl)-s),s=t.get(e.sourceUrl),n+=gi(e.sourceLine0-a),a=e.sourceLine0,n+=gi(e.sourceCol0-u),u=e.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},e.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(e){var t="";e=Rt(e);for(var n=0;n<e.length;){var r=e.charCodeAt(n++),i=e.charCodeAt(n++),o=e.charCodeAt(n++);t+=_i(r>>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;o<t;o++)n.addLine(),i();return this.sourceLines.forEach(function(e,t){n.addLine();for(var o=e.srcSpans,s=e.parts,a=e.indent*Ci.length,u=0;u<o.length&&!o[u];)a+=s[u].length,u++;for(u<o.length&&0===t&&0===a?r=!0:i();u<o.length;){var c=o[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<o.length&&(c===o[u]||!o[u]);)a+=s[u].length,u++}}),n},e.prototype.setPreambleLineCount=function(e){return this._preambleLineCount=e},e.prototype.spanOf=function(e,t){var n=this._lines[e-this._preambleLineCount];if(n)for(var r=t-Di(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(e.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),e}(),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;o<t.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[o]);i&&(n.decIndent(),n.decIndent())},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function 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;n<arguments.length;n++)e[n]=arguments[n];return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]});return n||!Ei.test(r)?"'"+r+"'":r}function Di(e){for(var t="",n=0;n<e;n++)t+=Ci;return t}function Pi(e,t,n,r){var o=new Ni(n),s=ji.createRoot();return o.visitAllStatements(t,s),o.createReturnStmt(s),function(e,t,n,r){var o=t.toSource()+"\n//# sourceURL="+e,s=[],a=[];for(var u in n)s.push(u),a.push(n[u]);if(r){var c=(new(Function.bind.apply(Function,Object(i.g)([void 0],s.concat("return null;"))))).toString(),l=c.slice(0,c.indexOf("return null;")).split("\n").length-1;o+="\n"+t.toSourceMapGenerator(e,l).toJsComment()}return(new(Function.bind.apply(Function,Object(i.g)([void 0],s.concat(o))))).apply(void 0,Object(i.g)(a))}(e,s,o.getArgs(),r)}var Ni=function(e){function t(t){var n=e.call(this)||this;return n.reflector=t,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return Object(i.c)(t,e),t.prototype.createReturnStmt=function(e){new Qe(new Be(this._evalExportedVars.map(function(e){return new Ve(e,pt(e),!1)}))).visitStatement(this,e)},t.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},t.prototype.visitExternalExpr=function(e,t){return this._emitReferenceToExternal(e,this.reflector.resolveExternalReference(e.value),t),null},t.prototype.visitWrappedNodeExpr=function(e,t){return this._emitReferenceToExternal(e,e.node,t),null},t.prototype.visitDeclareVarStmt=function(t,n){return t.hasModifier(Ee.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareVarStmt.call(this,t,n)},t.prototype.visitDeclareFunctionStmt=function(t,n){return t.hasModifier(Ee.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareFunctionStmt.call(this,t,n)},t.prototype.visitDeclareClassStmt=function(t,n){return t.hasModifier(Ee.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareClassStmt.call(this,t,n)},t.prototype._emitReferenceToExternal=function(e,t,n){var r=this._evalArgValues.indexOf(t);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(t);var i=un({reference:t})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(e,this._evalArgNames[r])},t}(function(e){function t(){return e.call(this,!1)||this}return Object(i.c)(t,e),t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},t.prototype._visitClassConstructor=function(e,t){t.print(e,"function "+e.name+"("),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},t.prototype._visitClassGetter=function(e,t,n){n.println(e,"Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")},t.prototype._visitClassMethod=function(e,t,n){n.print(e,e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},t.prototype.visitReadVarExpr=function(t,n){if(t.builtin===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<e.length;++n)t[n]=e[n].visit(this);return t},e.prototype.visitChain=function(e,t){return new qi(e.span,this.visitAll(e.expressions))},e.prototype.visitQuote=function(e,t){return new Bi(e.span,e.prefix,e.uninterpretedExpression,e.location)},e}(),po=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new eo(e.span,e.strings,n):e},e.prototype.visitLiteralPrimitive=function(e,t){return e},e.prototype.visitPropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new Wi(e.span,n,e.name):e},e.prototype.visitPropertyWrite=function(e,t){var n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new Gi(e.span,n,e.name,r):e},e.prototype.visitSafePropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new Ki(e.span,n,e.name):e},e.prototype.visitMethodCall=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new io(e.span,n,e.name,this.visitAll(e.args)):e},e.prototype.visitSafeMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new oo(e.span,n,e.name,r):e},e.prototype.visitFunctionCall=function(e,t){var n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new so(e.span,n,r):e},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Xi(e.span,n):e},e.prototype.visitLiteralMap=function(e,t){var n=this.visitAll(e.values);return n!==e.values?new Ji(e.span,e.keys,n):e},e.prototype.visitBinary=function(e,t){var n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new to(e.span,e.operation,n,r):e},e.prototype.visitPrefixNot=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new no(e.span,n):e},e.prototype.visitNonNullAssert=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new ro(e.span,n):e},e.prototype.visitConditional=function(e,t){var n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!=i?new zi(e.span,n,r,i):e},e.prototype.visitPipe=function(e,t){var n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new Zi(e.span,n,e.name,r):e},e.prototype.visitKeyedRead=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this);return n!==e.obj||r!==e.key?new Qi(e.span,n,r):e},e.prototype.visitKeyedWrite=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.obj||r!==e.key||i!==e.value?new $i(e.span,n,r,i):e},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=!1,r=0;r<e.length;++r){var i=e[r],o=i.visit(this);t[r]=o,n=n||o!==i}return n?t:e},e.prototype.visitChain=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new qi(e.span,n):e},e.prototype.visitQuote=function(e,t){return e},e}();var ho,fo=function(){return function(e,t,n,r){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===ho.LITERAL_ATTR,this.isAnimation=this.type===ho.ANIMATION}}();!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(ho||(ho={}));var vo=function(){return function(e,t,n,r,i){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i}}(),mo=function(){return function(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}}(),yo=function(){return function(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}}(),go=function(){function e(){}return e.event=pt("$event"),e}(),bo=function(){return function(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map(function(e){if(e instanceof We&&e.name==t.name&&e.value instanceof Ie){var n=e.value.lhs;return new Qe(n.value)}return e})}}();function _o(e,t,n,r,i){e||(e=new No);var o=wo({createLiteralArrayConverter:function(e){return function(e){return vt(e)}},createLiteralMapConverter:function(e){return function(t){return mt(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}))}},createPipeConverter:function(e){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+e)}},n),s=new Po(e,t,r,i),a=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(o.visit(s,Co.Statement),a),function(e,t,n){for(var r=e-1;r>=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<u.temporaryCount;l++)a.push(jo(r,l));else if(i==Eo.TrySimple)return new Oo([],c);return a.push(s.set(c).toDeclStmt(se,[Ee.Final])),new Oo(a,s)}function So(e,t){return"tmp_"+e+"_"+t}function jo(e,t){return new We(So(e,t),He)}function Ao(e,t){if(e!==Co.Expression)throw new Error("Expected an expression, but saw "+t)}function To(e,t){return e===Co.Statement?t.toStmt():t}!function(e){e[e.General=0]="General",e[e.TrySimple=1]="TrySimple"}(Eo||(Eo={})),function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(Co||(Co={}));var Do=function(e){function t(t){var n=e.call(this)||this;return n._converterFactory=t,n}return Object(i.c)(t,e),t.prototype.visitPipe=function(e,t){var n=this,r=Object(i.g)([e.exp],e.args).map(function(e){return e.visit(n,t)});return new ko(e.span,r,this._converterFactory.createPipeConverter(e.name,r.length))},t.prototype.visitLiteralArray=function(e,t){var n=this,r=e.expressions.map(function(e){return e.visit(n,t)});return new ko(e.span,r,this._converterFactory.createLiteralArrayConverter(e.expressions.length))},t.prototype.visitLiteralMap=function(e,t){var n=this,r=e.values.map(function(e){return e.visit(n,t)});return new ko(e.span,r,this._converterFactory.createLiteralMapConverter(e.keys))},t}(lo),Po=function(){function e(e,t,n,r){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return e.prototype.visitBinary=function(e,t){var n;switch(e.operation){case"+":n=te.Plus;break;case"-":n=te.Minus;break;case"*":n=te.Multiply;break;case"/":n=te.Divide;break;case"%":n=te.Modulo;break;case"&&":n=te.And;break;case"||":n=te.Or;break;case"==":n=te.Equals;break;case"!=":n=te.NotEquals;break;case"===":n=te.Identical;break;case"!==":n=te.NotIdentical;break;case"<":n=te.Lower;break;case">":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<e.strings.length-1;r++)n.push(bt(e.strings[r])),n.push(this._visit(e.expressions[r],Co.Expression));return n.push(bt(e.strings[e.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):e.expressions.length<=9?ht(Xt.inlineInterpolate).callFn(n):ht(Xt.interpolate).callFn([n[0],vt(n.slice(1))])},e.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):To(t,this._visit(e.obj,Co.Expression).key(this._visit(e.key,Co.Expression)))},e.prototype.visitKeyedWrite=function(e,t){var n=this._visit(e.obj,Co.Expression),r=this._visit(e.key,Co.Expression),i=this._visit(e.value,Co.Expression);return To(t,n.key(r).set(i))},e.prototype.visitLiteralArray=function(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")},e.prototype.visitLiteralMap=function(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")},e.prototype.visitLiteralPrimitive=function(e,t){var n=null===e.value||void 0===e.value||!0===e.value||!0===e.value?ae:void 0;return To(t,bt(e.value,n))},e.prototype._getLocal=function(e){return this._localResolver.getLocal(e)},e.prototype.visitMethodCall=function(e,t){if(e.receiver instanceof Hi&&"$any"==e.name){if(1!=(r=this.visitAll(e.args,Co.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(se)}var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,Co.Expression),i=null,o=this._visit(e.receiver,Co.Expression);if(o===this._implicitReceiver){var s=this._getLocal(e.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(e.name,r)),To(t,i)},e.prototype.visitPrefixNot=function(e,t){return To(t,(n=this._visit(e.expression,Co.Expression),new De(n,r)));var n,r},e.prototype.visitNonNullAssert=function(e,t){return To(t,(n=this._visit(e.expression,Co.Expression),new Pe(n,r)));var n,r},e.prototype.visitPropertyRead=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=null,i=this._visit(e.receiver,Co.Expression);return i===this._implicitReceiver&&(r=this._getLocal(e.name)),null==r&&(r=i.prop(e.name)),To(t,r)},e.prototype.visitPropertyWrite=function(e,t){var n=this._visit(e.receiver,Co.Expression),r=null;if(n===this._implicitReceiver){var i=this._getLocal(e.name);if(i){if(!(i instanceof Fe))throw new Error("Cannot assign to a reference or variable!");r=i}}return null===r&&(r=n.prop(e.name)),To(t,r.set(this._visit(e.value,Co.Expression)))},e.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitAll=function(e,t){var n=this;return e.map(function(e){return n._visit(e,t)})},e.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!\n Statement: "+e.uninterpretedExpression+" located at "+e.location)},e.prototype._visit=function(e,t){var n=this._resultMap.get(e);return n||(this._nodeMap.get(e)||e).visit(this,t)},e.prototype.convertSafeAccess=function(e,t,n){var r=this._visit(t.receiver,Co.Expression),i=void 0;this.needsTemporary(t.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(t.receiver,i));var o=r.isBlank();t instanceof oo?this._nodeMap.set(t,new io(t.span,t.receiver,t.name,t.args)):this._nodeMap.set(t,new Wi(t.span,t.receiver,t.name));var s=this._visit(e,Co.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),To(n,o.conditional(bt(null),s))},e.prototype.leftMostSafeNode=function(e){var t=this,n=function(e,n){return(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return n(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return n(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitNonNullAssert:function(e){return null},visitPropertyRead:function(e){return n(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return n(this,e.receiver)||e},visitSafePropertyRead:function(e){return n(this,e.receiver)||e}})},e.prototype.needsTemporary=function(e){var t=this,n=function(e,n){return n&&(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return n(this,e.left)||n(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return n(this,e.condition)||n(this,e.trueExp)||n(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return function(e,t){return t.some(function(t){return n(e,t)})}(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return n(this,e.expression)},visitNonNullAssert:function(e){return n(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},e.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new me(So(this.bindingId,e))},e.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=So(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},e}();var No=function(){function e(){}return e.prototype.getLocal=function(e){return e===go.event.name?go.event:null},e}();var Mo,ko=function(e){function t(t,n,r){var i=e.call(this,t,null,n)||this;return i.args=n,i.converter=r,i}return Object(i.c)(t,e),t}(so);!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(Mo||(Mo={}));var Io=[Mo.OnInit,Mo.OnDestroy,Mo.DoCheck,Mo.OnChanges,Mo.AfterContentInit,Mo.AfterContentChecked,Mo.AfterViewInit,Mo.AfterViewChecked];function Fo(e,t,n){return e.hasLifecycleHook(n,function(e){switch(e){case Mo.OnInit:return"ngOnInit";case Mo.OnDestroy:return"ngOnDestroy";case Mo.DoCheck:return"ngDoCheck";case Mo.OnChanges:return"ngOnChanges";case Mo.AfterContentInit:return"ngAfterContentInit";case Mo.AfterContentChecked:return"ngAfterContentChecked";case Mo.AfterViewInit:return"ngAfterViewInit";case Mo.AfterViewChecked:return"ngAfterViewChecked";default:var t=e;throw new Error("unexpected "+t)}}(t))}var Ro=0,Lo=9,Vo=10,Bo=11,Uo=12,Ho=13,qo=32,zo=34,Wo=36,Go=39,Ko=43,Qo=45,$o=47,Zo=59,Yo=61,Xo=62,Jo=48,es=57,ts=65,ns=69,rs=70,is=90,os=95,ss=97,as=101,us=102,cs=110,ls=114,ps=116,hs=118,fs=122,ds=123,vs=160,ms=96;function ys(e){return e>=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(;i<r&&t>0;){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;o<e&&r>0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o<e&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},e}(),Es=function(){return function(e,t){this.content=e,this.url=t}}(),Cs=function(){function e(e,t,n){void 0===n&&(n=null),this.start=e,this.end=t,this.details=n}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}();!function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(_s||(_s={}));var Os=function(){function e(e,t,n){void 0===n&&(n=_s.ERROR),this.span=e,this.msg=t,this.level=n}return e.prototype.contextualMessage=function(){var e=this.span.start.getContext(100,3);return e?this.msg+' ("'+e.before+"["+_s[this.level]+" ->]"+e.after+'")':this.msg},e.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},e}();function 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<arguments.length;t++)e[t]=arguments[t];return e[2]+"{"})},e.prototype._insertPolyfillRulesInCssText=function(e){return e.replace(Ts,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0].replace(e[1],"").replace(e[2],"");return e[4]+n})},e.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(Ds.lastIndex=0;null!==(t=Ds.exec(e));){n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n"}return n},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,ks,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,Is,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,n){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[2]){for(var r=e[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Fs,s,e[3]))}return i.join(",")}return Fs+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(Ps)>-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;s<t.length;s++){var a=t[s];a==$s&&i--,i>0?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<arguments.length;t++)e[t]=arguments[t];var n=e[2],s="",a=e[4],u="";a&&a.startsWith("{"+Zs)&&(s=i.blocks[o++],a=a.substring(Zs.length+1),u="{");var c=r(new Ys(n,s));return""+e[1]+c.selector+e[3]+u+c.content+a})},e.prototype._scopeSelector=function(e,t,n,r){var o=this;return e.split(",").map(function(e){return e.trim().split(Vs)}).map(function(e){var s=Object(i.f)(e),a=s[0],u=s.slice(1);return Object(i.g)([function(e){return o._selectorNeedsScoping(e,t)?r?o._applyStrictSelectorScope(e,t,n):o._applySelectorScope(e,t,n):e}(a)],u).join(" ")}).join(", ")},e.prototype._selectorNeedsScoping=function(e,t){return!this._makeScopeMatcher(t).test(e)},e.prototype._makeScopeMatcher=function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Bs,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(Us.lastIndex=0,Us.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(Rs,function(e,t){return t.replace(/([^:]*)(:*)(.*)/,function(e,t,n,i){return t+r+n+i})}).replace(Us,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,o="["+(t=t.replace(/\[is=([^\]]*)\]/g,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]}))+"]",s=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(Fs)>-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;n<e.length;)switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:u=u||o>0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||o>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=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;t<this._initialClassValues.length;t++)e.push(bt(this._initialClassValues[t]))}if(this._initialStyleValues.length){e.push(bt(2));for(t=0;t<this._initialStyleValues.length;t+=2)e.push(bt(this._initialStyleValues[t]),bt(this._initialStyleValues[t+1]))}},e.prototype.buildDirectiveHostAttrsInstruction=function(e,t){var n=this;return this._hasInitialValues&&this._directiveExpr?{sourceSpan:e,reference:jn.elementHostAttrs,buildParams:function(){var e=[];return n.populateInitialStylingAttrs(e),[n._directiveExpr,la(t,e)]}}:null},e.prototype.buildElementStylingInstruction=function(e,t){var n=this;return this._hasBindings?{sourceSpan:e,reference:jn.elementStyling,buildParams:function(){var e=n._singleStyleInputs?n._singleStyleInputs.map(function(e){return bt(e.name)}):[],r=n._singleClassInputs?n._singleClassInputs.map(function(e){return bt(e.name)}):[],i=0;n._directiveExpr?i=4:n._useDefaultSanitizer?i=3:e.length?i=2:r.length&&(i=1);var o=[];return pa(o,r.length>0,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<i&&e.push(He)}!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(aa||(aa={}));var ha=["var","let","as","null","undefined","true","false","if","else","this"],fa=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new ga(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),da=function(){function e(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return e.prototype.isCharacter=function(e){return this.type==aa.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==aa.Number},e.prototype.isString=function(){return this.type==aa.String},e.prototype.isOperator=function(e){return this.type==aa.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==aa.Identifier},e.prototype.isKeyword=function(){return this.type==aa.Keyword},e.prototype.isKeywordLet=function(){return this.type==aa.Keyword&&"let"==this.strValue},e.prototype.isKeywordAs=function(){return this.type==aa.Keyword&&"as"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==aa.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==aa.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==aa.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==aa.Keyword&&"false"==this.strValue},e.prototype.isKeywordThis=function(){return this.type==aa.Keyword&&"this"==this.strValue},e.prototype.isError=function(){return this.type==aa.Error},e.prototype.toNumber=function(){return this.type==aa.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case aa.Character:case aa.Identifier:case aa.Keyword:case aa.Operator:case aa.String:case aa.Error:return this.strValue;case aa.Number:return this.numValue.toString();default:return null}},e}();function va(e,t){return new da(e,aa.Character,t,String.fromCharCode(t))}function ma(e,t){return new da(e,aa.Operator,0,t)}var ya=new da(-1,aa.Character,0,""),ga=function(){function e(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return e.prototype.advance=function(){this.peek=++this.index>=this.length?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;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),c=new ja(e,t,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new ao(new eo(new Li(0,null==e?0:e.length),r.strings,i),e,t,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=mi);var r=xa(n),i=e.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",t),s.push("$implict"),a.push(u))}return new 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;r<e.length-1;r++){var i=e.charCodeAt(r),o=e.charCodeAt(r+1);if(i===$o&&o==$o&&null==n)return r;n===i?n=null:null==n&&((t=i)===Go||t===zo||t===ms)&&(n=i)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=xa(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i<t;i++)r+=i%2==0?e[i]:""+n.start+e[i]+n.end;return r.length},e}(),ja=function(){function e(e,t,n,r,i,o,s){this.input=e,this.location=t,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return e.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:ya},Object.defineProperty(e.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),e.prototype.span=function(e){return new Li(e,this.inputIndex)},e.prototype.advance=function(){this.index++},e.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},e.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},e.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},e.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},e.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},e.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},e.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},e.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},e.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(e.push(n),this.optionalCharacter(Zo))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Zo););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new Ui(this.span(t)):1==e.length?e[0]:new qi(this.span(t),e)},e.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());e=new Zi(this.span(e.span.start),e,t,n)}while(this.optionalOperator("|"))}return e},e.prototype.parseExpression=function(){return this.parseConditional()},e.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(e,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Ui(this.span(e))}return new zi(this.span(e),t,n,r)}return t},e.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd();e=new to(this.span(e.span.start),"||",e,t)}return e},e.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality();e=new to(this.span(e.span.start),"&&",e,t)}return e},e.prototype.parseEquality=function(){for(var e=this.parseRelational();this.next.type==aa.Operator;){var t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();e=new to(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseRelational=function(){for(var e=this.parseAdditive();this.next.type==aa.Operator;){var t=this.next.strValue;switch(t){case"<":case">":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<this.tokens.length);return new Oa(n,[],this.errors)},e.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new Ri(e,this.input,this.locationText(t),this.location)),this.skip()},e.prototype.locationText=function(e){return void 0===e&&(e=null),null==e&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},e.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(Zo)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new Ri(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},e}(),Aa=function(){function e(){this.errors=[]}return e.check=function(t){var n=new e;return t.visit(n),n.errors},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},e.prototype.visitBinary=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitPipe=function(e,t){this.errors.push("pipes")},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitAll=function(e){var t=this;return e.map(function(e){return e.visit(t)})},e.prototype.visitChain=function(e,t){},e.prototype.visitQuote=function(e,t){},e}(),Ta=(function(){function e(e,t){void 0===t&&(t=-1),this.path=e,this.position=t}Object.defineProperty(e.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e.prototype.parentOf=function(e){return e&&this.path[this.path.indexOf(e)-1]},e.prototype.childOf=function(e){return this.path[this.path.indexOf(e)+1]},e.prototype.first=function(e){for(var t=this.path.length-1;t>=0;t--){var n=this.path[t];if(n instanceof e)return n}},e.prototype.push=function(e){this.path.push(e)},e.prototype.pop=function(){return this.path.pop()}}(),function(){function e(e,t,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 "&#<decimal>;" or "&#x<hex>;" 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<e.length;r++){var i=e[r];n&&n.type==Fa.TEXT&&i.type==Fa.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if($a(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(((e=this._peek)===Yo||bs(e)||gs(e))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var e;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._getLocation=function(){return new ws(this._file,this._index,this._line,this._column)},e.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new Cs(e,t)},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){if(void 0===t&&(t=this._getLocation()),null===this._currentTokenStart)throw new La("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._getSpan(t,t));if(null===this._currentTokenType)throw new La("Programming error - attempted to end a token which has no token type",null,this._getSpan(this._currentTokenStart,t));var n=new Ra(this._currentTokenType,e,new Cs(this._currentTokenStart,t));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},e.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new La(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new qa(n)},e.prototype._advance=function(){if(this._index>=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;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(n),!1;return!0},e.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},e.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(Ua(this._peek),this._getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(Ua(this._peek),this._getSpan(n,n))},e.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},e.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},e.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(Qa),this._peek!=Zo)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=p[n];if(!r)throw this._createError(Ha(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Ka),this._peek!=Zo)throw this._createError(Ua(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(c){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(Ha(u),this._getSpan(e))}},e.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?Fa.ESCAPABLE_RAW_TEXT:Fa.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(t)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(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)<ss||fs<e)&&(e<ts||is<e)&&(e<Jo||e>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];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},e.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===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._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},e.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(Fa.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(Fa.RAW_TEXT);this._advanceIf(Fa.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new ka(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===Fa.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Fa.EXPANSION_FORM_END){var o=new Cs(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Da(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(Ya.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==Fa.EXPANSION_CASE_EXP_START)return this._errors.push(Ya.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Ra(Fa.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new 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;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})},t.prototype.normalizeAnimationStyleValue=function(e,t,n){var r="",i=n.toString().trim(),o=null;if(function(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+t+":"+n)}return{error:o,value:i+r}},t}(du);var Eu=function(){function e(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(e){return o.set(e.name,e)}),this.pipesByName=o}}return Object.defineProperty(e.prototype,"interpolationConfig",{get:function(){return this._interpolationConfig},enumerable:!0,configurable:!0}),e.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},e.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.createDirectiveHostPropertyAsts=function(e,t,n){var r=this,i=this.createBoundHostProperties(e,n);return i&&i.map(function(e){return r.createBoundElementProperty(t,e)})},e.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var s=this._parseTemplateBindings(e,t,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new mo(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},e.prototype._parseTemplateBindings=function(e,t,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(e,t,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(e){e.expression&&r._checkPipes(e.expression,n)}),o.warnings.forEach(function(e){r._reportError(e,n,_s.WARNING)}),o.templateBindings}catch(s){return this._reportError(""+s,n),[]}},e.prototype.parseLiteralAttr=function(e,t,n,r,i){Ou(e)?(e=e.substring(1),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,_s.ERROR),this._parseAnimation(e,t,n,r,i)):i.push(new fo(e,this._exprParser.wrapLiteralPrimitive(t,""),ho.LITERAL_ATTR,n))},e.prototype.parsePropertyBinding=function(e,t,n,r,i,o){var s=!1;e.startsWith("animate-")?(s=!0,e=e.substring("animate-".length)):Ou(e)&&(s=!0,e=e.substring(1)),s?this._parseAnimation(e,t,r,i,o):this._parsePropertyAst(e,this._parseBinding(t,n,r),r,i,o)},e.prototype.parsePropertyInterpolation=function(e,t,n,r,i){var o=this.parseInterpolation(t,n);return!!o&&(this._parsePropertyAst(e,o,n,r,i),!0)},e.prototype._parsePropertyAst=function(e,t,n,r,i){r.push([e,t.source]),i.push(new fo(e,t,ho.DEFAULT,n))},e.prototype._parseAnimation=function(e,t,n,r,i){var o=this._parseBinding(t||"undefined",!1,n);r.push([e,o.source]),i.push(new fo(e,o,ho.ANIMATION,n))},e.prototype._parseBinding=function(e,t,n){var r=(n&&n.start||"(unknown)").toString();try{var i=t?this._exprParser.parseSimpleBinding(e,r,this._interpolationConfig):this._exprParser.parseBinding(e,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(o){return this._reportError(""+o,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},e.prototype.createBoundElementProperty=function(e,t){if(t.isAnimation)return new yo(t.name,4,N.NONE,t.expression,null,t.sourceSpan);var n=null,r=void 0,i=null,o=t.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,t.sourceSpan,!0),s=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("<ng-content> 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<e.length;n++)if(t(e[n]))return n;return-1}(o,hc(e.id,e.templateIndex));if(s>=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+">")},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]="</"+e.name+">");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<n.strings.length-1;u++){var c=n.expressions[u],l=c.split(bc)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new Tn(n.strings[u],t)),r.push(new Mn(c,p,t)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new Tn(n.strings[h],t)),i},e}(),bc=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function _c(e,t){e.i18n=t}var wc=function(){function e(e,t){void 0===e&&(e=mi),void 0===t&&(t=!1),this.interpolationConfig=e,this.keepI18nAttrs=t,this._createI18nMessage=yc(e)}return e.prototype._generateI18nMessage=function(e,t,n){void 0===t&&(t="");var r="string"==typeof t?function(e){var t,n,r,o,s;if(e){var a=e.indexOf(Or),u=e.indexOf(Cr),c=void 0;c=(t=Object(i.f)(a>-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;o<i;o++)r+=""+e[o]+kr(t+o,n);return r+=e[i]}(s,u.bindings.size,c);t.i18nAppendBindings(a),n[r]=bt(l)}}}),n},e.prototype.i18nAllocateRef=function(e){var t,n=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){t=""+(r=Br("EXTERNAL_"))+e+"$$"+this.constantPool.uniqueName(n)}else{var r=Br(n);t=this.constantPool.uniqueName(r)}return pt(t)},e.prototype.i18nUpdateRef=function(e){var t=e.icus,n=e.meta,r=e.isRoot,i=e.isResolved;if(r&&i&&!Pr(n)){var o=e.getSerializedPlaceholders(),s={},a=o.size?Fr(o):{};t.size&&t.forEach(function(e,t){if(1===e.length)a[t]=e[0];else{var n=kr("I18N_EXP_"+t);a[t]=bt(n),s[t]=vt(e)}});var u=void 0;(Array.from(o.values()).some(function(e){return e.length>1})||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<this.bindingLevel||t)&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=pt(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)},e.prototype.restoreViewStatement=function(){return this.restoreViewVariable?[Tc(null,jn.restoreView,[this.restoreViewVariable]).toStmt()]:[]},e.prototype.viewSnapshotStatements=function(){var e=Tc(null,jn.getCurrentView,[]);return this.restoreViewVariable?[this.restoreViewVariable.set(e).toConstDecl()]:[]},e.prototype.isListenerScope=function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel},e.prototype.variableDeclarations=function(){var e=this,t=0;return Array.from(this.map.values()).filter(function(e){return e.declare}).sort(function(e,t){return t.retrievalLevel-e.retrievalLevel||t.priority-e.priority}).reduce(function(n,r){var i=e.bindingLevel-r.retrievalLevel,o=r.declareLocalCallback(e,i-t);return t=i,n.concat(o)},[])},e.prototype.freshReferenceName=function(){for(var e=this;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++},e}();function Mc(e){switch((e=e.slice(1)).length){case 3:return ht(jn.interpolation1).callFn(e);case 5:return ht(jn.interpolation2).callFn(e);case 7:return ht(jn.interpolation3).callFn(e);case 9:return ht(jn.interpolation4).callFn(e);case 11:return ht(jn.interpolation5).callFn(e);case 13:return ht(jn.interpolation6).callFn(e);case 15:return ht(jn.interpolation7).callFn(e);case 17:return ht(jn.interpolation8).callFn(e)}return e.length>=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;h<p.length;h++){var f=p[h],d=e.host.attributes[f];switch(f){case"style":c.registerStyleAttr(d);break;case"class":c.registerClassAttr(d);break;default:l[f]=d}}return r.set("attributes",function(e){var t,n,r=[];try{for(var o=Object(i.h)(Object.getOwnPropertyNames(e)),s=o.next();!s.done;s=o.next()){var a=s.value,u=e[a];r.push(bt(a),bt(u))}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}if(r.length>0)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;o<e.viewQueries.length;o++){var s=e.viewQueries[o],a=Kc(s,t,o);n.push(a.toStmt());var u=i(),c=ht(jn.load).callFn([bt(o)]),l=ht(jn.queryRefresh).callFn([u.set(c)]),p=pt(qr).prop(s.propertyName).set(s.first?u.prop("first"):u);r.push(l.and(p).toStmt())}var h=e.name?e.name+"_Query":null;return yt([new Me(zr,ce),new Me(qr,null)],[Oc(1,n),Oc(2,r)],ae,null,h)}(e,t));var C=e.name,O=C?C+"_Template":null,x=new Set,S=new Set,j=e.changeDetection,A=e.template,T=new xc(t,Nc.ROOT_SCOPE,0,C,null,null,O,e.viewQueries,h,x,e.pipes,S,jn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),D=T.buildTemplateFunction(A.nodes,[]);if(a.set("consts",bt(T.getConstCount())),a.set("vars",bt(T.getVarCount())),a.set("template",D),x.size){var P=vt(Array.from(x));e.wrapDirectivesAndPipesInClosure&&(P=yt([],[new Qe(P)])),a.set("directives",P)}if(S.size){var N=vt(Array.from(S));e.wrapDirectivesAndPipesInClosure&&(N=yt([],[new Qe(N)])),a.set("pipes",N)}if(null===e.encapsulation&&(e.encapsulation=y.Emulated),e.styles&&e.styles.length){var M=(e.encapsulation==y.Emulated?function(e,t,n){var r=new Ss;return e.map(function(e){return r.shimCssText(e,t,n)})}(e.styles,ea,Js):e.styles).map(function(e){return bt(e)});a.set("styles",vt(M))}else e.encapsulation===y.Emulated&&(e.encapsulation=y.None);e.encapsulation!==y.Emulated&&a.set("encapsulation",bt(e.encapsulation)),null!==e.animations&&a.set("data",mt([{key:"animation",value:e.animations,quoted:!1}])),null!=j&&j!==g.Default&&a.set("changeDetection",bt(j));(e.selector||"").replace(/\n/g,"");return{expression:ht(jn.defineComponent).callFn([a.toLiteralMap()]),type:Zc(e,jn.ComponentDefWithMeta),statements:u}}function zc(e,t,n){var r=e.toSummary(),i=un(e.type);return i||Pt("Cannot resolver the name of "+e.type),{name:i,type:t.importExpr(e.type.reference),typeArgumentCount:0,typeSourceSpan:xs(e.isComponent?"Component":"Directive",e.type),selector:e.selector,deps:ri(e.type,t,n),queries:Wc(e.queries,t),lifecycle:{usesOnChanges:e.type.lifecycleHooks.some(function(e){return e==Mo.OnChanges})},host:{attributes:e.hostAttributes,listeners:r.hostListeners,properties:r.hostProperties},inputs:e.inputs,outputs:e.outputs,usesInheritance:!1,exportAs:null,providers:e.providers.length>0?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<arguments.length;t++)e[t]=arguments[t];var n=e[1]||e[2];return Vu(n)?(a.push(o.resolve(s,n)),""):e[0]}),new Lu(u,a));return r.push.apply(r,Object(i.g)(c.styleUrls)),c.style});return new vn({styles:o,styleUrls:r,moduleUrl:n})},e}(),Fl=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Ju(e);switch(n.type){case Bu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Bu.STYLE:var r="";e.children.forEach(function(e){e instanceof Ta&&(r+=e.value)}),this.styles.push(r);break;case Bu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,Ia(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){Ia(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){Ia(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),Rl=[D,T,A,j],Ll=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(Vt(e));return t&&t.some(Vl)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Vt(e));if(n){var r=Bl(n,Vl);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+Lt(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=Bl(t[e],function(e){return F.isTypeOf(e)});n&&(n.bindingPropertyName?i.push(e+": "+n.bindingPropertyName):i.push(e));var r=Bl(t[e],function(e){return R.isTypeOf(e)});r&&(r.bindingPropertyName?o.push(e+": "+r.bindingPropertyName):o.push(e)),t[e].filter(function(e){return L.isTypeOf(e)}).forEach(function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return 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 <ng-container> 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":"</"+e.tag+">"});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,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=e.startSourceSpan.end.offset,o=e.endSourceSpan.start.offset,s=e.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"file":var a=e.attrs.find(function(e){return"target-language"===e.name});a&&(this._locale=a.value),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,'<x> 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:"</"+e.tag+">"}),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,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.end.offset,o=e.endSourceSpan.start.offset,s=e.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"xliff":var a=e.attrs.find(function(e){return"trgLang"===e.name});a&&(this._locale=a.value);var u=e.attrs.find(function(e){return"version"===e.name});if(u){var c=u.value;"2.0"!==c?this._addError(e,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):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,'<ph> 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,'<ph> misses the "equivEnd" attribute')}else this._addError(e,'<ph> 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,"<translationbundle> 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,'<translation> misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new 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,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new 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("")+"</"+r+">"},e.prototype.visitIcuPlaceholder=function(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])},e.prototype._convertToText=function(e){var t,n=this,r=this._digest(e),i=this._mapperFactory?this._mapperFactory(e):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r))t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e};else{if(this._missingTranslationStrategy===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;a<e.length;a++){var u=e[a];u&&("Optional"===u.ngMetadataName?s|=8:"SkipSelf"===u.ngMetadataName?s|=4:"Self"===u.ngMetadataName?s|=2:i="Inject"===u.ngMetadataName?u.token:u)}return r="string"==typeof i?bt(i):i===n.tokenInjector?ht(Xt.INJECTOR):t.importExpr(i),o=0!==s?[r,bt(s)]:[r],ht(Xt.inject).callFn(o)})},e.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=ht(Xt.inject).callFn([t.importExpr(e.useExisting)]);else if(e.useFactory){var r=e.deps||[];if(!(r.length>0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=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 n<u?e.push(""+kp(t)):n==u?e.push("?"+kp(t)+"?"):n==u+1&&e.push("..."),e},[]).join(", ");return void s._reportError(Nt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),o)}c=new En(a,{useClass:a})}c.token===s._reflector.resolveExternalReference(Xt.ANALYZE_FOR_ENTRY_COMPONENTS)?t.push.apply(t,Object(i.g)(s._getEntryComponentsFromProvider(c,o))):r.push(s.getProviderMetadata(c))}}),r},e.prototype._validateProvider=function(e){e.hasOwnProperty("useClass")&&null==e.useClass&&this._reportError(Nt("Invalid provider for "+kp(e.provide)+". useClass cannot be "+e.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},e.prototype._getEntryComponentsFromProvider=function(e,t){var n,r,i=this,o=[],s=[];return e.useFactory||e.useExisting||e.useClass?(this._reportError(Nt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(n=e.useValue,r=s,Ot(n,new Mp,r),s.forEach(function(e){var t=i._getEntryComponentMetadata(e.reference,!1);t&&o.push(t)}),o):(this._reportError(Nt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[])},e.prototype._getEntryComponentMetadata=function(e,t){void 0===t&&(t=!0);var n=this.getNonNormalizedDirectiveMetadata(e);if(n&&n.metadata.isComponent)return{componentType:e,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(e,sn.Directive);if(r&&r.isComponent)return{componentType:e,componentFactory:r.componentFactory};if(t)throw Nt(e.name+" cannot be used as an entry component.");return null},e.prototype._getInjectableTypeMetadata=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,sn.Injectable);return n?n.type:this._getTypeMetadata(e,t)},e.prototype.getProviderMetadata=function(e){var t=void 0,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableTypeMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):void 0,deps:t,multi:e.multi}},e.prototype._getQueriesMetadata=function(e,t,n){var r=this,i=[];return Object.keys(e).forEach(function(o){var s=e[o];s.isViewQuery===t&&i.push(r._getQueryMetadata(s,o,n))}),i},e.prototype._queryVarBindings=function(e){return e.split(/\s*,\s*/)},e.prototype._getQueryMetadata=function(e,t,n){var r,i=this;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map(function(e){return i._getTokenMetadata(e)}):e.selector?r=[this._getTokenMetadata(e.selector)]:(this._reportError(Nt("Can't construct a query for the property \""+t+'" of "'+kp(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null}},e.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},e}();function Pp(e){return(t=function e(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=Vt(t[r]);Array.isArray(i)?e(i,n):n.push(i)}return n}(e))?Array.from(new Set(t)):[];var t}function Np(e){return e instanceof tn||e instanceof Q}var Mp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.visitOther=function(e,t){t.push({reference:e})},t}(jt);function kp(e){return e instanceof tn?e.name+" in "+e.filePath:Lt(e)}var Ip=function(e){function t(t,n){return e.call(this,n,t)||this}return Object(i.c)(t,e),t}(Os),Fp=function(){return function(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach(function(e){return Hp(n,{meta:e,queryId:t++})}),n}(t),this.viewProviders=new Map,t.viewProviders.forEach(function(e){null==n.viewProviders.get(dn(e.token))&&n.viewProviders.set(dn(e.token),!0)})}}(),Rp=function(){function e(e,t,n,r,i,o,s,a,u){var c=this;this.viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(e){return c._attrs[e.name]=e.value});var l,p,h,f,d=r.map(function(e){return e.directive});if(this._allProviders=(l=d,p=u,h=e.errors,f=new Map,l.forEach(function(e){Up([{token:{identifier:e.type},useClass:e.type}],e.isComponent?yl.Component:yl.Directive,!0,p,h,f,!1)}),l.filter(function(e){return e.isComponent}).concat(l.filter(function(e){return!e.isComponent})).forEach(function(e){Up(e.providers,yl.PublicService,!1,p,h,f,!1),Up(e.viewProviders,yl.PrivateService,!1,p,h,f,!1)}),f),this._contentQueries=function(e,t){var n=e,r=new Map;return t.forEach(function(e,t){e.queries&&e.queries.forEach(function(e){return Hp(r,{meta:e,queryId:n++})})}),r}(a,d),Array.from(this._allProviders.values()).forEach(function(e){c._addQueryReadsTo(e.token,e.token,c._queriedTokens)}),s){var v=en(this.viewContext.reflector,Xt.TemplateRef);this._addQueryReadsTo(v,v,this._queriedTokens)}o.forEach(function(e){var t=e.value||en(c.viewContext.reflector,Xt.ElementRef);c._addQueryReadsTo({value:e.name},t,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Xt.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||c._queriedTokens.get(dn(e.token)))&&c._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return e.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(e.prototype,"transformProviders",{get:function(){var e=[],t=[];return this._transformedProviders.forEach(function(n){n.eager?t.push(n):e.push(n)}),e.concat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map(function(e){return e.token.identifier}),t=this._directiveAsts.slice();return t.sort(function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.directive.type)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach(function(t){e.push.apply(e,Object(i.g)(t))}),e},enumerable:!0,configurable:!0}),e.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach(function(e){var r=e.meta.read||t,i=dn(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:e.queryId,value:r})})},e.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,o=0;null!==r;)(t=r._contentQueries.get(dn(e)))&&n.push.apply(n,Object(i.g)(t.filter(function(e){return e.meta.descendants||o<=1}))),r._directiveAsts.length>0&&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 "=<number>" 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("<ng-content> 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;u<a.length;u++){"*"===a[u]?o=u:i.addSelectables(_.parse(a[u]),u)}return new e(t,i,o,r)},e.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,function(e,n){t.push(n)}),t.sort(),null!=this._wildcardNgContentIndex&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},e}();function yh(e,t){var n=new _,r=o(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var s=t[i][0],a=o(s)[1],u=t[i][1];if(n.addAttribute(a,u),s.toLowerCase()==uh)u.trim().split(/\s+/g).forEach(function(e){return n.addClassName(e)})}return n}var gh=new mh(!0,new w,null,null),bh=new dh;function _h(e){return e instanceof Ta&&0==e.value.trim().length}function wh(e){var t=new Map;return e.forEach(function(e){t.get(e.type.reference)||t.set(e.type.reference,e)}),Array.from(t.values())}function Eh(e){return e instanceof ao&&(e=e.ast),e instanceof Ui}!function(){function e(e,t){this.options=e,this.reflector=t}e.prototype.compileComponent=function(e,t,n,r,i,o){var s=this,a=new Map;r.forEach(function(e){return a.set(e.name,e.type.reference)});var u=0,c=function(e,n){var r=u++;return new Oh(s.options,s.reflector,i,e,t.type.reference,t.isHost,r,a,n,o,c)},l=c(null,[]);return l.visitAll([],n),l.build(e)}}();var Ch=new(function(){function e(){}return e.prototype.getLocal=function(e){return e===go.event.name?pt("_any"):null},e}()),Oh=function(){function e(e,t,n,r,i,o,s,a,u,c,l){this.options=e,this.reflector=t,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=s,this.pipes=a,this.guards=u,this.ctx=c,this.viewBuilderFactory=l,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return e.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof tn?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},e.prototype.getTypeGuardExpressions=function(e){var t,n,r,o,s=Object(i.g)(this.guards);try{for(var a=Object(i.h)(e.directives),u=a.next();!u.done;u=a.next()){var c=u.value;try{for(var l=Object(i.h)(c.inputs),p=l.next();!p.done;p=l.next()){var h=p.value,f=c.directive.guards[h.directiveName];if(f){var d="UseIf"===f;s.push({guard:f,useIf:d,expression:{context:this.component,value:h.value}})}}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}}catch(m){t={error:m}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return s},e.prototype.visitAll=function(e,t){this.variables=e,Nl(this,t)},e.prototype.build=function(e,t){var n,r,o=this;void 0===t&&(t=[]),this.children.forEach(function(n){return n.build(e,t)});var s=[pt("_any").set(He).toDeclStmt(se)],a=0;if(this.updates.forEach(function(e){var t=o.preprocessUpdateExpression(e),n=t.sourceSpan,r=t.context,u=t.value,c=""+a++,l=xo(r===o.component?o:Ch,pt(o.getOutputVar(r)),u,c,Eo.General),p=l.stmts,h=l.currValExpr;p.push(new Ke(h)),s.push.apply(s,Object(i.g)(p.map(function(e){return ut(e,n)})))}),this.actions.forEach(function(e){var t=e.sourceSpan,n=e.context,r=e.value,u=""+a++,c=_o(n===o.component?o:Ch,pt(o.getOutputVar(n)),r,u).stmts;s.push.apply(s,Object(i.g)(c.map(function(e){return ut(e,t)})))}),this.guards.length){var u=void 0;try{for(var c=Object(i.h)(this.guards),l=c.next();!l.done;l=c.next()){var p=l.value,h=this.preprocessUpdateExpression(p.expression),f=h.context,d=h.value,v=""+a++,m=xo(f===this.component?this:Ch,pt(this.getOutputVar(f)),d,v,Eo.TrySimple),y=m.stmts,g=m.currValExpr;if(0==y.length){var b=p.useIf?g:this.ctx.importExpr(p.guard).callFn([g]);u=u?u.and(b):b}}}catch(E){n={error:E}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}u&&(s=[new et(u,s)])}var _="_View_"+e+"_"+this.embeddedViewIndex,w=new Ge(_,[],s);return t.push(w),t},e.prototype.visitBoundText=function(e,t){var n=this;e.value.ast.expressions.forEach(function(t){return n.updates.push({context:n.component,value:t,sourceSpan:e.sourceSpan})})},e.prototype.visitEmbeddedTemplate=function(e,t){if(this.visitElementOrTemplate(e),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(e),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(e.variables,e.children)}},e.prototype.visitElement=function(e,t){var n=this;this.visitElementOrTemplate(e),e.inputs.forEach(function(e){n.updates.push({context:n.component,value:e.value,sourceSpan:e.sourceSpan})}),Nl(this,e.children)},e.prototype.visitElementOrTemplate=function(e){var t=this;e.directives.forEach(function(e){t.visitDirective(e)}),e.references.forEach(function(e){var n=null;n=e.value&&e.value.identifier&&t.options.fullTemplateTypeCheck?e.value.identifier.reference:J.Dynamic,t.refOutputVars.set(e.name,n)}),e.outputs.forEach(function(e){t.actions.push({context:t.component,value:e.handler,sourceSpan:e.sourceSpan})})},e.prototype.visitDirective=function(e){var t=this,n=e.directive.type.reference;e.inputs.forEach(function(e){return t.updates.push({context:t.component,value:e.value,sourceSpan:e.sourceSpan})}),this.options.fullTemplateTypeCheck&&(e.hostProperties.forEach(function(e){return t.updates.push({context:n,value:e.value,sourceSpan:e.sourceSpan})}),e.hostEvents.forEach(function(e){return t.actions.push({context:n,value:e.handler,sourceSpan:e.sourceSpan})}))},e.prototype.getLocal=function(e){if(e==go.event.name)return pt(this.getOutputVar(J.Dynamic));for(var t=this;t;t=t.parent){var n=void 0;if(null==(n=t.refOutputVars.get(e)))t.variables.find(function(t){return t.name===e})&&(n=J.Dynamic);if(null!=n)return pt(this.getOutputVar(n))}return null},e.prototype.pipeOutputVar=function(e){var t=this.pipes.get(e);if(!t)throw new Error("Illegal State: Could not find pipe "+e+" in template of "+this.component);return this.getOutputVar(t)},e.prototype.preprocessUpdateExpression=function(e){var t=this;return{sourceSpan:e.sourceSpan,context:e.context,value:wo({createLiteralArrayConverter:function(e){return function(e){var n=vt(e);return t.options.fullTemplateTypeCheck?n:n.cast(se)}},createLiteralMapConverter:function(e){return function(n){var r=mt(e.map(function(e,t){return{key:e.key,value:n[t],quoted:e.quoted}}));return t.options.fullTemplateTypeCheck?r:r.cast(se)}},createPipeConverter:function(e,n){return function(n){return(t.options.fullTemplateTypeCheck?pt(t.pipeOutputVar(e)):pt(t.getOutputVar(J.Dynamic))).callMethod("transform",n)}}},e.value)}},e.prototype.visitNgContent=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e}(),xh="class",Sh="style",jh=function(){return function(e,t){this.viewClassVar=e,this.rendererTypeVar=t}}(),Ah=function(){function e(e){this._reflector=e}return e.prototype.compileComponent=function(e,t,n,r,o){var s,a=this,u=0,c=function e(t,n){void 0===n&&(n=new Map);t.forEach(function(t){var r=new Set,i=new Set,o=void 0;t instanceof Sl?(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return r.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches):t instanceof jl&&(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return i.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches),o&&o.forEach(function(e){return r.add(e.queryId)}),i.forEach(function(e){return r.delete(e)}),n.set(t,{staticQueryIds:r,dynamicQueryIds:i})});return n}(n),l=void 0;if(!t.isHost){var p=t.template,h=[];p.animations&&p.animations.length&&h.push(new Ve("animation",dp(e,p.animations),!0));var f=pt(pn(t.type.reference));l=f.name,e.statements.push(f.set(ht(Xt.createRendererType2).callFn([new Be([new Ve("encapsulation",bt(p.encapsulation),!1),new Ve("styles",r,!1),new Ve("data",new Be(h),!1)])])).toDeclStmt(ft(Xt.RendererType2),[Ee.Final,Ee.Exported]))}var d=function(n){var r=u++;return new Ih(a._reflector,e,n,t,r,o,c,d)},v=d(null);return v.visitAll([],n),(s=e.statements).push.apply(s,Object(i.g)(v.build())),new jh(v.viewName,l)},e}(),Th=pt("_l"),Dh=pt("_v"),Ph=pt("_ck"),Nh=pt("_co"),Mh=pt("en"),kh=pt("ad"),Ih=function(){function e(e,t,n,r,i,o,s,a){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?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<t.length&&i;o++)i=i[t[o]];return new $h(e,i)}return r.statics&&1===t.length?new $h(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new $h(e,t.metadata):null},e.prototype.getStaticSymbol=function(e,t,n){return this.staticSymbolCache.get(e,t,n)},e.prototype.hasDecorators=function(e){var t=this.getModuleMetadata(e);return!!t.metadata&&Object.keys(t.metadata).some(function(e){var n=t.metadata[e];return n&&"class"===n.__symbolic&&n.decorators})},e.prototype.getSymbolsOf=function(e){var t=this.summaryResolver.getSymbolsOf(e);if(t)return t;this._createSymbolsOf(e);var n=[];return this.resolvedSymbols.forEach(function(t){t.symbol.filePath===e&&n.push(t.symbol)}),n},e.prototype._createSymbolsOf=function(e){var t,n,r=this;if(!this.resolvedFilePaths.has(e)){this.resolvedFilePaths.add(e);var o=[],s=this.getModuleMetadata(e);if(s.importAs&&this.knownFileNameToModuleNames.set(e,s.importAs),s.exports){var a=function(t){if(t.export)t.export.forEach(function(n){var i,s=i=Yh(i="string"==typeof n?n:n.as);"string"!=typeof n&&(s=Yh(n.name));var a=r.resolveModule(t.from,e);if(a){var u=r.getStaticSymbol(a,s),c=r.getStaticSymbol(e,i);o.push(r.createExport(c,u))}});else{var n=u.resolveModule(t.from,e);if(n)u.getSymbolsOf(n).forEach(function(t){var n=r.getStaticSymbol(e,t.name);o.push(r.createExport(n,t))})}},u=this;try{for(var c=Object(i.h)(s.exports),l=c.next();!l.done;l=c.next()){a(l.value)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}}if(s.metadata){var p=new Set(Object.keys(s.metadata).map(Yh)),h=s.origins||{};Object.keys(s.metadata).forEach(function(t){var n=s.metadata[t],i=Yh(t),a=r.getStaticSymbol(e,i),u=h.hasOwnProperty(t)&&h[t];if(u){var c=r.resolveModule(u,e);c?r.symbolResourcePaths.set(a,c):r.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+r.host.getOutputName(e)))}o.push(r.createResolvedSymbol(a,e,p,n))})}o.forEach(function(e){return r.resolvedSymbols.set(e.symbol,e)}),this.symbolFromFile.set(e,o.map(function(e){return e.symbol}))}},e.prototype.createResolvedSymbol=function(e,t,n,r){var o,s=this,a=Qh.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!a&&r&&"class"===r.__symbolic){var u={__symbolic:"class",arity:r.arity};return new $h(e,u)}var c=function(){return o||(o=s.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[\/\\]/,""))),o},l=this,p=Ot(r,new(function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return Object(i.c)(o,r),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,Object(i.g)(o.parameters||[]));var p=r.prototype.visitStringMap.call(this,o,s);return s.length=u,p}if("reference"!==a)return"error"===a?Object(i.a)({},o,{fileName:c()}):r.prototype.visitStringMap.call(this,o,s);var h=o.module,f=o.name?Yh(o.name):o.name;if(!f)return null;var d=void 0;return h?(d=l.resolveModule(h,e.filePath))?{__symbolic:"resolved",symbol:l.getStaticSymbol(d,f),line:o.line,character:o.character,fileName:c()}:{__symbolic:"error",message:"Could not resolve "+h+" relative to "+l.host.getMetadataFor(e.filePath)+".",line:o.line,character:o.character,fileName:c()}:s.indexOf(f)>=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<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/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;m<f.length;m++)v.define(f[m],u[m]);var y,g=s;try{s=v.done(),y=p(e,l)}finally{s=g}return y}}finally{a.delete(e)}}if(0===r)return gf;var b=void 0;if(c&&"resolved"==c.__symbolic){var _=c.line,w=c.character,E=c.fileName;null!=E&&null!=_&&null!=w&&(b={fileName:E,line:_,column:w})}o.error({message:Pf,context:e,value:n,position:b},t)}(S,c(S),B,n.expression)}return gf;case"error":var q=n.message;return null!=n.line?o.error({message:q,context:n.context,value:n,position:{fileName:n.fileName,line:n.line,column:n.character}},t):o.error({message:q,context:n.context},t),gf;case"ignore":return n}return null}return function(e,t){if(!e)return{};var n={};return Object.keys(e).forEach(function(r){var i=t(e[r],r);Ef(i)||(yf.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(n,function(i,s){if(wf.has(s)){if(s===bf&&_f in n){var a=h(n.provide);if(a===o.ROUTES||a==o.ANALYZE_FOR_ENTRY_COMPONENTS)return h(i)}return function(n){return e(t,n,r,u+1)}(i)}return h(i)})}return gf}return h(n)}(e,t,0,n?1:0)}catch(u){if(!this.errorRecorder)throw Lf(u,e);this.reportError(u,e)}if(!Ef(r))return r},e.prototype.getTypeMetadata=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(Lf(e,t),t&&t.filePath||n)},e.prototype.error=function(e,t){var n=e.message,r=e.summary,i=e.advise,o=e.position,s=e.context,a=(e.value,e.symbol),u=e.chain;this.reportError(xf(n,r,i,o,a,s,u),t)},e}(),Of="ngMetadataError";function xf(e,t,n,r,i,o,s){var a=Nt(e);return a[Of]=!0,n&&(a.advise=n),r&&(a.position=r),t&&(a.summary=t),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function Sf(e){return!!e[Of]}var jf="Reference to non-exported class",Af="Variable not initialized",Tf="Destructuring not supported",Df="Could not resolve type",Pf="Function call not supported",Nf="Reference to a local symbol",Mf="Lambda not supported";function kf(e){return null===e||"function"!=typeof e&&"object"!=typeof e}var If=function(){function e(){}return e.build=function(){var t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new 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;s<e.length;s++)o.vars.set(e[s],t[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}var zf=function(){function e(e,t,n,r){this.parent=e,this.instance=t,this.className=n,this.vars=r,this.exports=[]}return e.prototype.createChildWihtLocalVars=function(){return new e(this,this.instance,this.className,new Map)},e}(),Wf=function(){return function(e){this.value=e}}();var Gf=function(){function e(e){this.reflector=e}return e.prototype.debugAst=function(e){return function(e){var t=new Jp,n=ji.createRoot();return(Array.isArray(e)?e:[e]).forEach(function(e){if(e instanceof ze)e.visitStatement(t,n);else if(e instanceof de)e.visitExpression(t,n);else{if(!(e instanceof ee))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}}),n.toSource()}(e)},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value?e.value.visitExpression(this,t):void 0;return t.vars.set(e.name,n),e.hasModifier(Ee.Exported)&&t.exports.push(e.name),null},e.prototype.visitWriteVarExpr=function(e,t){for(var n=e.value.visitExpression(this,t),r=t;null!=r;){if(r.vars.has(e.name))return r.vars.set(e.name,n),n;r=r.parent}throw new Error("Not declared variable "+e.name)},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot interpret a WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){throw new Error("Cannot interpret a TypeofExpr")},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case fe.Super:return t.instance.__proto__;case fe.This:return t.instance;case fe.CatchError:n=Qf;break;case fe.CatchStack:n=$f;break;default:throw new Error("Unknown builtin variable "+e.builtin)}for(var r=t;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},e.prototype.visitWriteKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return n[r]=i,i},e.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},e.prototype.visitInvokeMethodExpr=function(e,t){var n,r=e.receiver.visitExpression(this,t),o=this.visitAllExpressions(e.args,t);if(null!=e.builtin)switch(e.builtin){case ve.ConcatArray:n=r.concat.apply(r,Object(i.g)(o));break;case ve.SubscribeObservable:n=r.subscribe({next:o[0]});break;case ve.Bind:n=r.bind.apply(r,Object(i.g)(o));break;default:throw new Error("Unknown builtin method "+e.builtin)}else n=r[e.name].apply(r,o);return n},e.prototype.visitInvokeFunctionExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.fn;return r instanceof me&&r.builtin===fe.Super?(t.instance.constructor.prototype.constructor.apply(t.instance,n),null):e.fn.visitExpression(this,t).apply(null,n)},e.prototype.visitReturnStmt=function(e,t){return new Wf(e.value.visitExpression(this,t))},e.prototype.visitDeclareClassStmt=function(e,t){var n=function(e,t,n){var r={};e.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new zf(t,this,e.name,t.vars);return qf([],[],i.body,r,n)}}}),e.methods.forEach(function(i){var o=i.params.map(function(e){return e.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new zf(t,this,e.name,t.vars);return qf(o,r,i.body,a,n)}}});var i=e.constructorMethod.params.map(function(e){return e.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new zf(t,this,e.name,t.vars);e.fields.forEach(function(e){r[e.name]=void 0}),qf(i,o,e.constructorMethod.body,a,n)},s=e.parent?e.parent.visitExpression(n,t):Object;return o.prototype=Object.create(s.prototype,r),o}(e,t,this);return t.vars.set(e.name,n),e.hasModifier(Ee.Exported)&&t.exports.push(e.name),null},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):null!=e.falseCase?this.visitAllStatements(e.falseCase,t):null},e.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(Qf,r),n.vars.set($f,r.stack),this.visitAllStatements(e.catchStmts,n)}},e.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},e.prototype.visitCommentStmt=function(e,t){return null},e.prototype.visitJSDocCommentStmt=function(e,t){return null},e.prototype.visitInstantiateExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.classExpr.visitExpression(this,t);return new(r.bind.apply(r,Object(i.g)([void 0],n)))},e.prototype.visitLiteralExpr=function(e,t){return e.value},e.prototype.visitExternalExpr=function(e,t){return this.reflector.resolveExternalReference(e.value)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):null!=e.falseCase?e.falseCase.visitExpression(this,t):null},e.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},e.prototype.visitFunctionExpr=function(e,t){return Kf(e.params.map(function(e){return e.name}),e.statements,t,this)},e.prototype.visitDeclareFunctionStmt=function(e,t){var n=e.params.map(function(e){return e.name});return t.vars.set(e.name,Kf(n,e.statements,t,this)),e.hasModifier(Ee.Exported)&&t.exports.push(e.name),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n=this,r=function(){return e.lhs.visitExpression(n,t)},i=function(){return e.rhs.visitExpression(n,t)};switch(e.operator){case te.Equals:return r()==i();case te.Identical:return r()===i();case te.NotEquals:return r()!=i();case te.NotIdentical:return r()!==i();case te.And:return r()&&i();case te.Or:return r()||i();case te.Plus:return r()+i();case te.Minus:return r()-i();case te.Divide:return r()/i();case te.Multiply:return r()*i();case te.Modulo:return r()%i();case te.Lower:return r()<i();case te.LowerEquals:return r()<=i();case te.Bigger:return r()>i();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;n<e.length;n++){var r=e[n].visitStatement(this,t);if(r instanceof Wf)return r}return null},e}();function Kf(e,t,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return qf(e,i,t,n,r)}}var Qf="error",$f="stack",Zf=function(){function e(e,t,n,r,i,o,s,a,u,c){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=s,this._compilerConfig=a,this._console=u,this.getExtraNgModuleProviders=c,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return e.prototype.compileModuleSync=function(e){return At(this._compileModuleAndComponents(e,!0))},e.prototype.compileModuleAsync=function(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))},e.prototype.compileModuleAndAllComponentsSync=function(e){return At(this._compileModuleAndAllComponents(e,!0))},e.prototype.compileModuleAndAllComponentsAsync=function(e){return Promise.resolve(this._compileModuleAndAllComponents(e,!1))},e.prototype.getComponentFactory=function(e){return this._metadataResolver.getDirectiveSummary(e).componentFactory},e.prototype.loadAotSummaries=function(e){this.clearCache(),this._addAotSummaries(e)},e.prototype._addAotSummaries=function(e){if(!this._addedAotSummaries.has(e)){this._addedAotSummaries.add(e);for(var t=e(),n=0;n<t.length;n++){var r=t[n];if("function"==typeof r)this._addAotSummaries(r);else{var i=r;this._summaryResolver.addSummary({symbol:i.type.reference,metadata:null,type:i})}}}},e.prototype.hasAotSummary=function(e){return!!this._summaryResolver.resolveSummary(e)},e.prototype._filterJitIdentifiers=function(e){var t=this;return e.map(function(e){return e.reference}).filter(function(e){return!t.hasAotSummary(e)})},e.prototype._compileModuleAndComponents=function(e,t){var n=this;return Tt(this._loadModules(e,t),function(){return n._compileComponents(e,null),n._compileModule(e)})},e.prototype._compileModuleAndAllComponents=function(e,t){var n=this;return Tt(this._loadModules(e,t),function(){var t=[];return n._compileComponents(e,t),{ngModuleFactory:n._compileModule(e),componentFactories:t}})},e.prototype._loadModules=function(e,t){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(e);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(e){var i=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(e){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,e,t);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(e){return n._metadataResolver.getOrLoadPipeMetadata(e)})}),Dt(r)},e.prototype._compileModule=function(e){var t=this._compiledNgModuleCache.get(e);if(!t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this.getExtraNgModuleProviders(n.type.reference),i=Jf(),o=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(function(e){return On(un(e.type)+"/module.ngfactory.js")}(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,t)}return t},e.prototype._compileComponents=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(e){var r=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(e){i.set(e,r);var s=n._metadataResolver.getDirectiveMetadata(e);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),t)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),t.push(s.componentFactory)}})}),s.forEach(function(e){var t=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(t.declaredDirectives).forEach(function(e){var t=n._metadataResolver.getDirectiveMetadata(e);t.isComponent&&t.entryComponents.forEach(function(e){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))})}),t.entryComponents.forEach(function(e){if(!n.hasAotSummary(e.componentType)){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))}})}),o.forEach(function(e){return n._compileTemplate(e)})},e.prototype.clearCacheFor=function(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)},e.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},e.prototype._createCompiledHostTemplate=function(e,t){if(!t)throw new Error("Component "+Lt(e)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(e);if(!n){var r=this._metadataResolver.getDirectiveMetadata(e);Xf(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new Yf(!0,r.type,i,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n},e.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.reference);return n||(Xf(e),n=new Yf(!1,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n},e.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.compMeta,r=new Map,i=Jf(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(e){var i=t._styleCompiler.compileStyles(Jf(),n,e);r.set(e.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);e.ngModule.transitiveModule.pipes.map(function(e){return t._metadataResolver.getPipeSummary(e.reference)});var s=this._parseTemplate(n,e.ngModule,e.directives),a=s.template,u=s.pipes,c=this._viewCompiler.compileComponent(i,n,a,pt(o.stylesVar),u),l=this._interpretOrJit(function(e,t){return On(un(e)+"/"+un(t.type)+".ngfactory.js")}(e.ngModule.type,e.compMeta),i.statements),p=l[c.viewClassVar],h=l[c.rendererTypeVar];e.compiled(p,h)}},e.prototype._parseTemplate=function(e,t,n){var r=this,i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)});return this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,xn(t.type,e,e.template),i)},e.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach(function(e,r){var i=t.get(e.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,t);e.setValue(o)})},e.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._interpretOrJit((n=e.meta,r=this._sharedStylesheetCount++,i=n.moduleUrl.split(/\/\\/g),On("css/"+r+i[i.length-1]+".ngstyle.js")),e.outputCtx.statements)[e.stylesVar];var n,r,i},e.prototype._interpretOrJit=function(e,t){return this._compilerConfig.useJit?Pi(e,t,this._reflector,this._compilerConfig.jitDevMode):function(e,t){var n=new zf(null,null,null,new Map);new Gf(t).visitAllStatements(e,n);var r={};return n.exports.forEach(function(e){r[e]=n.vars.get(e)}),r}(t,this._reflector)},e}(),Yf=function(){function e(e,t,n,r,i){this.isHost=e,this.compType=t,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return e.prototype.compiled=function(e,t){for(var n in this._viewClass=e,this.compMeta.componentViewType.setDelegate(e),t)this.compMeta.rendererType[n]=t[n];this.isCompiled=!0},e}();function Xf(e){if(!e.isComponent)throw new Error("Could not compile '"+un(e.type)+"' because it is not a component.")}function Jf(){return{statements:[],genFilePath:"",importExpr:function(e){return ht({name:un(e),moduleName:null,runtime:e})},constantPool:new Kt}}var ed=function(){return function(){}}();var td=function(){function e(e){void 0===e&&(e=null),this._packagePrefix=e}return e.prototype.resolve=function(e,t){var n=t;null!=e&&e.length>0&&(n=function(e,t){var n=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;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(c),e[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;n<t;n++){var r=e[n];this.add(Object(y.a)(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===b?--this.toRespond:this.toRespond:0;o[n]=t,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(m.a),E=n("G5J1");function C(e){return new p.a(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(a.a)(n):Object(E.b)()).subscribe(t)})}var O=n("67Y/"),x=n("Zn8D");function S(){return Object(x.a)(1)}var j=n("VnD/"),A=n("FFOo");function T(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}T.prototype=Object.create(Error.prototype);var D=T;function P(e){return function(t){return 0===e?Object(E.b)():t.lift(new N(e))}}var N=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 M(e,this.total))},e}(),M=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(A.a),k=n("+umK"),I=n("2Bdj");function F(e,t,n){return function(r){return r.lift(new R(e,t,n))}}var R=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new L(e,this.nextOrObserver,this.error,this.complete))},e}(),L=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._tapNext=k.a,o._tapError=k.a,o._tapComplete=k.a,o._tapError=r||k.a,o._tapComplete=i||k.a,Object(I.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||k.a,o._tapError=n.error||k.a,o._tapComplete=n.complete||k.a),o}return r.c(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(A.a),V=function(e){return void 0===e&&(e=B),F({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function B(){return new f}function U(e){return void 0===e&&(e=null),function(t){return t.lift(new H(e))}}var H=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new q(e,this.defaultValue))},e}(),q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.c(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(A.a),z=n("mChF");function W(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,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<arguments.length;t++)e[t]=arguments[t];return 1===e.length||2===e.length&&Object(d.a)(e[1])?Object(a.a)(e[0]):S()(s.a.apply(void 0,e))}function ue(e,t){var n=!1;return arguments.length>=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:"<router-outlet></router-outlet>"})],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.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}var Ue=function(){return function(e,t){this.routes=e,this.module=t}}();function He(e,t){void 0===t&&(t="");for(var n=0;n<e.length;n++){var r=e[n];qe(r,ze(t,r))}}function qe(e,t){if(!e)throw new Error("\n Invalid configuration of route '"+t+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(e))throw new Error("Invalid configuration of route '"+t+"': Array cannot be specified");if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==Ie)throw new Error("Invalid configuration of route '"+t+"': a componentless route without children or loadChildren cannot have a named outlet set");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+t+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+t+"': redirectTo and component cannot be used together");if(e.path&&e.matcher)throw new Error("Invalid configuration of route '"+t+"': path and matcher cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+t+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '"+t+"': routes must have either a path or a matcher specified");if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '"+t+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch){throw new Error("Invalid configuration of route '{path: \""+t+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+t+"': pathMatch can only be set to 'prefix' or 'full'");e.children&&He(e.children,t)}function ze(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:e+"/"+t.path:"":e}function We(e){var t=e.children&&e.children.map(We),n=t?Object(r.a)({},e,{children:t}):Object(r.a)({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Ie&&(n.component=ke),n}function Ge(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(e[n=r[o]]!==t[n])return!1;return!0}function Ke(e){return Array.prototype.concat.apply([],e)}function Qe(e){return e.length>0?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;n<e.length;++n)if(!Ge(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Ge(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Mt(e,t){var n,r,i=Ge(e.params,t.params)&&(n=e.url,r=t.url,nt(n,r)&&n.every(function(e,t){return Ge(e.parameters,r[t].parameters)})),o=!e.parent!=!t.parent;return i&&!o&&(!e.parent||Mt(e.parent,t.parent))}function kt(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){(u=n.value)._futureSnapshot=t.value;var i=function(e,t,n){return t.children.map(function(t){var i,o;try{for(var s=Object(r.h)(n.children),a=s.next();!a.done;a=s.next()){var u=a.value;if(e.shouldReuseRoute(u.value.snapshot,t.value))return kt(e,t,u)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return kt(e,t)})}(e,t,n);return new Et(u,i)}var o=e.retrieve(t.value);if(o){var s=o.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(t,s),s}var a,u=(a=t.value,new St(new l(a.url),new l(a.params),new l(a.queryParams),new l(a.fragment),new l(a.data),a.outlet,a.component,a));i=t.children.map(function(t){return kt(e,t)});return new Et(u,i)}function It(e,t,n,i,o){if(0===n.length)return Rt(t.root,t.root,t,i,o);var s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var s={};return $e(i.outlets,function(e,t){s[t]="string"==typeof e?e.split("/"):e}),Object(r.g)(e,[{outlets:s}])}if(i.segmentPath)return Object(r.g)(e,[i.segmentPath])}return"string"!=typeof i?Object(r.g)(e,[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):Object(r.g)(e,[i])},[]);return new Lt(n,t,i)}(n);if(s.toRoot())return Rt(t.root,new et([],{}),t,i,o);var a=function(e,t,n){if(e.isAbsolute)return new Vt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Vt(n.snapshot._urlSegment,!0,0);var r=Ft(e.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return function(e,t,n){var r=e,i=t,o=n;for(;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new 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<e.segments.length;){if(r>=n.length)return o;var s=e.segments[i],a=Bt(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!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.pathIndex<e.segments.length){var o=new et(e.segments.slice(0,r.pathIndex),{});return o.children[Ie]=new et(e.segments.slice(r.pathIndex),e.children),Ht(o,0,i)}return r.match&&0===i.length?new et(e.segments,{}):r.match&&!e.hasChildren()?qt(e,t,n):r.match?Ht(e,0,i):qt(e,t,n)}function Ht(e,t,n){if(0===n.length)return new et(e.segments,{});var r=function(e){var t,n;return"object"!=typeof e[0]?((t={})[Ie]=e,t):void 0===e[0].outlets?((n={})[Ie]=e,n):e[0].outlets}(n),i={};return $e(r,function(n,r){null!==n&&(i[r]=Ut(e.children[r],t,n))}),$e(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new et(e.segments,i)}function qt(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=zt(n[i].outlets);return new et(r,o)}if(0===i&&Ft(n[0])){var s=e.segments[t];r.push(new tt(s.path,n[0])),i++}else{var a=Bt(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&Ft(u)?(r.push(new tt(a,Wt(u))),i+=2):(r.push(new tt(a,{})),i++)}}return new et(r,{})}function zt(e){var t={};return $e(e,function(e,n){null!==e&&(t[n]=qt(new et([],{}),0,e))}),t}function Wt(e){var t={};return $e(e,function(e,n){return t[n]=""+e}),t}function Gt(e,t,n){return e==n.path&&Ge(t,n.parameters)}var Kt=function(){function e(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}return e.prototype.activate=function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Nt(this.futureState.root),this.activateChildRoutes(t,n,e)},e.prototype.deactivateChildRoutes=function(e,t,n){var r=this,i=Ct(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),$e(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})},e.prototype.deactivateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Ct(e),o=e.value.component?r.children:t;$e(i,function(e,t){return n.deactivateRouteAndItsChildren(e,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,n){var r=this,i=Ct(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new Ne(e.value.snapshot))}),e.children.length&&this.forwardEvent(new De(e.value.snapshot))},e.prototype.activateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(Nt(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Qt(s.route)}else{var a=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),u=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)},e}();function Qt(e){Nt(e.value),e.children.forEach(Qt)}function $t(e){return"function"==typeof e}function Zt(e){return e instanceof Je}var Yt=function(){return function(e){this.segmentGroup=e||null}}(),Xt=function(){return function(e){this.urlTree=e}}();function Jt(e){return new p.a(function(t){return t.error(new Yt(e))})}function en(e){return new p.a(function(t){return t.error(new Xt(e))})}function tn(e){return new p.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var nn=function(){function e(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(o.L)}return e.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ie).pipe(Object(O.a)(function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)})).pipe(K(function(t){if(t instanceof Xt)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Yt)throw e.noMatchError(t);throw t}))},e.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Ie).pipe(Object(O.a)(function(n){return t.createUrlTree(n,e.queryParams,e.fragment)})).pipe(K(function(e){if(e instanceof Yt)throw t.noMatchError(e);throw e}))},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new 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;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return Object(d.a)(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(v.a)(e[0])&&(e=e[0]),Object(g.a)(e,r).lift(new _(n))}).apply(void 0,Object(r.g)(e.map(function(e){return e.pipe(Z(1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];Object(d.a)(n)?e.pop():n=null;var r=e.length;return ae(1!==r||n?r>0?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;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+t)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t},e.prototype.isActive=function(e,t){if(Zt(e))return Ye(this.currentUrlTree,e,t);var n=this.parseUrl(e);return Ye(this.currentUrlTree,n,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})},e.prototype.processNavigations=function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new be(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})},e.prototype.scheduleNavigation=function(e,t,n,r){var i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);var o=null,s=null,a=new Promise(function(e,t){o=e,s=t}),u=++this.navigationId;return this.setTransition({id:u,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(function(e){return Promise.reject(e)})},e.prototype.setBrowserUrl=function(e,t,n,i){var o=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(o)||t?this.location.replaceState(o,"",Object(r.a)({},i,{navigationId:n})):this.location.go(o,"",Object(r.a)({},i,{navigationId:n}))},e.prototype.resetStateAndUrl=function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},e.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},e}();var zn=function(){function e(e,t,n,r,i){this.router=e,this.route=t,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){Object(o.tb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){var e={skipLocationChange:Gn(this.skipLocationChange),replaceUrl:Gn(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Gn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Gn(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object)],e.prototype,"queryParams",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",String)],e.prototype,"fragment",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",String)],e.prototype,"queryParamsHandling",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean)],e.prototype,"preserveFragment",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean)],e.prototype,"skipLocationChange",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean)],e.prototype,"replaceUrl",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object)],e.prototype,"state",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"routerLink",null),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean),Object(r.d)("design:paramtypes",[Boolean])],e.prototype,"preserveQueryParams",null),Object(r.b)([Object(o.y)("click"),Object(r.d)("design:type",Function),Object(r.d)("design:paramtypes",[]),Object(r.d)("design:returntype",Boolean)],e.prototype,"onClick",null),e=Object(r.b)([Object(o.s)({selector:":not(a):not(area)[routerLink]"}),Object(r.e)(2,Object(o.h)("tabindex")),Object(r.d)("design:paramtypes",[qn,St,String,o.W,o.t])],e)}(),Wn=function(){function e(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof be&&r.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){Object(o.tb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Gn(this.skipLocationChange),replaceUrl:Gn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Gn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Gn(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(r.b)([Object(o.x)("attr.target"),Object(o.D)(),Object(r.d)("design:type",String)],e.prototype,"target",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object)],e.prototype,"queryParams",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",String)],e.prototype,"fragment",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",String)],e.prototype,"queryParamsHandling",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean)],e.prototype,"preserveFragment",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean)],e.prototype,"skipLocationChange",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean)],e.prototype,"replaceUrl",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object)],e.prototype,"state",void 0),Object(r.b)([Object(o.x)(),Object(r.d)("design:type",String)],e.prototype,"href",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"routerLink",null),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Boolean),Object(r.d)("design:paramtypes",[Boolean])],e.prototype,"preserveQueryParams",null),Object(r.b)([Object(o.y)("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),Object(r.d)("design:type",Function),Object(r.d)("design:paramtypes",[Number,Boolean,Boolean,Boolean]),Object(r.d)("design:returntype",Boolean)],e.prototype,"onClick",null),e=Object(r.b)([Object(o.s)({selector:"a[routerLink],area[routerLink]"}),Object(r.d)("design:paramtypes",[qn,St,i.g])],e)}();function Gn(e){return""===e||!!e}var Kn=function(){function e(e,t,n,r){var i=this;this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof be&&i.update()})}return e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})},e.prototype.isLinkActive=function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},Object(r.b)([Object(o.r)(zn,{descendants:!0}),Object(r.d)("design:type",o.U)],e.prototype,"links",void 0),Object(r.b)([Object(o.r)(Wn,{descendants:!0}),Object(r.d)("design:type",o.U)],e.prototype,"linksWithHrefs",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object)],e.prototype,"routerLinkActiveOptions",void 0),Object(r.b)([Object(o.D)(),Object(r.d)("design:type",Object),Object(r.d)("design:paramtypes",[Object])],e.prototype,"routerLinkActive",null),e=Object(r.b)([Object(o.s)({selector:"[routerLinkActive]",exportAs:"routerLinkActive"}),Object(r.d)("design:paramtypes",[qn,o.t,o.W,o.k])],e)}(),Qn=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $n,this.attachRef=null}}(),$n=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new Qn,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),Zn=function(){function e(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new o.v,this.deactivateEvents=new o.v,this.name=r||Ie,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}},Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=e._futureSnapshot.routeConfig.component,r=(t=t||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Yn(e,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},Object(r.b)([Object(o.P)("activate"),Object(r.d)("design:type",Object)],e.prototype,"activateEvents",void 0),Object(r.b)([Object(o.P)("deactivate"),Object(r.d)("design:type",Object)],e.prototype,"deactivateEvents",void 0),e=Object(r.b)([Object(o.s)({selector:"router-outlet",exportAs:"outlet"}),Object(r.e)(3,Object(o.h)("name")),Object(r.d)("design:paramtypes",[$n,o.kb,o.p,String,o.k])],e)}(),Yn=function(){function e(e,t,n){this.route=e,this.childContexts=t,this.parent=n}return e.prototype.get=function(e,t){return e===St?this.route:e===$n?this.childContexts:this.parent.get(e,t)},e}(),Xn=function(){return function(){}}(),Jn=function(){function e(){}return e.prototype.preload=function(e,t){return t().pipe(K(function(){return Object(s.a)(null)}))},e}(),er=function(){function e(){}return e.prototype.preload=function(e,t){return Object(s.a)(null)},e}(),tr=function(){function e(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i;this.loader=new Rn(t,n,function(t){return e.triggerEvent(new je(t))},function(t){return e.triggerEvent(new Ae(t))})}return e.prototype.setUpPreloading=function(){var e=this;this.subscription=this.router.events.pipe(Object(j.a)(function(e){return e instanceof be}),Object(pe.a)(function(){return e.preload()})).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(o.L);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){var n,i,o=[];try{for(var s=Object(r.h)(t),u=s.next();!u.done;u=s.next()){var c=u.value;if(c.loadChildren&&!c.canLoad&&c._loadedConfig){var l=c._loadedConfig;o.push(this.processRoutes(l.module,l.routes))}else c.loadChildren&&!c.canLoad?o.push(this.preloadConfig(e,c)):c.children&&o.push(this.processRoutes(e,c.children))}}catch(p){n={error:p}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return Object(a.a)(o).pipe(Object(x.a)(),Object(O.a)(function(e){}))},e.prototype.preloadConfig=function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return n.loader.load(e.injector,t).pipe(Object(ee.a)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})},e=Object(r.b)([Object(o.A)(),Object(r.d)("design:paramtypes",[qn,o.K,o.l,o.C,Xn])],e)}(),nr=function(){function e(e,t,n){void 0===n&&(n={}),this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return e.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},e.prototype.createScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof ge?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof be&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})},e.prototype.consumeScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Me&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})},e.prototype.scheduleScrollEvent=function(e,t){this.router.triggerEvent(new Me(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},e}(),rr=[Zn,zn,Wn,Kn,ke],ir=new o.B("ROUTER_CONFIGURATION"),or=new o.B("ROUTER_FORROOT_GUARD"),sr=[i.f,{provide:it,useClass:ot},{provide:qn,useFactory:function(e,t,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var p=new qn(null,t,n,r,i,o,s,Ke(a));c&&(p.urlHandlingStrategy=c);l&&(p.routeReuseStrategy=l);u.errorHandler&&(p.errorHandler=u.errorHandler);u.malformedUriErrorHandler&&(p.malformedUriErrorHandler=u.malformedUriErrorHandler);if(u.enableTracing){var h=Object(me.c)();p.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}u.onSameUrlNavigation&&(p.onSameUrlNavigation=u.onSameUrlNavigation);u.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=u.paramsInheritanceStrategy);u.urlUpdateStrategy&&(p.urlUpdateStrategy=u.urlUpdateStrategy);u.relativeLinkResolution&&(p.relativeLinkResolution=u.relativeLinkResolution);return p},deps:[o.g,it,$n,i.f,o.C,o.K,o.l,Fn,ir,[Ln,new o.O],[kn,new o.O]]},$n,{provide:St,useFactory:function(e){return e.routerState.root},deps:[qn]},{provide:o.K,useClass:o.db},tr,er,Jn,{provide:ir,useValue:{enableTracing:!1}}];function ar(){return new o.M("Router",qn)}var ur=function(){function e(e,t){}var t;return t=e,e.forRoot=function(e,n){return{ngModule:t,providers:[sr,hr(e),{provide:or,useFactory:pr,deps:[[qn,new o.O,new o.cb]]},{provide:ir,useValue:n||{}},{provide:i.g,useFactory:lr,deps:[i.i,[new o.z(i.a),new o.O],ir]},{provide:nr,useFactory:cr,deps:[qn,i.j,ir]},{provide:Xn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:er},{provide:o.M,multi:!0,useFactory:ar},[fr,{provide:o.d,multi:!0,useFactory:dr,deps:[fr]},{provide:mr,useFactory:vr,deps:[fr]},{provide:o.b,multi:!0,useExisting:mr}]]}},e.forChild=function(e){return{ngModule:t,providers:[hr(e)]}},e=t=Object(r.b)([Object(o.I)({declarations:rr,exports:rr,entryComponents:[ke]}),Object(r.e)(0,Object(o.O)()),Object(r.e)(0,Object(o.z)(or)),Object(r.e)(1,Object(o.O)()),Object(r.d)("design:paramtypes",[Object,qn])],e)}();function cr(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new nr(e,t,n)}function lr(e,t,n){return void 0===n&&(n={}),n.useHash?new i.d(e,t):new i.h(e,t)}function pr(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function hr(e){return[{provide:o.a,multi:!0,useValue:e},{provide:Fn,multi:!0,useValue:e}]}var fr=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new u.a}return e.prototype.appInitializer=function(){var e=this;return this.injector.get(i.e,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(qn),i=e.injector.get(ir);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return e.initNavigation?Object(s.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n})},e.prototype.bootstrapListener=function(e){var t=this.injector.get(ir),n=this.injector.get(tr),r=this.injector.get(nr),i=this.injector.get(qn),s=this.injector.get(o.g);e===s.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},e.prototype.isLegacyEnabled=function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation},e.prototype.isLegacyDisabled=function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation},e=Object(r.b)([Object(o.A)(),Object(r.d)("design:paramtypes",[o.C])],e)}();function dr(e){return e.appInitializer.bind(e)}function vr(e){return e.bootstrapListener.bind(e)}var mr=new o.B("Router Initializer");new o.jb("7.2.14")},ZYjt:function(e,t,n){"use strict";n.d(t,"a",function(){return _e}),n.d(t,"b",function(){return ye}),n.d(t,"c",function(){return a});var r=n("mrSG"),i=n("Ip0R"),o=n("CcnG"),s=null;function a(){return s}var u,c=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=t.getStyle(n,r[i]+"AnimationName")){t._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=o[e])})}catch(s){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(r.c)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},p={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},h={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};o.Lb.Node&&(u=o.Lb.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var f,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,s||(s=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var i;(i=e)[t].apply(i,Object(r.g)(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return u.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n.item(r);t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&h.hasOwnProperty(t)&&(t=h[t]))}return p[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=function(){if(!v&&!(v=document.querySelector("base")))return null;return v.getAttribute("href")}();return null==t?null:function(e){f||(f=document.createElement("a"));return f.setAttribute("href",e),"/"===f.pathname.charAt(0)?f.pathname:"/"+f.pathname}(t)},t.prototype.resetBaseElement=function(){v=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(i.m)(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(c),v=null;var m=i.c;function y(){return!!window.history.pushState}var g=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(r.c)(t,e),t.prototype._init=function(){this.location=a().getLocation(),this._history=a().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return a().getBaseHref(this._doc)},t.prototype.onPopState=function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){y()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){y()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(m)),Object(r.d)("design:paramtypes",[Object])],t)}(i.i),b=new o.B("TRANSITION_ID");var _=[{provide:o.d,useFactory:function(e,t,n){return function(){n.get(o.e).donePromise.then(function(){var n=a();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[b,m,o.C],multi:!0}],w=function(){function e(){}return e.init=function(){Object(o.vb)(new e)},e.prototype.addToWindow=function(e){o.Lb.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Lb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},o.Lb.getAllAngularRootElements=function(){return e.getAllRootElements()};o.Lb.frameworkStabilizers||(o.Lb.frameworkStabilizers=[]),o.Lb.frameworkStabilizers.push(function(e){var t=o.Lb.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?a().isShadowRoot(t)?this.findTestabilityInTree(e,a().getHost(t),!0):this.findTestabilityInTree(e,a().parentElement(t),!0):null},e}();function E(e,t){"undefined"!=typeof COMPILED&&COMPILED||((o.Lb.ng=o.Lb.ng||{})[e]=t)}var C={ApplicationRef:o.g,NgZone:o.N},O="probe",x="coreTokens";function S(e){return Object(o.rb)(e)}var j=[{provide:o.d,useFactory:function(e){return E(O,S),E(x,Object(r.a)({},C,(e||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return S}},deps:[[o.M,new o.O]],multi:!0}],A=new o.B("EventManagerPlugins"),T=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)},e=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(A)),Object(r.d)("design:paramtypes",[Array,o.N])],e)}(),D=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=a().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),P=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e=Object(r.b)([Object(o.A)()],e)}(),N=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(r.c)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return a().remove(e)})},t=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(m)),Object(r.d)("design:paramtypes",[Object])],t)}(P),M={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},k=/%COMP%/g,I="_nghost-%COMP%",F="_ngcontent-%COMP%";function R(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?R(e,i,n):(i=i.replace(k,e),n.push(i))}return n}function L(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var V=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new B(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.lb.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case o.lb.Native:case o.lb.ShadowDom:return new W(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=R(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e=Object(r.b)([Object(o.A)(),Object(r.e)(2,Object(o.z)(o.c)),Object(r.d)("design:paramtypes",[T,N,String])],e)}(),B=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(M[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var i=M[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=M[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&o.Y.DashCase?e.style.setProperty(t,n,r&o.Y.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&o.Y.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){H(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return H(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,L(n)):this.eventManager.addEventListener(e,t,L(n))},e}(),U="@".charCodeAt(0);function H(e,t){if(e.charCodeAt(0)===U)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var q,z=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;o.component=r;var s,a=R(i+"-"+r.id,r.styles,[]);return n.addStyles(a),o.contentAttr=(s=i+"-"+r.id,F.replace(k,s)),o.hostAttr=function(e){return I.replace(k,e)}(i+"-"+r.id),o}return Object(r.c)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(B),W=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;s.sharedStylesHost=n,s.hostEl=r,s.component=i,i.encapsulation===o.lb.ShadowDom?s.shadowRoot=r.attachShadow({mode:"open"}):s.shadowRoot=r.createShadowRoot(),s.sharedStylesHost.addHost(s.shadowRoot);for(var a=R(i.id,i.styles,[]),u=0;u<a.length;u++){var c=document.createElement("style");c.textContent=a[u],s.shadowRoot.appendChild(c)}return s}return Object(r.c)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(B),G="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},K=G("addEventListener"),Q=G("removeEventListener"),$={},Z="__zone_symbol__propagationStopped",Y="undefined"!=typeof Zone&&Zone[G("BLACK_LISTED_EVENTS")];Y&&(q={},Y.forEach(function(e){q[e]=e}));var X=function(e){return!!q&&q.hasOwnProperty(e)},J=function(e){var t=$[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==e[Z];o++){var s;(s=i[o]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},ee=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.ngZone=n,r&&Object(i.k)(r)||o.patchEvent(),o}return Object(r.c)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Z]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,i=e[K],s=n;if(!i||o.N.isInAngularZone()&&!X(t))e.addEventListener(t,s,!1);else{var a=$[t];a||(a=$[t]=G("ANGULAR"+t+"FALSE"));var u=e[a],c=u&&u.length>0;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<u.length;h++)if(u[h].handler===s){p=!0;break}p||u.push({zone:l,handler:s})}c||e[K](t,J,!1)}return function(){return r.removeEventListener(e,t,s)}},t.prototype.removeEventListener=function(e,t,n){var r=e[Q];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var i=$[t],o=i&&e[i];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,a=0;a<o.length;a++)if(o[a].handler===n){s=!0,o.splice(a,1);break}s?0===o.length&&r.apply(e,[t,J,!1]):e.removeEventListener.apply(e,[t,n,!1])},t=Object(r.b)([Object(o.A)(),Object(r.e)(0,Object(o.z)(m)),Object(r.e)(2,Object(o.O)()),Object(r.e)(2,Object(o.z)(o.R)),Object(r.d)("design:paramtypes",[Object,o.N,Object])],t)}(D),te={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},ne=new o.B("HammerGestureConfig"),re=new o.B("HammerLoader"),ie=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e=Object(r.b)([Object(o.A)()],e)}(),oe=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._config=n,o.console=r,o.loader=i,o}return Object(r.c)(t,e),t.prototype.supports=function(e){return!(!te.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),!1))},t.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var o=!1,s=function(){o=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});o||(s=r.addEventListener(e,t,n))}).catch(function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}}),function(){s()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(e)})};return o.on(t,s),function(){o.off(t,s),"function"==typeof o.destroy&&o.destroy()}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t=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;o<i;o++){var s=n[o],a=Object(u.a)(r,s,null,o);a&&r.add(a)}return r}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,r=this.values,i=r.length;e._hasValue?(this.completed++,this.completed===i&&(n===i&&t.next(r),t.complete())):t.complete()},t}(c.a),h=n("0/uQ"),f=n("ZYjt");n.d(t,"a",function(){return ft});var d=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(d);function m(e){return null==e||0===e.length}var y=new i.B("NgValidators"),g=new i.B("NgAsyncValidators"),b=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,_=function(){function e(){}return e.min=function(e){return function(t){if(m(t.value)||m(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(m(t.value)||m(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return 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 n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(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<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Object(s.a)(n[0])&&(n=n[0]),0===n.length?a.a:t?e(n).pipe(Object(l.a)(function(e){return t.apply(void 0,e)})):new o.a(function(e){return new p(e,n)})}(function(e,t){return t.map(function(t){return t(e)})}(e,t).map(E)).pipe(Object(l.a)(C))}},e}();function w(e){return null!=e}function E(e){var t=Object(i.Qb)(e)?Object(h.a)(e):e;if(!Object(i.Pb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function C(e){var t=e.reduce(function(e,t){return null!=t?Object(r.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var O=new i.B("NgValueAccessor"),x={provide:O,useExisting:Object(i.qb)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(r.b)([Object(i.s)({selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[x]}),Object(r.d)("design:paramtypes",[i.W,i.t])],e)}(),j={provide:O,useExisting:Object(i.qb)(function(){return T}),multi:!0};var A=new i.B("CompositionEventMode"),T=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(f.c)()?Object(f.c)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e=Object(r.b)([Object(i.s)({selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[j]}),Object(r.e)(2,Object(i.O)()),Object(r.e)(2,Object(i.z)(A)),Object(r.d)("design:paramtypes",[i.W,i.t,Boolean])],e)}();function D(e){return e.validate?function(t){return e.validate(t)}:e}function P(e){return e.validate?function(t){return e.validate(t)}:e}var N={provide:O,useExisting:Object(i.qb)(function(){return M}),multi:!0},M=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(r.b)([Object(i.s)({selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[N]}),Object(r.d)("design:paramtypes",[i.W,i.t])],e)}();function k(){throw new Error("unimplemented")}var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return k()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return k()},enumerable:!0,configurable:!0}),t}(d),F={provide:O,useExisting:Object(i.qb)(function(){return L}),multi:!0},R=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e=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: <input type="radio" formControlName="food" name="food">\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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',H='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',q='\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',z='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',W='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\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;o<i.length;o++){var s=i.item(o),a=t._getOptionValue(s.value);r.push(a)}else for(i=n.options,o=0;o<i.length;o++){if((s=i.item(o)).selected){a=t._getOptionValue(s.value);r.push(a)}}t.value=r,e(r)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var 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)._value,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)._value: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[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[Y]}),Object(r.d)("design:paramtypes",[i.W,i.t])],e)}(),ee=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(X(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(X(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},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,J])],e)}();function te(e,t){return Object(r.g)(t.path,[e])}function ne(e,t){e||se(t,"Cannot find control with"),t.valueAccessor||se(t,"No value accessor for form control with"),e.validator=_.compose([e.validator,t.validator]),e.asyncValidator=_.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&re(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&re(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function re(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ie(e,t){null==e&&se(t,"Cannot find control with"),e.validator=_.compose([e.validator,t.validator]),e.asyncValidator=_.composeAsync([e.asyncValidator,t.asyncValidator])}function oe(e){return se(e,"There is no FormControl instance attached to form control element with")}function se(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function 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: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+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 <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}},nkY7:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},psW0:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mrSG"),i=n("zotm"),o=n("MGBS"),s=n("rPjj"),a=n("67Y/"),u=n("0/uQ");function c(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(c(function(n,r){return Object(u.a)(e(n,r)).pipe(Object(a.a)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new l(e,n))})}var l=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project,this.concurrent))},e}(),p=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new s.a(this,void 0,void 0);this.destination.add(r),Object(i.a)(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(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=++h<d&&r[h]||null;if(Object(s.a)(u))c(u).call(this)===a&&(t=!0,e=e||(a.e instanceof p?f(a.e.errors):[a.e]));if(Object(i.a)(l))for(h=-1,d=l.length;++h<d;){var v=l[h];if(Object(o.a)(v))if(c(v.unsubscribe).call(v)===a){t=!0,e=e||[];var m=a.e;m instanceof p?e=e.concat(f(m.errors)):e.push(m)}}if(t)throw new p(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function f(e){return e.reduce(function(e,t){return e.concat(t instanceof p?t.errors:t)},[])}},rPjj:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("FFOo").a)},"t/Na":function(e,t,n){"use strict";n.d(t,"a",function(){return j}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return K});var r=n("mrSG"),i=n("CcnG"),o=n("F/XL"),s=n("6blF"),a=n("Phjn"),u=n("VnD/"),c=n("67Y/"),l=n("Ip0R"),p=function(){return function(){}}(),h=function(){return function(){}}(),f=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var 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<t.length-1?"&":"";this.urlWithParams=t+a+o}}else this.params=new m,this.urlWithParams=t}return e.prototype.serializeBody=function(){return null===this.body?null:y(this.body)||g(this.body)||b(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},e.prototype.detectContentTypeHeader=function(){return null===this.body?null:b(this.body)?null:g(this.body)?this.body.type||null:y(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},e.prototype.clone=function(t){void 0===t&&(t={});var n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(c=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},c)),new e(n,r,o,{params:c,headers:u,reportProgress:a,responseType:i,withCredentials:s})},e}();!function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(_||(_={}));var E=function(){return function(e,t,n){void 0===t&&(t=200),void 0===n&&(n="OK"),this.headers=e.headers||new f,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}(),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<arguments.length;t++)e[t]=arguments[t];return o(e)}function o(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:r.a}},zotm:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("rPjj"),i=n("Fxb1");function o(e,t,n,o,s){if(void 0===s&&(s=new r.a(e,n,o)),!s.closed)return Object(i.a)(t)(s)}}}]);
|
|
//# sourceMappingURL=vendor.js.map
|