!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("rxjs",["exports"],t):t(e.rxjs={})}(this,(function(e){"use strict";var t=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])};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(v),M=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 n(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 f).add(this.source.subscribe(new F(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e},t.prototype.refCount=function(){return N()(this)},t}(E),k={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(D=M.prototype)._subscribe},_isComplete:{value:D._isComplete,writable:!0},getSubject:{value:D.getSubject},connect:{value:D.connect},refCount:{value:D.refCount}},F=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n(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}(T);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}n(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}}(v);var R=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new j(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),j=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return n(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(a){this.error(a)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new I,n.set(t,i);var o=new V(t,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new V(t,i))}catch(a){return void this.error(a)}this.add(s.subscribe(new L(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(v),L=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return n(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(v),V=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return n(t,e),t.prototype._subscribe=function(e){var t=new f,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new B(n)),t.add(r.subscribe(e)),t},t}(E),B=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return n(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(f),H=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return n(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 S;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(I),U=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return n(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(f)),q=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(U),z=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),W=function(e){function t(n,r){void 0===r&&(r=z.now);var i=e.call(this,n,(function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return n(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(z),K=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(W))(q),Q=K,G=new E((function(e){return e.complete()}));function Y(e){return e?function(e){return new E((function(t){return e.schedule((function(){return t.complete()}))}))}(e):G}function $(e){return e&&"function"==typeof e.schedule}var X,J=function(e){return function(t){for(var n=0,r=e.length;nthis._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new ce(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new S;if(this.isStopped||this.hasError?t=f.EMPTY:(this.observers.push(e),t=new x(this,e)),i&&e.add(e=new se(e,i)),n)for(var s=0;st&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(I),ce=function(e,t){this.time=e,this.value=t},le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),f.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),f.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(I),pe=1,fe=Promise.resolve(),he={};function de(e){return e in he&&(delete he[e],!0)}var ve=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=(i=t.flush.bind(t,null),o=pe++,he[o]=!0,fe.then((function(){return de(o)&&i()})),o)));var i,o},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(de(n),t.scheduled=void 0)},t}(U),me=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(U),we=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(U);function xe(){}var Te=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),Ie=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),Ae=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}();function Ne(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 De(e,t))}}var De=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Pe(e,this.project,this.thisArg))},e}(),Pe=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 n(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}(v);function Oe(e){var t=this,n=e.args,r=e.subscriber,i=e.params,o=i.callbackFunc,s=i.context,a=i.scheduler,u=i.subject;if(!u){u=i.subject=new le;try{o.apply(s,n.concat([function(){for(var e=[],n=0;n0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}($e),tt=Je;function nt(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Je(_,e)}function rt(){return nt(1)}function it(){for(var e=[],t=0;t=0}function ct(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}function lt(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof E?e[0]:nt(n)(ee(e,r))}var pt=new E(xe);function ft(e){var t=e.keys,n=e.index,r=e.subscriber,i=e.subscription,o=e.obj;if(!r.closed)if(n=e.count?r.complete():(r.next(t),r.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}function wt(e,t,n){void 0===e&&(e=0);var r=-1;return ut(t)?r=Number(t)<1?1:Number(t):$(t)&&(n=t),$(n)||(n=_e),new E((function(t){var i=ut(e)?e:+e-n.now();return n.schedule(Et,i,{index:0,period:r,subscriber:t})}))}function Et(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function Ct(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),At=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n(t,e),t.prototype[Ve]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return Xe(this.observable,new Ye(this))},t}($e);function Nt(e){return function(t){return t.lift(new Dt(e))}}var Dt=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Pt(e,this.durationSelector))},e}(),Pt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return n(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(r){return this.destination.error(r)}var n=Xe(t,new Ye(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}($e),Ot=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Mt(e,this.closingNotifier))},e}(),Mt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Xe(n,new Ye(r))),r}return n(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}($e),kt=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?Rt:Ft}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),Ft=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return n(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(v),Rt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return n(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(e),s.length===t&&(r.splice(o,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(v),jt=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new Vt(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),Lt=function(){this.buffer=[]},Vt=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(Bt,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var u={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(Ut,n,{subscriber:s,context:a})),s.add(o.schedule(Ht,r,u))}return s}return n(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(Bt,n,{subscriber:this,context:e,bufferTimeSpan:n}))}},t.prototype.openContext=function(){var e=new Lt;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(v);function Bt(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function Ht(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(Ut,n,{subscriber:r,context:o})),this.schedule(e,t))}function Ut(e){e.subscriber.closeContext(e.context)}var qt=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new zt(e,this.openings,this.closingSelector))},e}(),zt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.contexts=[],i.add(qe(i,n)),i}return n(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.subscription;this.destination.next(e.buffer),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new f,r={buffer:[],subscription:n};t.push(r);var i=qe(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(je),Wt=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Kt(e,this.closingSelector))},e}(),Kt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return n(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{e=(0,this.closingSelector)()}catch(n){return this.error(n)}t=new f,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Xe(e,new Ye(this))),this.subscribing=!1},t}($e),Qt=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new Gt(e,this.selector,this.caught))},e}(),Gt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return n(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(o){return void e.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new Ye(this);this.add(r);var i=Xe(n,r);i!==r&&this.add(i)}},t}($e);function Yt(e,t){return Je(e,t,1)}var $t=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Xt(e,this.predicate,this.source))},e}(),Xt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return n(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(v),Jt=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Zt(e,this.durationSelector))},e}(),Zt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return n(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(n){this.destination.error(n)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Xe(t,new Ye(this)))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},t}($e),en=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new tn(e,this.dueTime,this.scheduler))},e}(),tn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return n(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(nn,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(v);function nn(e){e.debouncedNext()}function rn(e){return void 0===e&&(e=null),function(t){return t.lift(new on(e))}}var on=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new sn(e,this.defaultValue))},e}(),sn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return n(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}(v);function an(e){return e instanceof Date&&!isNaN(+e)}var un=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new cn(e,this.delay,this.scheduler))},e}(),cn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return n(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new ln(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(ie.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(ie.createComplete()),this.unsubscribe()},t}(v),ln=function(e,t){this.time=e,this.notification=t},pn=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new fn(e,this.delayDurationSelector))},e}(),fn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return n(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(r){this.destination.error(r)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=qe(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(je),hn=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return n(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new dn(e,this.source))},t}(E),dn=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return n(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(v),vn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mn(e))},e}(),mn=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(v),yn=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new gn(e,this.keySelector,this.flushes))},e}(),gn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=n,i.values=new Set,r&&i.add(Xe(r,new Ye(i))),i}return n(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}($e);function _n(e,t){return function(n){return n.lift(new bn(e,t))}}var bn=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new wn(e,this.compare,this.keySelector))},e}(),wn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return n(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(v);function En(e){return void 0===e&&(e=xn),function(t){return t.lift(new Cn(e))}}var Cn=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new Sn(e,this.errorFactory))},e}(),Sn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return n(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(v);function xn(){return new Ie}function Tn(e){return function(t){return 0===e?Y():t.lift(new In(e))}}var In=function(){function e(e){if(this.total=e,this.total<0)throw new Te}return e.prototype.call=function(e,t){return t.subscribe(new An(e,this.total))},e}(),An=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return n(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}(v),Nn=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 Dn(e,this.predicate,this.thisArg,this.source))},e}(),Dn=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 n(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}(v),Pn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new On(e))},e}(),On=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return n(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Xe(e,new Ye(this))))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}($e),Mn=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new kn(e,this.project))},e}(),kn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return n(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(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.hasSubscription=!0,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new Ye(this),n=this.destination;n.add(t);var r=Xe(e,t);r!==t&&n.add(r)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}($e),Fn=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new Rn(e,this.project,this.concurrent,this.scheduler))},e}(),Rn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}($e),jn=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Ln(e,this.callback))},e}(),Ln=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new f(n)),r}return n(t,e),t}(v),Vn=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new Bn(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),Bn=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return n(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(v),Hn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Un(e))},e}(),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._next=function(e){},t}(v),qn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new zn(e))},e}(),zn=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Wn(e){return function(t){return 0===e?Y():t.lift(new Kn(e))}}var Kn=function(){function e(e){if(this.total=e,this.total<0)throw new Te}return e.prototype.call=function(e,t){return t.subscribe(new Qn(e,this.total))},e}(),Qn=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 n(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2&&(n=!0),function(r){return r.lift(new Zn(e,t,n))}}var Zn=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 er(e,this.accumulator,this.seed,this.hasSeed))},e}(),er=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 n(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}(v);function tr(e,t){return arguments.length>=2?function(n){return b(Jn(e,t),Wn(1),rn(t))(n)}:function(t){return b(Jn((function(t,n,r){return e(t,n,r+1)})),Wn(1))(t)}}var nr=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new rr(e,this.accumulator,this.seed,this.concurrent))},e}(),rr=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return n(t,e),t.prototype._next=function(e){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}($e);function ir(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new or(r,t));var i=Object.create(n,k);return i.source=n,i.subjectFactory=r,i}}var or=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}(),sr=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.nextSources))},e}(),ar=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.nextSources=n,r}return n(t,e),t.prototype.notifyError=function(){this.subscribeToNextSource()},t.prototype.notifyComplete=function(){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new Ye(this),n=this.destination;n.add(t);var r=Xe(e,t);r!==t&&n.add(r)}else this.destination.complete()},t}($e),ur=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new cr(e))},e}(),cr=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return n(t,e),t.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},t}(v);function lr(e,t){return function(n){for(var r=n,i=0;i-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(v),hr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new dr(e,this.notifier,t))},e}(),dr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return n(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new I;try{t=(0,this.notifier)(this.notifications)}catch(n){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Xe(t,new Ye(this))},t}($e),vr=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new mr(e,this.count,this.source))},e}(),mr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return n(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(v),yr=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new gr(e,this.notifier,this.source))},e}(),gr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return n(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new I;try{r=(0,this.notifier)(n)}catch(o){return e.prototype.error.call(this,o)}i=Xe(r,new Ye(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}($e),_r=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new br(e),r=t.subscribe(n);return r.add(Xe(this.notifier,new Ye(n))),r},e}(),br=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return n(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}($e),wr=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Er(e,this.period,this.scheduler))},e}(),Er=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Cr,n,{subscriber:i,period:n})),i}return n(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(v);function Cr(e){var t=e.period;e.subscriber.notifyNext(),this.schedule(e,t)}var Sr=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new xr(e,this.compareTo,this.comparator))},e}(),xr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Tr(t,i))),i}return n(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(s){this.destination.error(s)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(v),Tr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return n(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(v);function Ir(){return new I}var Ar=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Nr(e,this.predicate,this.source))},e}(),Nr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return n(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Ie)},t}(v),Dr=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Pr(e,this.total))},e}(),Pr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return n(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(v),Or=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new Te}return e.prototype.call=function(e,t){return t.subscribe(0===this._skipCount?new v(e):new Mr(e,this._skipCount))},e}(),Mr=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return n(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s=0&&a%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var u=new I;i.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(v),pi=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new hi(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return n(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(I),hi=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;s.destination=t,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(mi,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(vi,r,u))}else s.add(o.schedule(di,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}return n(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new fi;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(v);function di(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function vi(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(mi,t,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(e,i)}function mi(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}var yi=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new gi(e,this.openings,this.closingSelector))},e}(),gi=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=qe(i,n,n)),i}return n(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(je),Ci=Object.freeze({audit:Nt,auditTime:function(e,t){return void 0===t&&(t=_e),Nt((function(){return wt(e,t)}))},buffer:function(e){return function(t){return t.lift(new Ot(e))}},bufferCount:function(e,t){return void 0===t&&(t=null),function(n){return n.lift(new kt(e,t))}},bufferTime:function(e){var t=arguments.length,n=_e;$(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new jt(e,r,i,n))}},bufferToggle:function(e,t){return function(n){return n.lift(new qt(e,t))}},bufferWhen:function(e){return function(t){return t.lift(new Wt(e))}},catchError:function(e){return function(t){var n=new Qt(e),r=t.lift(n);return n.caught=r}},combineAll:function(e){return function(t){return t.lift(new We(e))}},combineLatest:function(){for(var e=[],t=0;t=2;return function(r){return r.pipe(dt((function(t,n){return n===e})),Tn(1),n?rn(t):En((function(){return new Te})))}},endWith:function(){for(var e=[],t=0;t=2;return function(r){return r.pipe(e?dt((function(t,n){return e(t,n,r)})):_,Tn(1),n?rn(t):En((function(){return new Ie})))}},groupBy:function(e,t,n,r){return function(i){return i.lift(new R(e,t,n,r))}},ignoreElements:function(){return function(e){return e.lift(new Hn)}},isEmpty:function(){return function(e){return e.lift(new qn)}},last:function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?dt((function(t,n){return e(t,n,r)})):_,Wn(1),n?rn(t):En((function(){return new Ie})))}},map:Ne,mapTo:function(e){return function(t){return t.lift(new Gn(e))}},materialize:function(){return function(e){return e.lift(new $n)}},max:function(e){return tr("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})},merge:function(){for(var e=[],t=0;t0;)n.shift().setup();e.prototype.flush.call(this),this.flushTests=this.flushTests.filter((function(e){return!e.ready||(t.assertDeepEqual(e.actual,e.expected),!1)}))},t.parseMarblesAsSubscriptions=function(e,t){var n=this;if(void 0===t&&(t=!1),"string"!=typeof e)return new Si(Number.POSITIVE_INFINITY);for(var r,i=e.length,o=-1,s=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=0,c=function(i){var c=u,p=function(e){c+=e*n.frameTimeFactor},f=e[i];switch(f){case" ":t||p(1);break;case"-":p(1);break;case"(":o=u,p(1);break;case")":o=-1,p(1);break;case"^":if(s!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");s=o>-1?o:u,p(1);break;case"!":if(a!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");a=o>-1?o:u;break;default:if(t&&f.match(/^[0-9]$/)&&(0===i||" "===e[i-1])){var h=e.slice(i).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(h){i+=h[0].length-1;var d=parseFloat(h[1]),v=void 0;switch(h[2]){case"ms":v=d;break;case"s":v=1e3*d;break;case"m":v=1e3*d*60}p(v/l.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+f+"'.")}u=c,r=i},l=this,p=0;p-1?f:l,notification:c}),l=r,s=t},d=this,v=0;v1?Array.prototype.slice.call(arguments):t)}),e,r)}))},e.fromEventPattern=function e(t,n,r){return r?e(t,n).pipe(Ne((function(e){return c(e)?r.apply(void 0,e):r(e)}))):new E((function(e){var r,o=function(){for(var t=[],n=0;n=t){r.complete();break}if(r.next(o++),r.closed)break}}))},e.throwError=ne,e.timer=wt,e.using=function(e,t){return new E((function(n){var r,i;try{r=e()}catch(s){return void n.error(s)}try{i=t(r)}catch(s){return void n.error(s)}var o=(i?Ge(i):G).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))},e.zip=Ct,e.scheduled=Qe,e.EMPTY=G,e.NEVER=pt,e.config=s,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/core",["exports","rxjs","rxjs/operators"],t):t(((e=e||self).ng=e.ng||{},e.ng.core={}),e.rxjs,e.rxjs.operators)}(this,(function(e,t,n){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}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 ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):U(a)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+e.replace(de,"\n ")}var Ae,Ne,De={"\u0275\u0275defineInjectable":P,"\u0275\u0275defineInjector":M,"\u0275\u0275inject":be,"\u0275\u0275getFactoryOf":function e(t){var n=t;if(Q(t))return function(){var t=e(K(n));return t?t():null};var r=k(n)||R(n);return r&&void 0!==r.factory?r.factory:null},"\u0275\u0275invalidFactoryDep":we},Pe=function(){},Oe=function(){};function Me(e,t){null==e&&function(e,t,n,r){throw new Error("ASSERTION ERROR: "+e+" [Expected=> null != "+t+" <=Actual]")}(t,e)}function ke(e,t){for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Le(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ve(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function He(e,t){var n=Ue(e,t);if(n>=0)return e[1|n]}function Ue(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}(Ae=e.ChangeDetectionStrategy||(e.ChangeDetectionStrategy={}))[Ae.OnPush=0]="OnPush",Ae[Ae.Default=1]="Default",(Ne=e.\u0275ChangeDetectorStatus||(e.\u0275ChangeDetectorStatus={}))[Ne.CheckOnce=0]="CheckOnce",Ne[Ne.Checked=1]="Checked",Ne[Ne.CheckAlways=2]="CheckAlways",Ne[Ne.Detached=3]="Detached",Ne[Ne.Errored=4]="Errored",Ne[Ne.Destroyed=5]="Destroyed",function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(e.ViewEncapsulation||(e.ViewEncapsulation={}));var qe={},ze=[],We=0;function Ke(t){return f((function(){var n=t.type,r=n.prototype,i={},o={type:n,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:r.ngOnInit||null,doCheck:r.ngDoCheck||null,afterContentInit:r.ngAfterContentInit||null,afterContentChecked:r.ngAfterContentChecked||null,afterViewInit:r.ngAfterViewInit||null,afterViewChecked:r.ngAfterViewChecked||null,onDestroy:r.ngOnDestroy||null,onPush:t.changeDetection===e.ChangeDetectionStrategy.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||e.ViewEncapsulation.Emulated,id:"c",styles:t.styles||ze,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,a=t.features,u=t.pipes;return o.id+=We++,o.inputs=Ze(t.inputs,i),o.outputs=Ze(t.outputs),a&&a.forEach((function(e){return e(o)})),o.directiveDefs=s?function(){return("function"==typeof s?s():s).map(Ge)}:null,o.pipeDefs=u?function(){return("function"==typeof u?u():u).map(Ye)}:null,o}))}function Qe(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(Ge)},r.pipeDefs=function(){return n.map(Ye)}}function Ge(e){return nt(e)||rt(e)}function Ye(e){return it(e)}var $e={};function Xe(e){var t={type:e.type,bootstrap:e.bootstrap||ze,declarations:e.declarations||ze,imports:e.imports||ze,exports:e.exports||ze,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&f((function(){$e[e.id]=e.type})),t}function Je(e,t){return f((function(){var n=st(e,!0);n.declarations=t.declarations||ze,n.imports=t.imports||ze,n.exports=t.exports||ze}))}function Ze(e,t){if(null==e)return qe;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var et=Ke;function tt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function nt(e){return e[ie]||null}function rt(e){return e[oe]||null}function it(e){return e[se]||null}function ot(e,t){return e.hasOwnProperty(ce)?e[ce]:null}function st(e,t){var n=e[ae]||null;if(!n&&!0===t)throw new Error("Type "+U(e)+" does not have '\u0275mod' property.");return n}function at(e){return Array.isArray(e)&&"object"==typeof e[1]}function ut(e){return Array.isArray(e)&&!0===e[1]}function ct(e){return 0!=(8&e.flags)}function lt(e){return 2==(2&e.flags)}function pt(e){return 1==(1&e.flags)}function ft(e){return null!==e.template}function ht(e){return 0!=(512&e[2])}var dt,vt=void 0;function mt(){return void 0!==vt?vt:"undefined"!=typeof document?document:void 0}function yt(e){return!!e.listen}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(dt||(dt={}));var gt={createRenderer:function(e,t){return mt()}};function _t(e){for(;Array.isArray(e);)e=e[0];return e}function bt(e,t){return _t(t[e+20])}function wt(e,t){return _t(t[e.index])}function Et(e,t){var n=e.index;return-1!==n?_t(t[n]):null}function Ct(e,t){return e.data[t+20]}function St(e,t){return e[t+20]}function xt(e,t){var n=t[e];return at(n)?n:n[0]}function Tt(e){return e.__ngContext__||null}function It(e){var t=Tt(e);return t?Array.isArray(t)?t:t.lView:null}function At(e){return 4==(4&e[2])}function Nt(e){return 128==(128&e[2])}function Dt(e,t){return null===e||null==t?null:e[t]}function Pt(e){e[18]=0}function Ot(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Mt={lFrame:sn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function kt(){return Mt.bindingsEnabled}function Ft(){Mt.bindingsEnabled=!0}function Rt(){Mt.bindingsEnabled=!1}function jt(){return Mt.lFrame.lView}function Lt(){return Mt.lFrame.tView}function Vt(e){Mt.lFrame.contextLView=e}function Bt(){return Mt.lFrame.previousOrParentTNode}function Ht(e,t){Mt.lFrame.previousOrParentTNode=e,Mt.lFrame.isParent=t}function Ut(){return Mt.lFrame.isParent}function qt(){Mt.lFrame.isParent=!1}function zt(){return Mt.checkNoChangesMode}function Wt(e){Mt.checkNoChangesMode=e}function Kt(){var e=Mt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Qt(){return Mt.lFrame.bindingIndex}function Gt(e){return Mt.lFrame.bindingIndex=e}function Yt(){return Mt.lFrame.bindingIndex++}function $t(e){var t=Mt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Xt(e,t){var n=Mt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Jt(t)}function Jt(e){Mt.lFrame.currentDirectiveIndex=e}function Zt(e){var t=Mt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function en(){return Mt.lFrame.currentQueryIndex}function tn(e){Mt.lFrame.currentQueryIndex=e}function nn(e,t){var n=on();Mt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function rn(e,t){var n=on(),r=e[1];Mt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function on(){var e=Mt.lFrame,t=null===e?null:e.child;return null===t?sn(e):t}function sn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function an(){var e=Mt.lFrame;return Mt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var un=an;function cn(){var e=an();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ln(e){return(Mt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Mt.lFrame.contextLView))[8]}function pn(){return Mt.lFrame.selectedIndex}function fn(e){Mt.lFrame.selectedIndex=e}function hn(){var e=Mt.lFrame;return Ct(e.tView,e.selectedIndex)}function dn(){Mt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function vn(){Mt.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function mn(){Mt.lFrame.currentNamespace=null}function yn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(s)):o.call(s)}var Cn=function(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function Sn(e,t,n){for(var r=yt(e),i=0;it){s=o-1;break}}}for(;o>16}function On(e,t){for(var n=Pn(e),r=t;n>0;)r=r[15],n--;return r}function Mn(e){return"string"==typeof e?e:null==e?"":""+e}function kn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Mn(e)}var Fn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te);function Rn(e){return{name:"window",target:e.ownerDocument.defaultView}}function jn(e){return{name:"document",target:e.ownerDocument}}function Ln(e){return{name:"body",target:e.ownerDocument.body}}function Vn(e){return e instanceof Function?e():e}var Bn=!0;function Hn(e){var t=Bn;return Bn=e,t}var Un=0;function qn(e,t){var n=Wn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,zn(r.data,e),zn(t,null),zn(r.blueprint,null));var i=Kn(e,t),o=e.injectorIndex;if(Nn(i))for(var s=Dn(i),a=On(i,t),u=a[1].data,c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c];return t[o+8]=i,o}function zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Kn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Qn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[le]:n.charCodeAt(0)||0;null==r&&(r=n[le]=Un++);var i=255&r,o=1<0?255&t:t}(r);if("function"==typeof s){nn(n,t);try{var a=s();if(null!=a||i&e.InjectFlags.Optional)return a;throw new Error("No provider for "+kn(r)+"!")}finally{un()}}else if("number"==typeof s){if(-1===s)return new nr(t,n);var u=null,c=Wn(t,n),l=-1,p=i&e.InjectFlags.Host?n[16][6]:null;for((-1===c||i&e.InjectFlags.SkipSelf)&&(l=-1===c?Kn(t,n):n[c+8],tr(i,!1)?(u=n[1],c=Dn(l),n=On(l,n)):c=-1);-1!==c;){l=n[c+8];var f=n[1];if(er(s,c,f.data)){var h=Xn(c,n,r,u,i,p);if(h!==$n)return h}tr(i,n[1].data[c+8]===p)&&er(s,c,n)?(u=f,c=Dn(l),n=On(l,n)):c=-1}}}if(i&e.InjectFlags.Optional&&void 0===o&&(o=null),0==(i&(e.InjectFlags.Self|e.InjectFlags.Host))){var d=n[9],v=ge(void 0);try{return d?d.get(r,o,i&e.InjectFlags.Optional):Ce(r,o,i&e.InjectFlags.Optional)}finally{ge(v)}}if(i&e.InjectFlags.Optional)return o;throw new Error("NodeInjector: NOT_FOUND ["+kn(r)+"]")}var $n={};function Xn(t,n,r,i,o,s){var a=n[1],u=a.data[t+8],c=Jn(u,a,r,null==i?lt(u)&&Bn:i!=a&&3===u.type,o&e.InjectFlags.Host&&s===u);return null!==c?Zn(n,a,c,u):$n}function Jn(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,c=o>>16,l=i?a+c:e.directiveEnd,p=r?a:a+c;p=u&&f.type===n)return p}if(i){var h=s[u];if(h&&ft(h)&&h.type===n)return u}return null}function Zn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Cn){var s=i;if(s.resolving)throw new Error("Circular dep for "+kn(o[n]));var a=Hn(s.canSeeViewProviders);s.resolving=!0;var u=void 0;s.injectImpl&&(u=ge(s.injectImpl)),nn(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&ge(u),Hn(a),s.resolving=!1,un()}}return i}function er(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<',!t.querySelector||t.querySelector("svg")?(t.innerHTML='

',this.getInertBodyElement=t.querySelector&&t.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Rr.hasOwnProperty(t)&&!Dr.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Kr(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}(),zr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wr=/([^\#-~ |!])/g;function Kr(e){return e.replace(/&/g,"&").replace(zr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Wr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function Qr(e,t){var n=null;try{Ar=Ar||new wr(e);var r=t?String(t):"";n=Ar.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=Ar.getInertBodyElement(r)}while(r!==o);var s=new qr,a=s.sanitizeChildren(Gr(n)||n);return br()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=Gr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Gr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}(Nr=e.SecurityContext||(e.SecurityContext={}))[Nr.NONE=0]="NONE",Nr[Nr.HTML=1]="HTML",Nr[Nr.STYLE=2]="STYLE",Nr[Nr.SCRIPT=3]="SCRIPT",Nr[Nr.URL=4]="URL",Nr[Nr.RESOURCE_URL=5]="RESOURCE_URL";var Yr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),$r=/^url\(([^)]+)\)$/;function Xr(e){if(!(e=String(e).trim()))return"";var t=e.match($r);return t&&Sr(t[1])===t[1]||e.match(Yr)&&function(e){for(var t=!0,n=!0,r=0;r=0){var d;hi(d=_t(r[h]),u=pi(r,h,d)),n=u;break}}}return n||null}function pi(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function fi(e){var t,n=Tt(e);if(Array.isArray(n)){var r=mi(n,e);(i=pi(n,r,(t=xt(r,n))[0])).component=e,hi(e,i),hi(i.native,i)}else{var i;t=xt((i=n).nodeIndex,i.lView)}return t}function hi(e,t){e.__ngContext__=t}function di(e,t){for(var n=e[1].firstChild;n;){if(Et(n,e)===t)return n.index;n=vi(n)}return-1}function vi(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 mi(e,t){var n=e[1].components;if(n)for(var r=0;ro?"":i[l+1].toLowerCase();var f=8&r?p:null;if(f&&-1!==bi(f,c,0)||2&r&&c!==p){if(xi(r))return!1;s=!0}}}}else{if(!s&&!xi(r)&&!xi(u))return!1;if(s&&xi(u))continue;s=!1,r=u|1&r}}return xi(r)||s}function xi(e){return 0==(1&e)}function Ti(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||xi(s)||(t+=Ni(o,i),i=""),r=s,o=o||!xi(r);n++}return""!==i&&(t+=Ni(o,i)),t}var Pi={};function Oi(e){var t=e[3];return ut(t)?t[3]:t}function Mi(e){return function(e){for(var t=at(e)?e:It(e);t&&!(512&t[2]);)t=Oi(t);return t}(e)[8]}function ki(e){return Ri(e[13])}function Fi(e){return Ri(e[4])}function Ri(e){for(;null!==e&&!ut(e);)e=e[4];return e}function ji(e){Vi(Lt(),jt(),pn()+e,zt())}function Li(e){Vi(Lt(),jt(),e,zt())}function Vi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&gn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&_n(t,o,0,n)}fn(n)}var Bi={marker:"element"},Hi={marker:"comment"};function Ui(e,t){return e<<17|t<<2}function qi(e){return e>>17&32767}function zi(e){return 2==(2&e)}function Wi(e){return 2|e}function Ki(e){return(131068&e)>>2}function Qi(e,t){return-131069&e|t<<2}function Gi(e){return 1==(1&e)}function Yi(e){return 1|e}function $i(e,t){for(var n=e.tView_.data,r=[],i=t?e.classBindings:e.styleBindings,o=qi(i),s=Ki(i),a=0!==s,u=a?s:o;0!==u;){var c=n[u+1];r.unshift({key:n[u],index:u,isTemplate:a,prevDuplicate:zi(c),nextDuplicate:Gi(c),nextIndex:Ki(c),prevIndex:qi(c)}),u===o&&(a=!1),u=qi(c)}return r.push((t?e.residualClasses:e.residualStyles)||null),r}function Xi(e,t){for(;e;)t.push(e.template_),e=e.next}function Ji(e){if(e){var t=e.debug;return Me(t,"Object does not have a debug representation."),t}return e}function Zi(e,t){void 0===t&&(t=!1);var n=_t(e);if(n){var r=n.nodeType===Node.TEXT_NODE,i=(r?n.textContent:n.outerHTML)||"";return t||r?i:i.split(">"+n.innerHTML+"<")[0]+">"}return null}function eo(e,t){if(e){for(var n=[],r=e;r;)n.push(to(r,t,r.index)),r=r.next;return n}return null}function to(e,t,n){var r=t[n],i=_t(r),o=Ji(function(e){for(;Array.isArray(e);){if(e.length>=19)return e;e=e[0]}return null}(r));return{html:Zi(i),native:i,nodes:eo(e.child,t),component:o}}Object.defineProperty((function(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m,y,g,_,b,w,E,C,S,x,T,I,A,N,D){this.type=e,this.id=t,this.blueprint=n,this.template=r,this.queries=i,this.viewQuery=o,this.node=s,this.data=a,this.bindingStartIndex=u,this.expandoStartIndex=c,this.expandoInstructions=l,this.firstCreatePass=p,this.firstUpdatePass=f,this.staticViewQueries=h,this.staticContentQueries=d,this.preOrderHooks=v,this.preOrderCheckHooks=m,this.contentHooks=y,this.contentCheckHooks=g,this.viewHooks=_,this.viewCheckHooks=b,this.destroyHooks=w,this.cleanup=E,this.contentQueries=C,this.components=S,this.directiveRegistry=x,this.pipeRegistry=T,this.firstChild=I,this.schemas=A,this.consts=N,this.incompleteFirstPass=D}).prototype,"template_",{get:function(){var e=[];return Xi(this.firstChild,e),e.join("")},enumerable:!0,configurable:!0}),function(){function e(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m,y,g,_,b,w,E,C,S,x,T,I,A,N,D){this.tView_=e,this.type=t,this.index=n,this.injectorIndex=r,this.directiveStart=i,this.directiveEnd=o,this.directiveStylingLast=s,this.propertyBindings=a,this.flags=u,this.providerIndexes=c,this.tagName=l,this.attrs=p,this.mergedAttrs=f,this.localNames=h,this.initialInputs=d,this.inputs=v,this.outputs=m,this.tViews=y,this.next=g,this.projectionNext=_,this.child=b,this.parent=w,this.projection=E,this.styles=C,this.stylesWithoutHost=S,this.residualStyles=x,this.classes=T,this.classesWithoutHost=I,this.residualClasses=A,this.classBindings=N,this.styleBindings=D}Object.defineProperty(e.prototype,"type_",{get:function(){switch(this.type){case 0:return"TNodeType.Container";case 3:return"TNodeType.Element";case 4:return"TNodeType.ElementContainer";case 5:return"TNodeType.IcuContainer";case 1:return"TNodeType.Projection";case 2:return"TNodeType.View";default:return"TNodeType.???"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flags_",{get:function(){var e=[];return 16&this.flags&&e.push("TNodeFlags.hasClassInput"),8&this.flags&&e.push("TNodeFlags.hasContentQuery"),32&this.flags&&e.push("TNodeFlags.hasStyleInput"),128&this.flags&&e.push("TNodeFlags.hasHostBindings"),2&this.flags&&e.push("TNodeFlags.isComponentHost"),1&this.flags&&e.push("TNodeFlags.isDirectiveHost"),64&this.flags&&e.push("TNodeFlags.isDetached"),4&this.flags&&e.push("TNodeFlags.isProjected"),e.join("|")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template_",{get:function(){var e=[];if(e.push("<",this.tagName||this.type_),this.attrs)for(var t=0;t"),Xi(this.child,e),e.push(""),e.join("")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleBindings_",{get:function(){return $i(this,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classBindings_",{get:function(){return $i(this,!0)},enumerable:!0,configurable:!0})}(),function(){function e(e){this._raw_lView=e}Object.defineProperty(e.prototype,"flags",{get:function(){var e=this._raw_lView[2];return{__raw__flags__:e,initPhaseState:3&e,creationMode:!!(4&e),firstViewPass:!!(8&e),checkAlways:!!(16&e),dirty:!!(64&e),attached:!!(128&e),destroyed:!!(256&e),isRoot:!!(512&e),indexWithinInitPhase:e>>11}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return Ji(this._raw_lView[3])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"host",{get:function(){return Zi(this._raw_lView[0],!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return(this.nodes||[]).map((function(e){return Zi(e.native,!0)})).join("")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._raw_lView[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){var e=this._raw_lView;return eo(e[1].firstChild,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tView",{get:function(){return this._raw_lView[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cleanup",{get:function(){return this._raw_lView[7]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._raw_lView[9]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendererFactory",{get:function(){return this._raw_lView[10]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._raw_lView[11]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sanitizer",{get:function(){return this._raw_lView[12]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childHead",{get:function(){return Ji(this._raw_lView[13])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"next",{get:function(){return Ji(this._raw_lView[4])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childTail",{get:function(){return Ji(this._raw_lView[14])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"declarationView",{get:function(){return Ji(this._raw_lView[15])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queries",{get:function(){return this._raw_lView[19]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tHost",{get:function(){return this._raw_lView[6]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childViews",{get:function(){for(var e=[],t=this.childHead;t;)e.push(t),t=t.next;return e},enumerable:!0,configurable:!0})}(),function(){function e(e){this._raw_lContainer=e}Object.defineProperty(e.prototype,"hasTransplantedViews",{get:function(){return this._raw_lContainer[2]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"views",{get:function(){return this._raw_lContainer.slice(10).map(Ji)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return Ji(this._raw_lContainer[3])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"movedViews",{get:function(){return this._raw_lContainer[9]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"host",{get:function(){return this._raw_lContainer[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"native",{get:function(){return this._raw_lContainer[7]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"next",{get:function(){return Ji(this._raw_lContainer[4])},enumerable:!0,configurable:!0})}();var no=function(){function e(e,t,n,r){this.__raw_opCode=e,this._lView=t,this.nodeIndex=n,this.type=r}return Object.defineProperty(e.prototype,"tNode",{get:function(){return Ct(this._lView[1],this.nodeIndex)},enumerable:!0,configurable:!0}),e}();Object.defineProperty((function(e,t){this.__raw_opCodes=e,this.__lView=t}).prototype,"operations",{get:function(){for(var e=this.__lView,t=this.__raw_opCodes,n=[],r=0;r>>17,"AppendChild");break;case 0:o=new no(i,e,i>>>3,"Select");break;case 5:var s=i>>>3;o=new no(i,e,s,"ElementEnd");break;case 4:(o=new no(i,e,s=i>>>3,"Attr")).attrName=t[++r],o.attrValue=t[++r]}if(!o)switch(i){case Hi:o={__raw_opCode:i,type:"COMMENT_MARKER",commentValue:t[++r],nodeIndex:t[++r]};break;case Bi:o={__raw_opCode:i,type:"ELEMENT_MARKER"}}o||(o={__raw_opCode:i,type:"Unknown Op Code",code:i}),n.push(o)}return n},enumerable:!0,configurable:!0}),Object.defineProperty((function(e,t,n){this.__raw_opCodes=e,this.icus=t,this.__lView=n}).prototype,"operations",{get:function(){for(var e=this.__lView,t=this.__raw_opCodes,n=this.icus,r=[],i=0;i>>2,p=void 0,f=void 0;switch(3&c){case 1:var h=t[++u],d=t[++u];r.push({__raw_opCode:c,checkBit:o,type:"Attr",attrValue:a,attrName:h,sanitizeFn:d});break;case 0:r.push({__raw_opCode:c,checkBit:o,type:"Text",nodeIndex:l,text:a});break;case 2:f=n[p=t[++u]];var v=new no(c,e,l,"IcuSwitch");v.tIcuIndex=p,v.checkBit=o,v.mainBinding=a,v.tIcu=f,r.push(v);break;case 3:f=n[p=t[++u]],(v=new no(c,e,l,"IcuUpdate")).tIcuIndex=p,v.checkBit=o,v.tIcu=f,r.push(v)}}}i+=s}return r},enumerable:!0,configurable:!0});var ro=Promise.resolve(null);function io(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&Vi(e,t,0,zt()),n(r,i)}finally{fn(o)}}function fo(e,t,n){if(ct(t))for(var r=t.directiveEnd,i=t.directiveStart;i0&&function e(t){for(var n=ki(t);null!==n;n=Fi(n))for(var r=10;r0&&e(i)}var s=t[1].components;if(null!==s)for(r=0;r0&&e(a)}}(n)}}function jo(e,t){var n=xt(t,e),r=n[1];!function(e,t){for(var n=t.length;n0&&(e[n-1][4]=r[4]);var o=Le(e,10+t);ts(r[1],r,!1,null);var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function is(e,t){if(!(256&t[2])){var n=t[11];yt(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return ss(e[1],e);for(;t;){var n=null;if(at(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)at(t)&&ss(t[1],t),t=os(t,e);null===t&&(t=e),at(t)&&ss(t[1],t),n=t&&t[4]}t=n}}(t)}}function os(e,t){var n;return at(e)&&(n=e[6])&&2===n.type?Xo(n,e):e[3]===t?null:e[3]}function ss(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[a]():r[-a].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&yt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&ut(t[3])){r!==t[3]&&ns(r,t);var i=t[19];null!==i&&i.detachView(e)}}}function as(t,n,r){for(var i=n.parent;null!=i&&(4===i.type||5===i.type);)i=(n=i).parent;if(null==i){var o=r[6];return 2===o.type?Jo(o,r):r[0]}if(n&&5===n.type&&4&n.flags)return wt(n,r).parentNode;if(2&i.flags){var s=t.data,a=s[s[i.index].directiveStart].encapsulation;if(a!==e.ViewEncapsulation.ShadowDom&&a!==e.ViewEncapsulation.Native)return null}return wt(i,r)}function us(e,t,n,r){yt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function cs(e,t,n){yt(e)?e.appendChild(t,n):t.appendChild(n)}function ls(e,t,n,r){null!==r?us(e,t,n,r):cs(e,t,n)}function ps(e,t){return yt(e)?e.parentNode(t):t.parentNode}function fs(e,t){if(2===e.type){var n=Xo(e,t);return null===n?null:ds(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?wt(e,t):null}function hs(e,t,n,r){var i=as(e,r,t);if(null!=i){var o=t[11],s=fs(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}is(this._lView[1],this._lView)},e.prototype.onDestroy=function(e){var t,n,r;t=this._lView[1],r=e,Wo(n=this._lView).push(r),t.firstCreatePass&&Ko(t).push(n[7].length-1,null)},e.prototype.markForCheck=function(){Vo(this._cdRefInjectingView||this._lView)},e.prototype.detach=function(){this._lView[2]&=-129},e.prototype.reattach=function(){this._lView[2]|=128},e.prototype.detectChanges=function(){Ho(this._lView[1],this._lView,this.context)},e.prototype.checkNoChanges=function(){!function(e,t,n){Wt(!0);try{Ho(e,t,n)}finally{Wt(!1)}}(this._lView[1],this._lView,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(){var e;this._appRef=null,ys(this._lView[1],e=this._lView,e[11],2,null,null)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e}(),Ts=function(e){function t(t){var n=e.call(this,t)||this;return n._view=t,n}return i(t,e),t.prototype.detectChanges=function(){Uo(this._view)},t.prototype.checkNoChanges=function(){!function(e){Wt(!0);try{Uo(e)}finally{Wt(!1)}}(this._view)},Object.defineProperty(t.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),t}(xs);function Is(e,t,n){return Es||(Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(e)),new Es(wt(t,n))}function As(e,t,n,r){return Cs||(Cs=function(e){function t(t,n,r){var i=e.call(this)||this;return i._declarationView=t,i._declarationTContainer=n,i.elementRef=r,i}return i(t,e),t.prototype.createEmbeddedView=function(e){var t=this._declarationTContainer.tViews,n=so(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),uo(t,n,e),new xs(n)},t}(e)),0===n.type?new Cs(r,n,Is(t,n,r)):null}function Ns(e,t,n,r){var o;Ss||(Ss=function(e){function n(t,n,r){var i=e.call(this)||this;return i._lContainer=t,i._hostTNode=n,i._hostView=r,i}return i(n,e),Object.defineProperty(n.prototype,"element",{get:function(){return Is(t,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new nr(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var e=Kn(this._hostTNode,this._hostView),t=On(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Pn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return Nn(e)&&null!=n?new nr(n,t):new nr(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-10},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},n.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(Pe,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a},n.prototype.insert=function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ut(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Ss(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r0)for(var i=0;i0){var n=Ve(t,"?");throw new Error("Can't resolve all parameters for "+U(e)+": ("+n.join(", ")+").")}var r=function(e){var t=e&&(e[j]||e[B]||e[V]&&e[V]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function la(e,t,n){var r,i=void 0;if(ha(e)){var o=K(e);return ot(o)||ca(o)}if(fa(e))i=function(){return K(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,p(Se(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return be(K(e.useExisting))};else{var s=K(e&&(e.useClass||e.provide));if(s||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: ["+t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+U(e)+"'"+r)}(t,n,e),!function(e){return!!e.deps}(e))return ot(s)||ca(s);i=function(){return new(s.bind.apply(s,p([void 0],Se(e.deps))))}}return i}function pa(e,t,n){return void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function fa(e){return null!==e&&"object"==typeof e&&ve in e}function ha(e){return"function"==typeof e}function da(e,t,n){return sa({name:n},t,e,n)}var va=da,ma=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?va(e,t,""):va(e.providers,e.parent,e.name||"")},e.THROW_IF_NOT_FOUND=he,e.NULL=new xe,e.\u0275prov=P({token:e,providedIn:"any",factory:function(){return be(fe)}}),e.__NG_ELEMENT_ID__=-1,e}(),ya=function(e){return e},ga=[],_a=ya,ba=function(){return Array.prototype.slice.call(arguments)};function wa(e){var t=function(e){var t=ga,n=e.deps;if(n&&n.length){t=[];for(var r=0;r1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map((function(e){return U(e.token)})).join(" -> ")+")":""}function xa(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.ngOriginalError=t,r}(o,r):Error(o);return s.addKey=Ta,s.keys=i,s.injectors=[e],s.constructResolvingMessage=n,s.ngOriginalError=r,s}function Ta(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Ia(e,t){for(var n=[],r=0,i=t.length;r=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw xa(this,e.key,(function(e){return"Cannot instantiate cyclic dependency!"+Sa(e)}));return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=[],n=0;n=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}function Vu(e){return St(Mt.lFrame.contextLView,e)}function Bu(t,n){void 0===n&&(n=e.InjectFlags.Default);var r=jt();return null==r?be(t,n):Yn(Bt(),r,K(t),n)}function Hu(e){return Gn(Bt(),e)}function Uu(){throw new Error("invalid")}function qu(e,t,n){var r=jt();return fu(r,Yt(),t)&&wo(Lt(),hn(),r,e,t,r[11],n,!1),qu}function zu(e,t,n,r,i){var o=i?"class":"style";Yo(e,n,t.inputs[o],o,r)}function Wu(e,t,n,r){var i=jt(),o=Lt(),s=20+e,a=i[11],u=i[s]=oo(t,a,Mt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,u=Dt(a,o),c=ao(t,n[6],e,3,i,u);return Eo(t,n,c,Dt(a,s)),null!==c.attrs&&nu(c,c.attrs,!1),null!==c.mergedAttrs&&nu(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,o,i,0,t,n,r):o.data[s];Ht(c,!0);var l=c.mergedAttrs;null!==l&&Sn(a,u,l);var p=c.classes;null!==p&&ws(a,u,p);var f=c.styles;null!==f&&bs(a,u,f),hs(o,i,u,c),0===Mt.lFrame.elementDepthCount&&hi(u,i),Mt.lFrame.elementDepthCount++,pt(c)&&(ho(o,i,c),fo(o,c,i)),null!==r&&vo(i,c)}function Ku(){var e=Bt();Ut()?qt():Ht(e=e.parent,!1);var t=e;Mt.lFrame.elementDepthCount--;var n=Lt();n.firstCreatePass&&(yn(n,e),ct(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&zu(n,t,jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&zu(n,t,jt(),t.stylesWithoutHost,!1)}function Qu(e,t,n,r){Wu(e,t,n,r),Ku()}function Gu(e,t,n){var r=jt(),i=Lt(),o=e+20,s=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,s=Dt(o,r),a=ao(t,n[6],e,4,"ng-container",s);return null!==s&&nu(a,s,!0),Eo(t,n,a,Dt(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,i,r,t,n):i.data[o];Ht(s,!0);var a=r[o]=r[11].createComment("");hs(i,r,a,s),hi(a,r),pt(s)&&(ho(i,r,s),fo(i,s,r)),null!=n&&vo(r,s)}function Yu(){var e=Bt(),t=Lt();Ut()?qt():Ht(e=e.parent,!1),t.firstCreatePass&&(yn(t,e),ct(e)&&t.queries.elementEnd(e))}function $u(e,t,n){Gu(e,t,n),Yu()}function Xu(){return jt()}function Ju(e){return!!e&&"function"==typeof e.then}function Zu(e){return!!e&&"function"==typeof e.subscribe}function ec(e,t,n,r){void 0===n&&(n=!1);var i=jt(),o=Lt(),s=Bt();return nc(o,i,i[11],s,e,t,n,r),ec}function tc(e,t,n,r){void 0===n&&(n=!1);var i=Bt(),o=jt(),s=Lt();return nc(s,o,Qo(Zt(s.data),i,o),i,e,t,n,r),tc}function nc(e,t,n,r,i,o,s,a){void 0===s&&(s=!1);var u=pt(r),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),l=Wo(t),p=!0;if(3===r.type){var f=wt(r,t),h=a?a(f):qe,d=h.target||f,v=l.length,m=a?function(e){return a(_t(e[r.index])).target}:r.index;if(yt(n)){var y=null;if(!a&&u&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,p=!1;else{o=ic(r,t,o,!1);var g=n.listen(h.name||d,i,o);l.push(o,g),c&&c.push(i,m,v,v+1)}}else o=ic(r,t,o,!0),d.addEventListener(i,o,s),l.push(o),c&&c.push(i,m,v,s)}var _,b=r.outputs;if(p&&null!==b&&(_=b[i])){var w=_.length;if(w)for(var E=0;E=0}var Sc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xc(e){return e.substring(Sc.key,Sc.keyEnd)}function Tc(e){return e.substring(Sc.value,Sc.valueEnd)}function Ic(e,t){var n=Sc.textEnd;return n===t?-1:(t=Sc.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Sc.key=t,n),Dc(e,t,n))}function Ac(e,t){var n=Sc.textEnd,r=Sc.key=Dc(e,t,n);return n===r?-1:(r=Sc.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90);)t++;return t}(e,r,n),r=Pc(e,r,n),r=Sc.value=Dc(e,r,n),r=Sc.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,s=t,a=s;s32&&(a=s),o=i,i=r,r=-33&u}return a}(e,r,n),Pc(e,r,n))}function Nc(e){Sc.key=0,Sc.keyEnd=0,Sc.value=0,Sc.valueEnd=0,Sc.textEnd=e.length}function Dc(e,t,n){for(;t=0;n=Ac(t,n))Kc(e,xc(t),Tc(t))}function Lc(e){Hc(Be,Vc,e,!0)}function Vc(e,t){for(var n=function(e){return Nc(e),Ic(e,Dc(e,0,Sc.textEnd))}(t);n>=0;n=Ic(t,n))Be(e,xc(t),!0)}function Bc(e,t,n,r){var i,o=jt(),s=Lt(),a=$t(2);if(s.firstUpdatePass&&qc(s,e,a,r),t!==Pi&&fu(o,a,t)){var u=void 0;null==n&&(u=null===(i=Mt.lFrame)?null:i.currentSanitizer)&&(n=u),Qc(s,s.data[pn()+20],o,o[11],e,o[a+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=U(vr(e)))),e}(t,n),r,a)}}function Hc(e,t,n,r){var i=Lt(),o=$t(2);i.firstUpdatePass&&qc(i,null,o,r);var s=jt();if(n!==Pi&&fu(s,o,n)){var a=i.data[pn()+20];if($c(a,r)&&!Uc(i,o)){var u=r?a.classesWithoutHost:a.stylesWithoutHost;null!==u&&(n=q(u,n||"")),zu(i,a,s,n,r)}else!function(e,t,n,r,i,o,s,a){i===Pi&&(i=wc);for(var u=0,c=0,l=0=e.expandoStartIndex}function qc(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[pn()+20],s=Uc(e,n);$c(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=Zt(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Wc(n=zc(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=zc(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Ki(r))return e[qi(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[qi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=Wc(a=zc(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0):c=n,i)if(0!==u){var p=qi(e[a+1]);e[r+1]=Ui(p,a),0!==p&&(e[p+1]=Qi(e[p+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Ui(a,0),0!==a&&(e[a+1]=Qi(e[a+1],r)),a=r;else e[r+1]=Ui(u,0),0===a?a=r:e[u+1]=Qi(e[u+1],r),u=r;l&&(e[r+1]=Wi(e[r+1])),Ec(e,c,r,!0),Ec(e,c,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ue(o,t)>=0&&(n[r+1]=Yi(n[r+1]))}(t,c,e,r,o),s=Ui(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function zc(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){var u=e[i],c=Array.isArray(u),l=c?u[1]:u,p=null===l,f=n[i+1];f===Pi&&(f=p?wc:void 0);var h=p?He(f,r):l===r?f:void 0;if(c&&!Yc(h)&&(h=He(u,r)),Yc(h)&&(a=h,s))return a;var d=e[i+1];i=s?qi(d):Ki(d)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=He(v,r))}return a}function Yc(e){return void 0!==e}function $c(e,t){return 0!=(e.flags&(t?16:32))}function Xc(e,t){void 0===t&&(t="");var n=jt(),r=Lt(),i=e+20,o=r.firstCreatePass?ao(r,n[6],e,3,null,null):r.data[i],s=n[i]=es(t,n[11]);hs(r,n,s,o),Ht(o,!1)}function Jc(e){return Zc("",e,""),Jc}function Zc(e,t,n){var r=jt(),i=gu(r,e,t,n);return i!==Pi&&$o(r,pn(),i),Zc}function el(e,t,n,r,i){var o=jt(),s=_u(o,e,t,n,r,i);return s!==Pi&&$o(o,pn(),s),el}function tl(e,t,n,r,i,o,s){var a=jt(),u=bu(a,e,t,n,r,i,o,s);return u!==Pi&&$o(a,pn(),u),tl}function nl(e,t,n,r,i,o,s,a,u){var c=jt(),l=wu(c,e,t,n,r,i,o,s,a,u);return l!==Pi&&$o(c,pn(),l),nl}function rl(e,t,n,r,i,o,s,a,u,c,l){var p=jt(),f=Eu(p,e,t,n,r,i,o,s,a,u,c,l);return f!==Pi&&$o(p,pn(),f),rl}function il(e,t,n,r,i,o,s,a,u,c,l,p,f){var h=jt(),d=Cu(h,e,t,n,r,i,o,s,a,u,c,l,p,f);return d!==Pi&&$o(h,pn(),d),il}function ol(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d){var v=jt(),m=Su(v,e,t,n,r,i,o,s,a,u,c,l,p,f,h,d);return m!==Pi&&$o(v,pn(),m),ol}function sl(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m){var y=jt(),g=xu(y,e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m);return g!==Pi&&$o(y,pn(),g),sl}function al(e){var t=jt(),n=yu(t,e);return n!==Pi&&$o(t,pn(),n),al}function ul(e,t,n){Hc(Be,Vc,gu(jt(),e,t,n),!0)}function cl(e,t,n,r,i){Hc(Be,Vc,_u(jt(),e,t,n,r,i),!0)}function ll(e,t,n,r,i,o,s){Hc(Be,Vc,bu(jt(),e,t,n,r,i,o,s),!0)}function pl(e,t,n,r,i,o,s,a,u){Hc(Be,Vc,wu(jt(),e,t,n,r,i,o,s,a,u),!0)}function fl(e,t,n,r,i,o,s,a,u,c,l){Hc(Be,Vc,Eu(jt(),e,t,n,r,i,o,s,a,u,c,l),!0)}function hl(e,t,n,r,i,o,s,a,u,c,l,p,f){Hc(Be,Vc,Cu(jt(),e,t,n,r,i,o,s,a,u,c,l,p,f),!0)}function dl(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d){Hc(Be,Vc,Su(jt(),e,t,n,r,i,o,s,a,u,c,l,p,f,h,d),!0)}function vl(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m){Hc(Be,Vc,xu(jt(),e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m),!0)}function ml(e){Hc(Be,Vc,yu(jt(),e),!0)}function yl(e,t,n){Rc(gu(jt(),e,t,n))}function gl(e,t,n,r,i){Rc(_u(jt(),e,t,n,r,i))}function _l(e,t,n,r,i,o,s){Rc(bu(jt(),e,t,n,r,i,o,s))}function bl(e,t,n,r,i,o,s,a,u){Rc(wu(jt(),e,t,n,r,i,o,s,a,u))}function wl(e,t,n,r,i,o,s,a,u,c,l){Rc(Eu(jt(),e,t,n,r,i,o,s,a,u,c,l))}function El(e,t,n,r,i,o,s,a,u,c,l,p,f){Rc(Cu(jt(),e,t,n,r,i,o,s,a,u,c,l,p,f))}function Cl(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d){Rc(Su(jt(),e,t,n,r,i,o,s,a,u,c,l,p,f,h,d))}function Sl(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m){Rc(xu(jt(),e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m))}function xl(e){Rc(yu(jt(),e))}function Tl(e,t,n,r,i){return Bc(e,gu(jt(),t,n,r),i,!1),Tl}function Il(e,t,n,r,i,o,s){return Bc(e,_u(jt(),t,n,r,i,o),s,!1),Il}function Al(e,t,n,r,i,o,s,a,u){return Bc(e,bu(jt(),t,n,r,i,o,s,a),u,!1),Al}function Nl(e,t,n,r,i,o,s,a,u,c,l){return Bc(e,wu(jt(),t,n,r,i,o,s,a,u,c),l,!1),Nl}function Dl(e,t,n,r,i,o,s,a,u,c,l,p,f){return Bc(e,Eu(jt(),t,n,r,i,o,s,a,u,c,l,p),f,!1),Dl}function Pl(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d){return Bc(e,Cu(jt(),t,n,r,i,o,s,a,u,c,l,p,f,h),d,!1),Pl}function Ol(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m){return Bc(e,Su(jt(),t,n,r,i,o,s,a,u,c,l,p,f,h,d,v),m,!1),Ol}function Ml(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m,y,g){return Bc(e,xu(jt(),t,n,r,i,o,s,a,u,c,l,p,f,h,d,v,m,y),g,!1),Ml}function kl(e,t,n){return Bc(e,yu(jt(),t),n,!1),kl}function Fl(e,t,n){var r=jt();return fu(r,Yt(),t)&&wo(Lt(),hn(),r,e,t,r[11],n,!0),Fl}function Rl(e,t,n){var r=jt();if(fu(r,Yt(),t)){var i=Lt(),o=hn();wo(i,o,r,e,t,Qo(Zt(i.data),o,r),n,!0)}return Rl}function jl(e){Ql(e);var t,n,r=ql(e,!1);return null===r?null:(void 0===r.component&&(r.component=2&(n=(t=r.lView)[1].data[r.nodeIndex]).flags?t[n.directiveStart]:null),r.component)}function Ll(e){Ql(e);var t=ql(e,!1);return null===t?null:t.lView[8]}function Vl(e){var t=ql(e,!1);if(null===t)return null;for(var n,r=t.lView;null===r[0]&&(n=Oi(r));)r=n;return 512&r[2]?null:r[8]}function Bl(e){return p(Mi(e).components)}function Hl(e){var t=ql(e,!1);return null===t?ma.NULL:new nr(t.lView[1].data[t.nodeIndex],t.lView)}function Ul(e){var t=ql(e);return void 0===t.directives&&(t.directives=yi(t.nodeIndex,t.lView,!1)),null===t.directives?[]:p(t.directives)}function ql(e,t){void 0===t&&(t=!0);var n=li(e);if(!n&&t)throw new Error("Invalid ng target");return n}function zl(e){return li(e).native}function Wl(e){Ql(e);var t=ql(e,!1);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var s=0;s=0?"dom":"output"})}}return o.sort(Kl),o}function Kl(e,t){return e.name==t.name?0:e.name=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=In(i.hostAttrs,n=In(n,i.hostAttrs))}}(r)}function rp(e){return e===qe?{}:e===ze?[]:e}function ip(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function op(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function sp(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var ap=["providersResolver"],up=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function cp(e){var t,n,r,i,o,s=tp(e.type);o=ft(e)?s.\u0275cmp:s.\u0275dir;var a=e;try{for(var u=c(ap),l=u.next();!l.done;l=u.next())a[h=l.value]=o[h]}catch(d){t={error:d}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}if(ft(o))try{for(var p=c(up),f=p.next();!f.done;f=p.next()){var h;a[h=f.value]=o[h]}}catch(v){r={error:v}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}var lp=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 pp(e){e.type.prototype.ngOnChanges&&(e.setInput=fp,e.onChanges=function(){var e=hp(this),t=e&&e.current;if(t){var n=e.previous;if(n===qe)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function fp(e,t,n,r){var i=hp(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:qe,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new lp(u&&u.currentValue,t,s===qe),e[r]=t}function hp(e){return e.__ngSimpleChanges__||null}function dp(e,t,n,r,i){if(e=K(e),Array.isArray(e))for(var o=0;o>16;if(ha(e)||!e.multi){var d=new Cn(c,i,Bu),v=yp(u,t,i?p:p+h,f);-1===v?(Qn(qn(l,a),s,u),vp(s,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(d),a.push(d)):(n[v]=d,a[v]=d)}else{var m=yp(u,t,p+h,f),y=yp(u,t,p,p+h),g=y>=0&&n[y];i&&!g||!i&&!(m>=0&&n[m])?(Qn(qn(l,a),s,u),d=function(e,t,n,r,i){var o=new Cn(e,n,Bu);return o.multi=[],o.index=t,o.componentProviders=0,mp(o,i,r&&!n),o}(i?_p:gp,n.length,i,r,c),!i&&g&&(n[y].providerFactory=d),vp(s,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(d),a.push(d)):vp(s,e,m>-1?m:y,mp(n[i?y:m],c,!i&&r)),!i&&r&&g&&n[y].componentProviders++}}}function vp(e,t,n,r){var i=ha(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var a=s.indexOf(n);-1===a?s.push(n,[r,o]):s[a+1].push(r,o)}else s.push(n,o)}}}function mp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function yp(e,t,n,r){for(var i=n;i-1}(r,i)))){var l=e._providers.length;return e._def.providers[l]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:l,token:t.token},e._providers[l]=$f,e._providers[l]=th(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{ye(o)}}function th(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(eh(e,n[0]));case 2:return new t(eh(e,n[0]),eh(e,n[1]));case 3:return new t(eh(e,n[0]),eh(e,n[1]),eh(e,n[2]));default:for(var i=[],o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Le(n,t),_f.dirtyParentQueries(r),ih(r),r}function rh(e,t,n){var r=t?Of(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Hf(n,2,i,o,void 0)}function ih(e){Hf(e,3,null,null,void 0)}var oh={};function sh(e){return e.viewDefFactory}var ah=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});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=Bf(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=_f.createRootView(e,t||[],n,i,r,oh),a=mf(s,o).instance;return n&&s.renderer.setAttribute(vf(s,0).renderElement,"ng-version",Bp.full),new uh(s,new fh(s),a)},t}(Cp),uh=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Pp(vf(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new mh(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}(Ep);function ch(e,t,n){return new lh(e,t,n)}var lh=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 Pp(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new mh(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=Pf(e),e=e.parent;return e?new mh(e,t):new mh(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=nh(this._data,e);_f.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new fh(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 Dp||(i=o.get(Pe));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,r,i,o,s=e;return o=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=o.length),(i=s._view).viewContainerParent=this._view,je(o,r,i),function(e,t){var n=Df(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(n,i),_f.dirtyParentQueries(i),rh(n,r>0?o[r-1]:null,i),s.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 i=t,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],Le(o,r),null==i&&(i=o.length),je(o,i,s),_f.dirtyParentQueries(s),ih(s),rh(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=nh(this._data,e);t&&_f.destroyView(t)},e.prototype.detach=function(e){var t=nh(this._data,e);return t?new fh(t):null},e}();function ph(e){return new fh(e)}var fh=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return Hf(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(){If(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{_f.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){_f.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)),_f.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,ih(this._view),_f.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 hh(e,t){return new dh(e,t)}var dh=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return i(t,e),t.prototype.createEmbeddedView=function(e){return new fh(_f.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Pp(vf(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(nf);function vh(e,t){return new mh(e,t)}var mh=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=ma.THROW_IF_NOT_FOUND),_f.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Ef(e)},t)},e}();function yh(e,t,n,r){return new gh(e,t,n,r)}var gh=function(){function t(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=Ve(t.providers.length),r=0;r0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return Oh(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(kh(e,t,n,i[0]));case 2:return r(kh(e,t,n,i[0]),kh(e,t,n,i[1]));case 3:return r(kh(e,t,n,i[0]),kh(e,t,n,i[1]),kh(e,t,n,i[2]));default:for(var s=[],a=0;a0&&ws(c,p,b.join(" "))}if(o=Ct(v,0),void 0!==t)for(var w=o.projection=[],E=0;En.length&&n.push(u)}return{type:r,mainBinding:i,cases:t,values:n}}function hd(e){for(var t,n,r="",i=0,o=!1;null!==(t=ed.exec(e));)o?t[0]==="\ufffd/*"+n+"\ufffd"&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+e.substr(i)}function dd(e,t,n,r){void 0===r&&(r=null);for(var i=[null,null],o=e.split(nd),s=0,a=0;a0&&s!==a){var p=s.index-20;Ut()||(p=~p),l.push(p<<3|0)}var f=[],h=[];if(""===r&&Sd(i))l.push(r,Ed(o),u<<17|1);else for(var d=function(e,t){if(Sd(t))return hd(e);var n=e.indexOf(":"+t+"\ufffd")+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:"+t+"\ufffd"));return hd(e.substring(n,r))}(r,i),v=function(e){return e.replace(Bd," ")}(d).split(td),m=0;m0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(var r=0;r>1),s++}}(Lt(),e),cc(!1)}function Id(e,t,n,r,i,o){var s=Bt();t[n+20]=i;var a=ao(e,t[6],n,r,o,null);return s&&s.next===a&&(s.next=null),a}function Ad(e,t,n,r){for(var i=r[11],o=null,s=null,a=[],u=0;u>>17;s=Cd(n,o,f===e?r[6]:Ct(n,f),s,r);break;case 0:var h=c>=0,d=(h?c:~c)>>>3;a.push(d),s=o,(o=Ct(n,d))&&Ht(o,h);break;case 5:s=o=Ct(n,c>>>3),Ht(o,!1);break;case 4:var v=t[++u],m=t[++u];Oo(Ct(n,b=c>>>3),r,v,m,null,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'+c+'"')}else switch(c){case Hi:var y=t[++u],g=t[++u],_=i.createComment(y);s=o,o=Id(n,r,g,5,_,null),a.push(g),hi(_,r),o.activeCaseIndex=null,qt();break;case Bi:var b,w=t[++u];s=o,o=Id(n,r,b=t[++u],3,i.createElement(w),w),a.push(b);break;default:throw new Error('Unable to determine the type of mutate operation for "'+c+'"')}}return qt(),a}function Nd(e,t,n,r){var i=Ct(e,n),o=bt(n,t);o&&vs(t[11],o);var s=St(t,n);ut(s)&&0!==i.type&&vs(t[11],s[7]),r&&(i.flags|=64)}function Dd(e,t,n){wd(e,t,n),Td()}function Pd(e,t){!function(e,t,n,r){for(var i=Bt().index-20,o=[],s=0;s>>2,m=void 0,y=void 0;switch(3&d){case 1:var g=t[++h],_=t[++h];wo(o,Ct(o,v),s,g,f,s[11],_,!1);break;case 0:$o(s,v,f);break;case 2:if(m=n[t[++h]],null!==(y=Ct(o,v)).activeCaseIndex)for(var b=m.remove[y.activeCaseIndex],w=0;w>>3,!1);break;case 6:var C=Ct(o,b[w+1]>>>3).activeCaseIndex;null!==C&&ke(n[E>>>3].remove[C],b)}}var S=Rd(m,f);y.activeCaseIndex=-1!==S?S:null,S>-1&&(Ad(-1,m.create[S],o,s),u=!0);break;case 3:m=n[t[++h]],null!==(y=Ct(o,v)).activeCaseIndex&&e(m.update[y.activeCaseIndex],n,r,i,o,s,u)}}}c+=p}}(r,i,o,Od,t,s),Od=0,Md=0}}function Rd(e,t){var n,r,i,o=e.cases.indexOf(t);if(-1===o)switch(e.type){case 1:var s=(n=t,r=$h(Hd)(parseInt(n,10)),void 0!==(i=Jh[r])?i:"other");-1===(o=e.cases.indexOf(s))&&"other"!==s&&(o=e.cases.indexOf("other"));break;case 0:o=e.cases.indexOf("other")}return o}function jd(e,t,n,r){for(var i=[],o=[],s=[],a=[],u=[],c=0;c=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '"+e+"' could not be found!")}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=ot(n.type)),s=ge(Bu),a=Hn(!1),u=o();return Hn(a),ge(s),Lu(r,jt(),e,u),u}function fv(e,t,n){var r=jt(),i=St(r,e);return gv(r,yv(r,e)?sv(r,Kt(),t,i.transform,n,i):i.transform(n))}function hv(e,t,n,r){var i=jt(),o=St(i,e);return gv(i,yv(i,e)?av(i,Kt(),t,o.transform,n,r,o):o.transform(n,r))}function dv(e,t,n,r,i){var o=jt(),s=St(o,e);return gv(o,yv(o,e)?uv(o,Kt(),t,s.transform,n,r,i,s):s.transform(n,r,i))}function vv(e,t,n,r,i,o){var s=jt(),a=St(s,e);return gv(s,yv(s,e)?cv(s,Kt(),t,a.transform,n,r,i,o,a):a.transform(n,r,i,o))}function mv(e,t,n){var r=jt(),i=St(r,e);return gv(r,yv(r,e)?lv(r,Kt(),t,i.transform,n,i):i.transform.apply(i,n))}function yv(e,t){return e[1].data[t+20].pure}function gv(e,t){return au.isWrapped(t)&&(t=au.unwrap(t),e[Qt()]=Pi),t}var _v=function(e){function n(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return i(n,e),n.prototype.emit=function(t){e.prototype.next.call(this,t)},n.prototype.subscribe=function(n,r,i){var o,s=function(e){return null},a=function(){return null};n&&"object"==typeof n?(o=this.__isAsync?function(e){setTimeout((function(){return n.next(e)}))}:function(e){n.next(e)},n.error&&(s=this.__isAsync?function(e){setTimeout((function(){return n.error(e)}))}:function(e){n.error(e)}),n.complete&&(a=this.__isAsync?function(){setTimeout((function(){return n.complete()}))}:function(){n.complete()})):(o=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)},r&&(s=this.__isAsync?function(e){setTimeout((function(){return r(e)}))}:function(e){r(e)}),i&&(a=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var u=e.prototype.subscribe.call(this,o,s,a);return n instanceof t.Subscription&&n.add(u),u},n}(t.Subject);function bv(){return this._results[iu()]()}var wv=function(){function e(){this.dirty=!0,this._results=[],this.changes=new _v,this.length=0;var t=iu(),n=e.prototype;n[t]||(n[t]=bv)}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.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=Fe(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}(),Ev=function(){function e(e){this.queryList=e,this.matches=null}return e.prototype.clone=function(){return new e(this.queryList)},e.prototype.setDirty=function(){this.queryList.setDirty()},e}(),Cv=function(){function e(e){void 0===e&&(e=[]),this.queries=e}return e.prototype.createEmbeddedView=function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o0)i.push(a[u/2]);else{for(var l=s[u+1],p=n[-c],f=10;f=0;e--){var t=Kv[e],n=t.moduleType,r=t.ngModule;r.declarations&&r.declarations.every(Yv)&&(Kv.splice(e,1),Jv(n,r))}}finally{Qv=!1}}}function Yv(e){return Array.isArray(e)?e.every(Yv):!!K(e)}function $v(e,t){void 0===t&&(t={}),Xv(e,t),function(e,t){Kv.push({moduleType:e,ngModule:t})}(e,t)}function Xv(e,t,n){void 0===n&&(n=!1);var r=Fe(t.declarations||Wv),i=null;Object.defineProperty(e,ae,{configurable:!0,get:function(){return null===i&&((i=ne().compileNgModule(qv,"ng:///"+e.name+"/\u0275mod.js",{type:e,bootstrap:Fe(t.bootstrap||Wv).map(K),declarations:r.map(K),imports:Fe(t.imports||Wv).map(K).map(tm),exports:Fe(t.exports||Wv).map(K).map(tm),schemas:t.schemas?Fe(t.schemas):null,id:t.id||null})).schemas||(i.schemas=[])),i}});var o=null;Object.defineProperty(e,L,{get:function(){if(null===o){var n={name:e.name,type:e,deps:Ws(e),providers:t.providers||Wv,imports:[(t.imports||Wv).map(K),(t.exports||Wv).map(K)]};o=ne().compileInjector(qv,"ng:///"+e.name+"/\u0275inj.js",n)}return o},configurable:!1})}function Jv(e,t){var n=Fe(t.declarations||Wv),r=em(e);n.forEach((function(t){t.hasOwnProperty(ie)?Zv(nt(t),r):t.hasOwnProperty(oe)||t.hasOwnProperty(se)||(t.ngSelectorScope=e)}))}function Zv(e,t){e.directiveDefs=function(){return Array.from(t.compilation.directives).map((function(e){return e.hasOwnProperty(ie)?nt(e):rt(e)})).filter((function(e){return!!e}))},e.pipeDefs=function(){return Array.from(t.compilation.pipes).map((function(e){return it(e)}))},e.schemas=t.schemas,e.tView=null}function em(e){if(!nm(e))throw new Error(e.name+" does not have a module def (\u0275mod property)");var t=st(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;var n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Vn(t.imports).forEach((function(e){var t=e;if(!nm(t))throw new Error("Importing "+t.name+" which does not have a \u0275mod property");var r=em(t);r.exported.directives.forEach((function(e){return n.compilation.directives.add(e)})),r.exported.pipes.forEach((function(e){return n.compilation.pipes.add(e)}))})),Vn(t.declarations).forEach((function(e){it(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)})),Vn(t.exports).forEach((function(e){var t=e;if(nm(t)){var r=em(t);r.exported.directives.forEach((function(e){n.compilation.directives.add(e),n.exported.directives.add(e)})),r.exported.pipes.forEach((function(e){n.compilation.pipes.add(e),n.exported.pipes.add(e)}))}else it(t)?n.exported.pipes.add(t):n.exported.directives.add(t)})),t.transitiveCompileScopes=n,n}function tm(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function nm(e){return!!st(e)}function rm(t,n){var r=null;!function(e,t){Za(t)&&(Xa.set(e,t),Ja.add(e))}(t,n),sm(t,n),Object.defineProperty(t,ie,{get:function(){if(null===r){var i=ne();if(Za(n)){var s=["Component '"+t.name+"' is not resolved:"];throw n.templateUrl&&s.push(" - templateUrl: "+n.templateUrl),n.styleUrls&&n.styleUrls.length&&s.push(" - styleUrls: "+JSON.stringify(n.styleUrls)),s.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(s.join("\n"))}var a=n.preserveWhitespaces;void 0===a&&(a=null!==zv&&void 0!==zv.preserveWhitespaces&&zv.preserveWhitespaces);var u=n.encapsulation;void 0===u&&(u=null!==zv&&void 0!==zv.defaultEncapsulation?zv.defaultEncapsulation:e.ViewEncapsulation.Emulated);var c=n.templateUrl||"ng:///"+t.name+"/template.html",l=o(o({},um(t,n)),{typeSourceSpan:i.createParseSourceSpan("Component",t.name,c),template:n.template||"",preserveWhitespaces:a,styles:n.styles||ze,animations:n.animations,directives:[],changeDetection:n.changeDetection,pipes:new Map,encapsulation:u,interpolation:n.interpolation,viewProviders:n.viewProviders||null});if(l.usesInheritance&&cm(t),r=i.compileComponent(qv,c,l),Gv(),void 0!==t.ngSelectorScope){var p=em(t.ngSelectorScope);Zv(r,p)}}return r},configurable:!1})}function im(e,t){var n=null;sm(e,t||{}),Object.defineProperty(e,oe,{get:function(){if(null===n){var r=om(e,t||{});n=ne().compileDirective(qv,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function om(e,t){var n=e&&e.name,r="ng:///"+n+"/\u0275dir.js",i=ne(),o=um(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&cm(e),{metadata:o,sourceMapUrl:r}}function sm(e,t){var n=null;Object.defineProperty(e,ce,{get:function(){if(null===n){var r=om(e,t),i=ne();n=i.compileFactory(qv,"ng:///"+e.name+"/\u0275fac.js",o(o({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function am(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function um(e,t){var n,r=zs(),i=r.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:Ws(e),host:t.host||qe,propMetadata:i,inputs:t.inputs||ze,outputs:t.outputs||ze,queries:lm(e,i,pm),lifecycle:{usesOnChanges:r.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!am(e),exportAs:(n=t.exportAs,void 0===n?null:dm(n)),providers:t.providers||null,viewQueries:lm(e,i,fm)}}function cm(e){for(var t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;n&&n!==t;)rt(n)||nt(n)||!mm(n)||im(n,null),n=Object.getPrototypeOf(n)}function lm(e,t,n){var r=[],i=function(i){if(t.hasOwnProperty(i)){var o=t[i];o.forEach((function(t){if(n(t)){if(!t.selector)throw new Error("Can't construct a query for the property \""+i+'" of "'+kn(e)+"\" since the query selector wasn't defined.");if(o.some(hm))throw new Error("Cannot combine @Input decorators with query decorators");r.push(function(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?dm(n):K(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}(i,t))}}))}};for(var o in t)i(o);return r}function pm(e){var t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function fm(e){var t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function hm(e){return"Input"===e.ngMetadataName}function dm(e){return e.split(",").map((function(e){return e.trim()}))}new Map,new Map;var vm=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function mm(e){var t=zs();if(vm.some((function(n){return t.hasLifecycleHook(e,n)})))return!0;var n=t.propMetadata(e);for(var r in n)for(var i=n[r],o=0;o0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},(e=s([u("design:paramtypes",[ly])],e)).\u0275fac=function(t){return new(t||e)(be(ly))},e.\u0275prov=P({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),by=function(){function e(){this._applications=new Map,wy.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),wy.findTestabilityInTree(this,e,t)},(e=s([u("design:paramtypes",[])],e)).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),wy=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Ey=Cy;function Cy(e,t,n){var r=e.get(ay,[]).concat(t),i=new Gd(n);if(0===Xa.size)return Promise.resolve(i);var o,s,a=(o=r.map((function(e){return e.providers})),s=[],o.forEach((function(e){return e&&s.push.apply(s,p(e))})),s);if(0===a.length)return Promise.resolve(i);var u=ne(),c=ma.create({providers:a}).get(u.ResourceLoader);return $a((function(e){return Promise.resolve(c.get(e))})).then((function(){return i}))}var Sy=xy;function xy(e){return e.isBoundToModule}var Ty=new pe("AllowMultipleToken");function Iy(e){if(yy&&!yy.destroyed&&!yy.injector.get(Ty,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yy=e.get(Py);var t=e.get(Um,null);return t&&t.forEach((function(e){return e()})),yy}function Ay(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new pe(r);return function(t){void 0===t&&(t=[]);var o=Dy();if(!o||o.injector.get(Ty,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:ea,useValue:"platform"});Iy(ma.create({providers:s,name:r}))}return Ny(i)}}function Ny(e){var t=Dy();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}function Dy(){return yy&&!yy.destroyed?yy:null}var Py=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r,i=this,o=(r=t&&t.ngZoneEventCoalescing||!1,"noop"===(n=t?t.ngZone:void 0)?new gy:("zone.js"===n?void 0:n)||new ly({enableLongStackTrace:br(),shouldCoalesceEventChangeDetection:r})),s=[{provide:ly,useValue:o}];return o.run((function(){var t=ma.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(ur,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return ky(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(Rm)).runInitializers(),s.donePromise.then((function(){return Ud(n.injector.get(Qm,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Ju(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Oy({},t);return Ey(this.injector,r,e).then((function(e){return n.bootstrapModuleFactory(e,r)}))},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(My);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+U(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),(e=s([u("design:paramtypes",[ma])],e)).\u0275fac=function(t){return new(t||e)(be(ma))},e.\u0275prov=P({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function Oy(e,t){return Array.isArray(t)?t.reduce(Oy,e):o(o({},e),t)}var My=function(){function e(e,r,i,o,s,a){var u=this;this._zone=e,this._console=r,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=br(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run((function(){u.tick()}))}});var c=new t.Observable((function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular((function(){e.next(u._stable),e.complete()}))})),l=new t.Observable((function(e){var t;u._zone.runOutsideAngular((function(){t=u._zone.onStable.subscribe((function(){ly.assertNotInAngularZone(),cy((function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))}))}))}));var n=u._zone.onUnstable.subscribe((function(){ly.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=t.merge(c,l.pipe(n.share()))}return 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 Cp?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=Sy(n)?void 0:this._injector.get(Pe),o=n.create(ma.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(_y,null);return s&&o.injector.get(by).registerApplication(o.location.nativeElement,s),this._loadComponent(o),br()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var e,t,n,r,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var o=c(this._views),s=o.next();!s.done;s=o.next())s.value.detectChanges()}catch(l){e={error:l}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var a=c(this._views),u=a.next();!u.done;u=a.next())u.value.checkNoChanges()}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}catch(f){this._zone.runOutsideAngular((function(){return i._exceptionHandler.handleError(f)}))}finally{this._runningTick=!1}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;ky(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(zm,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),ky(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=s([u("design:paramtypes",[ly,Km,ma,ur,Ap,Rm])],e)).\u0275fac=function(t){return new(t||e)(be(ly),be(Km),be(ma),be(ur),be(Ap),be(Rm))},e.\u0275prov=P({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function ky(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Fy(e){var t=Kd(e);if(!t)throw jy(e);return new Gd(t)}var Ry=Fy;function jy(e){return new Error("No module with ID "+e+" loaded")}var Ly=function(){},Vy={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},By=function(){function e(e,t){this._compiler=e,this._config=t||Vy}return e.prototype.load=function(e){return this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,n=l(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then((function(e){return e[i]})).then((function(e){return Hy(e,r,i)})).then((function(e){return t._compiler.compileModuleAsync(e)}))},e.prototype.loadFactory=function(e){var t=l(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(e){return e[r+i]})).then((function(e){return Hy(e,n,r)}))},(e=s([a(1,C()),u("design:paramtypes",[sy,Ly])],e)).\u0275fac=function(t){return new(t||e)(be(sy),be(Ly,8))},e.\u0275prov=P({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function Hy(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Uy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Ps),qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Uy),zy=function(e,t){this.name=e,this.callback=t},Wy=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Ky&&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}(),Ky=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return i(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,p([i+1,0],t)),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Qy(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Gy(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}(Wy);function Qy(e,t,n){e.childNodes.forEach((function(e){e instanceof Ky&&(t(e)&&n.push(e),Qy(e,t,n))}))}function Gy(e,t,n){e instanceof Ky&&e.childNodes.forEach((function(e){t(e)&&n.push(e),e instanceof Ky&&Gy(e,t,n)}))}var Yy=function(){function e(e){this.nativeNode=e}return Object.defineProperty(e.prototype,"parent",{get:function(){var e=this.nativeNode.parentNode;return e?new $y(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return Hl(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){var e=this.nativeNode;return e&&(jl(e)||Vl(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return jl(this.nativeNode)||Ll(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listeners",{get:function(){return Wl(this.nativeNode).filter((function(e){return"dom"===e.type}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return null===(e=ql(this.nativeNode,!1))?{}:(void 0===e.localRefs&&(e.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o1){for(var c=a[1],l=1;li)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Pg(e,t,n,r){var i=kg(e.root,e.renderer,e,t,n);return Fg(i,e.component,r),Rg(i),i}function Og(e,t,n){var r=kg(e,e.renderer,null,null,t);return Fg(r,n,n),Rg(r),r}function Mg(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,kg(e.root,i,e,t.element.componentProvider,n)}function kg(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 Fg(e,t,n){e.component=t,e.context=n}function Rg(e){var t;Mf(e)&&(t=vf(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&bg(e,t,0,n)&&(h=!0),f>1&&bg(e,t,1,r)&&(h=!0),f>2&&bg(e,t,2,i)&&(h=!0),f>3&&bg(e,t,3,o)&&(h=!0),f>4&&bg(e,t,4,s)&&(h=!0),f>5&&bg(e,t,5,a)&&(h=!0),f>6&&bg(e,t,6,u)&&(h=!0),f>7&&bg(e,t,7,c)&&(h=!0),f>8&&bg(e,t,8,l)&&(h=!0),f>9&&bg(e,t,9,p)&&(h=!0),h}(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 f=!1,h=t.bindings,d=h.length;if(d>0&&xf(e,t,0,n)&&(f=!0),d>1&&xf(e,t,1,r)&&(f=!0),d>2&&xf(e,t,2,i)&&(f=!0),d>3&&xf(e,t,3,o)&&(f=!0),d>4&&xf(e,t,4,s)&&(f=!0),d>5&&xf(e,t,5,a)&&(f=!0),d>6&&xf(e,t,6,u)&&(f=!0),d>7&&xf(e,t,7,c)&&(f=!0),d>8&&xf(e,t,8,l)&&(f=!0),d>9&&xf(e,t,9,p)&&(f=!0),f){var v=t.text.prefix;d>0&&(v+=Ag(n,h[0])),d>1&&(v+=Ag(r,h[1])),d>2&&(v+=Ag(i,h[2])),d>3&&(v+=Ag(o,h[3])),d>4&&(v+=Ag(s,h[4])),d>5&&(v+=Ag(a,h[5])),d>6&&(v+=Ag(u,h[6])),d>7&&(v+=Ag(c,h[7])),d>8&&(v+=Ag(l,h[8])),d>9&&(v+=Ag(p,h[9]));var m=df(e,t.nodeIndex).renderText;e.renderer.setValue(m,v)}return f}(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 f=mf(e,t.nodeIndex),h=f.instance,d=!1,v=void 0,m=t.bindings.length;return m>0&&Sf(e,t,0,n)&&(d=!0,v=Rh(e,f,t,0,n,v)),m>1&&Sf(e,t,1,r)&&(d=!0,v=Rh(e,f,t,1,r,v)),m>2&&Sf(e,t,2,i)&&(d=!0,v=Rh(e,f,t,2,i,v)),m>3&&Sf(e,t,3,o)&&(d=!0,v=Rh(e,f,t,3,o,v)),m>4&&Sf(e,t,4,s)&&(d=!0,v=Rh(e,f,t,4,s,v)),m>5&&Sf(e,t,5,a)&&(d=!0,v=Rh(e,f,t,5,a,v)),m>6&&Sf(e,t,6,u)&&(d=!0,v=Rh(e,f,t,6,u,v)),m>7&&Sf(e,t,7,c)&&(d=!0,v=Rh(e,f,t,7,c,v)),m>8&&Sf(e,t,8,l)&&(d=!0,v=Rh(e,f,t,8,l,v)),m>9&&Sf(e,t,9,p)&&(d=!0,v=Rh(e,f,t,9,p,v)),v&&h.ngOnChanges(v),65536&t.flags&&hf(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.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 f=t.bindings,h=!1,d=f.length;if(d>0&&xf(e,t,0,n)&&(h=!0),d>1&&xf(e,t,1,r)&&(h=!0),d>2&&xf(e,t,2,i)&&(h=!0),d>3&&xf(e,t,3,o)&&(h=!0),d>4&&xf(e,t,4,s)&&(h=!0),d>5&&xf(e,t,5,a)&&(h=!0),d>6&&xf(e,t,6,u)&&(h=!0),d>7&&xf(e,t,7,c)&&(h=!0),d>8&&xf(e,t,8,l)&&(h=!0),d>9&&xf(e,t,9,p)&&(h=!0),h){var v=yf(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=[],d>0&&m.push(n),d>1&&m.push(r),d>2&&m.push(i),d>3&&m.push(o),d>4&&m.push(s),d>5&&m.push(a),d>6&&m.push(u),d>7&&m.push(c),d>8&&m.push(l),d>9&&m.push(p);break;case 64:m={},d>0&&(m[f[0].name]=n),d>1&&(m[f[1].name]=r),d>2&&(m[f[2].name]=i),d>3&&(m[f[3].name]=o),d>4&&(m[f[4].name]=s),d>5&&(m[f[5].name]=a),d>6&&(m[f[6].name]=u),d>7&&(m[f[7].name]=c),d>8&&(m[f[8].name]=l),d>9&&(m[f[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 h}(e,t,n,r,i,o,s,a,u,c,l,p);default:throw"unreachable"}}(e,t,r,i,o,s,a,u,c,l,f,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&Tf(e,t,0,n),f>1&&Tf(e,t,1,r),f>2&&Tf(e,t,2,i),f>3&&Tf(e,t,3,o),f>4&&Tf(e,t,4,s),f>5&&Tf(e,t,5,a),f>6&&Tf(e,t,6,u),f>7&&Tf(e,t,7,c),f>8&&Tf(e,t,8,l),f>9&&Tf(e,t,9,p)}(e,t,r,i,o,s,a,u,c,l,p,f):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);u_.forEach((function(t,r){if(o.has(k(r).providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:jf(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Ef(r)]=i}}))}}(e=e.factory((function(){return bf}))),e):e}(r))}var r_,i_,o_,s_,a_=new Map,u_=new Map,c_=new Map;function l_(e){var t;a_.set(e.token,e),"function"==typeof e.token&&(t=k(e.token))&&"function"==typeof t.providedIn&&u_.set(e.token,e)}function p_(e,t){var n=Bf(sh(t)),r=Bf(n.nodes[0].element.componentView);c_.set(e,r)}function f_(){a_.clear(),u_.clear(),c_.clear()}function h_(e){if(0===a_.size)return e;var t=function(e){for(var t=[],n=null,r=0;r0)c=v,Ng(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var g=c.parent;g&&(g.childFlags|=c.childFlags,g.childMatchedQueries|=c.childMatchedQueries),l=(c=g)&&Ng(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||bf,updateRenderer:r||bf,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}},e.\u0275whenRendered=function(e){return Mi(e).clean},e.\u0275\u0275CopyDefinitionFeature=cp,e.\u0275\u0275InheritDefinitionFeature=np,e.\u0275\u0275NgOnChangesFeature=pp,e.\u0275\u0275ProvidersFeature=wp,e.\u0275\u0275advance=ji,e.\u0275\u0275attribute=mu,e.\u0275\u0275attributeInterpolate1=Tu,e.\u0275\u0275attributeInterpolate2=Iu,e.\u0275\u0275attributeInterpolate3=Au,e.\u0275\u0275attributeInterpolate4=Nu,e.\u0275\u0275attributeInterpolate5=Du,e.\u0275\u0275attributeInterpolate6=Pu,e.\u0275\u0275attributeInterpolate7=Ou,e.\u0275\u0275attributeInterpolate8=Mu,e.\u0275\u0275attributeInterpolateV=ku,e.\u0275\u0275classMap=Lc,e.\u0275\u0275classMapInterpolate1=ul,e.\u0275\u0275classMapInterpolate2=cl,e.\u0275\u0275classMapInterpolate3=ll,e.\u0275\u0275classMapInterpolate4=pl,e.\u0275\u0275classMapInterpolate5=fl,e.\u0275\u0275classMapInterpolate6=hl,e.\u0275\u0275classMapInterpolate7=dl,e.\u0275\u0275classMapInterpolate8=vl,e.\u0275\u0275classMapInterpolateV=ml,e.\u0275\u0275classProp=Fc,e.\u0275\u0275componentHostSyntheticListener=tc,e.\u0275\u0275contentQuery=kv,e.\u0275\u0275defaultStyleSanitizer=oi,e.\u0275\u0275defineComponent=Ke,e.\u0275\u0275defineDirective=et,e.\u0275\u0275defineInjectable=P,e.\u0275\u0275defineInjector=M,e.\u0275\u0275defineNgModule=Xe,e.\u0275\u0275definePipe=tt,e.\u0275\u0275directiveInject=Bu,e.\u0275\u0275disableBindings=Rt,e.\u0275\u0275element=Qu,e.\u0275\u0275elementContainer=$u,e.\u0275\u0275elementContainerEnd=Yu,e.\u0275\u0275elementContainerStart=Gu,e.\u0275\u0275elementEnd=Ku,e.\u0275\u0275elementStart=Wu,e.\u0275\u0275enableBindings=Ft,e.\u0275\u0275getCurrentView=Xu,e.\u0275\u0275getFactoryOf=rr,e.\u0275\u0275getInheritedFactory=ir,e.\u0275\u0275hostProperty=Fl,e.\u0275\u0275i18n=Dd,e.\u0275\u0275i18nApply=Fd,e.\u0275\u0275i18nAttributes=Pd,e.\u0275\u0275i18nEnd=Td,e.\u0275\u0275i18nExp=kd,e.\u0275\u0275i18nPostprocess=xd,e.\u0275\u0275i18nStart=wd,e.\u0275\u0275inject=be,e.\u0275\u0275injectAttribute=Hu,e.\u0275\u0275injectPipeChangeDetectorRef=Uv,e.\u0275\u0275invalidFactory=Uu,e.\u0275\u0275invalidFactoryDep=we,e.\u0275\u0275listener=ec,e.\u0275\u0275loadQuery=jv,e.\u0275\u0275namespaceHTML=mn,e.\u0275\u0275namespaceMathML=vn,e.\u0275\u0275namespaceSVG=dn,e.\u0275\u0275nextContext=oc,e.\u0275\u0275pipe=pv,e.\u0275\u0275pipeBind1=fv,e.\u0275\u0275pipeBind2=hv,e.\u0275\u0275pipeBind3=dv,e.\u0275\u0275pipeBind4=vv,e.\u0275\u0275pipeBindV=mv,e.\u0275\u0275projection=lc,e.\u0275\u0275projectionDef=ac,e.\u0275\u0275property=qu,e.\u0275\u0275propertyInterpolate=pc,e.\u0275\u0275propertyInterpolate1=fc,e.\u0275\u0275propertyInterpolate2=hc,e.\u0275\u0275propertyInterpolate3=dc,e.\u0275\u0275propertyInterpolate4=vc,e.\u0275\u0275propertyInterpolate5=mc,e.\u0275\u0275propertyInterpolate6=yc,e.\u0275\u0275propertyInterpolate7=gc,e.\u0275\u0275propertyInterpolate8=_c,e.\u0275\u0275propertyInterpolateV=bc,e.\u0275\u0275pureFunction0=Yd,e.\u0275\u0275pureFunction1=$d,e.\u0275\u0275pureFunction2=Xd,e.\u0275\u0275pureFunction3=Jd,e.\u0275\u0275pureFunction4=Zd,e.\u0275\u0275pureFunction5=ev,e.\u0275\u0275pureFunction6=tv,e.\u0275\u0275pureFunction7=nv,e.\u0275\u0275pureFunction8=rv,e.\u0275\u0275pureFunctionV=iv,e.\u0275\u0275queryRefresh=Dv,e.\u0275\u0275reference=Vu,e.\u0275\u0275resolveBody=Ln,e.\u0275\u0275resolveDocument=jn,e.\u0275\u0275resolveWindow=Rn,e.\u0275\u0275restoreView=Vt,e.\u0275\u0275sanitizeHtml=Jr,e.\u0275\u0275sanitizeResourceUrl=ti,e.\u0275\u0275sanitizeScript=ni,e.\u0275\u0275sanitizeStyle=Zr,e.\u0275\u0275sanitizeUrl=ei,e.\u0275\u0275sanitizeUrlOrResourceUrl=ii,e.\u0275\u0275select=Li,e.\u0275\u0275setComponentScope=Qe,e.\u0275\u0275setNgModuleScope=Je,e.\u0275\u0275staticContentQuery=Fv,e.\u0275\u0275staticViewQuery=Pv,e.\u0275\u0275styleMap=Rc,e.\u0275\u0275styleMapInterpolate1=yl,e.\u0275\u0275styleMapInterpolate2=gl,e.\u0275\u0275styleMapInterpolate3=_l,e.\u0275\u0275styleMapInterpolate4=bl,e.\u0275\u0275styleMapInterpolate5=wl,e.\u0275\u0275styleMapInterpolate6=El,e.\u0275\u0275styleMapInterpolate7=Cl,e.\u0275\u0275styleMapInterpolate8=Sl,e.\u0275\u0275styleMapInterpolateV=xl,e.\u0275\u0275styleProp=kc,e.\u0275\u0275stylePropInterpolate1=Tl,e.\u0275\u0275stylePropInterpolate2=Il,e.\u0275\u0275stylePropInterpolate3=Al,e.\u0275\u0275stylePropInterpolate4=Nl,e.\u0275\u0275stylePropInterpolate5=Dl,e.\u0275\u0275stylePropInterpolate6=Pl,e.\u0275\u0275stylePropInterpolate7=Ol,e.\u0275\u0275stylePropInterpolate8=Ml,e.\u0275\u0275stylePropInterpolateV=kl,e.\u0275\u0275styleSanitizer=Mc,e.\u0275\u0275template=ju,e.\u0275\u0275templateRefExtractor=Hv,e.\u0275\u0275text=Xc,e.\u0275\u0275textInterpolate=Jc,e.\u0275\u0275textInterpolate1=Zc,e.\u0275\u0275textInterpolate2=el,e.\u0275\u0275textInterpolate3=tl,e.\u0275\u0275textInterpolate4=nl,e.\u0275\u0275textInterpolate5=rl,e.\u0275\u0275textInterpolate6=il,e.\u0275\u0275textInterpolate7=ol,e.\u0275\u0275textInterpolate8=sl,e.\u0275\u0275textInterpolateV=al,e.\u0275\u0275updateSyntheticHostBinding=Rl,e.\u0275\u0275viewQuery=Ov,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@angular/core"),exports,require("@angular/core")):"function"==typeof define&&define.amd?define("@angular/common",["@angular/core","exports","@angular/core"],t):t((e=e||self).ng.core,(e.ng=e.ng||{},e.ng.common={}),e.ng.core)}(this,(function(e,t,n){"use strict";var r=null;function i(){return r}var o=function(e,t){return(o=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 s(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(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 u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(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}var f=new n.InjectionToken("DocumentToken"),h=function(){function e(){}return e.\u0275prov=n.\u0275\u0275defineInjectable({factory:d,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)},e}();function d(){return n.\u0275\u0275inject(m)}var v=new n.InjectionToken("Location Initialized"),m=function(t){function r(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return s(r,t),r.prototype._init=function(){this.location=i().getLocation(),this._history=i().getHistory()},r.prototype.getBaseHrefFromDOM=function(){return i().getBaseHref(this._doc)},r.prototype.onPopState=function(e){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},r.prototype.onHashChange=function(e){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(r.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),r.prototype.pushState=function(e,t,n){y()?this._history.pushState(e,t,n):this.location.hash=n},r.prototype.replaceState=function(e,t,n){y()?this._history.replaceState(e,t,n):this.location.hash=n},r.prototype.forward=function(){this._history.forward()},r.prototype.back=function(){this._history.back()},r.prototype.getState=function(){return this._history.state},r.\u0275prov=n.\u0275\u0275defineInjectable({factory:g,token:r,providedIn:"platform"}),(r=a([u(0,n.Inject(f)),c("design:paramtypes",[Object])],r)).\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(f))},r}(h);function y(){return!!window.history.pushState}function g(){return new m(n.\u0275\u0275inject(f))}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}function b(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function w(e){return e&&"?"!==e[0]?"?"+e:e}var E=function(){function e(){}return e.\u0275prov=n.\u0275\u0275defineInjectable({factory:C,token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)},e}();function C(e){var t=n.\u0275\u0275inject(f).location;return new x(n.\u0275\u0275inject(h),t&&t.origin||"")}var S=new n.InjectionToken("appBaseHref"),x=function(t){function r(e,n){var r=t.call(this)||this;if(r._platformLocation=e,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 s(r,t),r.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},r.prototype.getBaseHref=function(){return this._baseHref},r.prototype.prepareExternalUrl=function(e){return _(this._baseHref,e)},r.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+w(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},r.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+w(r));this._platformLocation.pushState(e,t,i)},r.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+w(r));this._platformLocation.replaceState(e,t,i)},r.prototype.forward=function(){this._platformLocation.forward()},r.prototype.back=function(){this._platformLocation.back()},(r=a([u(1,n.Optional()),u(1,n.Inject(S)),c("design:paramtypes",[h,String])],r)).\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(h),e.\u0275\u0275inject(S,8))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:function(e){return r.\u0275fac(e)}}),r}(E),T=function(t){function r(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return s(r,t),r.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},r.prototype.getBaseHref=function(){return this._baseHref},r.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},r.prototype.prepareExternalUrl=function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t},r.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+w(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},r.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+w(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},r.prototype.forward=function(){this._platformLocation.forward()},r.prototype.back=function(){this._platformLocation.back()},(r=a([u(1,n.Optional()),u(1,n.Inject(S)),c("design:paramtypes",[h,String])],r)).\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(h),e.\u0275\u0275inject(S,8))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:function(e){return r.\u0275fac(e)}}),r}(E),I=function(){function t(e,t){var r=this;this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=b(N(i)),this._platformStrategy.onPopState((function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})}))}var r;return r=t,t.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(e,t){return void 0===t&&(t=""),this.path()==this.normalize(e+w(t))},t.prototype.normalize=function(e){return r.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,N(e)))},t.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},t.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+w(t)),n)},t.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+w(t)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))},t.prototype._notifyUrlChangeListeners=function(e,t){void 0===e&&(e=""),this._urlChangeListeners.forEach((function(n){return n(e,t)}))},t.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},t.normalizeQueryParams=w,t.joinWithSlash=_,t.stripTrailingSlash=b,t.\u0275prov=n.\u0275\u0275defineInjectable({factory:A,token:t,providedIn:"root"}),(t=r=a([c("design:paramtypes",[E,h])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(E),e.\u0275\u0275inject(h))},t}();function A(){return new I(n.\u0275\u0275inject(E),n.\u0275\u0275inject(h))}function N(e){return e.replace(/\/index.html$/,"")}var D,P,O,M,k,F,R,j={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],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,"$",2],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,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],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",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],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",2],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,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],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],XXX:["\xa4"],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 L(e){return n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.LocaleId]}function V(e,t,r){var i=n.\u0275findLocaleData(e),o=J([i[n.\u0275LocaleDataIndex.DayPeriodsFormat],i[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],t);return J(o,r)}function B(e,t,r){var i=n.\u0275findLocaleData(e),o=J([i[n.\u0275LocaleDataIndex.DaysFormat],i[n.\u0275LocaleDataIndex.DaysStandalone]],t);return J(o,r)}function H(e,t,r){var i=n.\u0275findLocaleData(e),o=J([i[n.\u0275LocaleDataIndex.MonthsFormat],i[n.\u0275LocaleDataIndex.MonthsStandalone]],t);return J(o,r)}function U(e,t){return J(n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.Eras],t)}function q(e,t){return J(n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.DateFormat],t)}function z(e,t){return J(n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.TimeFormat],t)}function W(e,t){return J(n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.DateTimeFormat],t)}function K(e,r){var i=n.\u0275findLocaleData(e),o=i[n.\u0275LocaleDataIndex.NumberSymbols][r];if(void 0===o){if(r===t.NumberSymbol.CurrencyDecimal)return i[n.\u0275LocaleDataIndex.NumberSymbols][t.NumberSymbol.Decimal];if(r===t.NumberSymbol.CurrencyGroup)return i[n.\u0275LocaleDataIndex.NumberSymbols][t.NumberSymbol.Group]}return o}function Q(e,t){return n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.NumberFormats][t]}(D=t.NumberFormatStyle||(t.NumberFormatStyle={}))[D.Decimal=0]="Decimal",D[D.Percent=1]="Percent",D[D.Currency=2]="Currency",D[D.Scientific=3]="Scientific",(P=t.Plural||(t.Plural={}))[P.Zero=0]="Zero",P[P.One=1]="One",P[P.Two=2]="Two",P[P.Few=3]="Few",P[P.Many=4]="Many",P[P.Other=5]="Other",(O=t.FormStyle||(t.FormStyle={}))[O.Format=0]="Format",O[O.Standalone=1]="Standalone",(M=t.TranslationWidth||(t.TranslationWidth={}))[M.Narrow=0]="Narrow",M[M.Abbreviated=1]="Abbreviated",M[M.Wide=2]="Wide",M[M.Short=3]="Short",(k=t.FormatWidth||(t.FormatWidth={}))[k.Short=0]="Short",k[k.Medium=1]="Medium",k[k.Long=2]="Long",k[k.Full=3]="Full",(F=t.NumberSymbol||(t.NumberSymbol={}))[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F[1/0]=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",(R=t.WeekDay||(t.WeekDay={}))[R.Sunday=0]="Sunday",R[R.Monday=1]="Monday",R[R.Tuesday=2]="Tuesday",R[R.Wednesday=3]="Wednesday",R[R.Thursday=4]="Thursday",R[R.Friday=5]="Friday",R[R.Saturday=6]="Saturday";var G=n.\u0275getLocalePluralCase;function Y(e){if(!e[n.\u0275LocaleDataIndex.ExtraData])throw new Error('Missing extra locale data for the locale "'+e[n.\u0275LocaleDataIndex.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function $(e){var t=n.\u0275findLocaleData(e);return Y(t),(t[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map((function(e){return"string"==typeof e?Z(e):[Z(e[0]),Z(e[1])]}))}function X(e,t,r){var i=n.\u0275findLocaleData(e);Y(i);var o=J([i[n.\u0275LocaleDataIndex.ExtraData][0],i[n.\u0275LocaleDataIndex.ExtraData][1]],t)||[];return J(o,r)||[]}function J(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 Z(e){var t=p(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}function ee(e,t,r){void 0===r&&(r="en");var i=function(e){return n.\u0275findLocaleData(e)[n.\u0275LocaleDataIndex.Currencies]}(r)[e]||j[e]||[],o=i[1];return"narrow"===t&&"string"==typeof o?o:i[0]||e}function te(e){var t,n=j[e];return n&&(t=n[2]),"number"==typeof t?t:2}var ne,re,ie,oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},ae=/((?:[^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 ue(e,n,r,i){var o=function(e){if(ye(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=p(e.split("-").map((function(e){return+e})),3);return new Date(r[0],r[1]-1,r[2])}if(t=e.match(oe))return function(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}(t)}var i=new Date(e);if(!ye(i))throw new Error('Unable to convert "'+e+'" into a date');return i}(e);n=function e(n,r){var i=L(n);if(se[i]=se[i]||{},se[i][r])return se[i][r];var o="";switch(r){case"shortDate":o=q(n,t.FormatWidth.Short);break;case"mediumDate":o=q(n,t.FormatWidth.Medium);break;case"longDate":o=q(n,t.FormatWidth.Long);break;case"fullDate":o=q(n,t.FormatWidth.Full);break;case"shortTime":o=z(n,t.FormatWidth.Short);break;case"mediumTime":o=z(n,t.FormatWidth.Medium);break;case"longTime":o=z(n,t.FormatWidth.Long);break;case"fullTime":o=z(n,t.FormatWidth.Full);break;case"short":var s=e(n,"shortTime"),a=e(n,"shortDate");o=ce(W(n,t.FormatWidth.Short),[s,a]);break;case"medium":var u=e(n,"mediumTime"),c=e(n,"mediumDate");o=ce(W(n,t.FormatWidth.Medium),[u,c]);break;case"long":var l=e(n,"longTime"),p=e(n,"longDate");o=ce(W(n,t.FormatWidth.Long),[l,p]);break;case"full":var f=e(n,"fullTime"),h=e(n,"fullDate");o=ce(W(n,t.FormatWidth.Full),[f,h])}return o&&(se[i][r]=o),o}(r,n)||n;for(var s,a=[];n;){if(!(s=ae.exec(n))){a.push(n);break}var u=(a=a.concat(s.slice(1))).pop();if(!u)break;n=u}var c=o.getTimezoneOffset();i&&(c=me(i,c),o=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(me(t,r)-r))}(o,i));var l="";return a.forEach((function(e){var n=function(e){if(ve[e])return ve[e];var n;switch(e){case"G":case"GG":case"GGG":n=fe(ie.Eras,t.TranslationWidth.Abbreviated);break;case"GGGG":n=fe(ie.Eras,t.TranslationWidth.Wide);break;case"GGGGG":n=fe(ie.Eras,t.TranslationWidth.Narrow);break;case"y":n=pe(re.FullYear,1,0,!1,!0);break;case"yy":n=pe(re.FullYear,2,0,!0,!0);break;case"yyy":n=pe(re.FullYear,3,0,!1,!0);break;case"yyyy":n=pe(re.FullYear,4,0,!1,!0);break;case"M":case"L":n=pe(re.Month,1,1);break;case"MM":case"LL":n=pe(re.Month,2,1);break;case"MMM":n=fe(ie.Months,t.TranslationWidth.Abbreviated);break;case"MMMM":n=fe(ie.Months,t.TranslationWidth.Wide);break;case"MMMMM":n=fe(ie.Months,t.TranslationWidth.Narrow);break;case"LLL":n=fe(ie.Months,t.TranslationWidth.Abbreviated,t.FormStyle.Standalone);break;case"LLLL":n=fe(ie.Months,t.TranslationWidth.Wide,t.FormStyle.Standalone);break;case"LLLLL":n=fe(ie.Months,t.TranslationWidth.Narrow,t.FormStyle.Standalone);break;case"w":n=de(1);break;case"ww":n=de(2);break;case"W":n=de(1,!0);break;case"d":n=pe(re.Date,1);break;case"dd":n=pe(re.Date,2);break;case"E":case"EE":case"EEE":n=fe(ie.Days,t.TranslationWidth.Abbreviated);break;case"EEEE":n=fe(ie.Days,t.TranslationWidth.Wide);break;case"EEEEE":n=fe(ie.Days,t.TranslationWidth.Narrow);break;case"EEEEEE":n=fe(ie.Days,t.TranslationWidth.Short);break;case"a":case"aa":case"aaa":n=fe(ie.DayPeriods,t.TranslationWidth.Abbreviated);break;case"aaaa":n=fe(ie.DayPeriods,t.TranslationWidth.Wide);break;case"aaaaa":n=fe(ie.DayPeriods,t.TranslationWidth.Narrow);break;case"b":case"bb":case"bbb":n=fe(ie.DayPeriods,t.TranslationWidth.Abbreviated,t.FormStyle.Standalone,!0);break;case"bbbb":n=fe(ie.DayPeriods,t.TranslationWidth.Wide,t.FormStyle.Standalone,!0);break;case"bbbbb":n=fe(ie.DayPeriods,t.TranslationWidth.Narrow,t.FormStyle.Standalone,!0);break;case"B":case"BB":case"BBB":n=fe(ie.DayPeriods,t.TranslationWidth.Abbreviated,t.FormStyle.Format,!0);break;case"BBBB":n=fe(ie.DayPeriods,t.TranslationWidth.Wide,t.FormStyle.Format,!0);break;case"BBBBB":n=fe(ie.DayPeriods,t.TranslationWidth.Narrow,t.FormStyle.Format,!0);break;case"h":n=pe(re.Hours,1,-12);break;case"hh":n=pe(re.Hours,2,-12);break;case"H":n=pe(re.Hours,1);break;case"HH":n=pe(re.Hours,2);break;case"m":n=pe(re.Minutes,1);break;case"mm":n=pe(re.Minutes,2);break;case"s":n=pe(re.Seconds,1);break;case"ss":n=pe(re.Seconds,2);break;case"S":n=pe(re.FractionalSeconds,1);break;case"SS":n=pe(re.FractionalSeconds,2);break;case"SSS":n=pe(re.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=he(ne.Short);break;case"ZZZZZ":n=he(ne.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=he(ne.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=he(ne.Long);break;default:return null}return ve[e]=n,n}(e);l+=n?n(o,r,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}function ce(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function le(e,t,n,r,i){void 0===n&&(n="-");var o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var s=String(e);s.length0||c>-r)&&(c+=r),e===re.Hours)0===c&&-12===r&&(c=12);else if(e===re.FractionalSeconds)return u=n,le(c,3).substr(0,u);var l=K(a,t.NumberSymbol.MinusSign);return le(c,n,l,i,o)}}function fe(e,n,r,i){return void 0===r&&(r=t.FormStyle.Format),void 0===i&&(i=!1),function(t,o){return function(e,t,n,r,i,o){switch(n){case ie.Months:return H(t,i,r)[e.getMonth()];case ie.Days:return B(t,i,r)[e.getDay()];case ie.DayPeriods:var s=e.getHours(),a=e.getMinutes();if(o){var u,c=$(t),l=X(t,i,r);if(c.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],r=e[1],i=r.hours;s>=n.hours&&a>=n.minutes&&(s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case ne.Short:return(o>=0?"+":"")+le(a,2,s)+le(Math.abs(o%60),2,s);case ne.ShortGMT:return"GMT"+(o>=0?"+":"")+le(a,1,s);case ne.Long:return"GMT"+(o>=0?"+":"")+le(a,2,s)+":"+le(Math.abs(o%60),2,s);case ne.Extended:return 0===i?"Z":(o>=0?"+":"")+le(a,2,s)+":"+le(Math.abs(o%60),2,s);default:throw new Error('Unknown zone width "'+e+'"')}}}function de(e,n){return void 0===n&&(n=!1),function(r,i){var o,s,a,u;if(n){var c=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,l=r.getDate();o=1+Math.floor((l+c)/7)}else{var p=(a=r.getFullYear(),u=new Date(a,0,1).getDay(),new Date(a,0,1+(u<=4?4:11)-u)),f=(s=r,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-p.getTime();o=1+Math.round(f/6048e5)}return le(o,e,K(i,t.NumberSymbol.MinusSign))}}!function(e){e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended"}(ne||(ne={})),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"}(re||(re={})),function(e){e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras"}(ie||(ie={}));var ve={};function me(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ye(e){return e instanceof Date&&!isNaN(e.valueOf())}var ge=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function _e(e,n,r,i,o,s,a){void 0===a&&(a=!1);var u="",c=!1;if(isFinite(e)){var l=function(e){var t,n,r,i,o,s=Math.abs(e)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(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),r=0;"0"===s.charAt(r);r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);a&&(l=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));var p=n.minInt,f=n.minFrac,h=n.maxFrac;if(s){var d=s.match(ge);if(null===d)throw new Error(s+" is not a valid digit info");var v=d[1],m=d[3],y=d[5];null!=v&&(p=Se(v)),null!=m&&(f=Se(m)),null!=y?h=Se(y):null!=m&&f>h&&(h=f)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(var u=s;u=5)if(s-1<0){for(var l=0;l>s;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i=f?r.pop():p=!1),t>=10?1:0}),0);h&&(r.unshift(h),e.integerLen++)}(l,f,h);var g=l.digits,_=l.integerLen,b=l.exponent,w=[];for(c=g.every((function(e){return!e}));_0?w=g.splice(_,g.length):(w=g,g=[0]);var E=[];for(g.length>=n.lgSize&&E.unshift(g.splice(-n.lgSize,g.length).join(""));g.length>n.gSize;)E.unshift(g.splice(-n.gSize,g.length).join(""));g.length&&E.unshift(g.join("")),u=E.join(K(r,i)),w.length&&(u+=K(r,o)+w.join("")),b&&(u+=K(r,t.NumberSymbol.Exponential)+"+"+b)}else u=K(r,t.NumberSymbol.Infinity);return e<0&&!c?n.negPre+u+n.negSuf:n.posPre+u+n.posSuf}function be(e,n,r,i,o){var s=Ce(Q(n,t.NumberFormatStyle.Currency),K(n,t.NumberSymbol.MinusSign));return s.minFrac=te(i),s.maxFrac=s.minFrac,_e(e,s,n,t.NumberSymbol.CurrencyGroup,t.NumberSymbol.CurrencyDecimal,o).replace("\xa4",r).replace("\xa4","").trim()}function we(e,n,r){return _e(e,Ce(Q(n,t.NumberFormatStyle.Percent),K(n,t.NumberSymbol.MinusSign)),n,t.NumberSymbol.Group,t.NumberSymbol.Decimal,r,!0).replace(new RegExp("%","g"),K(n,t.NumberSymbol.PercentSign))}function Ee(e,n,r){return _e(e,Ce(Q(n,t.NumberFormatStyle.Decimal),K(n,t.NumberSymbol.MinusSign)),n,t.NumberSymbol.Group,t.NumberSymbol.Decimal,r)}function Ce(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(";"),i=r[0],o=r[1],s=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(var c=0;c-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var Ie=function(r){function i(e){var t=r.call(this)||this;return t.locale=e,t}return s(i,r),i.prototype.getPluralCategory=function(e,n){switch(G(n||this.locale)(e)){case t.Plural.Zero:return"zero";case t.Plural.One:return"one";case t.Plural.Two:return"two";case t.Plural.Few:return"few";case t.Plural.Many:return"many";default:return"other"}},(i=a([u(0,n.Inject(n.LOCALE_ID)),c("design:paramtypes",[String])],i)).\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(n.LOCALE_ID))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:function(e){return i.\u0275fac(e)}}),i}(xe),Ae=function(){function t(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.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(t.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&&(n.\u0275isListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.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)}},t.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)}))},t.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 "+n.\u0275stringify(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))},t.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])})))},t.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)})))},t.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)}))},a([n.Input("class"),c("design:type",String),c("design:paramtypes",[String])],t.prototype,"klass",null),a([n.Input("ngClass"),c("design:type",Object),c("design:paramtypes",[Object])],t.prototype,"ngClass",null),(t=a([c("design:paramtypes",[n.IterableDiffers,n.KeyValueDiffers,n.ElementRef,n.Renderer2])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(e.KeyValueDiffers),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2))},t.\u0275dir=e.\u0275\u0275defineDirective({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Ne=function(){function t(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return t.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 r=t.get(n.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(n.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},a([n.Input(),c("design:type",n.Type)],t.prototype,"ngComponentOutlet",void 0),a([n.Input(),c("design:type",n.Injector)],t.prototype,"ngComponentOutletInjector",void 0),a([n.Input(),c("design:type",Array)],t.prototype,"ngComponentOutletContent",void 0),a([n.Input(),c("design:type",n.NgModuleFactory)],t.prototype,"ngComponentOutletNgModuleFactory",void 0),(t=a([c("design:paramtypes",[n.ViewContainerRef])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275directiveInject(e.ViewContainerRef))},t.\u0275dir=e.\u0275\u0275defineDirective({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[e.\u0275\u0275NgOnChangesFeature]}),t}(),De=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}(),Pe=function(){function t(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){n.isDevMode()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),t.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)}},t.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 De(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new Oe(e,o);n.push(s)}else null==i?t._viewContainer.remove(null===r?void 0:r):null!==r&&(o=t._viewContainer.get(r),t._viewContainer.move(o,i),s=new Oe(e,o),n.push(s))}));for(var r=0;r=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 p(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(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}var d=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}}))}:function(){t.headers=new Map,Object.keys(e).forEach((function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))}))}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))}))},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,function(){for(var e=[],t=0;t0&&t.split("&").forEach((function(e){var t=e.indexOf("="),i=h(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],s=i[1],a=r.get(o)||[];a.push(s),r.set(o,a)})),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])}))):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map((function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return n+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).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 g(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function _(e){return"undefined"!=typeof Blob&&e instanceof Blob}function b(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w,E=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 d),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s=200&&this.status<300},S=function(e){function n(n){void 0===n&&(n={});var r=e.call(this,n)||this;return r.type=t.HttpEventType.ResponseHeader,r}return c(n,e),n.prototype.clone=function(e){return void 0===e&&(e={}),new n({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})},n}(C),x=function(e){function n(n){void 0===n&&(n={});var r=e.call(this,n)||this;return r.type=t.HttpEventType.Response,r.body=void 0!==n.body?n.body:null,r}return c(n,e),n.prototype.clone=function(e){return void 0===e&&(e={}),new n({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})},n}(C),T=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return c(t,e),t}(C);function I(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var A=function(){function t(e){this.handler=e}return t.prototype.request=function(e,t,n){var o,s=this;if(void 0===n&&(n={}),e instanceof E)o=e;else{var a;a=n.headers instanceof d?n.headers:new d(n.headers);var u=void 0;n.params&&(u=n.params instanceof y?n.params:new y({fromObject:n.params})),o=new E(e,t,void 0!==n.body?n.body:null,{headers:a,params:u,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var c=r.of(o).pipe(i.concatMap((function(e){return s.handler.handle(e)})));if(e instanceof E||"events"===n.observe)return c;var l=c.pipe(i.filter((function(e){return e instanceof x})));switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(i.map((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return l.pipe(i.map((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return l.pipe(i.map((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 l.pipe(i.map((function(e){return e.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},t.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},t.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},t.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new y).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},t.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,I(n,t))},t.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,I(n,t))},t.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,I(n,t))},(t=l([f("design:paramtypes",[s])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(s))},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),N=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}(),D=new n.InjectionToken("HTTP_INTERCEPTORS"),P=function(){function t(){}return t.prototype.intercept=function(e,t){return t.handle(e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),O=0,M=function(){},k=function(){function i(e,t){this.callbackMap=e,this.document=t}return i.prototype.nextCallback=function(){return"ng_jsonp_callback_"+O++},i.prototype.handle=function(e){var n=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 r.Observable((function(r){var i=n.nextCallback(),o=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+i+"$1"),s=n.document.createElement("script");s.src=o;var a=null,u=!1,c=!1;n.callbackMap[i]=function(e){delete n.callbackMap[i],c||(a=e,u=!0)};var l=function(){s.parentNode&&s.parentNode.removeChild(s),delete n.callbackMap[i]},p=function(e){c||(l(),u?(r.next(new x({body:a,status:200,statusText:"OK",url:o})),r.complete()):r.error(new T({url:o,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},f=function(e){c||(l(),r.error(new T({error:e,status:0,statusText:"JSONP Error",url:o})))};return s.addEventListener("load",p),s.addEventListener("error",f),n.document.body.appendChild(s),r.next({type:t.HttpEventType.Sent}),function(){c=!0,s.removeEventListener("load",p),s.removeEventListener("error",f),l()}}))},(i=l([p(1,n.Inject(o.DOCUMENT)),f("design:paramtypes",[M,Object])],i)).\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(M),e.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:function(e){return i.\u0275fac(e)}}),i}(),F=function(){function t(e){this.jsonp=e}return t.prototype.intercept=function(e,t){return"JSONP"===e.method?this.jsonp.handle(e):t.handle(e)},(t=l([f("design:paramtypes",[k])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(k))},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),R=/^\)\]\}',?\n/,j=function(){},L=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},(t=l([f("design:paramtypes",[])],t)).\u0275fac=function(e){return new(e||t)},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),V=function(){function n(e){this.xhrFactory=e}return n.prototype.handle=function(e){var n=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new r.Observable((function(r){var i=n.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((function(e,t){return i.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var o=e.detectContentTypeHeader();null!==o&&i.setRequestHeader("Content-Type",o)}if(e.responseType){var s=e.responseType.toLowerCase();i.responseType="json"!==s?s:"text"}var a=e.serializeBody(),u=null,c=function(){if(null!==u)return u;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.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}(i)||e.url;return u=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=c(),n=t.headers,o=t.status,s=t.statusText,a=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var p=u;u=u.replace(R,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=p,l&&(l=!1,u={error:f,text:u})}}l?(r.next(new x({body:u,headers:n,status:o,statusText:s,url:a||void 0})),r.complete()):r.error(new T({error:u,headers:n,status:o,statusText:s,url:a||void 0}))},p=function(e){var t=c().url,n=new T({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});r.error(n)},f=!1,h=function(n){f||(r.next(c()),f=!0);var o={type:t.HttpEventType.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(o.total=n.total),"text"===e.responseType&&i.responseText&&(o.partialText=i.responseText),r.next(o)},v=function(e){var n={type:t.HttpEventType.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),r.next(n)};return i.addEventListener("load",l),i.addEventListener("error",p),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",v)),i.send(a),r.next({type:t.HttpEventType.Sent}),function(){i.removeEventListener("error",p),i.removeEventListener("load",l),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",v)),i.abort()}}))},(n=l([f("design:paramtypes",[j])],n)).\u0275fac=function(t){return new(t||n)(e.\u0275\u0275inject(j))},n.\u0275prov=e.\u0275\u0275defineInjectable({token:n,factory:function(e){return n.\u0275fac(e)}}),n}(),B=new n.InjectionToken("XSRF_COOKIE_NAME"),H=new n.InjectionToken("XSRF_HEADER_NAME"),U=function(){},q=function(){function t(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=o.\u0275parseCookieValue(e,this.cookieName),this.lastCookieString=e),this.lastToken},(t=l([p(0,n.Inject(o.DOCUMENT)),p(1,n.Inject(n.PLATFORM_ID)),p(2,n.Inject(B)),f("design:paramtypes",[Object,String,String])],t)).\u0275fac=function(r){return new(r||t)(e.\u0275\u0275inject(o.DOCUMENT),e.\u0275\u0275inject(n.PLATFORM_ID),e.\u0275\u0275inject(B))},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),z=function(){function t(e,t){this.tokenService=e,this.headerName=t}return t.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)},(t=l([p(1,n.Inject(H)),f("design:paramtypes",[U,String])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(U),e.\u0275\u0275inject(H))},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),W=function(){function t(e,t){this.backend=e,this.injector=t,this.chain=null}return t.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight((function(e,t){return new N(e,t)}),this.backend)}return this.chain.handle(e)},(t=l([f("design:paramtypes",[a,n.Injector])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(a),e.\u0275\u0275inject(e.Injector))},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function K(){return"object"==typeof window?window:{}}var Q=function(){function t(){}var n;return n=t,t.disable=function(){return{ngModule:n,providers:[{provide:z,useClass:P}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:n,providers:[e.cookieName?{provide:B,useValue:e.cookieName}:[],e.headerName?{provide:H,useValue:e.headerName}:[]]}},t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({factory:function(e){return new(e||t)},providers:[z,{provide:D,useExisting:z,multi:!0},{provide:U,useClass:q},{provide:B,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}]}),t}(),G=function(){function t(){}return t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({factory:function(e){return new(e||t)},providers:[A,{provide:s,useClass:W},V,{provide:a,useExisting:V},L,{provide:j,useExisting:L}],imports:[[Q.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),Y=function(){function t(){}return t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({factory:function(e){return new(e||t)},providers:[k,{provide:M,useFactory:K},{provide:D,useClass:F,multi:!0}]}),t}();t.HTTP_INTERCEPTORS=D,t.HttpBackend=a,t.HttpClient=A,t.HttpClientJsonpModule=Y,t.HttpClientModule=G,t.HttpClientXsrfModule=Q,t.HttpErrorResponse=T,t.HttpHandler=s,t.HttpHeaderResponse=S,t.HttpHeaders=d,t.HttpParams=y,t.HttpRequest=E,t.HttpResponse=x,t.HttpResponseBase=C,t.HttpUrlEncodingCodec=v,t.HttpXhrBackend=V,t.HttpXsrfTokenExtractor=U,t.JsonpClientBackend=k,t.JsonpInterceptor=F,t.XhrFactory=j,t.\u0275HttpInterceptingHandler=W,t.\u0275angular_packages_common_http_http_a=P,t.\u0275angular_packages_common_http_http_b=M,t.\u0275angular_packages_common_http_http_c=K,t.\u0275angular_packages_common_http_http_d=L,t.\u0275angular_packages_common_http_http_e=B,t.\u0275angular_packages_common_http_http_f=H,t.\u0275angular_packages_common_http_http_g=q,t.\u0275angular_packages_common_http_http_h=z,Object.defineProperty(t,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@angular/compiler",["exports"],t):t(((e=e||self).ng=e.ng||{},e.ng.compiler={}))}(this,(function(e){"use strict";var t=function(e,n){return(t=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,n)};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(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(zt){i={error:zt}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function a(){for(var e=[],t=0;t",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",ngsp:"\ue500"},y=function(){function t(t){var n=this,r=void 0===t?{}:t,i=r.closedByChildren,o=r.implicitNamespacePrefix,s=r.contentType,a=void 0===s?e.TagContentType.PARSABLE_DATA:s,u=r.closedByParent,c=void 0!==u&&u,l=r.isVoid,p=void 0!==l&&l,f=r.ignoreFirstLf,h=void 0!==f&&f;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach((function(e){return n.closedByChildren[e]=!0})),this.isVoid=p,this.closedByParent=c||p,this.implicitNamespacePrefix=o||null,this.contentType=a,this.ignoreFirstLf=h}return t.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},t}();function g(t){return v||(d=new y,v={base:new y({isVoid:!0}),meta:new y({isVoid:!0}),area:new y({isVoid:!0}),embed:new y({isVoid:!0}),link:new y({isVoid:!0}),img:new y({isVoid:!0}),input:new y({isVoid:!0}),param:new y({isVoid:!0}),hr:new y({isVoid:!0}),br:new y({isVoid:!0}),source:new y({isVoid:!0}),track:new y({isVoid:!0}),wbr:new y({isVoid:!0}),p:new y({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 y({closedByChildren:["tbody","tfoot"]}),tbody:new y({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new y({closedByChildren:["tbody"],closedByParent:!0}),tr:new y({closedByChildren:["tr"],closedByParent:!0}),td:new y({closedByChildren:["td","th"],closedByParent:!0}),th:new y({closedByChildren:["td","th"],closedByParent:!0}),col:new y({isVoid:!0}),svg:new y({implicitNamespacePrefix:"svg"}),math:new y({implicitNamespacePrefix:"math"}),li:new y({closedByChildren:["li"],closedByParent:!0}),dt:new y({closedByChildren:["dt","dd"]}),dd:new y({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new y({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new y({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new y({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new y({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new y({closedByChildren:["optgroup"],closedByParent:!0}),option:new y({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new y({ignoreFirstLf:!0}),listing:new y({ignoreFirstLf:!0}),style:new y({contentType:e.TagContentType.RAW_TEXT}),script:new y({contentType:e.TagContentType.RAW_TEXT}),title:new y({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new y({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),v[t.toLowerCase()]||d}var _,b,w=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),E=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(w.lastIndex=0;n=w.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,s=new e,o.notSelectors.push(s)}var u=n[2];if(u){var c=n[3];"#"===c?s.addAttribute("id",u.substr(1)):"."===c?s.addClassName(u.substr(1)):s.setElement(u)}var l=n[4];if(l&&s.addAttribute(l,n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r":"<"+e+t+n+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach((function(t){return e+="."+t})),this.attrs)for(var t=0;t1&&(n=new S(e),this._listContexts.push(n));for(var r=0;r0)||this.listContext&&this.listContext.alreadyMatched||(n=!C.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),T=X("Inject",(function(e){return{token:e}})),I=X("InjectionToken",(function(e){return{_desc:e,"\u0275prov":void 0}})),A=X("Attribute",(function(e){return{attributeName:e}})),N=X("ContentChildren",(function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)})),D=X("ContentChild",(function(e,t){return void 0===t&&(t={}),i({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)})),P=X("ViewChildren",(function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)})),O=X("ViewChild",(function(e,t){return i({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)})),M=X("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"}(_||(_={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(b||(b={}));var k,F,R=X("Component",(function(e){return void 0===e&&(e={}),i({changeDetection:b.Default},e)})),j=X("Pipe",(function(e){return i({pure:!0},e)})),L=X("Input",(function(e){return{bindingPropertyName:e}})),V=X("Output",(function(e){return{bindingPropertyName:e}})),B=X("HostBinding",(function(e){return{hostPropertyName:e}})),H=X("HostListener",(function(e,t){return{eventName:e,args:t}})),U=X("NgModule",(function(e){return e})),q=X("Injectable",(function(e){return void 0===e&&(e={}),e})),z={name:"custom-elements"},W={name:"no-errors-schema"},K=X("Optional"),Q=X("Self"),G=X("SkipSelf"),Y=X("Host"),$=Function;function X(e,t){function n(){for(var n=[],r=0;r=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function Xt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Xt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;if(!e.toString)return"object";var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Jt(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function Zt(e){return!!e&&"function"==typeof e.then}var en=function(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")},tn="undefined"!=typeof window&&window,nn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,rn="undefined"!=typeof global&&global||tn||nn;function on(e,t){for(var n=[],r=0;r"),un={},cn=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return n(t,e),t.prototype.visitExpression=function(e,t){return t===un?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}(ge),ln=function(){function t(){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 t.prototype.getConstLiteral=function(t,n){if(t instanceof Ne||t instanceof cn)return t;var r=this.keyOf(t),i=this.literals.get(r),o=!1;if(i||(i=new cn(t),this.literals.set(r,i),o=!0),!o&&!i.shared||o&&n){var s=this.freshName();this.statements.push(Et(s).set(t).toDeclStmt(le,[e.StmtModifier.Final])),i.fixup(Et(s))}return i},t.prototype.getDefinition=function(t,n,r,i){void 0===i&&(i=!1);var o=this.definitionsOf(n),s=o.get(t),a=!1;if(!s){var u=this.propertyNameOf(n);s=new cn(r.importExpr(t).prop(u)),o.set(t,s),a=!0}if(!a&&!s.shared||a&&i){var c=this.freshName();this.statements.push(Et(c).set(s.resolved).toDeclStmt(le,[e.StmtModifier.Final])),s.fixup(Et(c))}return s},t.prototype.getLiteralFactory=function(e){if(e instanceof Qe){var t=e.entries.map((function(e){return e.isConstant()?e:an})),n=this.keyOf(It(t));return this._getLiteralFactory(n,e.entries,(function(e){return It(e)}))}var r=At(e.entries.map((function(e){return{key:e.key,value:e.value.isConstant()?e.value:an,quoted:e.quoted}})));return n=this.keyOf(r),this._getLiteralFactory(n,e.entries.map((function(e){return e.value})),(function(t){return At(t.map((function(t,n){return{key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}})))}))},t.prototype._getLiteralFactory=function(t,n,r){var i=this,o=this.literalFactories.get(t),s=n.filter((function(e){return!e.isConstant()}));if(!o){var a=n.map((function(e,t){return e.isConstant()?i.getConstLiteral(e,!0):Et("a"+t)})),u=Nt(a.filter(hn).map((function(e){return new Ue(e.name,ce)})),[new rt(r(a))],le),c=this.freshName();this.statements.push(Et(c).set(u).toDeclStmt(le,[e.StmtModifier.Final])),o=Et(c),this.literalFactories.set(t,o)}return{literalFactory:o,literalFactoryArguments:s}},t.prototype.uniqueName=function(e){return""+e+this.nextNameIndex++},t.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 zt("Unknown definition kind "+e),this.componentDefinitions},t.prototype.propertyNameOf=function(e){switch(e){case 2:return"\u0275cmp";case 1:return"\u0275dir";case 0:return"\u0275inj";case 3:return"\u0275pipe"}return zt("Unknown definition kind "+e),""},t.prototype.freshName=function(){return this.uniqueName("_c")},t.prototype.keyOf=function(e){return e.visitExpression(new pn,un)},t}(),pn=function(){function e(){this.visitWrappedNodeExpr=fn,this.visitWriteVarExpr=fn,this.visitWriteKeyExpr=fn,this.visitWritePropExpr=fn,this.visitInvokeMethodExpr=fn,this.visitInvokeFunctionExpr=fn,this.visitInstantiateExpr=fn,this.visitConditionalExpr=fn,this.visitNotExpr=fn,this.visitAssertNotNullExpr=fn,this.visitCastExpr=fn,this.visitFunctionExpr=fn,this.visitBinaryOperatorExpr=fn,this.visitReadPropExpr=fn,this.visitReadKeyExpr=fn,this.visitCommaExpr=fn,this.visitLocalizedString=fn}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 fn(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function hn(e){return e instanceof be}var dn="@angular/core",vn=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:dn},e.ElementRef={name:"ElementRef",moduleName:dn},e.NgModuleRef={name:"NgModuleRef",moduleName:dn},e.ViewContainerRef={name:"ViewContainerRef",moduleName:dn},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:dn},e.QueryList={name:"QueryList",moduleName:dn},e.TemplateRef={name:"TemplateRef",moduleName:dn},e.Renderer2={name:"Renderer2",moduleName:dn},e.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:dn},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:dn},e.ComponentFactory={name:"ComponentFactory",moduleName:dn},e.ComponentRef={name:"ComponentRef",moduleName:dn},e.NgModuleFactory={name:"NgModuleFactory",moduleName:dn},e.createModuleFactory={name:"\u0275cmf",moduleName:dn},e.moduleDef={name:"\u0275mod",moduleName:dn},e.moduleProviderDef={name:"\u0275mpd",moduleName:dn},e.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:dn},e.inject={name:"\u0275\u0275inject",moduleName:dn},e.directiveInject={name:"\u0275\u0275directiveInject",moduleName:dn},e.INJECTOR={name:"INJECTOR",moduleName:dn},e.Injector={name:"Injector",moduleName:dn},e.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:dn},e.InjectableDef={name:"\u0275\u0275InjectableDef",moduleName:dn},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:dn},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:dn},e.SecurityContext={name:"SecurityContext",moduleName:dn},e.LOCALE_ID={name:"LOCALE_ID",moduleName:dn},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:dn},e.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:dn},e.interpolate={name:"\u0275interpolate",moduleName:dn},e.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:dn},e.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:dn},e.Renderer={name:"Renderer",moduleName:dn},e.viewDef={name:"\u0275vid",moduleName:dn},e.elementDef={name:"\u0275eld",moduleName:dn},e.anchorDef={name:"\u0275and",moduleName:dn},e.textDef={name:"\u0275ted",moduleName:dn},e.directiveDef={name:"\u0275did",moduleName:dn},e.providerDef={name:"\u0275prd",moduleName:dn},e.queryDef={name:"\u0275qud",moduleName:dn},e.pureArrayDef={name:"\u0275pad",moduleName:dn},e.pureObjectDef={name:"\u0275pod",moduleName:dn},e.purePipeDef={name:"\u0275ppd",moduleName:dn},e.pipeDef={name:"\u0275pid",moduleName:dn},e.nodeValue={name:"\u0275nov",moduleName:dn},e.ngContentDef={name:"\u0275ncd",moduleName:dn},e.unwrapValue={name:"\u0275unv",moduleName:dn},e.createRendererType2={name:"\u0275crt",moduleName:dn},e.RendererType2={name:"RendererType2",moduleName:dn},e.ViewDefinition={name:"\u0275ViewDefinition",moduleName:dn},e.createComponentFactory={name:"\u0275ccf",moduleName:dn},e.setClassMetadata={name:"\u0275setClassMetadata",moduleName:dn},e}();function mn(e){return{identifier:{reference:e}}}function yn(e,t){return mn(e.resolveExternalReference(t))}var gn=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}(),_n=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 gn(e,t,n),this.cache.set(r,i)),i},e}(),bn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function wn(e){return e.replace(/\W/g,"_")}var En,Cn=0;function Sn(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof gn)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Xt(t);return n.indexOf("(")>=0?(n="anonymous_"+Cn++,t.__anonymousType=n):n=wn(n),n}function xn(e){var t=e.reference;return t instanceof gn?t.filePath:"./"+Xt(t)}function Tn(e,t){return"View_"+Sn({reference:e})+"_"+t}function In(e){return"RenderType_"+Sn({reference:e})}function An(e){return"HostView_"+Sn({reference:e})}function Nn(e){return Sn({reference:e})+"NgFactory"}function Dn(e){return null!=e.value?wn(e.value):Sn(e.identifier)}function Pn(e){return null!=e.identifier?e.identifier.reference:e.value}(En=e.CompileSummaryKind||(e.CompileSummaryKind={}))[En.Pipe=0]="Pipe",En[En.Directive=1]="Directive",En[En.NgModule=2]="NgModule",En[En.Injectable=3]="Injectable";var On=function(e){var t=void 0===e?{}:e,n=t.styles,r=t.styleUrls;this.moduleUrl=t.moduleUrl||null,this.styles=Ln(n),this.styleUrls=Ln(r)},Mn=function(){function e(e){var t=e.template,n=e.templateUrl,r=e.htmlAst,i=e.styles,o=e.styleUrls,s=e.externalStylesheets,a=e.animations,u=e.ngContentSelectors,c=e.interpolation,l=e.isInline,p=e.preserveWhitespaces;if(this.encapsulation=e.encapsulation,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=Ln(i),this.styleUrls=Ln(o),this.externalStylesheets=Ln(s),this.animations=a?Bn(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l,this.preserveWhitespaces=p}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}},e}(),kn=function(){function t(e){var t=e.type,n=e.isComponent,r=e.selector,i=e.exportAs,o=e.changeDetection,s=e.inputs,a=e.outputs,u=e.hostListeners,c=e.hostProperties,l=e.hostAttributes,p=e.providers,f=e.viewProviders,h=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory;this.isHost=!!e.isHost,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=c,this.hostAttributes=l,this.providers=Ln(p),this.viewProviders=Ln(f),this.queries=Ln(h),this.guards=d,this.viewQueries=Ln(v),this.entryComponents=Ln(m),this.template=y,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,f=e.viewProviders,h=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},E={},C={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],n=e.match(bn);null===n?C[e]=t:null!=n[1]?E[n[1]]=t:null!=n[2]&&(w[n[2]]=t)}));var S={};null!=u&&u.forEach((function(e){var t=Ft(e,[e,e]);S[t[0]]=t[1]}));var x={};return null!=c&&c.forEach((function(e){var t=Ft(e,[e,e]);x[t[0]]=t[1]})),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:f,queries:h,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.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}},t}(),Fn=function(){function t(e){var t=e.name,n=e.pure;this.type=e.type,this.name=t,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Rn=function(){function t(e){var t=e.providers,n=e.declaredDirectives,r=e.exportedDirectives,i=e.declaredPipes,o=e.exportedPipes,s=e.entryComponents,a=e.bootstrapComponents,u=e.importedModules,c=e.exportedModules,l=e.schemas,p=e.transitiveModule,f=e.id;this.type=e.type||null,this.declaredDirectives=Ln(n),this.exportedDirectives=Ln(r),this.declaredPipes=Ln(i),this.exportedPipes=Ln(o),this.providers=Ln(t),this.entryComponents=Ln(s),this.bootstrapComponents=Ln(a),this.importedModules=Ln(u),this.exportedModules=Ln(c),this.schemas=Ln(l),this.id=f||null,this.transitiveModule=p||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:e.CompileSummaryKind.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),jn=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 Ln(e){return e||[]}var Vn=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 Bn(e){return e.reduce((function(e,t){var n=Array.isArray(t)?Bn(t):t;return e.concat(n)}),[])}function Hn(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Un(e,t,n){var r;return r=n.isInline?t.type.reference instanceof gn?t.type.reference.filePath+"."+t.type.reference.name+".html":Sn(e)+"/"+Sn(t.type)+".html":n.templateUrl,t.type.reference instanceof gn?r:Hn(r)}function qn(e,t){var n=e.moduleUrl.split(/\/\\/g);return Hn("css/"+t+n[n.length-1]+".ngstyle.js")}function zn(e){return Hn(Sn(e.type)+"/module.ngfactory.js")}function Wn(e,t){return Hn(Sn(e)+"/"+Sn(t.type)+".ngfactory.js")}var Kn="@angular/core",Qn=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:Kn},e.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:Kn},e.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:Kn},e.element={name:"\u0275\u0275element",moduleName:Kn},e.elementStart={name:"\u0275\u0275elementStart",moduleName:Kn},e.elementEnd={name:"\u0275\u0275elementEnd",moduleName:Kn},e.select={name:"\u0275\u0275select",moduleName:Kn},e.advance={name:"\u0275\u0275advance",moduleName:Kn},e.updateSyntheticHostBinding={name:"\u0275\u0275updateSyntheticHostBinding",moduleName:Kn},e.componentHostSyntheticListener={name:"\u0275\u0275componentHostSyntheticListener",moduleName:Kn},e.attribute={name:"\u0275\u0275attribute",moduleName:Kn},e.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:Kn},e.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:Kn},e.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:Kn},e.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:Kn},e.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:Kn},e.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:Kn},e.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:Kn},e.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:Kn},e.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:Kn},e.classProp={name:"\u0275\u0275classProp",moduleName:Kn},e.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:Kn},e.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:Kn},e.elementContainer={name:"\u0275\u0275elementContainer",moduleName:Kn},e.styleMap={name:"\u0275\u0275styleMap",moduleName:Kn},e.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:Kn},e.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:Kn},e.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:Kn},e.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:Kn},e.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:Kn},e.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:Kn},e.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:Kn},e.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:Kn},e.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:Kn},e.classMap={name:"\u0275\u0275classMap",moduleName:Kn},e.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:Kn},e.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:Kn},e.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:Kn},e.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:Kn},e.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:Kn},e.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:Kn},e.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:Kn},e.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:Kn},e.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:Kn},e.styleProp={name:"\u0275\u0275styleProp",moduleName:Kn},e.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:Kn},e.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:Kn},e.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:Kn},e.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:Kn},e.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:Kn},e.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:Kn},e.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:Kn},e.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:Kn},e.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:Kn},e.nextContext={name:"\u0275\u0275nextContext",moduleName:Kn},e.templateCreate={name:"\u0275\u0275template",moduleName:Kn},e.text={name:"\u0275\u0275text",moduleName:Kn},e.enableBindings={name:"\u0275\u0275enableBindings",moduleName:Kn},e.disableBindings={name:"\u0275\u0275disableBindings",moduleName:Kn},e.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:Kn},e.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:Kn},e.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:Kn},e.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:Kn},e.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:Kn},e.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:Kn},e.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:Kn},e.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:Kn},e.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:Kn},e.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:Kn},e.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:Kn},e.restoreView={name:"\u0275\u0275restoreView",moduleName:Kn},e.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:Kn},e.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:Kn},e.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:Kn},e.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:Kn},e.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:Kn},e.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:Kn},e.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:Kn},e.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:Kn},e.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:Kn},e.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:Kn},e.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:Kn},e.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:Kn},e.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:Kn},e.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:Kn},e.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:Kn},e.hostProperty={name:"\u0275\u0275hostProperty",moduleName:Kn},e.property={name:"\u0275\u0275property",moduleName:Kn},e.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:Kn},e.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:Kn},e.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:Kn},e.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:Kn},e.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:Kn},e.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:Kn},e.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:Kn},e.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:Kn},e.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:Kn},e.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:Kn},e.i18n={name:"\u0275\u0275i18n",moduleName:Kn},e.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:Kn},e.i18nExp={name:"\u0275\u0275i18nExp",moduleName:Kn},e.i18nStart={name:"\u0275\u0275i18nStart",moduleName:Kn},e.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:Kn},e.i18nApply={name:"\u0275\u0275i18nApply",moduleName:Kn},e.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:Kn},e.pipe={name:"\u0275\u0275pipe",moduleName:Kn},e.projection={name:"\u0275\u0275projection",moduleName:Kn},e.projectionDef={name:"\u0275\u0275projectionDef",moduleName:Kn},e.reference={name:"\u0275\u0275reference",moduleName:Kn},e.inject={name:"\u0275\u0275inject",moduleName:Kn},e.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:Kn},e.injectPipeChangeDetectorRef={name:"\u0275\u0275injectPipeChangeDetectorRef",moduleName:Kn},e.directiveInject={name:"\u0275\u0275directiveInject",moduleName:Kn},e.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:Kn},e.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:Kn},e.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:Kn},e.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:Kn},e.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:Kn},e.resolveBody={name:"\u0275\u0275resolveBody",moduleName:Kn},e.defineComponent={name:"\u0275\u0275defineComponent",moduleName:Kn},e.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:Kn},e.ComponentDefWithMeta={name:"\u0275\u0275ComponentDefWithMeta",moduleName:Kn},e.FactoryDef={name:"\u0275\u0275FactoryDef",moduleName:Kn},e.defineDirective={name:"\u0275\u0275defineDirective",moduleName:Kn},e.DirectiveDefWithMeta={name:"\u0275\u0275DirectiveDefWithMeta",moduleName:Kn},e.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:Kn},e.defineInjector={name:"\u0275\u0275defineInjector",moduleName:Kn},e.NgModuleDefWithMeta={name:"\u0275\u0275NgModuleDefWithMeta",moduleName:Kn},e.ModuleWithProviders={name:"ModuleWithProviders",moduleName:Kn},e.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:Kn},e.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:Kn},e.PipeDefWithMeta={name:"\u0275\u0275PipeDefWithMeta",moduleName:Kn},e.definePipe={name:"\u0275\u0275definePipe",moduleName:Kn},e.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:Kn},e.viewQuery={name:"\u0275\u0275viewQuery",moduleName:Kn},e.staticViewQuery={name:"\u0275\u0275staticViewQuery",moduleName:Kn},e.staticContentQuery={name:"\u0275\u0275staticContentQuery",moduleName:Kn},e.loadQuery={name:"\u0275\u0275loadQuery",moduleName:Kn},e.contentQuery={name:"\u0275\u0275contentQuery",moduleName:Kn},e.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:Kn},e.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:Kn},e.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:Kn},e.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:Kn},e.listener={name:"\u0275\u0275listener",moduleName:Kn},e.getFactoryOf={name:"\u0275\u0275getFactoryOf",moduleName:Kn},e.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:Kn},e.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:Kn},e.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:Kn},e.defaultStyleSanitizer={name:"\u0275\u0275defaultStyleSanitizer",moduleName:Kn},e.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:Kn},e.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:Kn},e.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:Kn},e.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:Kn},e}();function Gn(e){return At(Object.keys(e).map((function(t){return{key:t,value:e[t],quoted:!1}})))}function Yn(e,t){if(Array.isArray(e))return It(e.map((function(e){return Yn(e,t)})));if(e instanceof gn)return t.importExpr(e);if(null==e)return Pt(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function $n(e,t){var n=null;if(t>0){n=[];for(var r=0;r=9&&e<=32||160==e}function tr(e){return 48<=e&&e<=57}function nr(e){return e>=97&&e<=122||e>=65&&e<=90}function rr(e){return 10===e||13===e}function ir(e){return 48<=e&&e<=55}var or,sr=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++,10==(u=n.charCodeAt(i))){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(10));s=a>0?i-a:i}else s--;for(;i0;){var u=n.charCodeAt(i);i++,t--,10==u?(o++,s=0):s++}return new e(this.file,i,o,s)},e.prototype.getContext=function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o]"+t.after+'")':this.msg},t.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},t}();function lr(e,t){var n=xn(t),r=null!=n?"in "+e+" "+Sn(t)+" in "+n:"in "+e+" "+Sn(t),i=new ar("",r);return new ur(new sr(i,-1,-1,-1),new sr(i,-1,-1,-1))}function pr(e,t,n){var r=new ar("","in "+e+" "+t+" in "+n);return new ur(new sr(r,-1,-1,-1),new sr(r,-1,-1,-1))}var fr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),hr=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}(),dr=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}(),vr=function(){function e(e,t,n,r,i,o,s,a){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.valueSpan=s,this.i18n=a}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,t.valueSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),mr=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=s}return e.fromParsedEvent=function(t){return new e(t.name,t.type,t.handler,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),yr=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,0===i.length&&a&&u&&(this.sourceSpan=new ur(s.start,u.end))}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),gr=function(){function e(e,t,n,r,i,o,s,a,u,c,l,p){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=s,this.variables=a,this.sourceSpan=u,this.startSourceSpan=c,this.endSourceSpan=l,this.i18n=p}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),_r=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}(),br=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),wr=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e){return e.visitReference(this)},e}(),Er=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}(),Cr=(function(){function e(){}e.prototype.visitElement=function(e){},e.prototype.visitTemplate=function(e){},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.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){}}(),function(){function e(){}return e.prototype.visitElement=function(e){Sr(this,e.attributes),Sr(this,e.children),Sr(this,e.references)},e.prototype.visitTemplate=function(e){Sr(this,e.attributes),Sr(this,e.children),Sr(this,e.references),Sr(this,e.variables)},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.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){},e}());function Sr(e,t){var n,r,i,s,a=[];if(e.visit)try{for(var u=o(t),c=u.next();!c.done;c=u.next())var l=e.visit(h=c.value)||h.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 p=o(t),f=p.next();!f.done;f=p.next()){var h;(l=(h=f.value).visit(e))&&a.push(l)}}catch(v){i={error:v}}finally{try{f&&!f.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}return a}function xr(e,t){var n,r,i=[],s=!1;try{for(var a=o(t),u=a.next();!u.done;u=a.next()){var c=u.value,l=c.visit(e);l&&i.push(l),s=s||l!=c}}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s?i:t}!function(){function e(){}e.prototype.visitElement=function(e){var t=xr(this,e.attributes),n=xr(this,e.inputs),r=xr(this,e.outputs),i=xr(this,e.children),o=xr(this,e.references);return t!=e.attributes||n!=e.inputs||r!=e.outputs||i!=e.children||o!=e.references?new yr(e.name,t,n,r,i,o,e.sourceSpan,e.startSourceSpan,e.endSourceSpan):e},e.prototype.visitTemplate=function(e){var t=xr(this,e.attributes),n=xr(this,e.inputs),r=xr(this,e.outputs),i=xr(this,e.templateAttrs),o=xr(this,e.children),s=xr(this,e.references),a=xr(this,e.variables);return t!=e.attributes||n!=e.inputs||r!=e.outputs||i!=e.templateAttrs||o!=e.children||s!=e.references||a!=e.variables?new gr(e.tagName,t,n,r,i,o,s,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan):e},e.prototype.visitContent=function(e){return e},e.prototype.visitVariable=function(e){return e},e.prototype.visitReference=function(e){return e},e.prototype.visitTextAttribute=function(e){return e},e.prototype.visitBoundAttribute=function(e){return e},e.prototype.visitBoundEvent=function(e){return e},e.prototype.visitText=function(e){return e},e.prototype.visitBoundText=function(e){return e},e.prototype.visitIcu=function(e){return e}}();var Tr=function(e,t,n,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.customId=o,this.id=this.customId,this.legacyIds=[],this.sources=e.length?[{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}]:[]},Ir=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Ar=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),Nr=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}(),Dr=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}(),Pr=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}(),Or=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}(),Mr=function(){function e(){}return e.prototype.visitText=function(e,t){return new Ir(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 Ar(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 Nr(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 Dr(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new Pr(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new Or(e.value,e.name,e.sourceSpan)},e}(),kr=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 Fr(e){return e.id||Rr(e)}function Rr(e){return function(e){var t=$t(e),n=function(e,t){for(var n=e.length+3>>>2,r=[],i=0;i>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var l=0;l>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(ei([o,s,a,u,c]))}((t=e.nodes,t.map((function(e){return e.visit(Hr,null)}))).join("")+"["+e.meaning+"]");var t}function jr(e){return e.id||Lr(e)}function Lr(e){var t=new Ur;return Wr(e.nodes.map((function(e){return e.visit(t,null)})).join(""),e.meaning)}var Vr,Br=function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map((function(e){return e.visit(n)})).join(", ")+"]"},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map((function(t){return t+" {"+e.cases[t].visit(n)+"}"}));return"{"+e.expression+", "+e.type+", "+r.join(", ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'':''+e.children.map((function(e){return e.visit(n)})).join(", ")+''},e.prototype.visitPlaceholder=function(e,t){return e.value?''+e.value+"":''},e.prototype.visitIcuPlaceholder=function(e,t){return''+e.value.visit(this)+""},e}(),Hr=new Br,Ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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}(Br);function qr(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 zr(e){var t=$t(e),n=Kr(t,0),r=Kr(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function Wr(e,t){void 0===t&&(t="");var n,r,i,o,s,a,u,c,l,p,f=zr(e);if(t){var h=zr(t);i=(n=[(l=(c=f)[0])<<1|(p=c[1])>>>31,p<<1|l>>>31])[0],o=(r=h)[0],a=(s=Yr(n[1],r[1]))[0],u=s[1],f=[Gr(Gr(i,o),a),u]}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=ti(t,ni(Jr(e,r),n)),n=ni(256,n);return t.split("").reverse().join("")}(ei([2147483647&f[0],f[1]]))}function Kr(e,t){var n,r=2654435769,i=2654435769,o=e.length;for(n=0;n+12<=o;n+=12){var s=Qr(r=Gr(r,Zr(e,n,Vr.Little)),i=Gr(i,Zr(e,n+4,Vr.Little)),t=Gr(t,Zr(e,n+8,Vr.Little)));r=s[0],i=s[1],t=s[2]}return r=Gr(r,Zr(e,n,Vr.Little)),i=Gr(i,Zr(e,n+4,Vr.Little)),t=Gr(t,o),Qr(r,i,t=Gr(t,Zr(e,n+8,Vr.Little)<<8))[2]}function Qr(e,t,n){return e=$r(e,t),e=$r(e,n),e^=n>>>13,t=$r(t,n),t=$r(t,e),t^=e<<8,n=$r(n,e),n=$r(n,t),n^=t>>>13,e=$r(e,t),e=$r(e,n),e^=n>>>12,t=$r(t,n),t=$r(t,e),t^=e<<16,n=$r(n,e),n=$r(n,t),n^=t>>>5,e=$r(e,t),e=$r(e,n),e^=n>>>3,t=$r(t,n),t=$r(t,e),t^=e<<10,n=$r(n,e),n=$r(n,t),[e,t,n^=t>>>15]}function Gr(e,t){return Yr(e,t)[1]}function Yr(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function $r(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function Xr(e,t){return e<>>32-t}function Jr(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function Zr(e,t,n){var r=0;if(n===Vr.Big)for(var i=0;i<4;i++)r+=Jr(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=Jr(e,t+i)<<8*i;return r}function ei(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 ti(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function ni(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=ti(n,r)),r=ti(r,r);return n}!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(Vr||(Vr={}));var ri=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),ii=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 n(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}(kr),oi=new(function(){function e(){}return e.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map((function(e){return e.visit(t)}));return"<"+e.name+n+">"+r.join("")+""},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return""},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map((function(t){return t+'="'+e[t]+'"'})).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return""},e}());function si(e){return e.map((function(e){return e.visit(oi)})).join("")}var ai=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach((function(n){t.attrs[n]=hi(e[n])}))}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),ui=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),ci=function(){function e(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=[]),this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach((function(e){r.attrs[e]=hi(t[e])}))}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),li=function(){function e(e){this.value=hi(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),pi=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return n(t,e),t}(li),fi=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]];function hi(e){return fi.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}var di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new yi,r=new vi,i=new ci("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 ci("source",{},[new li(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))})),i.children.push(new pi(2),new ci("msg",t,a(n,r.serialize(e.nodes))))})),i.children.push(new pi),si([new ai({version:"1.0",encoding:"UTF-8"}),new pi,new ui("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new pi,n.addDefaultExamples(i),new pi])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return mi(e)},t.prototype.createNameMapper=function(e){return new ii(e,gi)},t}(ri),vi=function(){function e(){}return e.prototype.visitText=function(e,t){return[new li(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,a(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new li("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,a([new li(t+" {")],e.cases[t].visit(n),[new li("} ")]))})),r.push(new li("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new li("<"+e.tag+">"),r=new ci("ex",{},[n]),i=new ci("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var o=new li(""),s=new ci("ex",{},[o]),u=new ci("ph",{name:e.closeName},[s,o]);return a([i],this.serialize(e.children),[u])},e.prototype.visitPlaceholder=function(e,t){var n=new li("{{"+e.value+"}}"),r=new ci("ex",{},[n]);return[new ci("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 li("{"+n+", "+r+", "+i+"}"),s=new ci("ex",{},[o]);return[new ci("ph",{name:e.name},[s,o])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],a(e.map((function(e){return e.visit(t)}))))},e}();function mi(e){return jr(e)}var yi=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 li(e.attrs.name||"...");e.children=[new ci("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 gi(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function _i(e){return"i18n"===e||e.startsWith("i18n-")}function bi(e){return e instanceof Tr}function wi(e){return bi(e)&&1===e.nodes.length&&e.nodes[0]instanceof Nr}function Ei(e){return!!e.i18n}function Ci(e){return e.nodes[0]}function Si(e,t){return void 0===t&&(t=0),"\ufffd"+e+(t>0?":"+t:"")+"\ufffd"}function xi(e){void 0===e&&(e=0);var t=e;return function(){return t++}}function Ti(e){var t={};return e.forEach((function(e,n){t[n]=Pt(e.length>1?"["+e.join("|")+"]":e[0])})),t}function Ii(e,t){for(var n=[],r=2;r0?function(e,t){return At(Object.getOwnPropertyNames(e).map((function(n){var r,i,o,a,u,c=e[n];return Array.isArray(c)?(a=(r=s(c,2))[0],o=r[1]):(o=(i=s(Ft(n,[n,c]),2))[0],a=i[1]),{key:u=o,quoted:Mi.test(u),value:t&&a!==o?It([ji(a),ji(o)]):ji(a)}})))}(e,t):null}function Vi(e){for(;Ot(e[e.length-1]);)e.pop();return e}function Bi(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach((function(e){var t=e.split(",").map((function(e){return Pt(e.trim())}));n.push.apply(n,a(t))})),t.getConstLiteral(It(n),!0)}return e.predicate}var Hi,Ui,qi,zi=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 At(this.values)},e}();function Wi(e){var t={};return e instanceof gr&&"ng-template"!==e.tagName?e.templateAttrs.forEach((function(e){return t[e.name]=""})):(e.attributes.forEach((function(e){_i(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 Ki(e,t,n){var r=Ct(e,null,n);if(t.length>0)for(var i=0;i0?At(n):null}(t);return null!==r?(n=!0,r):Pt(null)})),s=n?xt(It(r)):de);else{var c=Et("\u0275"+t.name+"_BaseFactory"),l=Ct(Qn.getInheritedFactory),p=c.set(l.callFn([t.internalType])).toDeclStmt(le,[e.StmtModifier.Exported,e.StmtModifier.Final]);o.push(p),u=c.callFn([a])}var f=u,h=[],d=null;function v(e){var t,n=Et("r");return h.push(n.set(Xe).toDeclStmt()),t=null!==f?n.set(f).toStmt():Ct(Qn.invalidFactory).callFn([]).toStmt(),h.push(Dt(i,[t],[n.set(e).toStmt()])),n}if(Xi(t)&&t.delegateType===Hi.Factory){var m=Et("\u0275"+t.name+"_BaseFactory"),y=Ct(Qn.getFactoryOf);if(t.delegate.isEquivalent(t.internalType))throw new Error("Illegal state: compiling factory that delegates to itself");var g=m.set(y.callFn([t.delegate])).toDeclStmt(le,[e.StmtModifier.Exported,e.StmtModifier.Final]);o.push(g),d=v(m.callFn([]))}else if(Xi(t)){var _=Yi(t.delegateDeps,t.injectFn,t.target===e.R3FactoryTarget.Pipe);d=v(new(t.delegateType===Hi.Class?Ae:Ie)(t.delegate,_))}else d=function(e){return void 0!==e.expression}(t)?v(t.expression):u;return h.push(null!==d?new rt(d):Ct(Qn.invalidFactory).callFn([]).toStmt()),{factory:Nt([new Ue("t",ce)],h,le,void 0,t.name+"_Factory"),statements:o,type:xt(Ct(Qn.FactoryDef,[$n(t.type.type,t.typeArgumentCount),s]))}}function Yi(t,n,r){return t.map((function(t,i){return function(t,n,r,i){switch(t.resolved){case e.R3ResolvedDependencyType.Token:case e.R3ResolvedDependencyType.ChangeDetectorRef:var o=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0),s=0!==o||t.optional?Pt(o):null;if(r&&t.resolved===e.R3ResolvedDependencyType.ChangeDetectorRef)return Ct(Qn.injectPipeChangeDetectorRef).callFn(s?[s]:[]);var a=[t.token];return s&&a.push(s),Ct(n).callFn(a);case e.R3ResolvedDependencyType.Attribute:return Ct(Qn.injectAttribute).callFn([t.token]);case e.R3ResolvedDependencyType.Invalid:return Ct(Qn.invalidFactoryDep).callFn([Pt(i)]);default:return Fi("Unknown R3ResolvedDependencyType: "+e.R3ResolvedDependencyType[t.resolved])}}(t,n,r,i)}))}function $i(t,n,r){r.resolveExternalReference(vn.Injector);var i,s,a=[];try{for(var u=o(t.diDeps),c=u.next();!c.done;c=u.next()){var l=c.value;if(l.token){var p=Pn(l.token),f=l.isAttribute?e.R3ResolvedDependencyType.Attribute:e.R3ResolvedDependencyType.Token,h=p instanceof gn?n.importExpr(p):Pt(p);a.push({token:h,attribute:null,resolved:f,host:!!l.isHost,optional:!!l.isOptional,self:!!l.isSelf,skipSelf:!!l.isSkipSelf})}else Fi("dependency without a token")}}catch(d){i={error:d}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return a}function Xi(e){return void 0!==e.delegateType}function Ji(t){var n=null,r={name:t.name,type:t.type,internalType:t.internalType,typeArgumentCount:t.typeArgumentCount,deps:[],injectFn:vn.inject,target:e.R3FactoryTarget.Injectable};if(void 0!==t.useClass){var o=t.useClass.isEquivalent(t.internalType),s=void 0;void 0!==t.userDeps&&(s=t.userDeps),n=void 0!==s?Gi(i(i({},r),{delegate:t.useClass,delegateDeps:s,delegateType:Hi.Class})):o?Gi(r):Zi(t.type.value,t.useClass)}else n=void 0!==t.useFactory?void 0!==t.userDeps?Gi(i(i({},r),{delegate:t.useFactory,delegateDeps:t.userDeps||[],delegateType:Hi.Function})):{statements:[],factory:Nt([],[new rt(t.useFactory.callFn([]))])}:void 0!==t.useValue?Gi(i(i({},r),{expression:t.useValue})):void 0!==t.useExisting?Gi(i(i({},r),{expression:Ct(vn.inject).callFn([t.useExisting])})):Zi(t.type.value,t.internalType);var a={token:t.internalType,factory:n.factory};return null!==t.providedIn.value&&(a.providedIn=t.providedIn),{expression:Ct(vn.\u0275\u0275defineInjectable).callFn([Gn(a)]),type:new se(Ct(vn.InjectableDef,[$n(t.type.type,t.typeArgumentCount)])),statements:n.statements}}function Zi(e,t){return{statements:[],factory:e.node===t.node?t.prop("\u0275fac"):Nt([new Ue("t",ce)],[new rt(t.callMethod("\u0275fac",[Et("t")]))])}}function eo(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]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function no(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];to.forEach((function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")}))}}var ro=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(no("interpolation",t),new e(t[0],t[1])):io},e}(),io=new ro("{{","}}"),oo=function(){function e(e){void 0===e&&(e=null),this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return e.prototype.addSource=function(e,t){return void 0===t&&(t=null),this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this},e.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},e.prototype.addMapping=function(e,t,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error('Unknown source file "'+t+'"');if(null==e)throw new Error("The column in the generated code must be provided");if(e>2),t+=ao((3&r)<<4|(isNaN(i)?0:i>>4)),t+=isNaN(i)?"=":ao((15&i)<<2|o>>6),t+=isNaN(i)||isNaN(o)?"=":ao(63&o)}return t}(JSON.stringify(this,null,0)):""},e}();function so(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=ao(n)}while(e>0);return t}function ao(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e]}var uo=/'|\\|\n|\r|\$/g,co=/^[$A-Z_][0-9A-Z_$]*$/i,lo=Et("error",null,null),po=Et("stack",null,null),fo=function(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},ho=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new fo(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*" ".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 fo(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?yo(e.indent)+e.parts.join(""):""})).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new oo(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;or)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(e.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),e}(),vo=function(){function t(e){this._escapeDollarInStrings=e}return t.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},t.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},t.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},t.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},t.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},t.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},t.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},t.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},t.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},t.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)},t.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)},t.prototype.visitReadVarExpr=function(t,n){var r=t.name;if(null!=t.builtin)switch(t.builtin){case e.BuiltinVar.Super:r="super";break;case e.BuiltinVar.This:r="this";break;case e.BuiltinVar.CatchError:r=lo.name;break;case e.BuiltinVar.CatchStack:r=po.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return n.print(t,r),null},t.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},t.prototype.visitLiteralExpr=function(e,t){var n=e.value;return t.print(e,"string"==typeof n?mo(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitLocalizedString=function(e,t){var n=e.serializeI18nHead();t.print(e,"$localize `"+n.raw);for(var r=1;r0&&(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())},t.prototype.visitAllStatements=function(e,t){var n=this;e.forEach((function(e){return e.visitStatement(n,t)}))},t}();function mo(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(uo,(function(){for(var e=[],n=0;n0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},r.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,"}});")},r.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,"};")},r.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},r.prototype.visitReadVarExpr=function(n,r){if(n.builtin===e.BuiltinVar.This)r.print(n,"self");else{if(n.builtin===e.BuiltinVar.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,n,r)}return null},r.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},r.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},r.prototype.visitInvokeFunctionExpr=function(n,r){var i=n.fn;return i instanceof be&&i.builtin===e.BuiltinVar.Super?(r.currentClass.parent.visitExpression(this,r),r.print(n,".call(this"),n.args.length>0&&(r.print(n,", "),this.visitAllExpressions(n.args,r,",")),r.print(n,")")):t.prototype.visitInvokeFunctionExpr.call(this,n,r),null},r.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},r.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},r.prototype.visitTryCatchStmt=function(t,n){n.println(t,"try {"),n.incIndent(),this.visitAllStatements(t.bodyStmts,n),n.decIndent(),n.println(t,"} catch ("+lo.name+") {"),n.incIndent();var r=[po.set(lo.prop("stack")).toDeclStmt(null,[e.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(r,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitLocalizedString=function(e,t){var n=this;t.print(e,'$localize((this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})(');for(var r=[e.serializeI18nHead()],i=1;i0&&!t[0].isEquivalent(Pt("use strict").toStmt())&&(t=a([Pt("use strict").toStmt()],t)),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)},e.prototype.evaluateCode=function(e,t,n,r){var i='"use strict";'+t.toSource()+"\n//# sourceURL="+e,o=[],s=[];for(var u in n)s.push(n[u]),o.push(u);if(r){var c=(new(Function.bind.apply(Function,a([void 0],o.concat("return null;"))))).toString(),l=c.slice(0,c.indexOf("return null;")).split("\n").length-1;i+="\n"+t.toSourceMapGenerator(e,l).toJsComment()}var p=new(Function.bind.apply(Function,a([void 0],o.concat(i))));return this.executeFunction(p,s)},e.prototype.executeFunction=function(e,t){return e.apply(void 0,a(t))},e}(),bo=function(t){function r(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return n(r,t),r.prototype.createReturnStmt=function(e){new rt(new Ye(this._evalExportedVars.map((function(e){return new Ge(e,Et(e),!1)})))).visitStatement(this,e)},r.prototype.getArgs=function(){for(var e={},t=0;t0&&(r.imports=It(t.imports)),{expression:Ct(Qn.defineInjector).callFn([Gn(r)]),type:new se(Ct(Qn.InjectorDef,[new se(t.type.type)])),statements:n.statements}}function xo(e){var t=e.map((function(e){return Tt(e.type)}));return e.length>0?xt(It(t)):de}function To(e,t){var n=It(e.map((function(e){return e.value})));return t?Nt([],[new rt(n)]):n}function Io(e){var t=[];return t.push({key:"name",value:Pt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:Pt(e.pure),quoted:!1}),{expression:Ct(Qn.definePipe).callFn([At(t)]),type:new se(Ct(Qn.PipeDefWithMeta,[$n(e.type.type,e.typeArgumentCount),new se(new Ne(e.pipeName))]))}}var Ao,No=function(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},Do=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.toAbsolute=function(e){return new es(e+this.start,e+this.end)},e}(),Po=function(){function e(e,t){this.span=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),Oo=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.nameSpan=r,i}return n(t,e),t}(Po),Mo=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.prefix=r,s.uninterpretedExpression=i,s.location=o,s}return n(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}(Po),ko=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(Po),Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Po),Ro=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expressions=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Po),jo=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.condition=r,s.trueExp=i,s.falseExp=o,s}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Po),Lo=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.receiver=i,s.name=o,s}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Oo),Vo=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r)||this;return a.receiver=i,a.name=o,a.value=s,a}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Oo),Bo=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.receiver=i,s.name=o,s}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Oo),Ho=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.obj=r,o.key=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Po),Uo=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.obj=r,s.key=i,s.value=o,s}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Po),qo=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,s)||this;return a.exp=r,a.name=i,a.args=o,a}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Oo),zo=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.value=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Po),Wo=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expressions=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Po),Ko=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.keys=r,o.values=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Po),Qo=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.strings=r,o.expressions=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Po),Go=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.operation=r,s.left=i,s.right=o,s}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Po),Yo=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expression=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Po),$o=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expression=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(Po),Xo=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r)||this;return a.receiver=i,a.name=o,a.args=s,a}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(Oo),Jo=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r)||this;return a.receiver=i,a.name=o,a.args=s,a}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(Oo),Zo=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.target=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(Po),es=function(e,t){this.start=e,this.end=t},ts=function(e){function t(t,n,r,i,o){var s=e.call(this,new Do(0,null===n?0:n.length),new es(i,null===n?i:i+n.length))||this;return s.ast=t,s.source=n,s.location=r,s.errors=o,s}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(Po),ns=function(e,t,n){this.sourceSpan=e,this.key=t,this.value=n},rs=function(e,t,n){this.sourceSpan=e,this.key=t,this.value=n},is=function(){function e(){}return e.prototype.visit=function(e,t){e.visit(this,t)},e.prototype.visitBinary=function(e,t){this.visit(e.left,t),this.visit(e.right,t)},e.prototype.visitChain=function(e,t){this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)},e.prototype.visitPipe=function(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)},e.prototype.visitFunctionCall=function(e,t){e.target&&this.visit(e.target,t),this.visitAll(e.args,t)},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){this.visit(e.obj,t),this.visit(e.key,t)},e.prototype.visitKeyedWrite=function(e,t){this.visit(e.obj,t),this.visit(e.key,t),this.visit(e.value,t)},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitMethodCall=function(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){this.visit(e.expression,t)},e.prototype.visitNonNullAssert=function(e,t){this.visit(e.expression,t)},e.prototype.visitPropertyRead=function(e,t){this.visit(e.receiver,t)},e.prototype.visitPropertyWrite=function(e,t){this.visit(e.receiver,t),this.visit(e.value,t)},e.prototype.visitSafePropertyRead=function(e,t){this.visit(e.receiver,t)},e.prototype.visitSafeMethodCall=function(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)},e.prototype.visitQuote=function(e,t){},e.prototype.visitAll=function(e,t){var n,r;try{for(var i=o(e),s=i.next();!s.done;s=i.next())this.visit(s.value,t)}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),os=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new Qo(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new zo(e.span,e.sourceSpan,e.value)},e.prototype.visitPropertyRead=function(e,t){return new Lo(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new Vo(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new Bo(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new Xo(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new Jo(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new Zo(e.span,e.sourceSpan,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new Wo(e.span,e.sourceSpan,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new Ko(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new Go(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new Yo(e.span,e.sourceSpan,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new $o(e.span,e.sourceSpan,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new jo(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new qo(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)},e.prototype.visitKeyedRead=function(e,t){return new Ho(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new Uo(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=[],n=0;n=0;r--)n.unshift(ws(t,r))}(c.temporaryCount,i,l),c.usesImplicitReceiver&&t.notifyImplicitReceiverUse();var p,f=l.length-1,h=null;if(f>=0){var d=(p=l[f])instanceof nt?p.expr:p instanceof rt?p.value:null;d&&(h=function(e){return Et("pd_"+e)}(i),l[f]=h.set(d.cast(ce).notIdentical(Pt(!1))).toDeclStmt(null,[e.StmtModifier.Final]))}return new fs(l,h)}function ds(e,t){return function(e,t){var n=new Ss(e);return t.visit(n)}(e,t)}var vs,ms,ys=function(e,t){this.stmts=e,this.currValExpr=t};function gs(t,n,r,i,o,s){t||(t=new Ts);var a=function(e){return Et("currVal_"+e)}(i),u=new xs(t,n,i,s),c=r.visit(u,ms.Expression),l=_s(u,i);return u.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),0===u.temporaryCount&&o==vs.TrySimple?new ys([],c):(l.push(a.set(c).toDeclStmt(ce,[e.StmtModifier.Final])),new ys(l,a))}function _s(e,t){for(var n=[],r=0;r":r=e.BinaryOperator.Bigger;break;case"<=":r=e.BinaryOperator.LowerEquals;break;case">=":r=e.BinaryOperator.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Cs(n,new ze(r,this._visit(t.left,ms.Expression),this._visit(t.right,ms.Expression),void 0,this.convertSourceSpan(t.span)))},t.prototype.visitChain=function(e,t){return function(e,t){if(e!==ms.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},t.prototype.visitConditional=function(e,t){return Cs(t,this._visit(e.condition,ms.Expression).conditional(this._visit(e.trueExp,ms.Expression),this._visit(e.falseExp,ms.Expression),this.convertSourceSpan(e.span)))},t.prototype.visitPipe=function(e,t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+e.name)},t.prototype.visitFunctionCall=function(e,t){var n=this.visitAll(e.args,ms.Expression);return Cs(t,e instanceof Is?e.converter(n):this._visit(e.target,ms.Expression).callFn(n,this.convertSourceSpan(e.span)))},t.prototype.visitImplicitReceiver=function(e,t){return Es(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver},t.prototype.visitInterpolation=function(e,t){Es(t,e);for(var n=[Pt(e.expressions.length)],r=0;r-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Ms,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Bs.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 $s(r,i)},i=function(e){for(var t=e.split(Ys),n=[],r=[],i=0,o=[],s=0;s0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push("%BLOCK%"),o=[]),n.push(a)),"{"==a&&i++}return o.length>0&&(r.push(o.join("")),n.push("%BLOCK%")),new Xs(n.join(""),r)}(e),o=0,i.escapedString.replace(Gs,(function(){for(var e=[],t=0;t-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(qs,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new Ns(e),u="",c=0,l=/( |>|\+|~(?!=))\s*/g,p=!((e=a.content()).indexOf(Ls)>-1);null!==(r=l.exec(e));){var f=r[1],h=e.slice(c,r.index).trim();u+=((p=p||h.indexOf(Ls)>-1)?s(h):h)+" "+f+" ",c=l.lastIndex}var d=e.substring(c);return u+=(p=p||d.indexOf(Ls)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(Ws,ks).replace(zs,Ms)},e}(),Ns=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}(),Ds=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Ps=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Os=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ms="-shadowcsshost",ks="-shadowcsscontext",Fs=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Rs=new RegExp("("+Ms+Fs,"gim"),js=new RegExp("("+ks+Fs,"gim"),Ls=Ms+"-no-combinator",Vs=/-shadowcsshost-no-combinator([^\s]*)/,Bs=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Hs=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Us="([>\\s~+[.,{:][\\s\\S]*)?$",qs=/-shadowcsshost/gim,zs=/:host/gim,Ws=/:host-context/gim,Ks=/\/\*\s*[\s\S]*?\*\//g,Qs=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Gs=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ys=/([{}])/g,$s=function(e,t){this.selector=e,this.content=t},Xs=function(e,t){this.escapedString=e,this.blocks=t},Js=function(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n},Zs=function(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i},ea=function(){function t(e){this._urlResolver=e,this._shadowCss=new As}return t.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new On({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:xn(t.type)}),this.needsStyleShim(t),!0)},t.prototype.compileStyles=function(e,t,n,r){return void 0===r&&(r=this.needsStyleShim(t)),this._compileStyles(e,t,n,r,!1)},t.prototype.needsStyleShim=function(e){return e.template.encapsulation===_.Emulated},t.prototype._compileStyles=function(t,n,r,i,o){var s=this,a=r.styles.map((function(e){return Pt(s._shimIfNeeded(e,i))})),u=[];r.styleUrls.forEach((function(e){var n=a.length;a.push(null),u.push(new Js(ta(null),e,(function(e){return a[n]=t.importExpr(e)})))}));var c=ta(o?n:null),l=Et(c).set(It(a,new ae(ce,[ee.Const]))).toDeclStmt(null,o?[e.StmtModifier.Final]:[e.StmtModifier.Final,e.StmtModifier.Exported]);return t.statements.push(l),new Zs(t,c,u,i,r)},t.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,"_ngcontent-%COMP%","_nghost-%COMP%"):e},t}();function ta(e){var t="styles";return e&&(t+="_"+Sn(e.type)),t}var na=function(){function e(e,t){void 0===t&&(t=-1),this.path=e,this.position=t}return 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()},e}(),ra=function(e,t){this.sourceSpan=e,this.i18n=t},ia=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return n(t,e),t.prototype.visit=function(e,t){return e.visitText(this,t)},t}(ra),oa=function(e){function t(t,n,r,i,o,s){var a=e.call(this,i,s)||this;return a.switchValue=t,a.type=n,a.cases=r,a.switchValueSourceSpan=o,a}return n(t,e),t.prototype.visit=function(e,t){return e.visitExpansion(this,t)},t}(ra),sa=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}(),aa=function(e){function t(t,n,r,i,o){var s=e.call(this,r,o)||this;return s.name=t,s.value=n,s.valueSpan=i,s}return n(t,e),t.prototype.visit=function(e,t){return e.visitAttribute(this,t)},t}(ra),ua=function(e){function t(t,n,r,i,o,s,a){void 0===o&&(o=null),void 0===s&&(s=null);var u=e.call(this,i,a)||this;return u.name=t,u.attrs=n,u.children=r,u.startSourceSpan=o,u.endSourceSpan=s,u}return n(t,e),t.prototype.visit=function(e,t){return e.visitElement(this,t)},t}(ra),ca=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 la(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 pa,fa=function(){function e(){}return 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(la(r,t,e))})),Array.prototype.concat.apply([],n)},e}();!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_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE=14]="DOC_TYPE",e[e.EXPANSION_FORM_START=15]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=16]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=17]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=18]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=19]="EXPANSION_FORM_END",e[e.EOF=20]="EOF"}(pa||(pa={}));var ha=function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},da=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return n(t,e),t}(cr),va=function(e,t){this.tokens=e,this.errors=t},ma=/\r\n?/g;function ya(e){return'Unexpected character "'+(0===e?"EOF":String.fromCharCode(e))+'"'}function ga(e){return'Unknown entity "'+e+'" - use the "&#;" or "&#x;" syntax'}var _a=function(e){this.error=e},ba=function(){function t(e,t,n){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||io,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map((function(e){return e.codePointAt(0)||0}));var r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Ia(e,r):new Ta(e,r),this._preserveLineEndings=n.preserveLineEndings||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}return t.prototype._processCarriageReturns=function(e){return this._preserveLineEndings?e:e.replace(ma,"\n")},t.prototype.tokenize=function(){for(;0!==this._cursor.peek();){var e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(47)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){this.handleError(t)}}return this._beginToken(pa.EOF),this._endToken([]),new va(function(e){for(var t=[],n=void 0,r=0;r")})),this._beginToken(pa.CDATA_END),this._requireStr("]]>"),this._endToken([])},t.prototype._consumeDocType=function(e){this._beginToken(pa.DOC_TYPE,e);var t=this._cursor.clone();this._attemptUntilChar(62);var n=this._cursor.getChars(t);this._cursor.advance(),this._endToken([n])},t.prototype._consumePrefixAndName=function(){for(var e,t,n=this._cursor.clone(),r="";58!==this._cursor.peek()&&!(((e=this._cursor.peek())<97||12257));)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(n),this._cursor.advance(),t=this._cursor.clone()):t=n,this._requireCharCodeUntilFn(Ea,""===r?0:1),[r,this._cursor.getChars(t)]},t.prototype._consumeTagOpen=function(t){var n,r,i,o=this.tokens.length,s=this._cursor.clone();try{if(!nr(this._cursor.peek()))throw this._createError(ya(this._cursor.peek()),this._cursor.getSpan(t));for(r=(i=this._consumeTagOpenStart(t)).parts[0],n=i.parts[1],this._attemptCharCodeUntilFn(wa);47!==this._cursor.peek()&&62!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(wa),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(wa),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(wa);this._consumeTagOpenEnd()}catch(u){if(u instanceof _a)return this._cursor=s,i&&(this.tokens.length=o),this._beginToken(pa.TEXT,t),void this._endToken(["<"]);throw u}var a=this._getTagDefinition(n).contentType;a===e.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):a===e.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)},t.prototype._consumeRawTextWithTagClose=function(e,t,n){var r=this;this._consumeRawText(n,(function(){return!!r._attemptCharCode(60)&&!!r._attemptCharCode(47)&&(r._attemptCharCodeUntilFn(wa),!!r._attemptStrCaseInsensitive(t)&&(r._attemptCharCodeUntilFn(wa),r._attemptCharCode(62)))})),this._beginToken(pa.TAG_CLOSE),this._requireCharCodeUntilFn((function(e){return 62===e}),3),this._cursor.advance(),this._endToken([e,t])},t.prototype._consumeTagOpenStart=function(e){this._beginToken(pa.TAG_OPEN_START,e);var t=this._consumePrefixAndName();return this._endToken(t)},t.prototype._consumeAttributeName=function(){var e=this._cursor.peek();if(39===e||34===e)throw this._createError(ya(e),this._cursor.getSpan());this._beginToken(pa.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var e;if(39===this._cursor.peek()||34===this._cursor.peek()){this._beginToken(pa.ATTR_QUOTE);var t=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(t)]),this._beginToken(pa.ATTR_VALUE);for(var n=[];this._cursor.peek()!==t;)n.push(this._readChar(!0));e=n.join(""),this._endToken([this._processCarriageReturns(e)]),this._beginToken(pa.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(t)])}else{this._beginToken(pa.ATTR_VALUE);var r=this._cursor.clone();this._requireCharCodeUntilFn(Ea,1),e=this._cursor.getChars(r),this._endToken([this._processCarriageReturns(e)])}},t.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(47)?pa.TAG_OPEN_END_VOID:pa.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])},t.prototype._consumeTagClose=function(e){this._beginToken(pa.TAG_CLOSE,e),this._attemptCharCodeUntilFn(wa);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(wa),this._requireCharCode(62),this._endToken(t)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(pa.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(pa.EXPANSION_FORM_START),this._beginToken(pa.RAW_TEXT);var e=this._readUntil(44);this._endToken([e]),this._requireCharCode(44),this._attemptCharCodeUntilFn(wa),this._beginToken(pa.RAW_TEXT);var t=this._readUntil(44);this._endToken([t]),this._requireCharCode(44),this._attemptCharCodeUntilFn(wa)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(pa.EXPANSION_CASE_VALUE);var e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(wa),this._beginToken(pa.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(wa),this._expansionCaseStack.push(pa.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(pa.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(wa),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(pa.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var e=this._cursor.clone();this._beginToken(pa.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(""))])},t.prototype._isTextEnd=function(){if(60===this._cursor.peek()||0===this._cursor.peek())return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(125===this._cursor.peek()&&this._isInExpansionCase())return!0}return!1},t.prototype._readUntil=function(e){var t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===pa.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===pa.EXPANSION_FORM_START},t.prototype.isExpansionFormStart=function(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){var e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0},t}();function wa(e){return!er(e)||0===e}function Ea(e){return er(e)||62===e||47===e||39===e||34===e||61===e}function Ca(e){return 59==e||0==e||!function(e){return e>=97&&e<=102||e>=65&&e<=70||tr(e)}(e)}function Sa(e){return 59==e||0==e||!nr(e)}function xa(e){return e>=97&&e<=122?e-97+65:e}var Ta=function(){function e(t,n){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;var r=t.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}return e.prototype.clone=function(){return new e(this)},e.prototype.peek=function(){return this.state.peek},e.prototype.charsLeft=function(){return this.end-this.state.offset},e.prototype.diff=function(e){return this.state.offset-e.state.offset},e.prototype.advance=function(){this.advanceState(this.state)},e.prototype.init=function(){this.updatePeek(this.state)},e.prototype.getSpan=function(e,t){e=e||this;var n=!1;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)n||(e=e.clone(),n=!0),e.advance();return new ur(new sr(e.file,e.state.offset,e.state.line,e.state.column),new sr(this.file,this.state.offset,this.state.line,this.state.column))},e.prototype.getChars=function(e){return this.input.substring(e.state.offset,this.state.offset)},e.prototype.charAt=function(e){return this.input.charCodeAt(e)},e.prototype.advanceState=function(e){if(e.offset>=this.end)throw this.state=e,new Aa('Unexpected character "EOF"',this);var t=this.charAt(e.offset);10===t?(e.line++,e.column=0):rr(t)||e.column++,e.offset++,this.updatePeek(e)},e.prototype.updatePeek=function(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)},e}(),Ia=function(e){function t(n,r){var o=this;return n instanceof t?(o=e.call(this,n)||this).internalState=i({},n.internalState):(o=e.call(this,n,r)||this).internalState=o.state,o}return n(t,e),t.prototype.advance=function(){this.state=this.internalState,e.prototype.advance.call(this),this.processEscapeSequence()},t.prototype.init=function(){e.prototype.init.call(this),this.processEscapeSequence()},t.prototype.clone=function(){return new t(this)},t.prototype.getChars=function(e){for(var t=e.clone(),n="";t.internalState.offset0)return this._errors=this._errors.concat(o.errors),null;var s=new ur(t.sourceSpan.start,i.sourceSpan.end),a=new ur(n.sourceSpan.start,i.sourceSpan.end);return new sa(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[pa.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==pa.EXPANSION_FORM_START&&this._peek.type!==pa.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===pa.EXPANSION_CASE_EXP_END){if(!Ma(n,pa.EXPANSION_CASE_EXP_START))return this._errors.push(Na.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===pa.EXPANSION_FORM_END){if(!Ma(n,pa.EXPANSION_FORM_START))return this._errors.push(Na.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===pa.EOF)return this._errors.push(Na.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 ia(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===pa.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===pa.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==f(i)||s.isVoid||this._errors.push(Na.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===pa.TAG_OPEN_END&&(this._advance(),o=!1);var a=new ur(e.sourceSpan.start,this._peek.sourceSpan.start),u=new ua(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(Na.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(Na.create(t,e.sourceSpan,'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'))},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=h(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===pa.ATTR_QUOTE&&this._advance(),this._peek.type===pa.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return this._peek.type===pa.ATTR_QUOTE&&(n=this._advance().sourceSpan.end),new aa(t,r,new ur(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(!c(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""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=n&&(e=f(n.name)),h(e,t)},e}();function Ma(e,t){return e.length>0&&e[e.length-1]===t}var ka=function(e){function t(){return e.call(this,g)||this}return n(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(Pa),Fa=new Set(["pre","template","textarea","script","style"]),Ra=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",ja=new RegExp("[^"+Ra+"]"),La=new RegExp("["+Ra+"]{2,}","g");function Va(e){return e.replace(new RegExp("\ue500","g")," ")}var Ba=function(){function e(){}return e.prototype.visitElement=function(e,t){return Fa.has(e.name)||e.attrs.some((function(e){return"ngPreserveWhitespaces"===e.name}))?new ua(e.name,la(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new ua(e.name,e.attrs,(n=this,i=[],(r=e.children).forEach((function(e,t){var o=e.visit(n,{prev:r[t-1],next:r[t+1]});o&&i.push(o)})),i),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);var n,r,i},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){return e.value.match(ja)||t&&(t.prev instanceof oa||t.next instanceof oa)?new ia(Va(e.value).replace(La," "),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 Ha(e){return new Da(la(new Ba,e.rootNodes),e.errors)}var Ua=["zero","one","two","few","many","other"];function qa(e){var t=new Ga;return new Ka(la(t,e),t.isExpanded,t.errors)}var za,Wa,Ka=function(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},Qa=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(cr),Ga=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new ua(e.name,e.attrs,la(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?(r=this.errors,i=(n=e).cases.map((function(e){-1!=Ua.indexOf(e.value)||e.value.match(/^=\d+$/)||r.push(new Qa(e.valueSourceSpan,'Plural cases should be "=" or one of '+Ua.join(", ")));var t=qa(e.expression);return r.push.apply(r,a(t.errors)),new ua("ng-template",[new aa("ngPluralCase",""+e.value,e.valueSourceSpan)],t.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)})),o=new aa("[ngPlural]",n.switchValue,n.switchValueSourceSpan),new ua("ng-container",[o],i,n.sourceSpan,n.sourceSpan,n.sourceSpan)):function(e,t){var n=e.cases.map((function(e){var n=qa(e.expression);return t.push.apply(t,a(n.errors)),new ua("ng-template","other"===e.value?[new aa("ngSwitchDefault","",e.valueSourceSpan)]:[new aa("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)})),r=new aa("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new ua("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors);var n,r,i,o},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}(),Ya=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}(),$a=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}(),Xa=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}(),Ja=((za={})[4]=4,za[1]=1,za[2]=2,za[0]=0,za[3]=3,za),Za=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){return new e(t.name,Ja[t.type],t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),eu=function(){function e(t,n,r,i,o,s){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.handlerSpan=s,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){return new e(t.name,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.handler,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),tu=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}(),nu=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.fromParsedVariable=function(t){return new e(t.name,t.value,t.sourceSpan,t.valueSpan)},e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),ru=function(){function e(e,t,n,r,i,o,s,a,u,c,l,p,f){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=f}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),iu=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}(),ou=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}(),su=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}(),au=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}();(Wa=e.ProviderAstType||(e.ProviderAstType={}))[Wa.PublicService=0]="PublicService",Wa[Wa.PrivateService=1]="PrivateService",Wa[Wa.Component=2]="Component",Wa[Wa.Directive=3]="Directive",Wa[Wa.Builtin=4]="Builtin";var uu=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}(),cu=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}(),lu=function(e){function t(){return e.call(this)||this}return n(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(pu(r,t,e))})),Array.prototype.concat.apply([],n)},t}(cu);function pu(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 fu=function(e){function t(t,n){return e.call(this,n,t)||this}return n(t,e),t}(cr),hu=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 _u(n,{meta:e,queryId:t++})})),n}(t),this.viewProviders=new Map,t.viewProviders.forEach((function(e){null==n.viewProviders.get(Pn(e.token))&&n.viewProviders.set(Pn(e.token),!0)}))},du=function(){function t(t,n,r,i,o,s,a,u,c){var l=this;this.viewContext=t,this._parent=n,this._isViewRoot=r,this._directiveAsts=i,this._sourceSpan=c,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},o.forEach((function(e){return l._attrs[e.name]=e.value}));var p,f,h,d,v=i.map((function(e){return e.directive}));if(this._allProviders=(p=v,f=c,h=t.errors,d=new Map,p.forEach((function(t){gu([{token:{identifier:t.type},useClass:t.type}],t.isComponent?e.ProviderAstType.Component:e.ProviderAstType.Directive,!0,f,h,d,!1)})),p.filter((function(e){return e.isComponent})).concat(p.filter((function(e){return!e.isComponent}))).forEach((function(t){gu(t.providers,e.ProviderAstType.PublicService,!1,f,h,d,!1),gu(t.viewProviders,e.ProviderAstType.PrivateService,!1,f,h,d,!1)})),d),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 _u(r,{meta:e,queryId:n++})}))})),r}(u,v),Array.from(this._allProviders.values()).forEach((function(e){l._addQueryReadsTo(e.token,e.token,l._queriedTokens)})),a){var m=yn(this.viewContext.reflector,vn.TemplateRef);this._addQueryReadsTo(m,m,this._queriedTokens)}s.forEach((function(e){var t=e.value||yn(l.viewContext.reflector,vn.ElementRef);l._addQueryReadsTo({value:e.name},t,l._queriedTokens)})),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(vn.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach((function(e){(e.eager||l._queriedTokens.get(Pn(e.token)))&&l._getOrCreateLocalProvider(e.providerType,e.token,!0)}))}return t.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach((function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)}))},Object.defineProperty(t.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(t.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(t.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach((function(t){e.push.apply(e,a(t))})),e},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach((function(e){var r=e.meta.read||t,i=Pn(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:e.queryId,value:r})}))},t.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(Pn(e)))&&n.push.apply(n,a(t.filter((function(e){return e.meta.descendants||i<=1})))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(Pn(e)))&&n.push.apply(n,a(t)),n},t.prototype._getOrCreateLocalProvider=function(t,n,r){var i=this,o=this._allProviders.get(Pn(n));if(!o||(t===e.ProviderAstType.Directive||t===e.ProviderAstType.PublicService)&&o.providerType===e.ProviderAstType.PrivateService||(t===e.ProviderAstType.PrivateService||t===e.ProviderAstType.PublicService)&&o.providerType===e.ProviderAstType.Builtin)return null;var s=this._transformedProviders.get(Pn(n));if(s)return s;if(null!=this._seenProviders.get(Pn(n)))return this.viewContext.errors.push(new fu("Cannot instantiate cyclic dependency! "+Dn(n),this._sourceSpan)),null;this._seenProviders.set(Pn(n),!0);var a=o.providers.map((function(e){var t=e.useValue,n=e.useExisting,s=void 0;if(null!=e.useExisting){var a=i._getDependency(o.providerType,{token:e.useExisting},r);null!=a.token?n=a.token:(n=null,t=a.value)}else e.useFactory?s=(e.deps||e.useFactory.diDeps).map((function(e){return i._getDependency(o.providerType,e,r)})):e.useClass&&(s=(e.deps||e.useClass.diDeps).map((function(e){return i._getDependency(o.providerType,e,r)})));return mu(e,{useExisting:n,useValue:t,deps:s})}));return s=yu(o,{eager:r,providers:a}),this._transformedProviders.set(Pn(n),s),s},t.prototype._getLocalDependency=function(t,n,r){if(void 0===r&&(r=!1),n.isAttribute){var i=this._attrs[n.token.value];return{isValue:!0,value:null==i?null:i}}if(null!=n.token){if(t===e.ProviderAstType.Directive||t===e.ProviderAstType.Component){if(Pn(n.token)===this.viewContext.reflector.resolveExternalReference(vn.Renderer)||Pn(n.token)===this.viewContext.reflector.resolveExternalReference(vn.ElementRef)||Pn(n.token)===this.viewContext.reflector.resolveExternalReference(vn.ChangeDetectorRef)||Pn(n.token)===this.viewContext.reflector.resolveExternalReference(vn.TemplateRef))return n;Pn(n.token)===this.viewContext.reflector.resolveExternalReference(vn.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Pn(n.token)===this.viewContext.reflector.resolveExternalReference(vn.Injector))return n;if(null!=this._getOrCreateLocalProvider(t,n.token,r))return n}return null},t.prototype._getDependency=function(t,n,r){void 0===r&&(r=!1);var i=this,o=r,s=null;if(n.isSkipSelf||(s=this._getLocalDependency(t,n,r)),n.isSelf)!s&&n.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&i._parent;)i._isViewRoot&&(o=!1),s=(i=i._parent)._getLocalDependency(e.ProviderAstType.PublicService,n,o);s||(s=!n.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Pn(n.token)||null!=this.viewContext.viewProviders.get(Pn(n.token))?n:n.isOptional?{isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new fu("No provider for "+Dn(n.token),this._sourceSpan)),s},t}(),vu=function(){function t(t,n,r,i){var o=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,n.transitiveModule.modules.forEach((function(t){gu([{token:{identifier:t},useClass:t}],e.ProviderAstType.PublicService,!0,i,o._errors,o._allProviders,!0)})),gu(n.transitiveModule.providers.map((function(e){return e.provider})).concat(r),e.ProviderAstType.PublicService,!1,i,this._errors,this._allProviders,!1)}return t.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)},t.prototype._getOrCreateLocalProvider=function(e,t){var n=this,r=this._allProviders.get(Pn(e));if(!r)return null;var i=this._transformedProviders.get(Pn(e));if(i)return i;if(null!=this._seenProviders.get(Pn(e)))return this._errors.push(new fu("Cannot instantiate cyclic dependency! "+Dn(e),r.sourceSpan)),null;this._seenProviders.set(Pn(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 e.useFactory?s=(e.deps||e.useFactory.diDeps).map((function(e){return n._getDependency(e,t,r.sourceSpan)})):e.useClass&&(s=(e.deps||e.useClass.diDeps).map((function(e){return n._getDependency(e,t,r.sourceSpan)})));return mu(e,{useExisting:o,useValue:i,deps:s})}));return i=yu(r,{eager:t,providers:o}),this._transformedProviders.set(Pn(e),i),i},t.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||Pn(e.token)===this.reflector.resolveExternalReference(vn.Injector)||Pn(e.token)===this.reflector.resolveExternalReference(vn.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},t}();function mu(e,t){return{token:e.token,useClass:e.useClass,useExisting:t.useExisting,useFactory:e.useFactory,useValue:t.useValue,deps:t.deps,multi:e.multi}}function yu(e,t){return new au(e.token,e.multiProvider,e.eager||t.eager,t.providers,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function gu(e,t,n,r,i,o,s){e.forEach((function(e){var a=o.get(Pn(e.token));null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new fu("Mixing multi and non multi provider is not possible for token "+Dn(a.token),r)),a?(e.multi||(a.providers.length=0),a.providers.push(e)):(a=new au(e.token,!!e.multi,n||!(e.useClass||e.useExisting||e.useFactory),[e],t,e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],r,s),o.set(Pn(e.token),a))}))}function _u(e,t){t.meta.selectors.forEach((function(n){var r=e.get(Pn(n));r||(r=[],e.set(Pn(n),r)),r.push(t)}))}var bu=function(e,t){this.style=e,this.styleUrls=t};function wu(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(xu);return null===t||"package"==t[1]||"asset"==t[1]}var Eu,Cu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Su=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,xu=/^([^:/?#]+):/,Tu=function(){function t(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(t.prototype,"interpolationConfig",{get:function(){return this._interpolationConfig},enumerable:!0,configurable:!0}),t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.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,t.start.offset,void 0,[],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},t.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)}))},t.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,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},t.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,t.start.offset,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,t.start.offset)}},t.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,s,a){var u,c,l=this._parseTemplateBindings(e,t,n,n.start.offset+"*".length,r);try{for(var p=o(l),f=p.next();!f.done;f=p.next()){var h=f.value,d=Du(n,h.sourceSpan),v=h.key.source,m=Du(n,h.key.span);if(h instanceof ns){var y=h.value?h.value.source:"$implicit",g=h.value?Du(n,h.value.span):void 0;a.push(new cs(v,y,d,m,g))}else h.value?(g=Du(n,h.value.ast.sourceSpan),this._parsePropertyAst(v,h.value,n,g,i,s)):(i.push([v,""]),this.parseLiteralAttr(v,null,n,r,void 0,i,s))}}catch(_){u={error:_}}finally{try{f&&!f.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}},t.prototype._parseTemplateBindings=function(t,n,r,i,o){var s=this,a=r.start.toString();try{var u=this._exprParser.parseTemplateBindings(t,n,a,i,o);return this._reportExpressionParserErrors(u.errors,r),u.templateBindings.forEach((function(e){e.value instanceof ts&&s._checkPipes(e.value,r)})),u.warnings.forEach((function(t){s._reportError(t,r,e.ParseErrorLevel.WARNING)})),u.templateBindings}catch(c){return this._reportError(""+c,r),[]}},t.prototype.parseLiteralAttr=function(t,n,r,i,o,s,a){Au(t)?(t=t.substring(1),n&&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.',r,e.ParseErrorLevel.ERROR),this._parseAnimation(t,n,r,i,o,s,a)):a.push(new as(t,this._exprParser.wrapLiteralPrimitive(n,"",i),e.ParsedPropertyType.LITERAL_ATTR,r,o))},t.prototype.parsePropertyBinding=function(e,t,n,r,i,o,s,a){0===e.length&&this._reportError("Property name is missing in binding",r);var u=!1;e.startsWith("animate-")?(u=!0,e=e.substring("animate-".length)):Au(e)&&(u=!0,e=e.substring(1)),u?this._parseAnimation(e,t,r,i,o,s,a):this._parsePropertyAst(e,this._parseBinding(t,n,o||r,i),r,o,s,a)},t.prototype.parsePropertyInterpolation=function(e,t,n,r,i,o){var s=this.parseInterpolation(t,r||n);return!!s&&(this._parsePropertyAst(e,s,n,r,i,o),!0)},t.prototype._parsePropertyAst=function(t,n,r,i,o,s){o.push([t,n.source]),s.push(new as(t,n,e.ParsedPropertyType.DEFAULT,r,i))},t.prototype._parseAnimation=function(t,n,r,i,o,s,a){0===t.length&&this._reportError("Animation trigger is missing",r);var u=this._parseBinding(n||"undefined",!1,o||r,i);s.push([t,u.source]),a.push(new as(t,u,e.ParsedPropertyType.ANIMATION,r,o))},t.prototype._parseBinding=function(e,t,n,r){var i=(n&&n.start||"(unknown)").toString();try{var o=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),this._checkPipes(o,n),o}catch(s){return this._reportError(""+s,n),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}},t.prototype.createBoundElementProperty=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),t.isAnimation)return new ls(t.name,4,k.NONE,t.expression,null,t.sourceSpan,t.valueSpan);var i=null,o=void 0,s=null,a=t.name.split("."),u=void 0;if(a.length>1)if("attr"==a[0]){s=a.slice(1).join("."),n||this._validatePropertyOrAttributeName(s,t.sourceSpan,!0),u=Nu(this._schemaRegistry,e,s,!0);var c=s.indexOf(":");if(c>-1){var l=s.substring(0,c),p=s.substring(c+1);s=h(l,p)}o=1}else"class"==a[0]?(s=a[1],o=2,u=[k.NONE]):"style"==a[0]&&(i=a.length>2?a[2]:null,s=a[1],o=3,u=[k.STYLE]);if(null===s){var f=this._schemaRegistry.getMappedPropName(t.name);s=r?f:t.name,u=Nu(this._schemaRegistry,e,f,!1),o=0,n||this._validatePropertyOrAttributeName(f,t.sourceSpan,!1)}return new ls(s,o,u[0],t.expression,i,t.sourceSpan,t.valueSpan)},t.prototype.parseEvent=function(e,t,n,r,i,o){0===e.length&&this._reportError("Event name is missing in binding",n),Au(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,r,o)):this._parseRegularEvent(e,t,n,r,i,o)},t.prototype.calcPossibleSecurityContexts=function(e,t,n){var r=this._schemaRegistry.getMappedPropName(t);return Nu(this._schemaRegistry,e,r,n)},t.prototype._parseAnimationEvent=function(e,t,n,r,i){var o=Rt(e,".",[e,""]),s=o[0],a=o[1].toLowerCase();if(a)switch(a){case"start":case"done":var u=this._parseAction(t,r);i.push(new us(s,a,1,u,n,r));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseRegularEvent=function(e,t,n,r,i,o){var a=s(Ft(e,[null,e]),2),u=a[0],c=a[1],l=this._parseAction(t,r);i.push([e,l.source]),o.push(new us(c,u,0,l,n,r))},t.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{var i=this._exprParser.parseAction(e,n,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),!i||i.ast instanceof ko?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):(this._checkPipes(i,t),i)}catch(o){return this._reportError(""+o,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.errors.push(new cr(n,t,r))},t.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var i=o(e),s=i.next();!s.done;s=i.next())this._reportError(s.value.message,t)}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new Iu;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 ur(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))}))}},t.prototype._validatePropertyOrAttributeName=function(t,n,r){var i=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);i.error&&this._reportError(i.msg,n,e.ParseErrorLevel.ERROR)},t}(),Iu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return n(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}(is);function Au(e){return"@"==e[0]}function Nu(e,t,n,r){var i=[];return E.parse(t).forEach((function(t){var o=t.element?[t.element]:e.allKnownElementNames(),s=new Set(t.notSelectors.filter((function(e){return e.isElementSelector()})).map((function(e){return e.element}))),u=o.filter((function(e){return!s.has(e)}));i.push.apply(i,a(u.map((function(t){return e.securityContext(t,n,r)}))))})),0===i.length?[k.NONE]:Array.from(new Set(i)).sort()}function Du(e,t){var n=t.end-e.end.offset;return new ur(e.start.moveBy(t.start-e.start.offset),e.end.moveBy(n))}function Pu(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach((function(e){var s=e.name.toLowerCase();"select"==s?t=e.value:"href"==s?n=e.value:"rel"==s?r=e.value:"ngNonBindable"==e.name?i=!0:"ngProjectAs"==e.name&&e.value.length>0&&(o=e.value)})),t=function(e){return null===e||0===e.length?"*":e}(t);var s=e.name.toLowerCase(),a=Eu.OTHER;return l(s)?a=Eu.NG_CONTENT:"style"==s?a=Eu.STYLE:"script"==s?a=Eu.SCRIPT:"link"==s&&"stylesheet"==r&&(a=Eu.STYLESHEET),new Mu(a,t,n,i,o)}!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Eu||(Eu={}));var Ou,Mu=function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},ku=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function Fu(){return Ou||(Ou=E.parse("*")[0]),Ou}var Ru=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return n(t,e),t}(cr),ju=function(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},Lu=function(){function t(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(t.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),t.prototype.parse=function(t,n,r,i,o,s,a){var u=this.tryParse(t,n,r,i,o,s,a),c=u.errors.filter((function(t){return t.level===e.ParseErrorLevel.WARNING})),l=u.errors.filter((function(t){return t.level===e.ParseErrorLevel.ERROR}));if(c.length>0&&this._console.warn("Template parse warnings:\n"+c.join("\n")),l.length>0)throw Wt("Template parse errors:\n"+l.join("\n"),l);return{template:u.templateAst,pipes:u.usedPipes}},t.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=Ha(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},t.prototype.tryParseHtml=function(e,t,n,r,i){var o,s=e.errors,u=[];if(e.rootNodes.length>0){var c=Gu(n),l=Gu(r),p=new hu(this._reflector,t),f=void 0;t.template&&t.template.interpolation&&(f={start:t.template.interpolation[0],end:t.template.interpolation[1]});var h=new Tu(this._exprParser,f,this._schemaRegistry,l,s),d=new Vu(this._reflector,this._config,p,c,h,this._schemaRegistry,i,s);o=la(d,e.rootNodes,Wu),s.push.apply(s,a(p.errors)),u.push.apply(u,a(h.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new ju(o,u,s):(this.transforms&&this.transforms.forEach((function(e){o=pu(e,o)})),new ju(o,u,s))},t.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=qa(e.rootNodes);n.push.apply(n,a(r.errors)),e=new Da(r.nodes,n)}return e},t.prototype.getInterpolationConfig=function(e){if(e.template)return ro.fromArray(e.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,n){var r=[];t.filter((function(e){return!!e.references})).forEach((function(t){return t.references.forEach((function(t){var i=t.name;if(r.indexOf(i)<0)r.push(i);else{var o=new Ru('Reference "#'+i+'" is defined several times',t.sourceSpan,e.ParseErrorLevel.ERROR);n.push(o)}}))}))},t}(),Vu=function(){function t(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 C,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach((function(e,t){var n=E.parse(e.selector);u.selectorMatcher.addSelectables(n,e),u.directivesIndex.set(e,t)}))}return t.prototype.visitExpansion=function(e,t){return null},t.prototype.visitExpansionCase=function(e,t){return null},t.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Fu()),r=Va(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new $a(i,n,e.sourceSpan):new Ya(r,n,e.sourceSpan)},t.prototype.visitAttribute=function(e,t){return new Xa(e.name,e.value,e.sourceSpan)},t.prototype.visitComment=function(e,t){return null},t.prototype.visitElement=function(e,t){var n=this,r=this.contentQueryStartId,i=e.name,o=Pu(e);if(o.type===Eu.SCRIPT||o.type===Eu.STYLE)return null;if(o.type===Eu.STYLESHEET&&wu(o.hrefAttr))return null;var s=[],u=[],c=[],l=[],f=[],h=[],d=[],v=[],m=!1,y=[],g=p(e.name);e.attrs.forEach((function(e){var t,r,i=n._parseAttr(g,e,s,u,f,c,l);l.push.apply(l,a([].map((function(e){return nu.fromParsedVariable(e)}))));var o=n._normalizeAttributeName(e.name);o.startsWith("*")&&(t=e.value,r=o.substring("*".length));var p=null!=t;if(p){m&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),m=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,(e.valueSpan||e.sourceSpan).start.offset,d,h,_),v.push.apply(v,a(_.map((function(e){return nu.fromParsedVariable(e)}))))}i||p||(y.push(n.visitAttribute(e,null)),s.push([e.name,e.value]))}));var _=zu(i,s),b=this._parseDirectives(this.selectorMatcher,_),w=b.directives,C=b.matchElement,S=[],x=new Set,T=this._createDirectiveAsts(g,e.name,w,u,c,e.sourceSpan,S,x),I=this._createElementPropertyAsts(e.name,u,x),A=new du(this.providerViewContext,t.providerContext,t.isTemplateElement||m,T,y,S,g,r,e.sourceSpan),N=la(o.nonBindable?Ku:this,e.children,qu.create(g,T,g?t.providerContext:A));A.afterElement();var D,P=""!=o.projectAs?E.parse(o.projectAs)[0]:_,O=t.findNgContentIndex(P);if(o.type===Eu.NG_CONTENT)e.children&&!e.children.every(Qu)&&this._reportError(" element cannot have content.",e.sourceSpan),D=new uu(this.ngContentCount++,m?null:O,e.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,f),this._assertNoComponentsNorElementBindingsOnTemplate(T,I,e.sourceSpan),D=new iu(y,f,S,l,A.transformedDirectiveAsts,A.transformProviders,A.transformedHasViewContainer,A.queryMatches,N,m?null:O,e.sourceSpan);else{this._assertElementExists(C,e),this._assertOnlyOneComponent(T,e.sourceSpan);var M=m?null:t.findNgContentIndex(P);D=new ru(i,y,I,f,S,A.transformedDirectiveAsts,A.transformProviders,A.transformedHasViewContainer,A.queryMatches,N,m?null:M,e.sourceSpan,e.endSourceSpan||null)}if(m){var k=this.contentQueryStartId,F=zu("ng-template",d),R=this._parseDirectives(this.selectorMatcher,F).directives,j=new Set,L=this._createDirectiveAsts(!0,i,R,h,[],e.sourceSpan,[],j),V=this._createElementPropertyAsts(i,h,j);this._assertNoComponentsNorElementBindingsOnTemplate(L,V,e.sourceSpan);var B=new du(this.providerViewContext,t.providerContext,t.isTemplateElement,L,[],[],!0,k,e.sourceSpan);B.afterElement(),D=new iu([],[],[],v,B.transformedDirectiveAsts,B.transformProviders,B.transformedHasViewContainer,B.queryMatches,[D],O,e.sourceSpan)}return D},t.prototype._parseAttr=function(e,t,n,r,i,o,s){var u=this._normalizeAttributeName(t.name),c=t.value,l=t.sourceSpan,p=t.valueSpan?t.valueSpan.start.offset:l.start.offset,f=[],h=u.match(ku),d=!1;return null!==h?(d=!0,null!=h[1]?this._bindingParser.parsePropertyBinding(h[7],c,!1,l,p,t.valueSpan,n,r):h[2]?e?this._parseVariable(h[7],c,l,s):this._reportError('"let-" is only supported on ng-template elements.',l):h[3]?this._parseReference(h[7],c,l,o):h[4]?this._bindingParser.parseEvent(h[7],c,l,t.valueSpan||l,n,f):h[5]?(this._bindingParser.parsePropertyBinding(h[7],c,!1,l,p,t.valueSpan,n,r),this._parseAssignmentEvent(h[7],c,l,t.valueSpan||l,n,f)):h[6]?this._bindingParser.parseLiteralAttr(u,c,l,p,t.valueSpan,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],c,!1,l,p,t.valueSpan,n,r),this._parseAssignmentEvent(h[8],c,l,t.valueSpan||l,n,f)):h[9]?this._bindingParser.parsePropertyBinding(h[9],c,!1,l,p,t.valueSpan,n,r):h[10]&&this._bindingParser.parseEvent(h[10],c,l,t.valueSpan||l,n,f)):d=this._bindingParser.parsePropertyInterpolation(u,c,l,t.valueSpan,n,r),d||this._bindingParser.parseLiteralAttr(u,c,l,p,t.valueSpan,n,r),i.push.apply(i,a(f.map((function(e){return eu.fromParsedEvent(e)})))),d},t.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},t.prototype._parseVariable=function(e,t,n,r){e.indexOf("-")>-1?this._reportError('"-" is not allowed in variable names',n):0===e.length&&this._reportError("Variable does not have a name",n),r.push(new nu(e,t,n))},t.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1?this._reportError('"-" is not allowed in reference names',n):0===e.length&&this._reportError("Reference does not have a name",n),r.push(new Hu(e,t,n))},t.prototype._parseAssignmentEvent=function(e,t,n,r,i,o){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i,o)},t.prototype._parseDirectives=function(e,t){var n=this,r=on(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}},t.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 ur(o.start,o.end,"Directive "+Sn(e.type));e.isComponent&&(l=e);var p=[],f=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map((function(e){return Za.fromBoundProperty(e)}));f=u._checkPropertiesInSchema(t,f);var h=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 tu(t.name,mn(e.type.reference),t.value,t.sourceSpan)),c.add(t.name))}));var d=h.map((function(e){return eu.fromParsedEvent(e)})),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new su(e,p,f,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=yn(u.reflector,vn.TemplateRef)),s.push(new tu(t.name,n,t.value,t.sourceSpan))}})),p},t.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=i.get(e[t]);o&&(r.add(o.name),Yu(o.expression)||n.push(new ou(t,o.name,o.expression,o.sourceSpan)))}))}},t.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(Za.fromBoundProperty(o))}})),this._checkPropertiesInSchema(e,i)},t.prototype._findComponentDirectives=function(e){return e.filter((function(e){return e.directive.isComponent}))},t.prototype._findComponentDirectiveNames=function(e){return this._findComponentDirectives(e).map((function(e){return Sn(e.directive.type)}))},t.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)},t.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)}},t.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)}))},t.prototype._assertAllEventsPublishedByDirectives=function(e,t){var n=this,r=new Set;e.forEach((function(e){Object.keys(e.directive.outputs).forEach((function(t){r.add(e.directive.outputs[t])}))})),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)}))},t.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!Yu(t.value)}))},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this._targetErrors.push(new cr(n,t,r))},t}(),Bu=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=Pu(e);if(n.type===Eu.SCRIPT||n.type===Eu.STYLE||n.type===Eu.STYLESHEET)return null;var r=e.attrs.map((function(e){return[e.name,e.value]})),i=zu(e.name,r),o=t.findNgContentIndex(i),s=la(this,e.children,Wu);return new ru(e.name,la(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 Xa(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Fu());return new Ya(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Hu=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}();function Uu(e){return e.trim().split(/\s+/g)}var qu=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 C,o=null,s=n.find((function(e){return e.directive.isComponent}));if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?t[0]:null},e}();function zu(e,t){var n=new E,r=u(e)[1];n.setElement(r);for(var i=0;i0,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=Xu(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?$u(c):c),s=n,o=0,a=null,u=!1}}return a&&o&&(c=e.substr(o).trim(),t.push(a,u?$u(c):c)),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(Pt(1));for(var t=0;t0?e.substring(0,n):"",t=!0);var r="",i=e,o=e.lastIndexOf(".");return o>0&&(r=e.substr(o+1),i=e.substring(0,o)),{property:i,unit:r,hasOverrideFlag:t}}function nc(e){switch(Qi(e)){case 1:return Qn.styleProp;case 3:return Qn.stylePropInterpolate1;case 5:return Qn.stylePropInterpolate2;case 7:return Qn.stylePropInterpolate3;case 9:return Qn.stylePropInterpolate4;case 11:return Qn.stylePropInterpolate5;case 13:return Qn.stylePropInterpolate6;case 15:return Qn.stylePropInterpolate7;case 17:return Qn.stylePropInterpolate8;default:return Qn.stylePropInterpolateV}}!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"}(e.TokenType||(e.TokenType={}));var rc=["var","let","as","null","undefined","true","false","if","else","this"],ic=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new cc(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),oc=function(){function t(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}return t.prototype.isCharacter=function(t){return this.type==e.TokenType.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==e.TokenType.Number},t.prototype.isString=function(){return this.type==e.TokenType.String},t.prototype.isOperator=function(t){return this.type==e.TokenType.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==e.TokenType.Identifier},t.prototype.isKeyword=function(){return this.type==e.TokenType.Keyword},t.prototype.isKeywordLet=function(){return this.type==e.TokenType.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==e.TokenType.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==e.TokenType.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==e.TokenType.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==e.TokenType.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==e.TokenType.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==e.TokenType.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==e.TokenType.Error},t.prototype.toNumber=function(){return this.type==e.TokenType.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case e.TokenType.Character:case e.TokenType.Identifier:case e.TokenType.Keyword:case e.TokenType.Operator:case e.TokenType.String:case e.TokenType.Error:return this.strValue;case e.TokenType.Number:return this.numValue.toString();default:return null}},t}();function sc(t,n,r){return new oc(t,n,e.TokenType.Character,r,String.fromCharCode(r))}function ac(t,n,r){return new oc(t,n,e.TokenType.Operator,0,r)}var uc=new oc(-1,-1,e.TokenType.Character,0,""),cc=function(){function t(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(lc(n))return this.scanIdentifier();if(tr(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),tr(this.peek)?this.scanNumber(i):sc(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,n);case 39:case 34:return this.scanString();case 35:case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;er(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(e,t){return this.advance(),sc(e,this.index,t)},t.prototype.scanOperator=function(e,t){return this.advance(),ac(e,this.index,t)},t.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),ac(e,this.index,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();fc(this.peek);)this.advance();var n=this.input.substring(t,this.index);return rc.indexOf(n)>-1?new oc(t,this.index,e.TokenType.Keyword,0,n):function(t,n,r){return new oc(t,n,e.TokenType.Identifier,0,r)}(t,this.index,n)},t.prototype.scanNumber=function(t){var n,r=this.index===t;for(this.advance();;){if(tr(this.peek));else if(46==this.peek)r=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),hc(this.peek)&&this.advance(),!tr(this.peek))return this.error("Invalid exponent",-1);r=!1}this.advance()}var i=this.input.substring(t,this.index),o=r?function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(i):parseFloat(i);return new oc(t,this.index,e.TokenType.Number,o,"")},t.prototype.scanString=function(){var t=this.index,n=this.peek;this.advance();for(var r="",i=this.index,o=this.input;this.peek!=n;)if(92==this.peek){r+=o.substring(i,this.index),this.advance();var s=void 0;if(this.peek=this.peek,117==this.peek){var a=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);s=parseInt(a,16);for(var u=0;u<5;u++)this.advance()}else s=vc(this.peek),this.advance();r+=String.fromCharCode(s),i=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var c=o.substring(i,this.index);return this.advance(),new oc(t,this.index,e.TokenType.String,0,r+c)},t.prototype.error=function(t,n){var r=this.index+n;return function(t,n,r){return new oc(t,n,e.TokenType.Error,0,r)}(r,this.index,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}();function lc(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function pc(e){if(0==e.length)return!1;var t=new cc(e);if(!lc(t.peek))return!1;for(t.advance();0!==t.peek;){if(!fc(t.peek))return!1;t.advance()}return!0}function fc(e){return nr(e)||tr(e)||95==e||36==e}function hc(e){return 45==e||43==e}function dc(e){return 39===e||34===e||96===e}function vc(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}var mc=function(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},yc=function(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n},gc=bc(io);function _c(e){return e===io?gc:bc(e)}function bc(e){var t=Gt(e.start)+"([\\s\\S]*?)"+Gt(e.end);return new RegExp(t,"g")}var wc,Ec=function(){function e(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=xc}return e.prototype.parseAction=function(e,t,n,r){void 0===r&&(r=io),this._checkNoInterpolation(e,t,r);var i=this._stripComments(e),o=this._lexer.tokenize(this._stripComments(e)),s=new Sc(e,t,n,o,i.length,!0,this.errors,e.length-i.length).parseChain();return new ts(s,e,t,n,this.errors)},e.prototype.parseBinding=function(e,t,n,r){void 0===r&&(r=io);var i=this._parseBindingAst(e,t,n,r);return new ts(i,e,t,n,this.errors)},e.prototype.checkSimpleExpression=function(e){var t=new this.simpleExpressionChecker;return e.visit(t),t.errors},e.prototype.parseSimpleBinding=function(e,t,n,r){void 0===r&&(r=io);var i=this._parseBindingAst(e,t,n,r),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),e,t),new ts(i,e,t,n,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new No(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n,r){var i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);var o=this._stripComments(e),s=this._lexer.tokenize(o);return new Sc(e,t,n,s,o.length,!1,this.errors,e.length-o.length).parseChain()},e.prototype._parseQuote=function(e,t,n){if(null==e)return null;var r=e.indexOf(":");if(-1==r)return null;var i=e.substring(0,r).trim();if(!pc(i))return null;var o=e.substring(r+1),s=new Do(0,e.length);return new Mo(s,s.toAbsolute(n),i,o,t)},e.prototype.parseTemplateBindings=function(e,t,n,r,i){var o=this._lexer.tokenize(t);return new Sc(t,n,i,o,t.length,!1,this.errors,0).parseTemplateBindings({source:e,span:new es(r,r+e.length)})},e.prototype.parseInterpolation=function(e,t,n,r){void 0===r&&(r=io);var i=this.splitInterpolation(e,t,r);if(null==i)return null;for(var o=[],s=0;s0?(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("$implicit"),a.push(u))}return new mc(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t,n){var r=new Do(0,null==e?0:e.length);return new ts(new zo(r,r.toAbsolute(n),e),e,t,n,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=null,n=0;n1&&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=this.tokens.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEndIndex",{get:function(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.inputLength+this.offset:this.next.index+this.offset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAbsoluteOffset",{get:function(){return this.absoluteOffset+this.inputIndex},enumerable:!0,configurable:!0}),t.prototype.span=function(e){return new Do(e,this.currentEndIndex)},t.prototype.sourceSpan=function(e){var t=e+"@"+this.inputIndex;return this.sourceSpanCache.has(t)||this.sourceSpanCache.set(t,this.span(e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(t)},t.prototype.advance=function(){this.index++},t.prototype.consumeOptionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(e){this.consumeOptionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},t.prototype.consumeOptionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},t.prototype.expectOperator=function(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator "+e)},t.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"),"")},t.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"),"")},t.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index":case"<=":case">=":this.advance();var r=this.parseAdditive(),i=t.span.start;t=new Go(this.span(i),this.sourceSpan(i),n,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"+":case"-":this.advance();var r=this.parseMultiplicative(),i=t.span.start;t=new Go(this.span(i),this.sourceSpan(i),n,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();var r=this.parsePrefix(),i=t.span.start;t=new Go(this.span(i),this.sourceSpan(i),n,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==e.TokenType.Operator){var t=this.inputIndex,n=this.next.strValue,r=new Do(t,t),i=r.toAbsolute(this.absoluteOffset),o=void 0;switch(n){case"+":return this.advance(),o=this.parsePrefix(),new Go(this.span(t),this.sourceSpan(t),"-",o,new zo(r,i,0));case"-":return this.advance(),o=this.parsePrefix(),new Go(this.span(t),this.sourceSpan(t),n,new zo(r,i,0),o);case"!":return this.advance(),o=this.parsePrefix(),new Yo(this.span(t),this.sourceSpan(t),o)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var e=this.parsePrimary(),t=e.span.start;;)if(this.consumeOptionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.consumeOptionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var n=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("=")){var r=this.parseConditional();e=new Uo(this.span(t),this.sourceSpan(t),e,n,r)}else e=new Ho(this.span(t),this.sourceSpan(t),e,n)}else if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new Zo(this.span(t),this.sourceSpan(t),e,i)}else{if(!this.consumeOptionalOperator("!"))return e;e=new $o(this.span(t),this.sourceSpan(t),e)}},t.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new zo(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new zo(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new zo(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new zo(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Fo(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Wo(this.span(e),this.sourceSpan(e),n)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Fo(this.span(e),this.sourceSpan(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new zo(this.span(e),this.sourceSpan(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new zo(this.span(e),this.sourceSpan(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ko(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token "+this.next),new ko(this.span(e),this.sourceSpan(e)))},t.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t},t.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(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.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Ko(this.span(n),this.sourceSpan(n),e,t)},t.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.inputIndex,i=this.expectIdentifierOrKeyword(),o=this.sourceSpan(r);if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var s=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var a=this.span(n),u=this.sourceSpan(n);return t?new Jo(a,u,o,e,i,s):new Xo(a,u,o,e,i,s)}if(t)return this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ko(this.span(n),this.sourceSpan(n))):new Bo(this.span(n),this.sourceSpan(n),o,e,i);if(this.consumeOptionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ko(this.span(n),this.sourceSpan(n));var c=this.parseConditional();return new Vo(this.span(n),this.sourceSpan(n),o,e,i,c)}return new Lo(this.span(n),this.sourceSpan(n),o,e,i)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e},t.prototype.expectTemplateBindingKey=function(){var e="",t=!1,n=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.consumeOptionalOperator("-"))&&(e+="-")}while(t);return{source:e,span:new es(n,n+e.length)}},t.prototype.parseTemplateBindings=function(e){var t=[];for(t.push.apply(t,a(this.parseDirectiveKeywordBindings(e)));this.index0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]="boolean";break;case"#":n[e.substring(1)]="number";break;case"%":n[e.substring(1)]="object";break;default:n[e]="string"}}))})),t}return n(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some((function(e){return e.name===W.name})))return!0;if(e.indexOf("-")>-1){if(c(e)||l(e))return!1;if(n.some((function(e){return e.name===z.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===W.name})))return!0;if(e.indexOf("-")>-1){if(c(e)||l(e))return!0;if(t.some((function(e){return e.name===z.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=Ic()[e+"|"+t];return r||(r=Ic()["*|"+t])||k.NONE},t.prototype.getMappedPropName=function(e){return Pc[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(kt,(function(){for(var e=[],t=0;t0)throw Wt("Template parse errors:\n"+s.join("\n"),s);return{nodes:i,errors:o,styleUrls:r.styleUrls,styles:r.styles,ngContentSelectors:r.ngContentSelectors}}var Fc,Rc=function(){function t(e){this.bindingParser=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.inI18nBlock=!1}return t.prototype.visitElement=function(e){var t,n,r=this,i=bi(e.i18n);i&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var s,u=Pu(e);if(u.type===Eu.SCRIPT)return null;if(u.type===Eu.STYLE){var c=1===(s=e).children.length&&s.children[0]instanceof ia?s.children[0].value:null;return null!==c&&this.styles.push(c),null}if(u.type===Eu.STYLESHEET&&wu(u.hrefAttr))return this.styleUrls.push(u.hrefAttr),null;var l=p(e.name),f=[],h=[],d=[],v=[],m=[],y={},g=[],_=[],b=!1;try{for(var w=o(e.attrs),E=w.next();!E.done;E=w.next()){var C=E.value,S=!1,x=Lc(C.name),T=!1;if(C.i18n&&(y[C.name]=C.i18n),x.startsWith("*")){b&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",C.sourceSpan),T=!0,b=!0;var I=C.value,A=x.substring("*".length),N=[];this.bindingParser.parseInlineTemplateBinding(A,I,C.sourceSpan,C.valueSpan?C.valueSpan.start.offset:C.sourceSpan.start.offset+C.name.length,[],g,N),_.push.apply(_,a(N.map((function(e){return new br(e.name,e.value,e.sourceSpan,e.valueSpan)}))))}else S=this.parseAttribute(l,C,[],f,h,d,v);S||T||m.push(this.visitAttribute(C))}}catch(R){t={error:R}}finally{try{E&&!E.done&&(n=w.return)&&n.call(w)}finally{if(t)throw t.error}}var D,P=la(u.nonBindable?jc:this,e.children);if(u.type===Eu.NG_CONTENT){e.children&&!e.children.every((function(e){return function(e){return e instanceof ia&&0==e.value.trim().length}(e)||function(e){return e instanceof ca}(e)}))&&this.reportError(" element cannot have content.",e.sourceSpan);var O=u.selectAttr,M=e.attrs.map((function(e){return r.visitAttribute(e)}));D=new _r(O,M,e.sourceSpan,e.i18n),this.ngContentSelectors.push(O)}else l?(M=this.extractAttributes(e.name,f,y),D=new gr(e.name,m,M.bound,h,[],P,v,d,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)):(M=this.extractAttributes(e.name,f,y),D=new yr(e.name,m,M.bound,h,P,v,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n));if(b){M=this.extractAttributes("ng-template",g,y);var k=[];M.literal.forEach((function(e){return k.push(e)})),M.bound.forEach((function(e){return k.push(e)}));var F=D instanceof yr?{attributes:D.attributes,inputs:D.inputs,outputs:D.outputs}:{attributes:[],inputs:[],outputs:[]};D=new gr(D.name,F.attributes,F.inputs,F.outputs,k,[D],[],_,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l&&i?void 0:e.i18n)}return i&&(this.inI18nBlock=!1),D},t.prototype.visitAttribute=function(e){return new dr(e.name,e.value,e.sourceSpan,e.valueSpan,e.i18n)},t.prototype.visitText=function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)},t.prototype.visitExpansion=function(e){var t=this;if(!e.i18n)return null;if(!bi(e.i18n))throw new Error('Invalid type "'+e.i18n.constructor+'" for "i18n" property of '+e.sourceSpan.toString()+'. Expected a "Message"');var n=e.i18n,r={},i={};return Object.keys(n.placeholders).forEach((function(o){var s=n.placeholders[o];if(o.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig;r[o]=t._visitTextWithInterpolation(""+a.start+s+a.end,e.sourceSpan)}else i[o]=t._visitTextWithInterpolation(s,e.sourceSpan)})),new Er(r,i,e.sourceSpan,n)},t.prototype.visitExpansionCase=function(e){return null},t.prototype.visitComment=function(e){return null},t.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 dr(t.name,t.expression.source||"",t.sourceSpan,void 0,s));else{var a=r.bindingParser.createBoundElementProperty(e,t,!0,!1);i.push(vr.fromBoundElementProperty(a,s))}})),{bound:i,literal:o}},t.prototype.parseAttribute=function(e,t,n,r,i,o,s){var a=Lc(t.name),u=t.value,c=t.sourceSpan,l=t.valueSpan?t.valueSpan.start.offset:c.start.offset,p=a.match(Mc),f=!1;if(p){if(f=!0,null!=p[1])this.bindingParser.parsePropertyBinding(p[7],u,!1,c,l,t.valueSpan,n,r);else if(p[2])e?this.parseVariable(p[7],u,c,t.valueSpan,o):this.reportError('"let-" is only supported on ng-template elements.',c);else if(p[3])this.parseReference(p[7],u,c,t.valueSpan,s);else if(p[4])this.bindingParser.parseEvent(p[7],u,c,t.valueSpan||c,n,h=[]),Vc(h,i);else if(p[5])this.bindingParser.parsePropertyBinding(p[7],u,!1,c,l,t.valueSpan,n,r),this.parseAssignmentEvent(p[7],u,c,t.valueSpan,n,i);else if(p[6])this.bindingParser.parseLiteralAttr(a,u,c,l,t.valueSpan,n,r);else if(p[8])this.bindingParser.parsePropertyBinding(p[8],u,!1,c,l,t.valueSpan,n,r),this.parseAssignmentEvent(p[8],u,c,t.valueSpan,n,i);else if(p[9])this.bindingParser.parsePropertyBinding(p[9],u,!1,c,l,t.valueSpan,n,r);else if(p[10]){var h;this.bindingParser.parseEvent(p[10],u,c,t.valueSpan||c,n,h=[]),Vc(h,i)}}else f=this.bindingParser.parsePropertyInterpolation(a,u,c,t.valueSpan,n,r);return f},t.prototype._visitTextWithInterpolation=function(e,t,n){var r=Va(e),i=this.bindingParser.parseInterpolation(r,t);return i?new hr(i,t,n):new fr(r,t)},t.prototype.parseVariable=function(e,t,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):0===e.length&&this.reportError("Variable does not have a name",n),i.push(new br(e,t,n,r))},t.prototype.parseReference=function(e,t,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):0===e.length&&this.reportError("Reference does not have a name",n),i.push(new wr(e,t,n,r))},t.prototype.parseAssignmentEvent=function(e,t,n,r,i,o){var s=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r||n,i,s),Vc(s,o)},t.prototype.reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.errors.push(new cr(n,t,r))},t}(),jc=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=Pu(e);if(t.type===Eu.SCRIPT||t.type===Eu.STYLE||t.type===Eu.STYLESHEET)return null;var n=la(this,e.children,null);return new yr(e.name,la(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new dr(e.name,e.value,e.sourceSpan,void 0,e.i18n)},e.prototype.visitText=function(e){return new fr(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function Lc(e){return/^data-/i.test(e)?e.substring(5):e}function Vc(e,t){t.push.apply(t,a(e.map((function(e){return mr.fromParsedEvent(e)}))))}!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE",e[e.PROJECTION=2]="PROJECTION"}(Fc||(Fc={}));var Bc=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.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=o||{getUniqueId:xi(),icus:new Map},this.id=this._registry.getUniqueId()}return e.prototype.appendTag=function(e,t,n,r){t.isVoid&&r||Ii(this.placeholders,t.isVoid||!r?t.startName:t.closeName,{type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r})},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(zc))})),e},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.appendIcu=function(e,t){Ii(this._registry.icus,e,t)},e.prototype.appendBoundText=function(e){var t=this;Ai(e,this.bindings.size,this.id).forEach((function(e,n){return Ii.apply(void 0,a([t.placeholders,n],e))}))},e.prototype.appendTemplate=function(e,t){this.appendTag(Fc.TEMPLATE,e,t,!1),this.appendTag(Fc.TEMPLATE,e,t,!0),this._unresolvedCtxCount++},e.prototype.appendElement=function(e,t,n){this.appendTag(Fc.ELEMENT,e,t,n)},e.prototype.appendProjection=function(e,t){this.appendTag(Fc.PROJECTION,e,t,!1),this.appendTag(Fc.PROJECTION,e,t,!0)},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=(t.placeholders.get(e.meta[n+"Name"])||[]).find(qc(t.id,e.templateIndex));r&&(r.ctx=e.id)})),e.placeholders.forEach((function(n,r){var i=t.placeholders.get(r);if(i){var o=i.findIndex(qc(e.id,e.templateIndex));if(o>=0){var s=r.startsWith("CLOSE");r.endsWith("NG-TEMPLATE")?i.splice.apply(i,a([o+(s?0:1),0],n)):(n[s?n.length-1:0].tmpl=i[o],i.splice.apply(i,a([o,1],n)))}else i.push.apply(i,a(n));t.placeholders.set(r,i)}else t.placeholders.set(r,n)})),this._unresolvedCtxCount--},e}();function Hc(e,t,n,r){return Si((r?"/":"")+e+t,n)}function Uc(e,t,n){var r=t.index,i=t.ctx;return t.isVoid?Hc(e,r,i)+Hc(e,r,i,!0):Hc(e,r,i,n)}function qc(e,t){return function(n){return"object"==typeof n&&n.type===Fc.TEMPLATE&&n.index===t&&n.ctx===e}}function zc(e){var t=function(e,t){return Uc("#",e,t)},n=function(e,t){return Uc("*",e,t)};switch(e.type){case Fc.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 Fc.TEMPLATE:return n(e,e.closed);case Fc.PROJECTION:return Uc("!",e,e.closed);default:return e}}var Wc=new(function(){function e(){}return e.prototype.visitText=function(e){return e.value},e.prototype.visitContainer=function(e){var t=this;return e.children.map((function(e){return e.visit(t)})).join("")},e.prototype.visitIcu=function(e){var t=this,n=Object.keys(e.cases).map((function(n){return n+" {"+e.cases[n].visit(t)+"}"}));return"{"+e.expressionPlaceholder+", "+e.type+", "+n.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e){var t=this;return e.isVoid?this.formatPh(e.startName):""+this.formatPh(e.startName)+e.children.map((function(e){return e.visit(t)})).join("")+this.formatPh(e.closeName)},e.prototype.visitPlaceholder=function(e){return this.formatPh(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return this.formatPh(e.name)},e.prototype.formatPh=function(e){return"{"+Di(e,!1)+"}"},e}());function Kc(e){return e.visit(Wc)}var Qc={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"},Gc=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=Qc[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=this._generateUniqueName("CLOSE_"+(Qc[n]||"TAG_"+n));return this._signatureToName[t]=r,r},e.prototype.getPlaceholderName=function(e,t){var n=e.toUpperCase(),r="PH: "+n+"="+t;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},e.prototype.getUniquePlaceholder=function(e){return this._generateUniqueName(e.toUpperCase())},e.prototype._hashTag=function(e,t,n){return"<"+e+Object.keys(t).sort().map((function(e){return" "+e+"="+t[e]})).join("")+(n?"/>":">")},e.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},e.prototype._generateUniqueName=function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,e+"_"+t},e}(),Yc=new Ec(new ic);function $c(e){var t=new Jc(Yc,e);return function(e,n,r,i,o){return t.toI18nMessage(e,n,r,i,o)}}function Xc(e,t){return t}var Jc=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r="");var o={isIcu:1==e.length&&e[0]instanceof oa,icuDepth:0,placeholderRegistry:new Gc,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||Xc},s=la(this,e,o);return new Tr(s,o.placeholderToContent,o.placeholderToMessage,t,n,r)},e.prototype.visitElement=function(e,t){var n=la(this,e.children,t),r={};e.attrs.forEach((function(e){r[e.name]=e.value}));var i=g(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[o]=e.sourceSpan.toString();var s="";i||(s=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[s]="");var a=new Dr(e.name,r,o,s,n,i,e.sourceSpan);return t.visitNodeFn(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t);return t.visitNodeFn(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t);return t.visitNodeFn(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(e,t){var n=this;t.icuDepth++;var r={},i=new Nr(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach((function(e){r[e.value]=new Ar(e.expression.map((function(e){return e.visit(n,t)})),e.expSourceSpan)})),t.icuDepth--,t.isIcu||t.icuDepth>0){var o=t.placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=o,t.placeholderToContent[o]=e.switchValue,t.visitNodeFn(e,i)}var s=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[s]=this.toI18nMessage([e],"","","",void 0);var a=new Or(i,s,e.sourceSpan);return t.visitNodeFn(e,a)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t,n){var r=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!r)return new Ir(e,t);for(var i=[],o=new Ar(i,t),s=this._interpolationConfig,a=s.start,u=s.end,c=0;c-1?[e.slice(0,a),e.slice(a+2)]:[e,""],2))[0],r=t[1],i=(n=s(u>-1?[c.slice(0,u),c.slice(u+1)]:["",c],2))[0],o=n[1]}return{customId:r,meaning:i,description:o}}(e):e instanceof Tr?e:{}},e.prototype._setMessageId=function(e,t){e.id||(e.id=t instanceof Tr&&t.id||jr(e))},e.prototype._setLegacyIds=function(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Rr(e),Lr(e)];else if("string"!=typeof t){var n=t instanceof Tr?t:t instanceof Or?t.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}},e}();function nl(e,t,n,r){var i=[Pt(function(e){return e.nodes.map((function(e){return e.visit(rl,null)})).join("")}(t))];Object.keys(r).length&&i.push(Eo(r,!0));var o,s,a=[],u=(s=[],(o=t).description&&s.push({tagName:"desc",text:o.description}),o.meaning&&s.push({tagName:"meaning",text:o.meaning}),0==s.length?null:new pt(s));return null!==u&&a.push(u),a.push(n.set(Et("goog.getMsg").callFn(i)).toConstDecl()),a.push(new nt(e.set(n))),a}var rl=new(function(){function e(){}return e.prototype.formatPh=function(e){return"{$"+Di(e)+"}"},e.prototype.visitText=function(e){return e.value},e.prototype.visitContainer=function(e){var t=this;return e.children.map((function(e){return e.visit(t)})).join("")},e.prototype.visitIcu=function(e){return Kc(e)},e.prototype.visitTagPlaceholder=function(e){var t=this;return e.isVoid?this.formatPh(e.startName):""+this.formatPh(e.startName)+e.children.map((function(e){return e.visit(t)})).join("")+this.formatPh(e.closeName)},e.prototype.visitPlaceholder=function(e){return this.formatPh(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return this.formatPh(e.name)},e}());function il(e,t,n){var r,i,o,s,a=[],u=function(e){var t=[];return e.nodes.forEach((function(e){return e.visit(ul,t)})),function(e){var t=[],n=[];e[0]instanceof al&&t.push("");for(var r=0;r1||"*"!==this._ngContentReservedSlots[0]){var l=this._ngContentReservedSlots.map((function(e){return"*"!==e?Z(e):e}));c.push(this.constantPool.getConstLiteral(ji(l),!0))}this.creationInstruction(null,Qn.projectionDef,c,!0)}s&&this.i18nEnd(null,u);var p=this._creationCodeFns.map((function(e){return e()})),f=this._updateCodeFns.map((function(e){return e()})),h=this._bindingScope.viewSnapshotStatements(),d=this._bindingScope.variableDeclarations().concat(this._tempVariables),v=p.length>0?[pl(1,h.concat(p))]:[],m=f.length>0?[pl(2,d.concat(f))]:[];return Nt([new Ue("rf",fe),new Ue("ctx",null)],a(this._prefixCode,v,m),le,null,this.templateName)},e.prototype.getLocal=function(e){return this._bindingScope.get(e)},e.prototype.notifyImplicitReceiverUse=function(){this._bindingScope.notifyImplicitReceiverUse()},e.prototype.i18nTranslate=function(e,t,n,r){var i;void 0===t&&(t={});var o=n||Et(this.constantPool.uniqueName("I18N_")),s=function(e,t,n,r,i){void 0===r&&(r={});var o=[Oi(t),Dt(Dl(),nl(t,e,n,Ni(r,!0)),il(t,e,Ni(r,!1)))];return i&&o.push(new nt(t.set(i(t)))),o}(e,o,this.i18nGenerateClosureVar(e.id),t,r);return(i=this.constantPool.statements).push.apply(i,a(s)),o},e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=Et(e.name+t);this._bindingScope.set(n,e.name,r,1,(function(t,i){var o;return o=t.bindingLevel===n?Et("ctx"):t.getSharedContextName(n)||gl(i),[r.set(o.prop(e.value||"$implicit")).toConstDecl()]}))},e.prototype.i18nAppendBindings=function(e){var t=this;e.length>0&&e.forEach((function(e){return t.i18n.appendBinding(e)}))},e.prototype.i18nBindProps=function(e){var t=this,n={};return Object.keys(e).forEach((function(r){var i=e[r];if(i instanceof fr)n[r]=Pt(i.value);else{var o=i.value.visit(t._valueConverter);if(t.allocateBindingSlots(o),o instanceof Qo){var s=o.expressions,a=t.i18n,u=function(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,o=0;o1}))||Object.keys(i).length)&&(s=function(e){var t=[e];return Object.keys(i).length&&t.push(Eo(i,!0)),yl(null,Qn.i18nPostprocess,t)}),this.i18nTranslate(n,o,e.ref,s)}},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=Et(this.constantPool.uniqueName("I18N_"));this.i18n=new Bc(r,i,0,this.templateIndex,t)}var o=this.i18n,s=o.id,a=o.ref,u=[Pt(r),a];s>0&&u.push(Pt(s)),this.creationInstruction(e,n?Qn.i18n:Qn.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;if(o.size){var s=[];o.forEach((function(t){s.push({sourceSpan:e,value:function(){return n.convertPropertyBinding(t)}})})),this.updateInstructionChainWithAdvance(this.getConstCount()-1,Qn.i18nExp,s),this.updateInstruction(e,Qn.i18nApply,[Pt(i)])}t||this.creationInstruction(e,Qn.i18nEnd),this.i18n=null},e.prototype.i18nAttributesInstruction=function(e,t,n){var r=this,i=!1,o=[],s=[];if(t.forEach((function(e){var t=e.i18n;if(e instanceof dr)o.push(Pt(e.name),r.i18nTranslate(t));else{var a=e.value.visit(r._valueConverter);if(r.allocateBindingSlots(a),a instanceof Qo){var u=Ti(Ai(t));o.push(Pt(e.name),r.i18nTranslate(t,u)),a.expressions.forEach((function(e){i=!0,s.push({sourceSpan:n,value:function(){return r.convertPropertyBinding(e)}})}))}}})),s.length>0&&this.updateInstructionChainWithAdvance(e,Qn.i18nExp,s),o.length>0){var a=Pt(this.allocateDataSlot()),u=this.constantPool.getConstLiteral(It(o),!0);this.creationInstruction(n,Qn.i18nAttributes,[a,u]),i&&this.updateInstruction(n,Qn.i18nApply,[a])}},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return Qn.namespaceMathML;case"svg":return Qn.namespaceSVG;default:return Qn.namespaceHTML}},e.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},e.prototype.interpolatedUpdateInstruction=function(e,t,n,r,i,o){var s=this;this.updateInstructionWithAdvance(t,r.sourceSpan,e,(function(){return a([Pt(n)],s.getUpdateInstructionArguments(i),o)}))},e.prototype.visitContent=function(e){var t=this.allocateDataSlot(),n=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,r=[Pt(t)];this._ngContentReservedSlots.push(e.selector);var i=e.attributes.filter((function(e){return"select"!==e.name.toLowerCase()})),o=this.getAttributeExpressions(i,[],[]);o.length>0?r.push(Pt(n),It(o)):0!==n&&r.push(Pt(n)),this.creationInstruction(e.sourceSpan,Qn.projection,r),this.i18n&&this.i18n.appendProjection(e.i18n,t)},e.prototype.visitElement=function(e){var t,n,r=this,i=this.allocateDataSlot(),l=new Ju(null),p=!1,f=bi(e.i18n)&&!wi(e.i18n),h=[],d=[],v=s(u(e.name),2),m=v[0],y=v[1],g=c(e.name);try{for(var _=o(e.attributes),b=_.next();!b.done;b=_.next()){var w=b.value,E=w.name,C=w.value;"ngNonBindable"===E?p=!0:"style"===E?l.registerStyleAttr(C):"class"===E?l.registerClassAttr(C):(w.i18n?h:d).push(w)}}catch(H){t={error:H}}finally{try{b&&!b.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var S=[Pt(i)];g||S.push(Pt(y));var x=[];e.inputs.forEach((function(e){l.registerBoundInput(e)||(0===e.type&&e.i18n?h.push(e):x.push(e))}));var T=this.getAttributeExpressions(d,x,e.outputs,l,[],h);S.push(this.addAttrsToConsts(T));var I=this.prepareRefsArray(e.references);S.push(this.addToConsts(I));var A=this._namespace,N=this.getNamespaceInstruction(m);N!==A&&this.addNamespaceInstruction(N,e),this.i18n&&this.i18n.appendElement(e.i18n,i);var D=!f&&this.i18n?!Nl(e.children):e.children.length>0,P=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===h.length&&!D,O=!P&&Nl(e.children);if(P)this.creationInstruction(e.sourceSpan,g?Qn.elementContainer:Qn.element,Vi(S));else{if(this.creationInstruction(e.sourceSpan,g?Qn.elementContainerStart:Qn.elementStart,Vi(S)),p&&this.creationInstruction(e.sourceSpan,Qn.disableBindings),h.length>0&&this.i18nAttributesInstruction(i,h,e.sourceSpan),e.outputs.length>0){var M=e.outputs.map((function(t){return{sourceSpan:t.sourceSpan,params:r.prepareListenerParameter(e.name,t,i)}}));this.creationInstructionChain(Qn.listener,M)}f&&this.i18nStart(e.sourceSpan,e.i18n,O)}for(var k=l.buildUpdateLevelInstructions(this._valueConverter),F=k.length-1,R=0;R<=F;R++)this._bindingSlots+=this.processStylingUpdateInstruction(i,k[R]);var j=Pt(void 0),L=[],V=[];if(x.forEach((function(e){var t=e.type;if(4===t){var n=e.value.visit(r._valueConverter),o=!(n instanceof zo&&!n.value);r.allocateBindingSlots(n),L.push({name:Xn(e.name),sourceSpan:e.sourceSpan,value:function(){return o?r.convertPropertyBinding(n):j}})}else{if(e.i18n)return;var c=e.value.visit(r._valueConverter);if(void 0!==c){var l=[],p=s(u(e.name),2),f=p[0],h=p[1],d=Il(e.securityContext,1===t);if(d&&l.push(d),f){var v=Pt(f);d?l.push(v):l.push(Pt(null),v)}if(r.allocateBindingSlots(c),0===t)c instanceof Qo?r.interpolatedUpdateInstruction(Cl(c),i,h,e,c,l):L.push({name:h,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(c)},params:l});else if(1===t)if(c instanceof Qo&&Qi(c)>1)r.interpolatedUpdateInstruction(function(e){switch(Qi(e)){case 3:return Qn.attributeInterpolate1;case 5:return Qn.attributeInterpolate2;case 7:return Qn.attributeInterpolate3;case 9:return Qn.attributeInterpolate4;case 11:return Qn.attributeInterpolate5;case 13:return Qn.attributeInterpolate6;case 15:return Qn.attributeInterpolate7;case 17:return Qn.attributeInterpolate8;default:return Qn.attributeInterpolateV}}(c),i,h,e,c,l);else{var m=c instanceof Qo?c.expressions[0]:c;V.push({name:h,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(m)},params:l})}else r.updateInstructionWithAdvance(i,e.sourceSpan,Qn.classProp,(function(){return a([Pt(i),Pt(h),r.convertPropertyBinding(c)],l)}))}}})),L.length>0&&this.updateInstructionChainWithAdvance(i,Qn.property,L),V.length>0&&this.updateInstructionChainWithAdvance(i,Qn.attribute,V),Sr(this,e.children),!f&&this.i18n&&this.i18n.appendElement(e.i18n,i,!0),!P){var B=e.endSourceSpan||e.sourceSpan;f&&this.i18nEnd(B,O),p&&this.creationInstruction(B,Qn.enableBindings),this.creationInstruction(B,g?Qn.elementContainerEnd:Qn.elementEnd)}},e.prototype.visitTemplate=function(t){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(t.i18n,r);var i=wn(t.tagName||""),o=this.contextName+(i?"_"+i:"")+"_"+r,c=o+"_Template",l=[Pt(r),Et(c),Pt(t.tagName?u(t.tagName)[1]:t.tagName)];this.matchDirectives("ng-template",t);var p=s(sn(t.attributes,Ei),2),f=p[0],h=this.getAttributeExpressions(p[1],t.inputs,t.outputs,void 0,t.templateAttrs,f);if(l.push(this.addAttrsToConsts(h)),t.references&&t.references.length){var d=this.prepareRefsArray(t.references);l.push(this.addToConsts(d)),l.push(Ct(Qn.templateRefExtractor))}var v=new e(this.constantPool,this._bindingScope,this.level+1,o,this.i18n,r,c,this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push((function(){var e,r=v.buildTemplateFunction(t.children,t.variables,n._ngContentReservedSlots.length+n._ngContentSelectorsOffset,t.i18n);n.constantPool.statements.push(r.toDeclStmt(c,null)),v._ngContentReservedSlots.length&&(e=n._ngContentReservedSlots).push.apply(e,a(v._ngContentReservedSlots))})),this.creationInstruction(t.sourceSpan,Qn.templateCreate,(function(){return l.splice(2,0,Pt(v.getConstCount()),Pt(v.getVarCount())),Vi(l)})),this.templatePropertyBindings(r,t.templateAttrs),"ng-template"===t.tagName){var m=s(sn(t.inputs,Ei),2),y=m[1],g=a(f,m[0]);if(g.length>0&&this.i18nAttributesInstruction(r,g,t.sourceSpan),y.length>0&&this.templatePropertyBindings(r,y),t.outputs.length>0){var _=t.outputs.map((function(e){return{sourceSpan:e.sourceSpan,params:n.prepareListenerParameter("ng_template",e,r)}}));this.creationInstructionChain(Qn.listener,_)}}},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 Qo&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(n.expressions)))}var r=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Qn.text,[Pt(r)]);var i=e.value.visit(this._valueConverter);this.allocateBindingSlots(i),i instanceof Qo?this.updateInstructionWithAdvance(r,e.sourceSpan,function(e){switch(Qi(e)){case 1:return Qn.textInterpolate;case 3:return Qn.textInterpolate1;case 5:return Qn.textInterpolate2;case 7:return Qn.textInterpolate3;case 9:return Qn.textInterpolate4;case 11:return Qn.textInterpolate5;case 13:return Qn.textInterpolate6;case 15:return Qn.textInterpolate7;case 17:return Qn.textInterpolate8;default:return Qn.textInterpolateV}}(i),(function(){return t.getUpdateInstructionArguments(i)})):zt("Text nodes should be interpolated and never bound directly.")},e.prototype.visitText=function(e){this.i18n||this.creationInstruction(e.sourceSpan,Qn.text,[Pt(this.allocateDataSlot()),Pt(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),o=this.i18nBindProps(e.placeholders),s=e.i18n,a=function(e){var t=Ni(i(i({},r),o),!1);return yl(null,Qn.i18nPostprocess,[e,Eo(t,!0)])};if(wi(n.meta))this.i18nTranslate(s,{},n.ref,a);else{var u=this.i18nTranslate(s,{},void 0,a);n.appendIcu(Ci(s).name,u)}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.getConsts=function(){return this._constants},e.prototype.getNgContentSelectors=function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(ji(this._ngContentReservedSlots),!0):null},e.prototype.bindingContext=function(){return""+this._bindingContext++},e.prototype.templatePropertyBindings=function(e,t){var n=this,r=[];t.forEach((function(t){if(t instanceof vr){var i=t.value.visit(n._valueConverter);void 0!==i&&(n.allocateBindingSlots(i),i instanceof Qo?n.interpolatedUpdateInstruction(Cl(i),e,t.name,t,i,[]):r.push({name:t.name,sourceSpan:t.sourceSpan,value:function(){return n.convertPropertyBinding(i)}}))}})),r.length>0&&this.updateInstructionChainWithAdvance(e,Qn.property,r)},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 yl(t,n,e).toStmt()}))},e.prototype.processStylingUpdateInstruction=function(e,t){var n=this,r=0;if(t){var i=[];t.calls.forEach((function(e){r+=e.allocateBindingSlots,i.push({sourceSpan:e.sourceSpan,value:function(){return e.params((function(t){return e.supportsInterpolation&&t instanceof Qo?n.getUpdateInstructionArguments(t):n.convertPropertyBinding(t)}))}})})),this.updateInstructionChainWithAdvance(e,t.reference,i)}return r},e.prototype.creationInstruction=function(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)},e.prototype.creationInstructionChain=function(e,t){var n=t.length?t[0].sourceSpan:null;this._creationCodeFns.push((function(){return Ki(e,t.map((function(e){return e.params()})),n).toStmt()}))},e.prototype.updateInstructionWithAdvance=function(e,t,n,r){this.addAdvanceInstructionIfNecessary(e,t),this.updateInstruction(t,n,r)},e.prototype.updateInstruction=function(e,t,n){this.instructionFn(this._updateCodeFns,e,t,n||[])},e.prototype.updateInstructionChain=function(e,t){var n=t.length?t[0].sourceSpan:null;this._updateCodeFns.push((function(){var r=t.map((function(e){var t=e.value(),n=Array.isArray(t)?t:[t];return e.params&&n.push.apply(n,a(e.params)),e.name&&n.unshift(Pt(e.name)),n}));return Ki(e,r,n).toStmt()}))},e.prototype.updateInstructionChainWithAdvance=function(e,t,n){this.addAdvanceInstructionIfNecessary(e,n.length?n[0].sourceSpan:null),this.updateInstructionChain(t,n)},e.prototype.addAdvanceInstructionIfNecessary=function(e,t){if(e!==this._currentIndex){var n=e-this._currentIndex;if(n<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,t,Qn.advance,[Pt(n)]),this._currentIndex=e}},e.prototype.allocatePureFunctionSlots=function(e){var t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t},e.prototype.allocateBindingSlots=function(e){this._bindingSlots+=e instanceof Qo?e.expressions.length:1},e.prototype.getImplicitReceiverExpr=function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?Et("ctx"):this._bindingScope.getOrCreateSharedContextVar(0)},e.prototype.convertPropertyBinding=function(e){var t,n=gs(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),vs.TrySimple,(function(){return zt("Unexpected interpolation")})),r=n.currValExpr;return(t=this._tempVariables).push.apply(t,a(n.stmts)),r},e.prototype.getUpdateInstructionArguments=function(e){var t,n=function(e,t,n,r){var i=new xs(e,t,r,void 0),o=n.visit(i,ms.Expression);i.usesImplicitReceiver&&e.notifyImplicitReceiverUse();var s=_s(i,r),a=o.args.slice(1);if(n instanceof Qo){var u=n.strings;3===a.length&&""===u[0]&&""===u[1]?a=[a[1]]:a.length>=19&&(a=[It(a)])}return{stmts:s,args:a}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),r=n.args;return(t=this._tempVariables).push.apply(t,a(n.stmts)),r},e.prototype.matchDirectives=function(e,t){var n=this;if(this.directiveMatcher){var r=El(e,Wi(t));this.directiveMatcher.match(r,(function(e,t){n.directives.add(t)}))}},e.prototype.getAttributeExpressions=function(e,t,n,r,i,o){void 0===i&&(i=[]),void 0===o&&(o=[]);var s,u,c=new Set,l=[];function p(e,t){"string"==typeof e?c.has(e)||(l.push.apply(l,a(bl(e))),void 0!==t&&l.push(t),c.add(e)):l.push(Pt(e))}if(e.forEach((function(e){"ngProjectAs"===e.name&&(s=e),l.push.apply(l,a(bl(e.name),[ji(e.value)]))})),s&&l.push.apply(l,a((u=Z(s.value)[0],[Pt(5),ji(u)]))),r&&r.populateInitialStylingAttrs(l),t.length||n.length){for(var f=l.length,h=0;h0?this.addToConsts(It(e)):Je},e.prototype.prepareRefsArray=function(e){var t=this;return e&&0!==e.length?ji(Bn(e.map((function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=Et(r);return t._bindingScope.set(i,e.name,o,0,(function(e,t){var r=t>0?[gl(t).toStmt()]:[],i=o.set(Ct(Qn.reference).callFn([Pt(n)]));return r.concat(i.toConstDecl())}),!0),[e.name,e.value]})))):Je},e.prototype.prepareListenerParameter=function(e,t,n){var r=this;return function(){var i=t.name,o=1===t.type?Jn(i,t.phase):wn(i),s=r.templateName+"_"+e+"_"+o+"_"+n+"_listener",a=r._bindingScope.nestedScope(r._bindingScope.bindingLevel);return fl(t,s,a)}},e}(),dl=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 n(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+e.args.length),o=new Lo(e.span,e.sourceSpan,e.nameSpan,new Fo(e.span,e.sourceSpan),r),s=function(e){var t=vl[e.length];return{identifier:t||Qn.pipeBindV,isVarLength:!t}}(e.args),u=s.isVarLength;this.definePipe(e.name,r,n,Ct(s.identifier));var c=a([e.exp],e.args),l=this.visitAll(u?[new Wo(e.span,e.sourceSpan,c)]:c),p=new Zo(e.span,e.sourceSpan,o,a([new zo(e.span,e.sourceSpan,n),new zo(e.span,e.sourceSpan,i)],l));return this._pipeBindExprs.push(p),p},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 Is(e.span,e.sourceSpan,this.visitAll(e.expressions),(function(e){var t=It(e);return _l(n.constantPool,t,n.allocatePureFunctionSlots)}))},t.prototype.visitLiteralMap=function(e,t){var n=this;return new Is(e.span,e.sourceSpan,this.visitAll(e.values),(function(t){var r=At(t.map((function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}})));return _l(n.constantPool,r,n.allocatePureFunctionSlots)}))},t}(ss),vl=[Qn.pipeBind1,Qn.pipeBind2,Qn.pipeBind3,Qn.pipeBind4],ml=[Qn.pureFunction0,Qn.pureFunction1,Qn.pureFunction2,Qn.pureFunction3,Qn.pureFunction4,Qn.pureFunction5,Qn.pureFunction6,Qn.pureFunction7,Qn.pureFunction8];function yl(e,t,n){return Ct(t,null,e).callFn(n,e)}function gl(e){return Ct(Qn.nextContext).callFn(e>1?[Pt(e)]:[])}function _l(e,t,n){var r=e.getLiteralFactory(t),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length),u=function(e){var t=ml[e.length];return{identifier:t||Qn.pureFunctionV,isVarLength:!t}}(o),c=u.identifier,l=u.isVarLength,p=[Pt(s),i];return l?p.push(It(o)):p.push.apply(p,a(o)),Ct(c).callFn(p)}function bl(e){var t=s(u(e),2),n=t[0],r=Pt(t[1]);return n?[Pt(0),Pt(n),r]:[r]}var wl=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 e.createRootScope=function(){return(new e).set(0,"$event",Et("$event"))},e.prototype.get=function(e){for(var t=this;t;){var n=t.map.get(e);if(null!=n)return t!==this&&(this.map.set(e,n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef}),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){if(void 0===r&&(r=0),this.map.has(t)){if(o)return this;zt("The name "+t+" is already defined in scope to be "+this.map.get(t))}return 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.notifyImplicitReceiverUse=function(){0!==this.bindingLevel&&(this.map.get("$$shared_ctx$$0").declare=!0)},e.prototype.nestedScope=function(t){var n=new e(t,this);return t>0&&n.generateSharedContextVar(0),n},e.prototype.getOrCreateSharedContextVar=function(e){var t="$$shared_ctx$$"+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs},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&&e.retrievalLevel0)return{errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};var c=u.rootNodes,l=new tl(r,!o,s);c=la(l,c),o||(c=la(new Ba,c),l.hasI18nMeta&&(c=la(new tl(r,!1),c)));var p=kc(c,a),f=p.errors;return f&&f.length>0?{errors:f,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]}:{nodes:p.nodes,styleUrls:p.styleUrls,styles:p.styles,ngContentSelectors:p.ngContentSelectors}}var xl=new Oc;function Tl(e){return void 0===e&&(e=io),new Tu(new Cc(new ic),e,xl,null,[])}function Il(e,t){switch(e){case k.HTML:return Ct(Qn.sanitizeHtml);case k.SCRIPT:return Ct(Qn.sanitizeScript);case k.STYLE:return t?Ct(Qn.sanitizeStyle):null;case k.URL:return Ct(Qn.sanitizeUrl);case k.RESOURCE_URL:return Ct(Qn.sanitizeResourceUrl);default:return null}}function Al(e){return e instanceof fr||e instanceof hr||e instanceof Er}function Nl(e){return e.every(Al)}function Dl(){return Tt(Et("ngI18nClosureMode")).notIdentical(Pt("undefined",he)).and(Et("ngI18nClosureMode"))}var Pl=[],Ol=/attr\.([^\]]+)/;function Ml(e,t,n){var r=new zi,i=Z(e.selector);return r.set("type",e.internalType),i.length>0&&r.set("selectors",ji(i)),e.queries.length>0&&r.set("contentQueries",function(e,t,n){var r,i,s=[],u=[],c=ki(u,"_t");try{for(var l=o(e),p=l.next();!p.done;p=l.next()){var f=p.value;s.push(Ct(f.static?Qn.staticContentQuery:Qn.contentQuery).callFn(a([Et("dirIndex")],Bl(f,t))).toStmt());var h=c(),d=Ct(Qn.loadQuery).callFn([]),v=Ct(Qn.queryRefresh).callFn([h.set(d)]),m=Et("ctx").prop(f.propertyName).set(f.first?h.prop("first"):h);u.push(v.and(m).toStmt())}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}var y=n?n+"_ContentQueries":null;return Nt([new Ue("rf",fe),new Ue("ctx",null),new Ue("dirIndex",null)],[pl(1,s),pl(2,u)],le,null,y)}(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",function(e,t,n){var r=[],i=[],o=ki(i,"_t");e.forEach((function(e){var n=Ct(e.static?Qn.staticViewQuery:Qn.viewQuery).callFn(Bl(e,t));r.push(n.toStmt());var s=o(),a=Ct(Qn.loadQuery).callFn([]),u=Ct(Qn.queryRefresh).callFn([s.set(a)]),c=Et("ctx").prop(e.propertyName).set(e.first?s.prop("first"):s);i.push(u.and(c).toStmt())}));var s=n?n+"_Query":null;return Nt([new Ue("rf",fe),new Ue("ctx",null)],[pl(1,r),pl(2,i)],le,null,s)}(e.viewQueries,t,e.name)),r.set("hostBindings",function(e,t,n,r,i,s,u){var c=Et("ctx"),l=new Ju(c),p=e.specialAttributes,f=p.styleAttr,h=p.classAttr;void 0!==f&&l.registerStyleAttr(f),void 0!==h&&l.registerClassAttr(h);var d=[],v=[],m=t,y=Wl(e),g=n.createDirectiveHostEventAsts(y,m);if(g&&g.length){var _=function(e,t){var n=[],r=[],i=[];return e.forEach((function(e){var i=e.name&&wn(e.name),o=1===e.type?Jn(i,e.targetOrPhase):i,s=t&&i?t+"_"+o+"_HostBindingHandler":null,a=fl(mr.fromParsedEvent(e),s);1==e.type?r.push(a):n.push(a)})),r.length>0&&i.push(Ki(Qn.componentHostSyntheticListener,r).toStmt()),n.length>0&&i.push(Ki(Qn.listener,n).toStmt()),i}(g,s);d.push.apply(d,a(_))}var b,w=n.createBoundHostProperties(y,m),E=[],C=0;w&&w.forEach((function(e){l.registerInputBasedOnName(e.name,e.expression,e.sourceSpan)?C+=2:(E.push(e),C++)}));var S=function(){return b||(b=new dl(r,(function(){return zt("Unexpected node")}),(function(e){var t=C;return C+=e,t}),(function(){return zt("Unexpected pipe")}))),b},x=[],T=[],I=[];E.forEach((function(e){var t=e.expression.visit(S()),r=zl(c,t),o=function(e){var t,n=e.name,r=n.match(Ol);return r?(n=r[1],t=Qn.attribute):e.isAnimation?(n=Xn(n),t=Qn.updateSyntheticHostBinding):t=Qn.hostProperty,{bindingName:n,instruction:t,isAttribute:!!r}}(e),s=o.bindingName,u=o.instruction,l=o.isAttribute,p=n.calcPossibleSecurityContexts(i,s,l).filter((function(e){return e!==k.NONE})),f=null;p.length&&(f=2===p.length&&p.indexOf(k.URL)>-1&&p.indexOf(k.RESOURCE_URL)>-1?Ct(Qn.sanitizeUrlOrResourceUrl):Il(p[0],l));var h=[Pt(s),r.currValExpr];f&&h.push(f),v.push.apply(v,a(r.stmts)),u===Qn.hostProperty?x.push(h):u===Qn.attribute?T.push(h):u===Qn.updateSyntheticHostBinding?I.push(h):v.push(Ct(u).callFn(h).toStmt())})),x.length>0&&v.push(Ki(Qn.hostProperty,x).toStmt()),T.length>0&&v.push(Ki(Qn.attribute,T).toStmt()),I.length>0&&v.push(Ki(Qn.updateSyntheticHostBinding,I).toStmt());var A=function(e){var t,n,r=[];try{for(var i=o(Object.getOwnPropertyNames(e)),s=i.next();!s.done;s=i.next()){var a=s.value,u=e[a];r.push(Pt(a),u)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.attributes);if(l.assignHostAttrs(A,u),l.hasBindings&&l.buildUpdateLevelInstructions(S()).forEach((function(e){if(e.calls.length>0){var t=[];e.calls.forEach((function(e){C+=Math.max(e.allocateBindingSlots-2,0),t.push(function(e,t,n){return e.params((function(e){return n(t,e).currValExpr}))}(e,c,zl))})),v.push(Ki(e.reference,t).toStmt())}})),C&&u.set("hostVars",Pt(C)),d.length>0||v.length>0){var N=s?s+"_HostBindings":null,D=[];return d.length>0&&D.push(pl(1,d)),v.length>0&&D.push(pl(2,v)),Nt([new Ue("rf",fe),new Ue("ctx",null)],D,le,null,N)}return null}(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name,r)),r.set("inputs",Li(e.inputs,!0)),r.set("outputs",Li(e.outputs)),null!==e.exportAs&&r.set("exportAs",It(e.exportAs.map((function(e){return Pt(e)})))),r}function kl(e,t){var n=[],r=t.providers,i=t.viewProviders;if(r||i){var o=[r||new Qe([])];i&&o.push(i),n.push(Ct(Qn.ProvidersFeature).callFn(o))}t.usesInheritance&&n.push(Ct(Qn.InheritDefinitionFeature)),t.fullInheritance&&n.push(Ct(Qn.CopyDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(Ct(Qn.NgOnChangesFeature)),n.length&&e.set("features",It(n))}function Fl(e,t,n){var r=Ml(e,t,n);kl(r,e);var i=Ct(Qn.defineDirective).callFn([r.toLiteralMap()]),o=ql(e);return{expression:i,type:xt(Ct(Qn.DirectiveDefWithMeta,o))}}function Rl(e,t,n){var r,i,s=Ml(e,t,n);kl(s,e);var a=e.selector&&E.parse(e.selector),u=a&&a[0];if(u){var c=u.getAttrs();c.length&&s.set("attrs",t.getConstLiteral(It(c.map((function(e){return Pt(null!=e?e:void 0)}))),!0))}var l=null;if(e.directives.length>0){var p=new C;try{for(var f=o(e.directives),h=f.next();!h.done;h=f.next()){var d=h.value,v=d.expression;p.addSelectables(E.parse(d.selector),v)}}catch(j){r={error:j}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}l=p}var m=e.name,y=m?m+"_Template":null,g=new Set,w=new Set,S=e.changeDetection,x=e.template,T=new hl(t,wl.createRootScope(),0,m,null,null,y,l,g,e.pipes,w,Qn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),I=T.buildTemplateFunction(x.nodes,[]),A=T.getNgContentSelectors();A&&s.set("ngContentSelectors",A),s.set("decls",Pt(T.getConstCount())),s.set("vars",Pt(T.getVarCount()));var N,D,P=T.getConsts();if(P.length>0&&s.set("consts",It(P)),s.set("template",I),g.size){var O=It(Array.from(g));e.wrapDirectivesAndPipesInClosure&&(O=Nt([],[new rt(O)])),s.set("directives",O)}if(w.size){var M=It(Array.from(w));e.wrapDirectivesAndPipesInClosure&&(M=Nt([],[new rt(M)])),s.set("pipes",M)}if(null===e.encapsulation&&(e.encapsulation=_.Emulated),e.styles&&e.styles.length){var k=(e.encapsulation==_.Emulated?(N=e.styles,D=new As,N.map((function(e){return D.shimCssText(e,"_ngcontent-%COMP%","_nghost-%COMP%")}))):e.styles).map((function(e){return Pt(e)}));s.set("styles",It(k))}else e.encapsulation===_.Emulated&&(e.encapsulation=_.None);e.encapsulation!==_.Emulated&&s.set("encapsulation",Pt(e.encapsulation)),null!==e.animations&&s.set("data",At([{key:"animation",value:e.animations,quoted:!1}])),null!=S&&S!==b.Default&&s.set("changeDetection",Pt(S));var F=Ct(Qn.defineComponent).callFn([s.toLiteralMap()]),R=ql(e);return R.push(Ul(e.template.ngContentSelectors)),{expression:F,type:xt(Ct(Qn.ComponentDefWithMeta,R))}}function jl(e,t,n){throw new Error("unsupported")}function Ll(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:Vl(e.selectors,t),descendants:e.descendants,read:n,static:!!e.static}}))}function Vl(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}))&&zt("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(It(n.map((function(e){return Pt(e)}))))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return zt("Unexpected query form"),Xe}function Bl(e,t){var n=[Bi(e,t),Pt(e.descendants)];return e.read&&n.push(e.read),n}function Hl(e){return xt(At(Object.keys(e).map((function(t){return{key:t,value:Pt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}}))))}function Ul(e){return e.length>0?xt(It(e.map((function(e){return Pt(e)})))):de}function ql(e){var t,n=null!==e.selector?e.selector.replace(/\n/g,""):null;return[$n(e.type.type,e.typeArgumentCount),null!==n?(t=n,xt(Pt(t))):de,null!==e.exportAs?Ul(e.exportAs):de,Hl(e.inputs),Hl(e.outputs),Ul(e.queries.map((function(e){return e.propertyName})))]}function zl(e,t){return gs(null,e,t,"b",vs.TrySimple,(function(){return zt("Unexpected interpolation")}))}function Wl(e){return{hostAttributes:{},hostListeners:e.listeners,hostProperties:e.properties}}function Kl(e,t){var n=Array.from(e).map((function(e){var n=s(e,2);return[n[0],t.importExpr(n[1])]}));return new Map(n)}var Ql=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Gl(e){var t,n,r={},i={},s={},a={};try{for(var u=o(Object.keys(e)),c=u.next();!c.done;c=u.next()){var l=c.value,p=e[l],f=l.match(Ql);if(null===f)switch(l){case"class":if("string"!=typeof p)throw new Error("Class binding must be string");a.classAttr=p;break;case"style":if("string"!=typeof p)throw new Error("Style binding must be string");a.styleAttr=p;break;default:r[l]="string"==typeof p?Pt(p):p}else if(null!=f[1]){if("string"!=typeof p)throw new Error("Property binding must be string");s[f[1]]=p}else if(null!=f[2]){if("string"!=typeof p)throw new Error("Event binding must be string");i[f[2]]=p}}}catch(h){t={error:h}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return{attributes:r,listeners:i,properties:s,specialAttributes:a}}function Yl(e,t){var n=Wl(e),r=Tl();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}var $l=function(){function e(){}return e.prototype.get=function(e){return""},e}(),Xl=function(){function t(t){void 0===t&&(t=new _o),this.jitEvaluator=t,this.R3ResolvedDependencyType=e.R3ResolvedDependencyType,this.R3FactoryTarget=e.R3FactoryTarget,this.ResourceLoader=$l,this.elementSchemaRegistry=new Oc}return t.prototype.compilePipe=function(e,t,n){var r=Io({name:n.name,type:np(n.type),internalType:new Ee(n.type),typeArgumentCount:n.typeArgumentCount,deps:ap(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(r.expression,e,t,[])},t.prototype.compileInjectable=function(e,t,n){var r,i=Ji({name:n.name,type:np(n.type),internalType:new Ee(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:(r=n.providedIn,null==r||"string"==typeof r?new Ne(r):new Ee(r)),useClass:op(n,Jl),useFactory:op(n,Zl),useValue:op(n,ep),useExisting:op(n,tp),userDeps:ap(n.userDeps)||void 0});return this.jitExpression(i.expression,e,t,i.statements)},t.prototype.compileInjector=function(e,t,n){var r=So({name:n.name,type:np(n.type),internalType:new Ee(n.type),deps:ap(n.deps),providers:new Ee(n.providers),imports:n.imports.map((function(e){return new Ee(e)}))});return this.jitExpression(r.expression,e,t,r.statements)},t.prototype.compileNgModule=function(e,t,n){var r=Co({type:np(n.type),internalType:new Ee(n.type),adjacentType:new Ee(n.type),bootstrap:n.bootstrap.map(np),declarations:n.declarations.map(np),imports:n.imports.map(np),exports:n.exports.map(np),emitInline:!0,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(np):null,id:n.id?new Ee(n.id):null});return this.jitExpression(r.expression,e,t,[])},t.prototype.compileDirective=function(e,t,n){var r=new ln,i=Tl(),o=Fl(ip(n),r,i);return this.jitExpression(o.expression,e,t,r.statements)},t.prototype.compileComponent=function(e,t,n){var r=new ln,o=n.interpolation?ro.fromArray(n.interpolation):io,s=Sl(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:o});if(void 0!==s.errors){var u=s.errors.map((function(e){return e.toString()})).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+u)}var c=Rl(i(i(i({},n),ip(n)),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,wrapDirectivesAndPipesInClosure:!1,styles:a(n.styles,s.styles),encapsulation:n.encapsulation,interpolation:o,changeDetection:n.changeDetection,animations:null!=n.animations?new Ee(n.animations):null,viewProviders:null!=n.viewProviders?new Ee(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,Tl(o));return this.jitExpression(c.expression,e,"ng:///"+n.name+".js",r.statements)},t.prototype.compileFactory=function(e,t,n){var r=Gi({name:n.name,type:np(n.type),internalType:new Ee(n.type),typeArgumentCount:n.typeArgumentCount,deps:ap(n.deps),injectFn:"directiveInject"===n.injectFn?vn.directiveInject:vn.inject,target:n.target});return this.jitExpression(r.factory,e,t,r.statements)},t.prototype.createParseSourceSpan=function(e,t,n){return pr(e,t,n)},t.prototype.jitExpression=function(t,n,r,i){var o=a(i,[new et("$def",t,void 0,[e.StmtModifier.Exported])]);return this.jitEvaluator.evaluateStatements(r,o,new wo(n),!0).$def},t}(),Jl=Object.keys({useClass:null})[0],Zl=Object.keys({useFactory:null})[0],ep=Object.keys({useValue:null})[0],tp=Object.keys({useExisting:null})[0],np=function(e){var t=new Ee(e);return{value:t,type:t}};function rp(e){return i(i({},e),{predicate:Array.isArray(e.predicate)?e.predicate:new Ee(e.predicate),read:e.read?new Ee(e.read):null,static:e.static})}function ip(e){var t=cp(e.inputs||[]),n=cp(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 i(i({},e),{typeSourceSpan:e.typeSourceSpan,type:np(e.type),internalType:new Ee(e.type),deps:ap(e.deps),host:up(e.propMetadata,e.typeSourceSpan,e.host),inputs:i(i({},t),o),outputs:i(i({},n),s),queries:e.queries.map(rp),providers:null!=e.providers?new Ee(e.providers):null,viewQueries:e.viewQueries.map(rp),fullInheritance:!1})}function op(e,t){return e.hasOwnProperty(t)?new Ee(e[t]):void 0}function sp(t){return{token:null===t.token?new Ne(null):t.resolved===e.R3ResolvedDependencyType.Attribute?new Ne(t.token):new Ee(t.token),attribute:null,resolved:t.resolved,host:t.host,optional:t.optional,self:t.self,skipSelf:t.skipSelf}}function ap(e){return null==e?null:e.map(sp)}function up(e,t,n){var r=Gl(n||{}),i=Yl(r,t);if(i.length)throw new Error(i.map((function(e){return e.msg})).join("\n"));var o=function(t){e.hasOwnProperty(t)&&e[t].forEach((function(e){"HostBinding"===e.ngMetadataName?r.properties[e.hostPropertyName||t]=t:function(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")")}))};for(var s in e)o(s);return r}function cp(e){return e.reduce((function(e,t){var n=s(t.split(",").map((function(e){return e.trim()})),2),r=n[0];return e[r]=n[1]||r,e}),{})}function lp(e){(e.ng||(e.ng={})).\u0275compilerFacade=new Xl}var pp=new en("9.1.12"),fp=function(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=t.useJit,i=void 0===r||r,o=t.jitDevMode,s=void 0!==o&&o,a=t.missingTranslation,u=void 0===a?null:a,c=t.preserveWhitespaces,l=t.strictInjectionParameters;this.defaultEncapsulation=void 0===n?_.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=hp(Vt(c)),this.strictInjectionParameters=!0===l};function hp(e,t){return void 0===t&&(t=!1),null===e?t:e}var dp=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(Lt(e.template)){if(Lt(e.templateUrl))throw Wt("'"+Xt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Wt("The template specified for component "+Xt(e.componentType)+" is not a string")}else{if(!Lt(e.templateUrl))throw Wt("No template specified for component "+Xt(e.componentType));if("string"!=typeof e.templateUrl)throw Wt("The templateUrl specified for component "+Xt(e.componentType)+" is not a string")}if(Lt(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Wt("The preserveWhitespaces option for component "+Xt(e.componentType)+" must be a boolean");return Ut(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)),Ut(t,(function(t){return r._preparseLoadedTemplate(e,t,n)}))},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=ro.fromArray(e.interpolation),o=Un({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 Wt("Template parse errors:\n"+s.errors.join("\n"));var a=this._normalizeStylesheet(new On({styles:e.styles,moduleUrl:e.moduleUrl})),u=new vp;la(u,s.rootNodes);var c=this._normalizeStylesheet(new On({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 On({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Ut(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),(function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)}))},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=a(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map((function(e){var t=n.get(e),i=a(t.styles);return r._inlineStyles(t.styleUrls,n,i),new On({moduleUrl:e,styles:i})})),u=e.encapsulation;return null==u&&(u=this._config.defaultEncapsulation),u===_.Emulated&&0===i.length&&0===o.length&&(u=_.None),new Mn({encapsulation:u,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:hp(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),Ut(qt(e.filter((function(e){return!t.has(e)})).map((function(e){return Ut(n._fetch(e),(function(r){var i=n._normalizeStylesheet(new On({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(wu).map((function(e){return t._urlResolver.resolve(n,e)})),i=e.styles.map((function(e){var i,o,s,u,c=(i=t._urlResolver,o=n,s=[],u=e.replace(Su,"").replace(Cu,(function(){for(var e=[],t=0;t', or 'attr.'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e})),t[e].filter((function(e){return H.isTypeOf(e)})).forEach((function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"}));var u=_p(t[e],(function(e){return mp.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 Ft(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?i(i({},e.host),r):r,p=e.queries?i(i({},e.queries),o):o;return R.isTypeOf(e)?R({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,moduleId:e.moduleId,queries:p,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):M({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,queries:p,providers:e.providers,guards:s})},e}();function gp(e){return M.isTypeOf(e)||R.isTypeOf(e)}function _p(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}var bp,wp=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(cr),Ep=/^i18n:?/,Cp=!1,Sp=function(e,t){this.messages=e,this.errors=t};!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(bp||(bp={}));var xp=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(bp.Extract,t),e.forEach((function(e){return e.visit(n,null)})),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Sp(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(bp.Merge,n),this._translations=t;var r=new ua("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Da(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=la(this,e.expression,t);if(this._mode===bp.Merge)return new sa(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=la(this,e.cases,t);return this._mode===bp.Merge&&(e=new oa(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 ca&&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 ca&&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 la(this,this._translateMessage(e,o))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else r&&(!Cp&&console&&console.warn&&(Cp=!0,console.warn("I18n comments are deprecated, use an element instead ("+e.sourceSpan.start+(e.sourceSpan.details?", "+e.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Ep,"").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"i18n"===e.name}))||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==bp.Extract&&la(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==bp.Extract){var f=a||l;f&&this._openTranslatableSection(e),la(this,e.children),f&&this._closeTranslatableSection(e,e.children)}}if(this._mode===bp.Merge&&(s||e.children).forEach((function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(o=o.concat(r))})),this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===bp.Merge){var h=this._translateAttributes(e);return new ua(e.name,h,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=$c(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 aa&&!e[0].value)return null;var n=Tp(t),r=this._createI18nMessage(e,n.meaning,n.description,n.id);return this._messages.push(r),r},e.prototype._translateMessage=function(e,t){if(t&&this._mode===bp.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)]=Tp(e.value))}));var i=[];return n.forEach((function(n){if("i18n"!==n.name&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.id,a=t._createI18nMessage([n],o.meaning,o.description,s),u=t._translations.get(a);u?0==u.length?i.push(new aa(n.name,"",n.sourceSpan)):u[0]instanceof ia?i.push(new aa(n.name,u[0].value,n.sourceSpan)):t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")'):t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")')}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 ca?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 Ir)){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 wp(e.sourceSpan,t))},e}();function Tp(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf("@@"),n=e.indexOf("|"),r=s(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],o=r[1],a=s(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:a[0],description:a[1],id:o.trim()}}var Ip=new(function(){function t(){this.closedByParent=!1,this.contentType=e.TagContentType.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(e){return!1},t.prototype.isClosedByChild=function(e){return!1},t}());function Ap(e){return Ip}var Np=function(e){function t(){return e.call(this,Ap)||this}return n(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(Pa),Dp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new Pp,r=[];e.forEach((function(e){var t,i=[];e.sources.forEach((function(e){var t=new ci("context-group",{purpose:"location"});t.children.push(new pi(10),new ci("context",{"context-type":"sourcefile"},[new li(e.filePath)]),new pi(10),new ci("context",{"context-type":"linenumber"},[new li(""+e.startLine)]),new pi(8)),i.push(new pi(8),t)}));var o=new ci("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,a([new pi(8),new ci("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new pi(8),new ci("note",{priority:"1",from:"description"},[new li(e.description)])),e.meaning&&o.children.push(new pi(8),new ci("note",{priority:"1",from:"meaning"},[new li(e.meaning)])),o.children.push(new pi(6)),r.push(new pi(6),o)}));var i=new ci("body",{},a(r,[new pi(4)])),o=new ci("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new pi(4),i,new pi(2)]),s=new ci("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new pi(2),o,new pi]);return si([new ai({version:"1.0",encoding:"UTF-8"}),new pi,s,new pi])},t.prototype.load=function(e,t){var n=(new Op).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},u=new Mp;if(Object.keys(i).forEach((function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,a(n.errors)),s[e]=r})),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Fr(e)},t}(ri),Pp=function(){function e(){}return e.prototype.visitText=function(e,t){return[new li(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,a(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new li("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,a([new li(t+" {")],e.cases[t].visit(n),[new li("} ")]))})),r.push(new li("}")),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 ci("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var r=new ci("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),i=new ci("x",{id:e.closeName,ctype:n,"equiv-text":""});return a([r],this.serialize(e.children),[i])},e.prototype.visitPlaceholder=function(e,t){return[new ci("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 ci("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],a(e.map((function(e){return e.visit(t)}))))},e}(),Op=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Np).parse(e,t);return this._errors=n.errors,la(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):(la(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,' misses the "id" attribute');break;case"source":case"seg-source":case"alt-trans":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=e.attrs.find((function(e){return"target-language"===e.name}));o&&(this._locale=o.value),la(this,e.children,null);break;default:la(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 wp(e.sourceSpan,t))},e}(),Mp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Np).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],a(la(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Ir(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 Pr("",n.value,e.sourceSpan):(this._addError(e,' misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],a(la(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return la(this,e.cases).forEach((function(t){n[t.value]=new Ar(t.nodes,e.sourceSpan)})),new Nr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:la(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 wp(e.sourceSpan,t))},e}(),kp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new Fp,r=[];e.forEach((function(e){var t=new ci("unit",{id:e.id}),i=new ci("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new pi(8),new ci("note",{category:"description"},[new li(e.description)])),e.meaning&&i.children.push(new pi(8),new ci("note",{category:"meaning"},[new li(e.meaning)]))),e.sources.forEach((function(e){i.children.push(new pi(8),new ci("note",{category:"location"},[new li(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))})),i.children.push(new pi(6)),t.children.push(new pi(6),i);var o=new ci("segment");o.children.push(new pi(8),new ci("source",{},n.serialize(e.nodes)),new pi(6)),t.children.push(new pi(6),o,new pi(4)),r.push(new pi(4),t)}));var i=new ci("file",{original:"ng.template",id:"ngi18n"},a(r,[new pi(2)])),o=new ci("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new pi(2),i,new pi]);return si([new ai({version:"1.0",encoding:"UTF-8"}),new pi,o,new pi])},t.prototype.load=function(e,t){var n=(new Rp).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},u=new jp;if(Object.keys(i).forEach((function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,a(n.errors)),s[e]=r})),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return jr(e)},t}(ri),Fp=function(){function e(){}return e.prototype.visitText=function(e,t){return[new li(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,a(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new li("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,a([new li(t+" {")],e.cases[t].visit(n),[new li("} ")]))})),r.push(new li("}")),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 ci("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var i=new ci("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:""}),o=[].concat.apply([],a(e.children.map((function(e){return e.visit(n)}))));return o.length?o.forEach((function(e){return i.children.push(e)})):i.children.push(new li("")),[i]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new ci("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 ci("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([],a(e.map((function(e){return e.visit(t)}))))},e}(),Rp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Np).parse(e,t);return this._errors=n.errors,la(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):(la(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,' misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=e.attrs.find((function(e){return"trgLang"===e.name}));o&&(this._locale=o.value);var s=e.attrs.find((function(e){return"version"===e.name}));if(s){var a=s.value;"2.0"!==a?this._addError(e,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):la(this,e.children,null)}break;default:la(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 wp(e.sourceSpan,t))},e}(),jp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Np).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],a(la(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Ir(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 Pr("",r.value,e.sourceSpan)];this._addError(e,' misses the "equiv" attribute');break;case"pc":var i=e.attrs.find((function(e){return"equivStart"===e.name})),o=e.attrs.find((function(e){return"equivEnd"===e.name}));if(i){if(o){var s=o.value,u=[];return u.concat.apply(u,a([new Pr("",i.value,e.sourceSpan)],e.children.map((function(e){return e.visit(n,null)})),[new Pr("",s,e.sourceSpan)]))}this._addError(e,' misses the "equivEnd" attribute')}else this._addError(e,' misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],a(la(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return la(this,e.cases).forEach((function(t){n[t.value]=new Ar(t.nodes,e.sourceSpan)})),new Nr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],a(la(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 wp(e.sourceSpan,t))},e}(),Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new Vp).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Bp;if(Object.keys(i).forEach((function(e){var n,r;n=s,r=e,Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){var o=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}();return Object.defineProperty(n,r,{enumerable:!0,value:o}),o},set:function(e){throw new Error("Could not overwrite an XTB translation")}})})),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return mi(e)},t.prototype.createNameMapper=function(e){return new ii(e,gi)},t}(ri),Vp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Np).parse(e,t);return this._errors=n.errors,la(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(e," elements can not be nested");var n=e.attrs.find((function(e){return"lang"===e.name}));n&&(this._locale=n.value),la(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.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(e,' misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new wp(e.sourceSpan,t))},e}(),Bp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Np).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:la(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new Ir(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return la(this,e.cases).forEach((function(t){n[t.value]=new Ar(t.nodes,e.sourceSpan)})),new Nr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:la(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 Pr("",n.value,e.sourceSpan);this._addError(e,' misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new wp(e.sourceSpan,t))},e}(),Hp=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=F.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Up(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n);return new e(s.i18nNodesByMsgId,s.locale,(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}(),Up=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 ka).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:a(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return hi(e.value)},e.prototype.visitContainer=function(e,t){var n=this;return e.children.map((function(e){return e.visit(n)})).join("")},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map((function(t){return t+" {"+e.cases[t].visit(n)+"}"}));return"{"+(this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression]:e.expression)+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitPlaceholder=function(e,t){var n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,'Unknown placeholder "'+e.name+'"'),"")},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=""+e.tag,i=Object.keys(e.attrs).map((function(t){return t+'="'+e.attrs[t]+'"'})).join(" ");return e.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+e.children.map((function(e){return e.visit(n)})).join("")+""},e.prototype.visitIcuPlaceholder=function(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])},e.prototype._convertToText=function(e){var t,n=this,r=this._digest(e),i=this._mapperFactory?this._mapperFactory(e):null;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}):(this._missingTranslationStrategy===F.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===F.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),t=e.nodes,this._mapper=function(e){return e});var o=t.map((function(e){return e.visit(n)})).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new wp(e.sourceSpan,t))},e}(),qp=function(){function e(e,t,n,r,i){if(void 0===r&&(r=F.Warning),this._htmlParser=e,t){var o=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new di;case"xtb":return new Lp;case"xliff2":case"xlf2":return new kp;case"xliff":case"xlf":default:return new Dp}}(n);this._translationBundle=Hp.load(t,"i18n",o,r,i)}else this._translationBundle=new Hp({},null,Fr,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||io,o=this._htmlParser.parse(e,t,i({interpolationConfig:r},n));return o.errors.length?new Da(o.rootNodes,o.errors):function(e,t,n,r,i){return new xp([],{}).merge(e,t,n)}(o.rootNodes,this._translationBundle,r)},e}();function zp(e,t,n){return void 0===n&&(n=null),jt(t,new Wp(e),n)}var Wp=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){for(var n=[],r=0;r0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=zp(t,e.useValue);else{var i=e.useClass||e.symbol,o=this.depsArray(this.reflector.parameters(i),t);n=new Ae(t.importExpr(i),o)}return Nt([],[new rt(n)],void 0,void 0,e.symbol.name+"_Factory")},t.prototype.injectableDef=function(e,t){var n=Xe;void 0!==e.providedIn&&(n=null===e.providedIn?Xe:"string"==typeof e.providedIn?Pt(e.providedIn):t.importExpr(e.providedIn));var r=[Kp("factory",this.factoryFor(e,t)),Kp("token",t.importExpr(e.type.reference)),Kp("providedIn",n)];return Ct(vn.\u0275\u0275defineInjectable).callFn([At(r)])},t.prototype.compile=function(t,n){if(this.alwaysGenerateDef||void 0!==t.providedIn){var r=Sn(t.type),i=new ut(r,null,[new ot("\u0275prov",le,[e.StmtModifier.Static],this.injectableDef(t,n))],[],new st(null,[],[]),[]);n.statements.push(i)}},t}(),Gp=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Yp=/\.ngfactory\.|\.ngsummary\./,$p=/\.ngsummary\./,Xp=/NgSummary$/;function Jp(e,t){void 0===t&&(t=!1);var n=ef(e,t);return n[0]+".ngfactory"+tf(n[1])}function Zp(e){return e.replace(Yp,".")}function ef(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 tf(e){return".tsx"===e?".ts":e}function nf(e){return e.replace(Gp,"")+".ngsummary.json"}function rf(e,t){void 0===t&&(t=!1);var n=ef(Zp(e),t);return n[0]+".ngsummary"+n[1]}function of(e){return e+"NgSummary"}var sf,af=/\u0275\d+/;function uf(e){return af.test(e)}!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"}(sf||(sf={}));var cf=[sf.OnInit,sf.OnDestroy,sf.DoCheck,sf.OnChanges,sf.AfterContentInit,sf.AfterContentChecked,sf.AfterViewInit,sf.AfterViewChecked],lf=function(){function t(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 t.prototype.getReflector=function(){return this._reflector},t.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)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(e,t){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+t+" for type "+Xt(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},t.prototype.getGeneratedClass=function(e,t){return e instanceof gn?this._staticSymbolCache.get(Jp(e.filePath),t):this._createProxyClass(e,t)},t.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,Tn(e,0))},t.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,An(e))},t.prototype.getHostComponentType=function(e){var t=Sn({reference:e})+"_Host";return e instanceof gn?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},t.prototype.getRendererType=function(e){return e instanceof gn?this._staticSymbolCache.get(Jp(e.filePath),In(e)):{}},t.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof gn)return this._staticSymbolCache.get(Jp(t.filePath),Nn(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(vn.createComponentFactory)(e,t,i,n,r,[])},t.prototype.initComponentFactory=function(e,t){var n;e instanceof gn||(n=e.ngContentSelectors).push.apply(n,a(t))},t.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);this._summaryCache.set(e,(n=r?r.type:null)||null)}return n&&n.summaryKind===t?n:null},t.prototype.getHostComponentMetadata=function(e,t){var n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));var r=E.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return kn.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Mn({encapsulation:_.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:b.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:_.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=Jt(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.metadata,s=function(e){var n=new kn({isHost:!1,type:o.type,isComponent:o.isComponent,selector:o.selector,exportAs:o.exportAs,changeDetection:o.changeDetection,inputs:o.inputs,outputs:o.outputs,hostListeners:o.hostListeners,hostProperties:o.hostProperties,hostAttributes:o.hostAttributes,providers:o.providers,viewProviders:o.viewProviders,queries:o.queries,guards:o.guards,viewQueries:o.viewQueries,entryComponents:o.entryComponents,componentViewType:o.componentViewType,rendererType:o.rendererType,componentFactory:o.componentFactory,template:e});return e&&r.initComponentFactory(o.componentFactory,e.ngContentSelectors),r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,i.annotation),encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,animations:a.animations,interpolation:a.interpolation,preserveWhitespaces:a.preserveWhitespaces});return Zt(u)&&n?(this._reportError(function(e){var t=Error("Can't compile synchronously as "+Xt(e)+" is still being loaded!");return t.ngComponentType=e,t}(t),t),null):Ut(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=Jt(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(R.isTypeOf(r)){eo("styles",(s=r).styles),eo("styleUrls",s.styleUrls),no("interpolation",s.interpolation);var o=s.animations;i=new Mn({encapsulation:Vt(s.encapsulation),template:Vt(s.template),templateUrl:Vt(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:Vt(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:Vt(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;R.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+df(e)+'"',[],e)),s.entryComponents&&(c=pf(s.entryComponents).map((function(e){return t._getEntryComponentMetadata(e)})).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(l=null);var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+df(e)+'"',[],e));var f=[],h=[];null!=r.queries&&(f=this._getQueriesMetadata(r.queries,!1,e),h=this._getQueriesMetadata(r.queries,!0,e));var d=kn.create({isHost:!1,selector:l,exportAs:Vt(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:f||[],guards:r.guards||{},viewQueries:h||[],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)),this._nonNormalizedDirectiveCache.set(e,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(Wt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+df(e)+"."),e),t},t.prototype.getDirectiveSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Directive);return n||this._reportError(Wt("Illegal state: Could not load the summary for directive "+df(t)+"."),t),n},t.prototype.isDirective=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isAbstractDirective=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Directive);if(n&&!n.isComponent)return!n.selector;var r=this._directiveResolver.resolve(t,!1);return!(!r||R.isTypeOf(r)||r.selector)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,n){void 0===n&&(n=null);var r=this._loadSummary(t,e.CompileSummaryKind.NgModule);if(!r){var i=this.getNgModuleMetadata(t,!1,n);(r=i?i.toSummary():null)&&this._summaryCache.set(t,r)}return r},t.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)},t.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=_p(this._reflector.shallowAnnotations(e),U.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t},t.prototype.getNgModuleMetadata=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null),e=Jt(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],u=[],c=[],l=[],p=[],f=[],h=[],d=[],v=[];o.imports&&pf(o.imports).forEach((function(t){var i=void 0;if(ff(t)?i=t:t&&t.ngModule&&(i=t.ngModule,t.providers&&f.push.apply(f,a(r._getProvidersMetadata(t.providers,h,"provider for the NgModule '"+df(i)+"'",[],t)))),i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(Wt(r._getTypeDescriptor(i)+" '"+df(t)+"' is imported recursively by the module '"+df(e)+"'."),e);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?l.push(o):r._reportError(Wt("Unexpected "+r._getTypeDescriptor(t)+" '"+df(t)+"' imported by the module '"+df(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(Wt("Unexpected value '"+df(t)+"' imported by the module '"+df(e)+"'"),e)})),o.exports&&pf(o.exports).forEach((function(t){if(ff(t))if(n||(n=new Set),n.has(t))r._reportError(Wt(r._getTypeDescriptor(t)+" '"+Xt(t)+"' is exported recursively by the module '"+df(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(Wt("Unexpected value '"+df(t)+"' exported by the module '"+df(e)+"'"),e)}));var m=this._getTransitiveNgModuleMetadata(l,p);o.declarations&&pf(o.declarations).forEach((function(t){if(ff(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))r.isAbstractDirective(t)&&r._reportError(Wt("Directive "+df(t)+" has no selector, please add it!"),t),m.addDirective(n),s.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(Wt("Unexpected "+r._getTypeDescriptor(t)+" '"+df(t)+"' declared by the module '"+df(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(Wt("Unexpected value '"+df(t)+"' declared by the module '"+df(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(Wt("Can't export "+r._getTypeDescriptor(t.reference)+" "+df(t.reference)+" from "+df(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}})),o.providers&&f.push.apply(f,a(this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+df(e)+"'",[],e))),o.entryComponents&&h.push.apply(h,a(pf(o.entryComponents).map((function(e){return r._getEntryComponentMetadata(e)})))),o.bootstrap&&pf(o.bootstrap).forEach((function(t){ff(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(Wt("Unexpected value '"+df(t)+"' used in the bootstrap property of module '"+df(e)+"'"),e)})),h.push.apply(h,a(d.map((function(e){return r._getEntryComponentMetadata(e.reference)})))),o.schemas&&v.push.apply(v,a(pf(o.schemas))),i=new Rn({type:this._getTypeMetadata(e),providers:f,entryComponents:h,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:y,declaredPipes:c,exportedPipes:g,importedModules:l,exportedModules:p,transitiveModule:m,id:o.id||null}),h.forEach((function(e){return m.addEntryComponent(e)})),f.forEach((function(e){return m.addProvider(e,i.type)})),m.addModule(i.type),this._ngModuleCache.set(e,i),i},t.prototype._checkSelfImport=function(e,t){return e===t&&(this._reportError(Wt("'"+df(e)+"' module can't import itself"),e),!0)},t.prototype._getTypeDescriptor=function(e){if(ff(e)){if(this.isDirective(e))return"directive";if(this.isPipe(e))return"pipe";if(this.isNgModule(e))return"module"}return e.provide?"provider":"value"},t.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);n&&n!==t?this._reportError(Wt("Type "+df(e)+" is part of the declarations of 2 modules: "+df(n)+" and "+df(t)+"! Please consider moving "+df(e)+" to a higher module that imports "+df(n)+" and "+df(t)+". You can also create a new NgModule that exports and includes "+df(e)+" then import that NgModule in "+df(n)+" and "+df(t)+"."),t):this._ngModuleOfTypes.set(e,t)},t.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new jn,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=Pn(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},t.prototype._getIdentifierMetadata=function(e){return{reference:e=Jt(e)}},t.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some((function(e){return q.isTypeOf(e)}))},t.prototype.getInjectableSummary=function(t){return{summaryKind:e.CompileSummaryKind.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var i=this._loadSummary(t,e.CompileSummaryKind.Injectable),o=i?i.type:this._getTypeMetadata(t,n,r),s=this._reflector.annotations(t).filter((function(e){return q.isTypeOf(e)}));if(0===s.length)return null;var a=s[s.length-1];return{symbol:t,type:o,providedIn:a.providedIn,useValue:a.useValue,useClass:a.useClass,useExisting:a.useExisting,useFactory:a.useFactory,deps:a.deps}},t.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,cf.filter((function(e){return function(e,t,n){return e.hasLifecycleHook(n,function(e){switch(e){case sf.OnInit:return"ngOnInit";case sf.OnDestroy:return"ngOnDestroy";case sf.DoCheck:return"ngDoCheck";case sf.OnChanges:return"ngOnChanges";case sf.AfterContentInit:return"ngAfterContentInit";case sf.AfterContentChecked:return"ngAfterContentChecked";case sf.AfterViewInit:return"ngAfterViewInit";case sf.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error("unexpected "+e)}}(t))}(r,e,i)})))}},t.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=Jt(e),diDeps:this._getDependenciesMetadata(e,t)}},t.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(Wt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+df(e)+"."),e),t||null},t.prototype.getPipeSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Pipe);return n||this._reportError(Wt("Illegal state: Could not load the summary for pipe "+df(t)+"."),t),n},t.prototype.getOrLoadPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t},t.prototype._loadPipeMetadata=function(e){e=Jt(e);var t=this._pipeResolver.resolve(e),n=new Fn({type:this._getTypeMetadata(e),name:t.name,pure:!!t.pure});return this._pipeCache.set(e,n),this._summaryCache.set(e,n.toSummary()),n},t.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){Y.isTypeOf(e)?n=!0:Q.isTypeOf(e)?o=!0:G.isTypeOf(e)?s=!0:K.isTypeOf(e)?a=!0:A.isTypeOf(e)?(t=!0,u=e.attributeName):T.isTypeOf(e)?u=e.token:I.isTypeOf(e)||e instanceof gn?u=e:ff(e)&&null==u&&(u=e)})):u=e,null==u?(i=!0,{}):{isAttribute:t,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}}));if(i){var s=o.map((function(e){return e.token?df(e.token):"?"})).join(", "),a="Can't resolve all parameters for "+df(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(Wt(a),e):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(e){return"string"==typeof(e=Jt(e))?{value:e}:{identifier:{reference:e}}},t.prototype._getProvidersMetadata=function(e,t,n,r,i){var o=this;return void 0===r&&(r=[]),e.forEach((function(s,u){if(Array.isArray(s))o._getProvidersMetadata(s,t,n,r);else{var c=void 0;if((s=Jt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),c=new Vn(s.provide,s);else{if(!ff(s)){if(void 0===s)return void o._reportError(Wt("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"),e.value.visitExpression(this,t),t.print(e,")"),null},r.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},r.prototype.visitDeclareClassStmt=function(t,n){var r=this;return n.pushClass(t),t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),n.print(t,"class "+t.name),null!=t.parent&&(n.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,n),this.typeExpression--),n.println(t," {"),n.incIndent(),t.fields.forEach((function(e){return r._visitClassField(e,n)})),null!=t.constructorMethod&&this._visitClassConstructor(t,n),t.getters.forEach((function(e){return r._visitClassGetter(e,n)})),t.methods.forEach((function(e){return r._visitClassMethod(e,n)})),n.decIndent(),n.println(t,"}"),n.popClass(),null},r.prototype._visitClassField=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"/*private*/ "),t.hasModifier(e.StmtModifier.Static)&&n.print(null,"static "),n.print(null,t.name),this._printColonType(t.type,n),t.initializer&&(n.print(null," = "),t.initializer.visitExpression(this,n)),n.println(null,";")},r.prototype._visitClassGetter=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"private "),n.print(null,"get "+t.name+"()"),this._printColonType(t.type,n),n.println(null," {"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.println(null,"}")},r.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,"}")},r.prototype._visitClassMethod=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"private "),n.print(null,t.name+"("),this._visitParams(t.params,n),n.print(null,")"),this._printColonType(t.type,n,"void"),n.println(null," {"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.println(null,"}")},r.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},r.prototype.visitDeclareFunctionStmt=function(t,n){return t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),n.print(t,"function "+t.name+"("),this._visitParams(t.params,n),n.print(t,")"),this._printColonType(t.type,n,"void"),n.println(t," {"),n.incIndent(),this.visitAllStatements(t.statements,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitTryCatchStmt=function(t,n){n.println(t,"try {"),n.incIndent(),this.visitAllStatements(t.bodyStmts,n),n.decIndent(),n.println(t,"} catch ("+lo.name+") {"),n.incIndent();var r=[po.set(lo.prop("stack",null)).toDeclStmt(null,[e.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(r,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitBuiltinType=function(t,n){var r;switch(t.name){case e.BuiltinTypeName.Bool:r="boolean";break;case e.BuiltinTypeName.Dynamic:r="any";break;case e.BuiltinTypeName.Function:r="Function";break;case e.BuiltinTypeName.Number:case e.BuiltinTypeName.Int:r="number";break;case e.BuiltinTypeName.String:r="string";break;case e.BuiltinTypeName.None:r="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return n.print(null,r),null},r.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},r.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print(null,"[]"),null},r.prototype.visitMapType=function(e,t){return t.print(null,"{[key: string]:"),this.visitType(e.valueType,t),t.print(null,"}"),null},r.prototype.getBuiltinMethodName=function(t){var n;switch(t){case e.BuiltinMethod.ConcatArray:n="concat";break;case e.BuiltinMethod.SubscribeObservable:n="subscribe";break;case e.BuiltinMethod.Bind:n="bind";break;default:throw new Error("Unknown builtin method: "+t)}return n},r.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects((function(e){t.print(null,e.name),n._printColonType(e.type,t)}),e,t,",")},r.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&&this.importsWithPrefixes.set(o,s="i"+this.importsWithPrefixes.size),n.print(null,s+".")}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,">"))}},r.prototype._printColonType=function(e,t,n){e!==le&&(t.print(null,":"),this.visitType(e,t,n))},r}(vo),Af=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(Jt(e));return t&&t.some(j.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Jt(e));if(n){var r=_p(n,j.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Xt(e));return null},e}(),Nf=function(){function e(e,t){this.options=e,this.reflector=t}return 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 Pf(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)},e}(),Df=new(function(){function e(){}return e.prototype.notifyImplicitReceiverUse=function(){},e.prototype.getLocal=function(e){return e===ps.event.name?Et("_any"):null},e}()),Pf=function(){function t(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 t.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof gn?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},t.prototype.getTypeGuardExpressions=function(e){var t,n,r,i,s=a(this.guards);try{for(var u=o(e.directives),c=u.next();!c.done;c=u.next()){var l=c.value;try{for(var p=(r=void 0,o(l.inputs)),f=p.next();!f.done;f=p.next()){var h=f.value,d=l.directive.guards[h.directiveName];d&&s.push({guard:d,useIf:"UseIf"===d,expression:{context:this.component,value:h.value,sourceSpan:h.sourceSpan}})}}catch(v){r={error:v}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s},t.prototype.visitAll=function(e,t){this.variables=e,pu(this,t)},t.prototype.build=function(e,t){var n,r,i=this;void 0===t&&(t=[]),this.children.forEach((function(n){return n.build(e,t)}));var s=[Et("_any").set(Xe).toDeclStmt(ce)],u=0;if(this.updates.forEach((function(e){var t=i.preprocessUpdateExpression(e),n=t.sourceSpan,r=t.context,o=t.value,c=""+u++,l=gs(r===i.component?i:Df,Et(i.getOutputVar(r)),o,c,vs.General),p=l.stmts;p.push(new nt(l.currValExpr)),s.push.apply(s,a(p.map((function(e){return _t(e,n)}))))})),this.actions.forEach((function(e){var t=e.sourceSpan,n=e.context,r=e.value,o=""+u++,c=hs(n===i.component?i:Df,Et(i.getOutputVar(n)),r,o).stmts;s.push.apply(s,a(c.map((function(e){return _t(e,t)}))))})),this.guards.length){var c=void 0;try{for(var l=o(this.guards),p=l.next();!p.done;p=l.next()){var f=p.value,h=this.preprocessUpdateExpression(f.expression),d=h.context,v=h.value,m=""+u++,y=gs(d===this.component?this:Df,Et(this.getOutputVar(d)),v,m,vs.TrySimple),g=y.currValExpr;if(0==y.stmts.length){var _=f.useIf?g:this.ctx.importExpr(f.guard).callFn([g]);c=c?c.and(_):_}}}catch(w){n={error:w}}finally{try{p&&!p.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}c&&(s=[new ct(c,s)])}var b=new tt("_View_"+e+"_"+this.embeddedViewIndex,[],s);return t.push(b),t},t.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})}))},t.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)}},t.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})})),pu(this,e.children)},t.prototype.visitElementOrTemplate=function(t){var n=this;t.directives.forEach((function(e){n.visitDirective(e)})),t.references.forEach((function(t){n.refOutputVars.set(t.name,t.value&&t.value.identifier&&n.options.fullTemplateTypeCheck?t.value.identifier.reference:e.BuiltinTypeName.Dynamic)})),t.outputs.forEach((function(e){n.actions.push({context:n.component,value:e.handler,sourceSpan:e.sourceSpan})}))},t.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})})))},t.prototype.notifyImplicitReceiverUse=function(){},t.prototype.getLocal=function(t){if(t==ps.event.name)return Et(this.getOutputVar(e.BuiltinTypeName.Dynamic));for(var n=this;n;n=n.parent){var r=void 0;if(null==(r=n.refOutputVars.get(t))&&n.variables.find((function(e){return e.name===t}))&&(r=e.BuiltinTypeName.Dynamic),null!=r)return Et(this.getOutputVar(r))}return null},t.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)},t.prototype.preprocessUpdateExpression=function(t){var n=this;return{sourceSpan:t.sourceSpan,context:t.context,value:ds({createLiteralArrayConverter:function(e){return function(e){var t=It(e);return n.options.fullTemplateTypeCheck?t:t.cast(ce)}},createLiteralMapConverter:function(e){return function(t){var r=At(e.map((function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}})));return n.options.fullTemplateTypeCheck?r:r.cast(ce)}},createPipeConverter:function(t,r){return function(r){return Et(n.options.fullTemplateTypeCheck?n.pipeOutputVar(t):n.getOutputVar(e.BuiltinTypeName.Dynamic)).callMethod("transform",r)}}},t.value)}},t.prototype.visitNgContent=function(e,t){},t.prototype.visitText=function(e,t){},t.prototype.visitDirectiveProperty=function(e,t){},t.prototype.visitReference=function(e,t){},t.prototype.visitVariable=function(e,t){},t.prototype.visitEvent=function(e,t){},t.prototype.visitElementProperty=function(e,t){},t.prototype.visitAttr=function(e,t){},t}(),Of=function(e,t){this.viewClassVar=e,this.rendererTypeVar=t},Mf=function(){function t(e){this._reflector=e}return t.prototype.compileComponent=function(t,n,r,i,o){var s,u=this,c=0,l=void 0;if(!n.isHost){var p=n.template,f=[];p.animations&&p.animations.length&&f.push(new Ge("animation",zp(t,p.animations),!0));var h=Et(In(n.type.reference));l=h.name,t.statements.push(h.set(Ct(vn.createRendererType2).callFn([new Ye([new Ge("encapsulation",Pt(p.encapsulation),!1),new Ge("styles",i,!1),new Ge("data",new Ye(f),!1)])])).toDeclStmt(St(vn.RendererType2),[e.StmtModifier.Final,e.StmtModifier.Exported]))}var d=function(e){var r=c++;return new Bf(u._reflector,t,e,n,r,o,d)},v=d(null);return v.visitAll([],r),(s=t.statements).push.apply(s,a(v.build())),new Of(v.viewName,l)},t}(),kf=Et("_l"),Ff=Et("_v"),Rf=Et("_ck"),jf=Et("_co"),Lf=Et("en"),Vf=Et("ad"),Bf=function(){function t(e,t,n,r,i,o,s){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.viewBuilderFactory=s,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?ce:xt(t.importExpr(this.component.type.reference)),this.viewName=Tn(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(e,t){var n=this;this.variables=e,this.parent||this.usedPipes.forEach((function(e){e.pure&&(n.purePipeNodeIndices[e.name]=n._createPipe(null,e))})),this.parent||this.component.viewQueries.forEach((function(e,t){var r=t+1,i=e.first?0:1,o=134217728|zf(e);n.nodes.push((function(){return{sourceSpan:null,nodeFlags:o,nodeDef:Ct(vn.queryDef).callFn([Pt(o),Pt(r),new Ye([new Ge(e.propertyName,Pt(i),!1)])])}}))})),pu(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];return n instanceof iu?n.hasViewContainer:n instanceof ru?c(n.name)&&n.children.length?e(n.children):n.hasViewContainer:n instanceof uu}(t))&&this.nodes.push((function(){return{sourceSpan:null,nodeFlags:1,nodeDef:Ct(vn.anchorDef).callFn([Pt(0),Xe,Xe,Pt(0)])}}))},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach((function(e){return e.build(t)}));var n=this._createNodeExpressions(),r=n.updateDirectivesStmts,i=n.nodeDefExprs,o=this._createUpdateFn(n.updateRendererStmts),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==b.OnPush||(a|=2);var u=new tt(this.viewName,[new Ue(kf.name)],[new rt(Ct(vn.viewDef).callFn([Pt(a),It(i),s,o]))],St(vn.ViewDefinition),0===this.embeddedViewIndex?[e.StmtModifier.Exported]:[]);return t.push(u),t},t.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&mt(e).has(jf.name)&&n.push(jf.set(Ff.prop("component")).toDeclStmt(this.compType)),t=Nt([new Ue(Rf.name,le),new Ue(Ff.name,le)],a(n,e),le)}else t=Xe;return t},t.prototype.visitNgContent=function(e,t){this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:Ct(vn.ngContentDef).callFn([Pt(e.ngContentIndex),Pt(e.index)])}}))},t.prototype.visitText=function(e,t){this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:Ct(vn.textDef).callFn([Pt(-1),Pt(e.ngContentIndex),It([Pt(e.value)])])}}))},t.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:jf,value:t})})),s=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:Ct(vn.textDef).callFn([Pt(s),Pt(e.ngContentIndex),It(i.strings.map((function(e){return Pt(e)})))]),updateRenderer:o}}},t.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:Ct(vn.anchorDef).callFn([Pt(o),s,Pt(e.ngContentIndex),Pt(c),n._createElementHandleEventFn(r,a),Et(u.viewName)])}}},t.prototype.visitElement=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=c(e.name)?null:e.name,o=this._visitElementOrTemplate(r,e),a=o.flags,u=o.usedEvents,l=o.queryMatchesExpr,p=o.hostBindings,f=o.hostEvents,h=[],d=[],v=[];if(i){var m=e.inputs.map((function(e){return{context:jf,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})})),h=m.map((function(e){return function(e,t){var n=e.type;switch(n){case 1:return It([Pt(1),Pt(e.name),Pt(e.securityContext)]);case 0:return It([Pt(8),Pt(e.name),Pt(e.securityContext)]);case 4:return It([Pt(8|(t&&t.directive.isComponent?32:16)),Pt("@"+e.name),Pt(e.securityContext)]);case 2:return It([Pt(2),Pt(e.name),Xe]);case 3:return It([Pt(4),Pt(e.name),Pt(e.unit)]);default:throw new Error("unexpected "+n)}}(e.inputAst,e.dirAst)}))),v=u.map((function(e){var t=s(e,2),n=t[1];return It([Pt(t[0]),Pt(n)])}))}pu(this,e.children);var y=this.nodes.length-r-1,g=e.directives.find((function(e){return e.directive.isComponent})),_=Xe,b=Xe;g&&(b=this.outputCtx.importExpr(g.directive.componentViewType),_=this.outputCtx.importExpr(g.directive.rendererType));var w=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|a,nodeDef:Ct(vn.elementDef).callFn([Pt(w),Pt(a),l,Pt(e.ngContentIndex),Pt(y),Pt(i),i?(t=e,o=Object.create(null),t.attrs.forEach((function(e){o[e.name]=e.value})),t.directives.forEach((function(e){Object.keys(e.directive.hostAttributes).forEach((function(t){var n,r,i=e.directive.hostAttributes[t],s=o[t];o[t]=null!=s?(r=i,"class"==(n=t)||"style"==n?s+" "+r:r):i}))})),It(Object.keys(o).sort().map((function(e){return It([Pt(e),Pt(o[e])])})))):Xe,h.length?It(h):Xe,v.length?It(v):Xe,n._createElementHandleEventFn(r,f),b,_]),updateRenderer:d};var t,o}},t.prototype._visitElementOrTemplate=function(e,t){var n=this,r=0;t.hasViewContainer&&(r|=16777216);var i=new Map;t.outputs.forEach((function(e){var t=qf(e,null),n=t.name,r=t.target;i.set(Wf(r,n),[r,n])})),t.directives.forEach((function(e){e.hostEvents.forEach((function(t){var n=qf(t,e),r=n.name,o=n.target;i.set(Wf(o,r),[o,r])}))}));var o=[],s=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach((function(e){var r=void 0;if(t.directives.forEach((function(t){t.directive.type.reference===Pn(e.token)&&(r=t)})),r){var u=n._visitDirective(e,r,t.references,t.queryMatches,i),c=u.hostEvents;o.push.apply(o,a(u.hostBindings)),s.push.apply(s,a(c))}else n._visitProvider(e,t.queryMatches)}));var u=[];return t.queryMatches.forEach((function(e){var t=void 0;Pn(e.value)===n.reflector.resolveExternalReference(vn.ElementRef)?t=0:Pn(e.value)===n.reflector.resolveExternalReference(vn.ViewContainerRef)?t=3:Pn(e.value)===n.reflector.resolveExternalReference(vn.TemplateRef)&&(t=2),null!=t&&u.push(It([Pt(e.queryId),Pt(t)]))})),t.references.forEach((function(t){var r=void 0;t.value?Pn(t.value)===n.reflector.resolveExternalReference(vn.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,u.push(It([Pt(t.name),Pt(r)])))})),t.outputs.forEach((function(e){s.push({context:jf,eventAst:e,dirAst:null})})),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:u.length?It(u):Xe,hostBindings:o,hostEvents:s}},t.prototype._visitDirective=function(e,t,n,r,i){var o=this,s=this.nodes.length;this.nodes.push(null),t.directive.queries.forEach((function(e,n){var r=t.contentQueryStartId+n,i=67108864|zf(e),s=e.first?0:1;o.nodes.push((function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:Ct(vn.queryDef).callFn([Pt(i),Pt(r),new Ye([new Ge(e.propertyName,Pt(s),!1)])])}}))}));var a=this.nodes.length-s-1,u=this._visitProviderOrDirective(e,r),c=u.flags,l=u.queryMatchExprs,p=u.providerExpr,f=u.depsExpr;n.forEach((function(t){t.value&&Pn(t.value)===Pn(e.token)&&(o.refNodeIndices[t.name]=s,l.push(It([Pt(t.name),Pt(4)])))})),t.directive.isComponent&&(c|=32768);var h=t.inputs.map((function(e,t){var n=It([Pt(t),Pt(e.directiveName)]);return new Ge(e.directiveName,n,!1)})),d=[],v=t.directive;Object.keys(v.outputs).forEach((function(e){var t=v.outputs[e];i.has(t)&&d.push(new Ge(e,Pt(t),!1))}));var m=[];(t.inputs.length||(327680&c)>0)&&(m=t.inputs.map((function(e,t){return o._preprocessUpdateExpression({nodeIndex:s,bindingIndex:t,sourceSpan:e.sourceSpan,context:jf,value:e.value})})));var y=Ct(vn.nodeValue).callFn([Ff,Pt(s)]),g=t.hostProperties.map((function(e){return{context:y,dirAst:t,inputAst:e}})),_=t.hostEvents.map((function(e){return{context:y,eventAst:e,dirAst:t}})),b=s;return this.nodes[s]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:16384|c,nodeDef:Ct(vn.directiveDef).callFn([Pt(b),Pt(c),l.length?It(l):Xe,Pt(a),p,f,h.length?new Ye(h):Xe,d.length?new Ye(d):Xe]),updateDirectives:m,directive:t.directive.type}},{hostBindings:g,hostEvents:_}},t.prototype._visitProvider=function(e,t){this._addProviderNode(this._visitProviderOrDirective(e,t))},t.prototype._visitComponentFactoryResolverProvider=function(e){var t=e.find((function(e){return e.directive.isComponent}));if(t&&t.directive.entryComponents.length){var n=bf(this.reflector,this.outputCtx,8192,t.directive.entryComponents);this._addProviderNode({providerExpr:n.providerExpr,depsExpr:n.depsExpr,flags:n.flags,tokenExpr:n.tokenExpr,queryMatchExprs:[],sourceSpan:t.sourceSpan})}},t.prototype._addProviderNode=function(e){this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:e.flags,nodeDef:Ct(vn.providerDef).callFn([Pt(e.flags),e.queryMatchExprs.length?It(e.queryMatchExprs):Xe,e.tokenExpr,e.providerExpr,e.depsExpr])}}))},t.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach((function(t){Pn(t.value)===Pn(e.token)&&n.push(It([Pt(t.queryId),Pt(4)]))}));var r=vf(this.outputCtx,e);return{flags:0|r.flags,queryMatchExprs:n,providerExpr:r.providerExpr,depsExpr:r.depsExpr,tokenExpr:r.tokenExpr,sourceSpan:e.sourceSpan}},t.prototype.getLocal=function(e){if(e==ps.event.name)return ps.event;for(var t=Ff,n=this;n;n=n.parent,t=t.prop("parent").cast(ce)){var r=n.refNodeIndices[e];if(null!=r)return Ct(vn.nodeValue).callFn([t,Pt(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},t.prototype.notifyImplicitReceiverUse=function(){},t.prototype._createLiteralArrayConverter=function(e,t){if(0===t){var n=Ct(vn.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push((function(){return{sourceSpan:e,nodeFlags:32,nodeDef:Ct(vn.pureArrayDef).callFn([Pt(r),Pt(t)])}})),function(e){return Hf(r,e)}},t.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=Ct(vn.EMPTY_MAP);return function(){return n}}var r=At(t.map((function(e,t){return i(i({},e),{value:Pt(t)})}))),o=this.nodes.length;return this.nodes.push((function(){return{sourceSpan:e,nodeFlags:64,nodeDef:Ct(vn.pureObjectDef).callFn([Pt(o),r])}})),function(e){return Hf(o,e)}},t.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:Ct(vn.purePipeDef).callFn([Pt(i),Pt(n)])}}));for(var o=Ff,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(ce);var a=s.purePipeNodeIndices[t],u=Ct(vn.nodeValue).callFn([o,Pt(a)]);return function(t){return Uf(e.nodeIndex,e.bindingIndex,Hf(i,[u].concat(t)))}}var c=this._createPipe(e.sourceSpan,r),l=Ct(vn.nodeValue).callFn([Ff,Pt(c)]);return function(t){return Uf(e.nodeIndex,e.bindingIndex,l.callMethod("transform",t))}},t.prototype._createPipe=function(e,t){var n=this,r=this.nodes.length,i=0;t.type.lifecycleHooks.forEach((function(e){e===sf.OnDestroy&&(i|=_f(e))}));var o=t.type.diDeps.map((function(e){return gf(n.outputCtx,e)}));return this.nodes.push((function(){return{sourceSpan:e,nodeFlags:16,nodeDef:Ct(vn.pipeDef).callFn([Pt(i),n.outputCtx.importExpr(t.type.reference),It(o)])}})),r},t.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:ds({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)}},t.prototype._createNodeExpressions=function(){var e=this,t=0,n=[],r=[],i=this.nodes.map((function(e,t){var i=e(),s=i.nodeDef,u=i.nodeFlags,c=i.updateDirectives,l=i.updateRenderer,p=i.sourceSpan;return l&&n.push.apply(n,a(o(t,p,l,!1))),c&&r.push.apply(r,a(o(t,p,c,(327680&u)>0))),bt(3&u?new $e([kf.callFn([]).callFn([]),s]):s,p)}));return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var s=[],u=i.map((function(n){var r=n.sourceSpan,i=n.context,o=""+t++,u=gs(i===jf?e:null,i,n.value,o,vs.General),c=u.currValExpr;return s.push.apply(s,a(u.stmts.map((function(e){return _t(e,r)})))),bt(c,r)}));return(i.length||o)&&s.push(_t(Hf(n,u).toStmt(),r)),s}},t.prototype._createElementHandleEventFn=function(e,t){var n,r=this,i=[],o=0;if(t.forEach((function(e){var t=e.context,n=e.eventAst,s=e.dirAst,a=""+o++,u=hs(t===jf?r:null,t,n.handler,a),c=u.allowDefault,l=u.stmts;c&&l.push(Vf.set(c.and(Vf)).toStmt());var p=qf(n,s),f=Wf(p.target,p.name);i.push(_t(new ct(Pt(f).identical(Lf),l),n.sourceSpan))})),i.length>0){var s=[Vf.set(Pt(!0)).toDeclStmt(pe)];!this.component.isHost&&mt(i).has(jf.name)&&s.push(jf.set(Ff.prop("component")).toDeclStmt(this.compType)),n=Nt([new Ue(Ff.name,le),new Ue(Lf.name,le),new Ue(ps.event.name,le)],a(s,i,[new rt(Vf)]),le)}else n=Xe;return n},t.prototype.visitDirective=function(e,t){},t.prototype.visitDirectiveProperty=function(e,t){},t.prototype.visitReference=function(e,t){},t.prototype.visitVariable=function(e,t){},t.prototype.visitEvent=function(e,t){},t.prototype.visitElementProperty=function(e,t){},t.prototype.visitAttr=function(e,t){},t}();function Hf(e,t){return Rf.callFn(t.length>10?[Ff,Pt(e),Pt(1),It(t)]:a([Ff,Pt(e),Pt(0)],t))}function Uf(e,t,n){return Ct(vn.unwrapValue).callFn([Ff,Pt(e),Pt(t),n])}function qf(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function zf(e){return 0|(e.first&&e.static?268435456:536870912)}function Wf(e,t){return e?e+":"+t:t}var Kf=function(){function e(e,t,n,r){void 0===r&&(r=null),this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._messages=[]}return e.prototype.updateFromTemplate=function(e,t,n){var r,i=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:n});if(i.errors.length)return i.errors;var o=function(e,t,n,r){return new xp(n,r).extract(e,t)}(i.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((r=this._messages).push.apply(r,a(o.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new Qf;this._messages.forEach((function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,a(t.sources)):n[i]=t}));var i=Object.keys(n).map((function(i){var o=e.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new Tr(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,t&&u.sources.forEach((function(e){return e.filePath=t(e.filePath)})),u}));return e.write(i,this._locale)},e}(),Qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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 Dr(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new Pr(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new Or(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(Mr),Gf=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&&me(this.stmts,e.stmts))},e}();function Yf(e,t){var n,r,i,s,a=[];try{for(var u=o(e.transitiveModule.providers),c=u.next();!c.done;c=u.next()){var l=c.value,p=l.provider,f=l.module;if(Pn(p.token)===t.ROUTES){var h=$f(p.useValue);try{for(var d=(i=void 0,o(h)),v=d.next();!v.done;v=d.next())a.push(Xf(v.value,t,f.reference))}catch(m){i={error:m}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}}}catch(y){n={error:y}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}function $f(e,t){var n,r;if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var i=o(e),s=i.next();!s.done;s=i.next())$f(s.value,t)}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}else e.loadChildren?$f(e.loadChildren,t):e.children&&$f(e.children,t);return t}function Xf(e,t,n){var r=s(e.split("#"),2),i=t.resolveExternalReference({moduleName:r[0],name:r[1]},n?n.filePath:void 0);return{route:e,module:n||i,referencedModule:i}}var Jf=/^(?!.*\.d\.ts$).*\.ts$/,Zf=function(e,t){this.symbol=e,this.metadata=t},eh=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.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){return e.members.length>0?this._resolveSymbolMembers(e):this._resolveSymbolFromSummary(e)||this.resolvedSymbols.get(e)||(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($p,".");if(r!==e.filePath){var i,o=e.name.replace(Xp,"");return n=this.getStaticSymbol(r,o,e.members),(i=this.getImportAs(n,t))?this.getStaticSymbol(rf(i.filePath),of(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(Yp.test(e.filePath))return null;for(var t=nh(this.resolveSymbol(e));t&&t.metadata instanceof gn;)t=nh(this.resolveSymbol(t.metadata));return t&&t.metadata&&t.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);var r=this.symbolFromFile.get(e);if(!r)return[];this.symbolFromFile.delete(e);try{for(var i=o(r),s=i.next();!s.done;s=i.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=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},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=nh(n.metadata);if(r instanceof gn)return new Zf(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o=0?{__symbolic:"reference",name:d}:r.has(d)?p.getStaticSymbol(t,d):void 0},s}(Bt)),[]),h=nh(f);return h instanceof gn?this.createExport(e,h):new Zf(e,f)},e.prototype.createExport=function(e,t){return e.assertNoMembers(),t.assertNoMembers(),this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(t,this.getImportAs(e)||e),new Zf(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 th(e){return e.startsWith("___")?e.substr(1):e}function nh(e){return e&&"resolved"===e.__symbolic?e.symbol:e}function rh(t,n,r){var i=of(n.name);t.statements.push(Nt([],[new rt(r)],new ae(ce)).toDeclStmt(i,[e.StmtModifier.Final,e.StmtModifier.Exported]))}var ih=function(t){function r(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,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=e.getKnownModuleName(r),i}return n(r,t),r.prototype.addSummary=function(t){var n,r=this,i=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),o=this.processedSummaryBySymbol.get(t.symbol);if(i||(this.unprocessedSymbolSummariesBySymbol.set(t.symbol,i={symbol:t.symbol,metadata:void 0}),o={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(o),this.processedSummaryBySymbol.set(t.symbol,o)),!i.metadata&&t.metadata){var s=t.metadata||{};if("class"===s.__symbolic){var a={};Object.keys(s).forEach((function(e){"decorators"!==e&&(a[e]=s[e])})),s=a}else ah(s)&&(ah(n=s)&&nh(n.expression)instanceof gn||function(e){return ah(e)&&e.expression&&"select"===e.expression.__symbolic&&nh(e.expression.expression)instanceof gn}(s)||(s={__symbolic:"error",message:"Complex function calls are not supported."}));if(i.metadata=s,o.metadata=this.processValue(s,1),s instanceof gn&&this.summaryResolver.isLibraryFile(s.filePath)){var u=this.symbols[this.indexBySymbol.get(s)];uf(u.name)||this.reexportedBy.set(u,t.symbol)}}if(!i.type&&t.type&&(i.type=t.type,o.type=this.processValue(t.type,0),t.type.summaryKind===e.CompileSummaryKind.NgModule)){var c=t.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)}}))}},r.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||n.push({symbol:r,exportAs:o=r.name+"_"+i})}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:o}}))}),exportAs:n}},r.prototype.processValue=function(e,t){return jt(e,this,t)},r.prototype.visitOther=function(e,t){if(e instanceof gn){var n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}},r.prototype.visitStringMap=function(e,n){return"resolved"===e.__symbolic?jt(e.symbol,this,n):("error"===e.__symbolic&&(delete e.line,delete e.character),t.prototype.visitStringMap.call(this,e,n))},r.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 gn&&(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},r.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},r}(Bt),oh=function(){function t(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})},t.prototype.addLibType=function(e){this.data.push({summary:e,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){var n,r,i,s,a,u,c=this,l=new Map;try{for(var p=o(t),f=p.next();!f.done;f=p.next()){var h=f.value;l.set(h.symbol,h.exportAs)}}catch(S){n={error:S}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var d=new Set;try{for(var v=o(this.data),m=v.next();!m.done;m=v.next()){var y=m.value,g=y.summary,_=y.metadata,b=y.isLibrary;if(g.summaryKind===e.CompileSummaryKind.NgModule){d.add(g.type.reference);var w=g;try{for(var E=(a=void 0,o(w.modules)),C=E.next();!C.done;C=E.next())d.add(C.value.reference)}catch(x){a={error:x}}finally{try{C&&!C.done&&(u=E.return)&&u.call(E)}finally{if(a)throw a.error}}}b||(of(g.type.reference.name),rh(this.outputCtx,g.type.reference,this.serializeSummaryWithDeps(g,_)))}}catch(T){i={error:T}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}d.forEach((function(t){if(c.summaryResolver.isLibraryFile(t.filePath)){var n=of(l.get(t)||t.name);c.outputCtx.statements.push(Et(n).set(c.serializeSummaryRef(t)).toDeclStmt(null,[e.StmtModifier.Exported]))}}))},t.prototype.serializeSummaryWithDeps=function(t,n){var r=this,i=[this.serializeSummary(t)],o=[];return n instanceof Rn?(i.push.apply(i,a(n.declaredDirectives.concat(n.declaredPipes).map((function(e){return e.reference})).concat(n.transitiveModule.modules.map((function(e){return e.reference})).filter((function(e){return e!==n.type.reference}))).map((function(e){return r.serializeSummaryRef(e)})))),o=n.providers):t.summaryKind===e.CompileSummaryKind.Directive&&(o=t.providers.concat(t.viewProviders)),i.push.apply(i,a(o.filter((function(e){return!!e.useClass})).map((function(t){return r.serializeSummary({summaryKind:e.CompileSummaryKind.Injectable,type:t.useClass})})))),It(i)},t.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(rf(e.filePath),of(e.name));return this.outputCtx.importExpr(t)},t.prototype.serializeSummary=function(e){var t=this.outputCtx,n=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return It(e.map((function(e){return jt(e,n,t)})))},e.prototype.visitStringMap=function(e,t){var n=this;return new Ye(Object.keys(e).map((function(r){return new Ge(r,jt(e[r],n,t),!1)})))},e.prototype.visitPrimitive=function(e,t){return Pt(e)},e.prototype.visitOther=function(e,n){if(e instanceof gn)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}();return jt(e,new n,null)},t}(),sh=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return n(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(Jp(e),s)})}));var o=jt(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}(Bt);function ah(e){return e&&"call"===e.__symbolic}var uh=function(){function t(e,t,n,r,i,o,s,a,u,c,l,p,f,h){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=f,this._symbolResolver=h,this._templateAstCache=new Map,this._analyzedFiles=new Map,this._analyzedFilesForInjectables=new Map}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(e){var t=this,n=hh(e,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach((function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)})),n},t.prototype.analyzeModulesAsync=function(e){var t=this,n=hh(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}))},t.prototype._analyzeFile=function(e){var t=this._analyzedFiles.get(e);return t||(t=vh(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFiles.set(e,t)),t},t.prototype._analyzeFileForInjectables=function(e){var t=this._analyzedFilesForInjectables.get(e);return t||(t=mh(0,this._symbolResolver,this._metadataResolver,e),this._analyzedFilesForInjectables.set(e,t)),t},t.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(Jp(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(rf(r.fileName,!0)));var i=tf(ef(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 Wt("Couldn't resolve resource "+e+" relative to "+r.fileName);var a=(o.template.encapsulation||t._config.defaultEncapsulation)===_.Emulated;n.push(ph(s,a,i)),t._options.allowEmptyCodegenFiles&&n.push(ph(s,!a,i))}))})),n},t.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),ch(n),r.ngModules.forEach((function(e){!function(e,t){rh(e,t,Xe)}(n,e.type.reference)}))}}else e.endsWith(".ngstyle.ts")&&ch(n);return this._codegenSourceModule("unknown",n)},t.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},t.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:gh(r),analyzedInjectables:o}}))},t.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:gh(r),analyzedInjectables:i}},t.prototype._createNgFactoryStub=function(e,t,n){var r=this,i=0;t.ngModules.forEach((function(t,o){r._ngModuleCompiler.createStub(e,t.type.reference);var s=a(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([vn.TemplateRef,vn.ElementRef])),u=new Map;s.forEach((function(e,t){u.set(e,"_decl"+o+"_"+t)})),u.forEach((function(t,n){e.statements.push(Et(t).set(Xe.cast(ce)).toDeclStmt(xt(e.importExpr(n,null,!1))))})),2&n&&t.declaredDirectives.forEach((function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(e,o.type.reference.name+"_Host_"+i,t,r._metadataResolver.getHostComponentMetadata(o),[o.type],u),r._createTypeCheckBlock(e,o.type.reference.name+"_"+i,t,o,t.transitiveModule.directives,u))}))})),0===e.statements.length&&ch(e)},t.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var a=yn(this.reflector,s.value);a.identifier&&r.push(a.identifier.reference)}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},t.prototype._createTypeCheckBlock=function(e,t,n,r,i,o){var s,u=this._parseTemplate(r,n,i);(s=e.statements).push.apply(s,a(this._typeCheckCompiler.compileComponent(t,r,u.template,u.pipes,o,e)))},t.prototype.emitMessageBundle=function(e,t){var n=this,r=[],i=new ka,o=new Kf(i,[],{},t);if(e.files.forEach((function(e){var t=[];e.directives.forEach((function(e){var r=n._metadataResolver.getDirectiveMetadata(e);r&&r.isComponent&&t.push(r)})),t.forEach((function(e){var t=e.template.template,n=e.template.templateUrl,i=ro.fromArray(e.template.interpolation);r.push.apply(r,a(o.updateFromTemplate(t,n,i)))}))})),r.length)throw new Error(r.map((function(e){return e.toString()})).join("\n"));return o},t.prototype.emitAllPartialModules=function(e,t){var n=this,r=e.ngModuleByPipeOrDirective,i=e.files,o=new Map,s=function(e){return o.has(e)||o.set(e,n._createOutputContext(e)),o.get(e)};return i.forEach((function(e){return n._compilePartialModule(e.fileName,r,e.directives,e.pipes,e.ngModules,e.injectables,s(e.fileName))})),t.forEach((function(e){return n._compileShallowModules(e.fileName,e.shallowModules,s(e.fileName))})),Array.from(o.values()).map((function(e){return{fileName:e.genFilePath,statements:a(e.constantPool.statements,e.statements)}}))},t.prototype._compileShallowModules=function(t,n,r){var i=this;n.forEach((function(t){return n=r,s=i._injectableCompiler,u=Sn((o=t).type),c=o.rawImports?[o.rawImports]:[],l=o.rawExports?[o.rawExports]:[],p=Eo({factory:s.factoryFor({type:o.type,symbol:o.type.reference},n),providers:Yn(o.rawProviders,n),imports:Yn(a(c,l),n)}),f=Ct(Qn.defineInjector).callFn([p]),void n.statements.push(new ut(u,null,[new ot("\u0275inj",le,[e.StmtModifier.Static],f)],[],new st(null,[],[]),[]));var n,o,s,u,c,l,p,f}))},t.prototype._compilePartialModule=function(t,n,r,o,s,a,u){var c=this,l=new Oc,p=new Tu(this._templateParser.expressionParser,io,l,[],[]);r.forEach((function(t){var r=c._metadataResolver.getDirectiveMetadata(t);if(r.isComponent){var o=n.get(t);o||zt("Cannot determine the module for component '"+Sn(r.type)+"'");var s=r.template.htmlAst;r.template.preserveWhitespaces||(s=Ha(s));var a=kc(s.rootNodes,p),l=new Map;o.transitiveModule.directives.map((function(e){return c._metadataResolver.getDirectiveSummary(e.reference)})).forEach((function(e){e.selector&&l.set(e.selector,e.type.reference)}));var f=new Map;o.transitiveModule.pipes.map((function(e){return c._metadataResolver.getPipeSummary(e.reference)})).forEach((function(e){f.set(e.name,e.type.reference)})),function(t,n,r,o,s,a,u){var c=Sn(n.type);c||zt("Cannot resolver the name of "+n.type);var l=t.constantPool.propertyNameOf(2),p=n.toSummary(),f=i(i({},jl()),{selector:n.selector,template:{nodes:r.nodes,ngContentSelectors:r.ngContentSelectors},directives:[],pipes:Kl(u,t),viewQueries:Ll(n.viewQueries,t),wrapDirectivesAndPipesInClosure:!1,styles:p.template&&p.template.styles||Pl,encapsulation:p.template&&p.template.encapsulation||_.Emulated,interpolation:io,animations:null,viewProviders:n.viewProviders.length>0?new Ee(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),h=Rl(f,t.constantPool,s),d=Gi(i(i({},f),{injectFn:Qn.directiveInject,target:e.R3FactoryTarget.Directive})),v=new ut(c,null,[new ot("\u0275fac",le,[e.StmtModifier.Static],d.factory)],[],new st(null,[],[]),[]),m=new ut(c,null,[new ot(l,le,[e.StmtModifier.Static],h.expression)],[],new st(null,[],[]),[]);t.statements.push(v,m)}(u,r,a,0,p,0,f)}else!function(t,n,r,o){var s=Sn(n.type);s||zt("Cannot resolver the name of "+n.type);var a=t.constantPool.propertyNameOf(1),u=jl(),c=Fl(u,t.constantPool,o),l=Gi(i(i({},u),{injectFn:Qn.directiveInject,target:e.R3FactoryTarget.Directive})),p=new ut(s,null,[new ot("\u0275fac",le,[e.StmtModifier.Static],l.factory)],[],new st(null,[],[]),[]),f=new ut(s,null,[new ot(a,le,[e.StmtModifier.Static],c.expression)],[],new st(null,[],[]),[]);t.statements.push(p,f)}(u,r,0,p)})),o.forEach((function(t){var n=c._metadataResolver.getPipeMetadata(t);n&&function(t,n,r){var o=Sn(n.type);if(!o)return zt("Cannot resolve the name of "+n.type);var s,a,u=t.importExpr(n.type.reference),c={name:o,type:(s=u,a=new Ee(s),{value:a,type:a}),internalType:u,pipeName:n.name,typeArgumentCount:0,deps:$i(n.type,t,r),pure:n.pure},l=Io(c),p=Gi(i(i({},c),{injectFn:Qn.directiveInject,target:e.R3FactoryTarget.Pipe})),f=t.constantPool.propertyNameOf(3),h=new ut(o,null,[new ot("\u0275fac",le,[e.StmtModifier.Static],p.factory)],[],new st(null,[],[]),[]),d=new ut(o,null,[new ot(f,le,[e.StmtModifier.Static],l.expression)],[],new st(null,[],[]),[]);t.statements.push(h,d)}(u,n,c.reflector)})),a.forEach((function(e){return c._injectableCompiler.compile(e,u)}))},t.prototype.emitAllPartialModules2=function(e){var t=this;return e.reduce((function(e,n){return e.push.apply(e,a(t._emitPartialModule2(n.fileName,n.injectables))),e}),[])},t.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:a(r.constantPool.statements,r.statements)}]:[]},t.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return Bn(e.files.map((function(e){return t._compileImplFile(e.fileName,n,e.directives,e.pipes,e.ngModules,e.injectables)})))},t.prototype._compileImplFile=function(e,t,n,r,i,o){var s=this,u=tf(ef(e,!0)[1]),c=[],l=this._createOutputContext(Jp(e,!0));if(c.push.apply(c,a(this._createSummary(e,n,r,i,o,l))),i.forEach((function(e){return s._compileModule(l,e)})),n.forEach((function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+Sn(r.type)+"!");var o=s._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach((function(t){var n=s._styleCompiler.needsStyleShim(r);c.push(s._codegenStyles(e,r,t,n,u)),s._options.allowEmptyCodegenFiles&&c.push(s._codegenStyles(e,r,t,!n,u))})),s._compileComponent(l,r,i,i.transitiveModule.directives,o,u),s._compileComponentFactory(l,r,i,u)}})),l.statements.length>0||this._options.allowEmptyCodegenFiles){var p=this._codegenSourceModule(e,l);c.unshift(p)}return c},t.prototype._createSummary=function(t,n,r,i,o,s){var u=this,c=this._symbolResolver.getSymbolsOf(t).map((function(e){return u._symbolResolver.resolveSymbol(e)})),l=a(i.map((function(e){return{summary:u._metadataResolver.getNgModuleSummary(e.type.reference),metadata:u._metadataResolver.getNgModuleMetadata(e.type.reference)}})),n.map((function(e){return{summary:u._metadataResolver.getDirectiveSummary(e),metadata:u._metadataResolver.getDirectiveMetadata(e)}})),r.map((function(e){return{summary:u._metadataResolver.getPipeSummary(e),metadata:u._metadataResolver.getPipeMetadata(e)}})),o.map((function(e){return{summary:u._metadataResolver.getInjectableSummary(e.symbol),metadata:u._metadataResolver.getInjectableSummary(e.symbol).type}}))),p=this._options.enableSummariesForJit?this._createOutputContext(rf(t,!0)):null,f=function(e,t,n,r,i,o,s){void 0===s&&(s=!1);var a=new ih(r,n,e);i.forEach((function(e){return a.addSummary({symbol:e.symbol,metadata:e.metadata})})),o.forEach((function(e){var t=e.summary;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 oh(t,r,n);o.forEach((function(e){p.addSourceType(e.summary,e.metadata)})),a.unprocessedSymbolSummariesBySymbol.forEach((function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&p.addLibType(e.type)})),p.serialize(l)}return{json:c,exportAs:l}}(t,p,this._summaryResolver,this._symbolResolver,c,l,this._options.createExternalSymbolFactoryReexports),h=f.json;f.exportAs.forEach((function(t){s.statements.push(Et(t.exportAs).set(s.importExpr(t.symbol)).toDeclStmt(null,[e.StmtModifier.Exported]))}));var d=[new Gf(t,nf(t),h)];return p&&d.push(this._codegenSourceModule(t,p)),d},t.prototype._compileModule=function(e,t){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:yn(this.reflector,vn.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:yn(this.reflector,vn.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(e,t,n)},t.prototype._compileComponentFactory=function(t,n,r,i){var o=this._metadataResolver.getHostComponentMetadata(n),s=this._compileComponent(t,o,r,[n.type],null,i).viewClassVar,a=Nn(n.type.reference),u=[];for(var c in n.inputs)u.push(new Ge(c,Pt(n.inputs[c]),!1));var l=[];for(var c in n.outputs)l.push(new Ge(c,Pt(n.outputs[c]),!1));t.statements.push(Et(a).set(Ct(vn.createComponentFactory).callFn([Pt(n.selector),t.importExpr(n.type.reference),Et(s),new Ye(u),new Ye(l),It(n.template.ngContentSelectors.map((function(e){return Pt(e)})))])).toDeclStmt(St(vn.ComponentFactory,[xt(t.importExpr(n.type.reference))],[ee.Const]),[e.StmtModifier.Final,e.StmtModifier.Exported]))},t.prototype._compileComponent=function(e,t,n,r,i,o){var s=this._parseTemplate(t,n,r),a=s.template,u=s.pipes,c=i?Et(i.stylesVar):It([]),l=this._viewCompiler.compileComponent(e,t,a,c,u);return i&&lh(this._symbolResolver,i,this._styleCompiler.needsStyleShim(t),o),l},t.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,Un(t.type,e,e.template),i);return this._templateAstCache.set(e.type.reference,a),a},t.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 gn))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.name,u=s.members,c=t._fileNameToModuleName(s.filePath,e),l=c===t._fileNameToModuleName(e,e)?null:c,p=r||[],f=p.concat(on(o-p.length,ce));return u.reduce((function(e,t){return e.prop(t)}),Ct(new je(l,a,null),f))},constantPool:new ln}},t.prototype._fileNameToModuleName=function(e,t){return this._summaryResolver.getKnownModuleName(e)||this._symbolResolver.getKnownModuleName(e)||this._host.fileNameToModuleName(e,t)},t.prototype._codegenStyles=function(e,t,n,r,i){var o=this._createOutputContext(ph(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,t,n,r);return lh(this._symbolResolver,s,r,i),this._codegenSourceModule(e,o)},t.prototype._codegenSourceModule=function(e,t){return new Gf(e,t.genFilePath,t.statements)},t.prototype.listLazyRoutes=function(e,t){var n,r,i,s,a=this;if(e)return function e(t,n,r){var i,s;if(void 0===n&&(n=new Set),void 0===r&&(r=[]),n.has(t)||!t.name)return r;n.add(t);var u=Yf(a._metadataResolver.getNgModuleMetadata(t,!0),a.reflector);try{for(var c=o(u),l=c.next();!l.done;l=c.next()){var p=l.value;r.push(p),e(p.referencedModule,n,r)}}catch(f){i={error:f}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}return r}(Xf(e,this.reflector).referencedModule);if(t){var u=[];try{for(var c=o(t.ngModules),l=c.next();!l.done;l=c.next()){var p=Yf(l.value,this.reflector);try{for(var f=(i=void 0,o(p)),h=f.next();!h.done;h=f.next())u.push(h.value)}catch(d){i={error:d}}finally{try{h&&!h.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}}catch(v){n={error:v}}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!")},t}();function ch(e){e.statements.push(Ct(vn.ComponentFactory).toStmt())}function lh(e,t,n,r){t.dependencies.forEach((function(t){t.setValue(e.getStaticSymbol(ph(t.moduleUrl,n,r),t.name))}))}function ph(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function fh(e,t,n,r){return yh(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=vh(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 hh(e,t,n,r){return dh(fh(e,t,n,r))}function dh(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw Wt(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 vh(e,t,n,r){var i=[],o=[],s=[],a=[],u=[],c=t.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!c||t.getSymbolsOf(r).forEach((function(r){var c=t.resolveSymbol(r).metadata;if(c&&"error"!==c.__symbolic){var p=!1;if("class"===c.__symbolic)if(n.isDirective(r))p=!0,n.isAbstractDirective(r)?i.push(r):o.push(r);else if(n.isPipe(r))p=!0,s.push(r);else if(n.isNgModule(r)){var f=n.getNgModuleMetadata(r,!1);f&&(p=!0,u.push(f))}else if(n.isInjectable(r)){p=!0;var h=n.getInjectableMetadata(r,null,!1);h&&a.push(h)}p||(l=l||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 jt(e,n,t)}))},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach((function(r){return jt(e[r],n,t)}))},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof gn&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return jt(t,new r,null),n}(e,c))}})),{fileName:r,directives:o,abstractDirectives:i,pipes:s,ngModules:u,injectables:a,exportsNonSourceFiles:l}}function mh(e,t,n,r){var i=[],o=[];return t.hasDecorators(r)&&t.getSymbolsOf(r).forEach((function(e){var r=t.resolveSymbol(e).metadata;if(r&&"error"!==r.__symbolic&&"class"===r.__symbolic)if(n.isInjectable(e)){var s=n.getInjectableMetadata(e,null,!1);s&&i.push(s)}else if(n.isNgModule(e)){var a=n.getShallowModuleMetadata(e);a&&o.push(a)}})),{fileName:r,injectables:i,shallowModules:o}}function yh(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 gh(e){return dh(yh(e))}function _h(e){var t=Wt(function e(t,n){var r,i;if(void 0===n&&(n=0),!t)return"";var s=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",a=(s&&0===n?s+": ":"")+t.message+(s&&0!==n?" at "+s:"");if(t.next)try{for(var u=o(t.next),c=u.next();!c.done;c=u.next())a+="\n"+e(c.value,n+2)}catch(l){r={error:l}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}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?" ":"")}(n)+a}(e)+".");return t.ngFormattedMessage=!0,t.chain=e,t.position=e.position,t}var bh="@angular/core",wh=/^\$.*\$$/,Eh={__symbolic:"ignore"},Ch=new Set(["useValue","useFactory","data","id","loadChildren"]);function Sh(e){return e&&"ignore"==e.__symbolic}var xh=function(){function t(t,n,r,i,o){var s=this;void 0===r&&(r=[]),void 0===i&&(i=[]),this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=o,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(),r.forEach((function(e){return s._registerDecoratorOrConstructor(s.getStaticSymbol(e.filePath,e.name),e.ctor)})),i.forEach((function(e){return s._registerFunction(s.getStaticSymbol(e.filePath,e.name),e.fn)})),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Directive,[M,R]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Pipe,[j]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.NgModule,[U]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Injectable,[q,j,M,R,U])}return t.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},t.prototype.invalidateSymbols=function(e){var t,n;try{for(var r=o(e),i=r.next();!i.done;i=r.next()){var s=i.value;this.annotationCache.delete(s),this.shallowAnnotationCache.delete(s),this.propertyCache.delete(s),this.parameterCache.delete(s),this.methodCache.delete(s),this.staticCache.delete(s),this.conversionMap.delete(s)}}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){var r=this.resolvedExternalReferences.get(n=e.moduleName+":"+e.name);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},t.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},t.prototype.tryFindDeclaration=function(e,t,n){var r=this;return this.symbolResolver.ignoreErrorsFor((function(){return r.findDeclaration(e,t,n)}))},t.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 gn)return this.findSymbolDeclaration(t.metadata)}return e},t.prototype.tryAnnotations=function(e){var t=this.errorRecorder;this.errorRecorder=function(e,t){};try{return this.annotations(e)}finally{this.errorRecorder=t}},t.prototype.annotations=function(e){var t=this;return this._annotations(e,(function(e,n){return t.simplify(e,n)}),this.annotationCache)},t.prototype.shallowAnnotations=function(e){var t=this;return this._annotations(e,(function(e,n){return t.simplify(e,n,!0)}),this.shallowAnnotationCache)},t.prototype._annotations=function(t,n,r){var i=r.get(t);if(!i){i=[];var o=this.getTypeMetadata(t),s=this.findParentType(t,o);if(s){var u=this.annotations(s);i.push.apply(i,a(u))}var c=[];if(o.decorators&&(c=n(t,o.decorators))&&i.push.apply(i,a(c)),s&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){var l=this.summaryResolver.resolveSummary(s);if(l&&l.type){var p=this.annotationForParentClassWithSummaryKind.get(l.type.summaryKind);p.some((function(e){return c.some((function(t){return e.isTypeOf(t)}))}))||this.reportError(Oh(Th("Class "+t.name+" in "+t.filePath+" extends from a "+e.CompileSummaryKind[l.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+p.map((function(e){return e.ngMetadataName})).join(" or ")+" decorator to the class"),t),t)}}r.set(t,i.filter((function(e){return!!e})))}return i},t.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);n={};var i=this.findParentType(e,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach((function(e){n[e]=o[e]}))}var s=r.members||{};Object.keys(s).forEach((function(r){var i=s[r].find((function(e){return"property"==e.__symbolic||"method"==e.__symbolic})),o=[];n[r]&&o.push.apply(o,a(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,a(t.simplify(e,i.decorators)))})),this.propertyCache.set(e,n)}return n},t.prototype.parameters=function(e){var t=this;if(!(e instanceof gn))return this.reportError(new Error("parameters received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),[];try{var n=this.parameterCache.get(e);if(!n){var r=this.getTypeMetadata(e),i=this.findParentType(e,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var u=s.find((function(e){return"constructor"==e.__symbolic})),c=u.parameters||[],l=this.simplify(e,u.parameterDecorators||[]);n=[],c.forEach((function(r,i){var o=[],s=t.trySimplify(e,r);s&&o.push(s);var u=l?l[i]:null;u&&o.push.apply(o,a(u)),n.push(o)}))}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(e,n)}return n}catch(p){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+p),p}},t.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},t.prototype._staticMembers=function(e){var t=this.staticCache.get(e);if(!t){var n=this.getTypeMetadata(e);t=Object.keys(n.statics||{}),this.staticCache.set(e,t)}return t},t.prototype.findParentType=function(e,t){var n=this.trySimplify(e,t.extends);if(n instanceof gn)return n},t.prototype.hasLifecycleHook=function(e,t){e instanceof gn||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}},t.prototype.guards=function(e){var t,n;if(!(e instanceof gn))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var r=this._staticMembers(e),i={};try{for(var s=o(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]),i[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 i},t.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,(function(e,n){return new(t.bind.apply(t,a([void 0],n)))}))},t.prototype._registerFunction=function(e,t){this.conversionMap.set(e,(function(e,n){return t.apply(void 0,n)}))},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Injectable"),q),this.injectionToken=this.findDeclaration(bh,"InjectionToken"),this.opaqueToken=this.findDeclaration(bh,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(bh,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Host"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Self"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Inject"),T),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Optional"),K),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Attribute"),A),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"ContentChild"),D),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"ContentChildren"),N),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"ViewChild"),O),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"ViewChildren"),P),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Input"),L),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Output"),V),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Pipe"),j),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"HostBinding"),B),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"HostListener"),H),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Directive"),M),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Component"),R),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"NgModule"),U),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Host"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Self"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(bh,"Optional"),K)},t.prototype.getStaticSymbol=function(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)},t.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},t.prototype.simplify=function(e,t,n){void 0===n&&(n=!1);var r,i=this,s=Dh.empty,u=new Map;try{r=function e(t,n,r,c){function l(e){var t=i.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function p(n){return e(t,n,r,0)}function f(n,o){if(n===t)return e(n,o,r+1,c);try{return e(n,o,r+1,c)}catch(a){if(!Ih(a))throw a;var s=a.chain?"references '"+a.symbol.name+"'":function(e){if(e.summary)return e.summary;switch(e.message){case"Reference to non-exported class":if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case"Variable not initialized":return"is not initialized";case"Destructuring not supported":return"is a destructured variable";case"Could not resolve type":return"could not be resolved";case Ah:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case"Reference to a local symbol":return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(a);i.error({message:a.message,advise:a.advise,context:a.context,chain:{message:"'"+n.name+"' "+s,position:a.position,next:a.chain},symbol:n},t)}}return function n(h){var d,v,m,y;if(Nh(h))return h;if(Array.isArray(h)){var g=[];try{for(var _=o(h),b=_.next();!b.done;b=_.next()){var w=b.value;if(w&&"spread"===w.__symbolic){var E=p(w.expression);if(Array.isArray(E)){try{for(var C=(m=void 0,o(E)),S=C.next();!S.done;S=C.next())g.push(S.value)}catch(q){m={error:q}}finally{try{S&&!S.done&&(y=C.return)&&y.call(C)}finally{if(m)throw m.error}}continue}}var x=n(w);Sh(x)||g.push(x)}}catch(z){d={error:z}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(h instanceof gn)return h===i.injectionToken||i.conversionMap.has(h)||c>0&&!h.members.length?h:null!=(R=l(T=h))?f(T,R):T;if(h){if(h.__symbolic){var T=void 0;switch(h.__symbolic){case"binop":var I=n(h.left);if(Sh(I))return I;var A=n(h.right);if(Sh(A))return A;switch(h.operator){case"&&":return I&&A;case"||":return I||A;case"|":return I|A;case"^":return I^A;case"&":return I&A;case"==":return I==A;case"!=":return I!=A;case"===":return I===A;case"!==":return I!==A;case"<":return I":return I>A;case"<=":return I<=A;case">=":return I>=A;case"<<":return I<>":return I>>A;case"+":return I+A;case"-":return I-A;case"*":return I*A;case"/":return I/A;case"%":return I%A}return null;case"if":var N=n(h.condition);return n(N?h.thenExpression:h.elseExpression);case"pre":var D=n(h.operand);if(Sh(D))return D;switch(h.operator){case"+":return D;case"-":return-D;case"!":return!D;case"~":return~D}return null;case"index":var P=p(h.expression),O=p(h.index);return P&&Nh(O)?P[O]:null;case"select":var M=h.member,k=t,F=n(h.expression);if(F instanceof gn){var R,j=F.members.concat(M);return null!=(R=l(k=i.getStaticSymbol(F.filePath,F.name,j)))?f(k,R):k}return F&&Nh(M)?f(k,F[M]):null;case"reference":var L=s.resolve(h.name);if(L!=Dh.missing)return L;break;case"resolved":try{return n(h.symbol)}catch(W){throw Ih(W)&&null!=h.fileName&&null!=h.line&&null!=h.character&&(W.position={fileName:h.fileName,line:h.line,column:h.character}),W}case"class":case"function":return t;case"new":case"call":if((T=e(t,h.expression,r+1,0))instanceof gn){if(T===i.injectionToken||T===i.opaqueToken)return t;var V=h.arguments||[],B=i.conversionMap.get(T);if(B){var H=V.map((function(e){return f(t,e)})).map((function(e){return Sh(e)?void 0:e}));return B(t,H)}return function(e,o,c,l){if(o&&"function"==o.__symbolic){u.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:o},e);try{var p=o.value;if(p&&(0!=r||"error"!=p.__symbolic)){var h=o.parameters,d=o.defaults;c=c.map((function(e){return f(t,e)})).map((function(e){return Sh(e)?void 0:e})),d&&d.length>c.length&&c.push.apply(c,a(d.slice(c.length).map((function(e){return n(e)})))),u.set(e,!0);for(var v=Dh.build(),m=0;m0?new Ph(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Ph=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return n(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):Dh.missing},t}(Dh);function Oh(e,t){return Ih(e)?_h(function e(t,n){var r=function(e,t){switch(e){case"Reference to non-exported class":if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case"Could not resolve type":if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case Ah:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case"Reference to a local symbol":if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case"Lambda not supported":return"Function expressions are not supported in decorators"}return e}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),i=t.position,o=t.next?e(t.next,n):n?{message:n}:void 0;return{message:r,position:i,next:o?[o]:void 0}}({message:"Error during template compile of '"+t.name+"'",position:e.position,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function(e,t){switch(e){case"Reference to non-exported class":if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case"Destructuring not supported":return"Consider simplifying to avoid destructuring";case"Reference to a local symbol":if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case"Lambda not supported":return"Consider changing the function expression into an exported function"}}(e.message,e.context))):e}var Mh=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(Zp(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=nf(e);try{r=this.host.loadSummary(i)}catch(u){throw console.error("Error loading summary file "+i),u}}if(this.loadedFilePaths.set(e,n=null!=r),r){var o=function(e,t,n,r){return new sh(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),s=o.moduleName,a=o.importAs;o.summaries.forEach((function(e){return t.summaryCache.set(e.symbol,e)})),s&&this.knownFileNameToModuleNames.set(e,s),a.forEach((function(e){t.importAs.set(e.symbol,e.importAs)}))}return n},e}();function kh(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Wt("Couldn't resolve resource "+n+" from "+t);return r}}}var Fh=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 Rh(e,t,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;so();case e.BinaryOperator.BiggerEquals:return i()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.name]},t.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]},t.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},t.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},t.prototype.visitCommaExpr=function(e,t){var n=this.visitAllExpressions(e.parts,t);return n[n.length-1]},t.prototype.visitAllExpressions=function(e,t){var n=this;return e.map((function(e){return e.visitExpression(n,t)}))},t.prototype.visitAllStatements=function(e,t){for(var n=0;n0&&(n=function(e,t){var n=$h(encodeURI(t)),r=$h(e);if(null!=n[Qh.Scheme])return Xh(n);n[Qh.Scheme]=r[Qh.Scheme];for(var i=Qh.Scheme;i<=Qh.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Qh.Path][0])return Xh(n);var o=r[Qh.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Qh.Path],n[Qh.Path]=o,Xh(n)}(e,n));var r=$h(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Qh.Scheme]){var o=r[Qh.Path];return(i=i.replace(/\/+$/,""))+"/"+o.replace(/^\/+/,"")}return n},e}(),Yh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function $h(e){return e.match(Yh)}function Xh(e){var t,n,r,i,o,s,a,u,c=e[Qh.Path];return c=null==c?"":function(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],o=0,s=0;s0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(c),e[Qh.Path]=c,n=e[Qh.UserInfo],r=e[Qh.Domain],i=e[Qh.Port],o=c,s=e[Qh.QueryData],a=e[Qh.Fragment],u=[],null!=(t=e[Qh.Scheme])&&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"}(Qh||(Qh={}));var Jh=function(){function e(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}return e.prototype.extract=function(e){var t=this,n=hh(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files;return Promise.all(n.ngModules.map((function(e){return t.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)}))).then((function(){var e=[];if(r.forEach((function(n){var r=[];n.directives.forEach((function(e){var n=t.metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&r.push(n)})),r.forEach((function(n){var r=n.template.template,i=n.template.templateUrl,o=ro.fromArray(n.template.interpolation);e.push.apply(e,a(t.messageBundle.updateFromTemplate(r,i,o)))}))})),e.length)throw new Error(e.map((function(e){return e.toString()})).join("\n"));return t.messageBundle}))},e.create=function(t,n){var r=new ka,i=kh(t),o=new _n,s=new Mh(t,o),a=new eh(t,o,s),u=new xh(s,a),c=new fp({defaultEncapsulation:_.Emulated,useJit:!1}),l=new dp({get:function(e){return t.loadResource(e)}},i,r,c),p=new Oc,f=new lf(c,r,new Sf(u),new yp(u),new Af(u),s,p,l,console,o,u),h=new Kf(r,[],{},n);return{extractor:new e(t,a,h,f),staticReflector:u}},e}(),Zh=function(){function e(e){this.directiveMatcher=e}return e.prototype.bind=function(e){if(!e.template)throw new Error("Binding without a template not yet supported");var t=ed.apply(e.template),n=td.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,o=n.references,s=nd.apply(e.template,t);return new rd(e,r,i,o,s.expressions,s.symbols,s.nestingLevel,s.usedPipes)},e}(),ed=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 gr?(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}(),td=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=El(e,Wi(t)),i=[];this.matcher.match(r,(function(e,t){return i.push(t)})),i.length>0&&this.directives.set(t,i),t.references.forEach((function(e){var r=null;if(""===e.value.trim())r=i.find((function(e){return e.isComponent}))||null;else if(null===(r=i.find((function(t){return null!==t.exportAs&&t.exportAs.some((function(t){return t===e.value}))}))||null))return;n.references.set(e,null!==r?{directive:r,node:t}:t)}));var o=function(e,r){var o=i.find((function(t){return t[r].hasOwnProperty(e.name)}));n.bindings.set(e,void 0!==o?o:t)};t.inputs.forEach((function(e){return o(e,"inputs")})),t.attributes.forEach((function(e){return o(e,"inputs")})),t instanceof gr&&t.templateAttrs.forEach((function(e){return o(e,"inputs")})),t.outputs.forEach((function(e){return o(e,"outputs")})),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}(),nd=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this)||this;return u.bindings=t,u.symbols=n,u.usedPipes=r,u.nestingLevel=i,u.scope=o,u.template=s,u.level=a,u.pipesUsed=[],u.visitNode=function(e){return e.visit(u)},u}return n(t,e),t.prototype.visit=function(e,t){e instanceof Po?e.visit(this,t):e.visit(this)},t.apply=function(e,n){var r=new Map,i=new Map,o=new Map,s=new Set;return new t(r,i,s,o,n,e instanceof gr?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:o,usedPipes:s}},t.prototype.ingest=function(e){e instanceof gr?(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.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode);var n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,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.visitPipe=function(t,n){return this.usedPipes.add(t.name),e.prototype.visitPipe.call(this,t,n)},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 Fo){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}},t}(is),rd=function(){function e(e,t,n,r,i,o,s,a){this.target=e,this.directives=t,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=o,this.nestingLevel=s,this.usedPipes=a}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.prototype.getUsedPipes=function(){return Array.from(this.usedPipes)},e}();lp(rn),e.AST=Po,e.ASTWithName=Oo,e.ASTWithSource=ts,e.AbsoluteSourceSpan=es,e.AotCompiler=uh,e.AotSummaryResolver=Mh,e.ArrayType=ae,e.AssertNotNull=Be,e.AstMemoryEfficientTransformer=ss,e.AstPath=na,e.AstTransformer=os,e.AttrAst=Xa,e.Attribute=aa,e.Binary=Go,e.BinaryOperatorExpr=ze,e.BindingPipe=qo,e.BoundDirectivePropertyAst=ou,e.BoundElementProperty=ls,e.BoundElementPropertyAst=Za,e.BoundEventAst=eu,e.BoundTextAst=$a,e.BuiltinType=oe,e.CONTENT_ATTR="_ngcontent-%COMP%",e.CUSTOM_ELEMENTS_SCHEMA=z,e.CastExpr=He,e.Chain=Ro,e.ClassField=ot,e.ClassMethod=st,e.ClassStmt=ut,e.CommaExpr=$e,e.Comment=ca,e.CommentStmt=lt,e.CompileDirectiveMetadata=kn,e.CompileMetadataResolver=lf,e.CompileNgModuleMetadata=Rn,e.CompilePipeMetadata=Fn,e.CompileReflector=function(){},e.CompileShallowModuleMetadata=function(){},e.CompileStylesheetMetadata=On,e.CompileTemplateMetadata=Mn,e.CompiledStylesheet=Zs,e.CompilerConfig=fp,e.Conditional=jo,e.ConditionalExpr=Le,e.ConstantPool=ln,e.CssSelector=E,e.DEFAULT_INTERPOLATION_CONFIG=io,e.DYNAMIC_TYPE=ce,e.DeclareFunctionStmt=tt,e.DeclareVarStmt=et,e.DirectiveAst=su,e.DirectiveNormalizer=dp,e.DirectiveResolver=yp,e.DomElementSchemaRegistry=Oc,e.EOF=uc,e.ERROR_COMPONENT_TYPE="ngComponentType",e.Element=ua,e.ElementAst=ru,e.ElementSchemaRegistry=Nc,e.EmbeddedTemplateAst=iu,e.EmitterVisitorContext=ho,e.EmptyExpr=ko,e.Expansion=oa,e.ExpansionCase=sa,e.Expression=ge,e.ExpressionBinding=rs,e.ExpressionStatement=nt,e.ExpressionType=se,e.ExternalExpr=Re,e.ExternalReference=je,e.Extractor=Jh,e.FunctionCall=Zo,e.FunctionExpr=qe,e.GeneratedFile=Gf,e.HOST_ATTR="_nghost-%COMP%",e.HtmlParser=ka,e.HtmlTagDefinition=y,e.I18NHtmlParser=qp,e.Identifiers=vn,e.IfStmt=ct,e.ImplicitReceiver=Fo,e.InstantiateExpr=Ae,e.Interpolation=Qo,e.InterpolationConfig=ro,e.InvokeFunctionExpr=Ie,e.InvokeMethodExpr=Te,e.IvyParser=Cc,e.JSDocCommentStmt=pt,e.JitCompiler=qh,e.JitEvaluator=_o,e.JitSummaryResolver=Fh,e.KeyedRead=Ho,e.KeyedWrite=Uo,e.Lexer=ic,e.LiteralArray=Wo,e.LiteralArrayExpr=Qe,e.LiteralExpr=Ne,e.LiteralMap=Ko,e.LiteralMapExpr=Ye,e.LiteralPrimitive=zo,e.MapType=ue,e.MessageBundle=Kf,e.MethodCall=Xo,e.NAMED_ENTITIES=m,e.NGSP_UNICODE="\ue500",e.NONE_TYPE=de,e.NO_ERRORS_SCHEMA=W,e.NgContentAst=uu,e.NgModuleCompiler=Cf,e.NgModuleResolver=Sf,e.NodeWithI18n=ra,e.NonNullAssert=$o,e.NotExpr=Ve,e.NullTemplateVisitor=cu,e.ParseError=cr,e.ParseLocation=sr,e.ParseSourceFile=ar,e.ParseSourceSpan=ur,e.ParseSpan=Do,e.ParseTreeResult=Da,e.ParsedEvent=us,e.ParsedProperty=as,e.ParsedVariable=cs,e.Parser=Ec,e.ParserError=No,e.PipeResolver=Af,e.PrefixNot=Yo,e.PropertyRead=Lo,e.PropertyWrite=Vo,e.ProviderAst=au,e.ProviderMeta=Vn,e.Quote=Mo,e.R3BoundTarget=rd,e.R3Identifiers=Qn,e.R3TargetBinder=Zh,e.ReadKeyExpr=Ke,e.ReadPropExpr=We,e.ReadVarExpr=be,e.RecursiveAstVisitor=is,e.RecursiveTemplateAstVisitor=lu,e.RecursiveVisitor=fa,e.ReferenceAst=tu,e.ResolvedStaticSymbol=Zf,e.ResourceLoader=$l,e.ReturnStatement=rt,e.STRING_TYPE=he,e.SafeMethodCall=Jo,e.SafePropertyRead=Bo,e.SelectorContext=x,e.SelectorListContext=S,e.SelectorMatcher=C,e.Serializer=ri,e.SplitInterpolation=mc,e.Statement=Ze,e.StaticReflector=xh,e.StaticSymbol=gn,e.StaticSymbolCache=_n,e.StaticSymbolResolver=eh,e.StyleCompiler=ea,e.StylesCompileDependency=Js,e.SummaryResolver=function(){},e.TemplateBindingParseResult=yc,e.TemplateParseError=Ru,e.TemplateParseResult=ju,e.TemplateParser=Lu,e.Text=ia,e.TextAst=Ya,e.ThrowStmt=ht,e.TmplAstBoundAttribute=vr,e.TmplAstBoundEvent=mr,e.TmplAstBoundText=hr,e.TmplAstContent=_r,e.TmplAstElement=yr,e.TmplAstRecursiveVisitor=Cr,e.TmplAstReference=wr,e.TmplAstTemplate=gr,e.TmplAstText=fr,e.TmplAstTextAttribute=dr,e.TmplAstVariable=br,e.Token=oc,e.TransitiveCompileNgModuleMetadata=jn,e.TreeError=Na,e.TryCatchStmt=ft,e.Type=re,e.TypeScriptEmitter=Tf,e.TypeofExpr=we,e.UrlResolver=Gh,e.VERSION=pp,e.VariableAst=nu,e.VariableBinding=ns,e.Version=en,e.ViewCompiler=Mf,e.WrappedNodeExpr=Ee,e.WriteKeyExpr=Se,e.WritePropExpr=xe,e.WriteVarExpr=Ce,e.Xliff=Dp,e.Xliff2=kp,e.Xmb=di,e.XmlParser=Np,e.Xtb=Lp,e._ParseAST=Sc,e.analyzeAndValidateNgModules=hh,e.analyzeFile=vh,e.analyzeFileForInjectables=mh,e.analyzeNgModules=fh,e.collectExternalReferences=function(e){var t=new gt;return t.visitAllStatements(e,null),t.externalReferences},e.compileComponentFromMetadata=Rl,e.compileDirectiveFromMetadata=Fl,e.compileFactoryFunction=Gi,e.compileInjectable=Ji,e.compileInjector=So,e.compileNgModule=Co,e.compilePipeFromMetadata=Io,e.componentFactoryName=Nn,e.computeMsgId=Wr,e.core=te,e.createAotCompiler=function(e,t,n){var r,i=t.translations||"",o=kh(e),s=new _n,a=new Mh(e,s),u=new eh(e,s,a),c=new xh(a,u,[],[],n);r=t.enableIvy?new ka:new qp(new ka,i,t.i18nFormat,t.missingTranslation,console);var l=new fp({defaultEncapsulation:_.Emulated,useJit:!1,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces,strictInjectionParameters:t.strictInjectionParameters}),p=new dp({get:function(t){return e.loadResource(t)}},o,r,l),f=new Ec(new ic),h=new Oc,d=new Lu(l,c,f,h,r,console,[]),v=new lf(l,r,new Sf(c),new yp(c),new Af(c),a,h,p,console,s,c,n),m=new Mf(c),y=new Nf(t,c);return{compiler:new uh(l,t,e,c,v,d,new ea(o),m,y,new Cf(c),new Qp(c,!!t.enableIvy),new Tf,a,u),reflector:c}},e.createAotUrlResolver=kh,e.createElementCssSelector=zu,e.createLoweredSymbol=function(e){return"\u0275"+e},e.createOfflineCompileUrlResolver=function(){return new Gh(".")},e.createUrlResolverWithoutPackagePrefix=function(){return new Gh},e.debugOutputAstAsTypeScript=xf,e.findNode=function(e,t){var r=[];return la(new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.visit=function(e,n){var i=function e(t){var n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset;return t instanceof ua&&(t.endSourceSpan?r=t.endSourceSpan.end.offset:t.children&&t.children.length&&(r=e(t.children[t.children.length-1]).end)),{start:n,end:r}}(e);if(!(i.start<=t&&t0)&&!(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}var a,u=(a=Element.prototype).matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector,c={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return c.schedule(e,0);if(void 0===window.requestAnimationFrame)return c.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function l(e,t,n){var r=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((function(t,n){return!("*"===t||!function(e,t){return u.call(e,t)}(e,t)||(r=n,0))})),r}var p=function(){function e(e,n){this.componentFactory=n.get(t.ComponentFactoryResolver).resolveComponentFactory(e)}return e.prototype.create=function(e){return new f(this.componentFactory,e)},e}(),f=function(){function e(e,t){this.componentFactory=e,this.injector=t,this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set}return e.prototype.connect=function(e){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)},e.prototype.disconnect=function(){var e=this;null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=c.schedule((function(){null!==e.componentRef&&(e.componentRef.destroy(),e.componentRef=null)}),10))},e.prototype.getInputValue=function(e){return null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e]},e.prototype.setInputValue=function(e,t){var n,r;null!==this.componentRef?((n=t)!==(r=this.getInputValue(e))&&(n==n||r==r)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)},e.prototype.initializeComponent=function(e){var n=t.Injector.create({providers:[],parent:this.injector}),r=function(e,t){var n=e.childNodes,r=t.map((function(){return[]})),i=-1;t.some((function(e,t){return"*"===e&&(i=t,!0)}));for(var o=0,s=n.length;o=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 c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var p,f=function(e){function t(){return e.call(this)||this}return s(t,e),t.prototype.supportsDOMEvents=function(){return!0},t}(r.\u0275DomAdapter),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.makeCurrent=function(){r.\u0275setRootDomAdapter(new t)},t.prototype.getProperty=function(e,t){return e[t]},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()},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.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.getValue=function(e){return e.value},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},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,n=d||(d=document.querySelector("base"))?d.getAttribute("href"):null;return null==n?null:(t=n,p||(p=document.createElement("a")),p.setAttribute("href",t),"/"===p.pathname.charAt(0)?p.pathname:"/"+p.pathname)},t.prototype.resetBaseElement=function(){d=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},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 r.\u0275parseCookieValue(document.cookie,e)},t}(f),d=null,v=new i.InjectionToken("TRANSITION_ID");function m(e,t,n){return function(){n.get(i.ApplicationInitStatus).donePromise.then((function(){var n=r.\u0275getDOM();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}}var y=[{provide:i.APP_INITIALIZER,useFactory:m,deps:[v,r.DOCUMENT,i.Injector],multi:!0}],g=function(){function e(){}return e.init=function(){i.setTestabilityGetter(new e)},e.prototype.addToWindow=function(e){i.\u0275global.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},i.\u0275global.getAllAngularTestabilities=function(){return e.getAllTestabilities()},i.\u0275global.getAllAngularRootElements=function(){return e.getAllRootElements()},i.\u0275global.frameworkStabilizers||(i.\u0275global.frameworkStabilizers=[]),i.\u0275global.frameworkStabilizers.push((function(e){var t=i.\u0275global.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(o)}))}))},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?r.\u0275getDOM().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null},e}();function _(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i.\u0275global.ng=i.\u0275global.ng||{})[e]=t)}var b={ApplicationRef:i.ApplicationRef,NgZone:i.NgZone};function w(e){return i.\u0275getDebugNodeR2(e)}function E(e){return _("probe",w),_("coreTokens",a(a({},b),(e||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return w}}var C=[],S=[{provide:i.APP_INITIALIZER,useFactory:E,deps:[[i.NgProbeToken,new i.Optional]],multi:!0}],x=C,T=new i.InjectionToken("EventManagerPlugins"),I=function(){function t(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 t.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},t.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1},(n=u([c(0,i.Inject(r.DOCUMENT)),c(1,i.Inject(q)),c(3,i.Optional()),c(3,i.Inject(z)),l("design:paramtypes",[Object,W,i.\u0275Console,Object])],n)).\u0275fac=function(t){return new(t||n)(e.\u0275\u0275inject(r.DOCUMENT),e.\u0275\u0275inject(q),e.\u0275\u0275inject(e.\u0275Console),e.\u0275\u0275inject(z,8))},n.\u0275prov=e.\u0275\u0275defineInjectable({token:n,factory:function(e){return n.\u0275fac(e)}}),n}(A),Q=[],G=[{provide:T,useClass:K,multi:!0,deps:[r.DOCUMENT,q,i.\u0275Console,[new i.Optional,z]]},{provide:q,useClass:W,deps:[]}],Y=Q,$=function(){function t(){}return t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({factory:function(e){return new(e||t)},providers:G}),t}(),X=["alt","control","meta","shift"],J={"\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"},Z={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"},ee={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},te=function(t){function n(e){return t.call(this,e)||this}var o;return s(n,t),o=n,n.prototype.supports=function(e){return null!=o.parseEventName(e)},n.prototype.addEventListener=function(e,t,n){var i=o.parseEventName(t),s=o.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return r.\u0275getDOM().onAndCancel(e,i.domEventName,s)}))},n.parseEventName=function(e){var t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;var r=o._normalizeKey(t.pop()),i="";if(X.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")})),i+=r,0!=t.length||0===r.length)return null;var s={};return s.domEventName=n,s.fullKey=i,s},n.getEventFullKey=function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Z.hasOwnProperty(t)&&(t=Z[t]))}return J[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),X.forEach((function(r){r!=n&&(0,ee[r])(e)&&(t+=r+".")})),t+=n},n.eventCallback=function(e,t,n){return function(r){o.getEventFullKey(r)===e&&n.runGuarded((function(){return t(r)}))}},n._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},(n=o=u([c(0,i.Inject(r.DOCUMENT)),l("design:paramtypes",[Object])],n)).\u0275fac=function(t){return new(t||n)(e.\u0275\u0275inject(r.DOCUMENT))},n.\u0275prov=e.\u0275\u0275defineInjectable({token:n,factory:function(e){return n.\u0275fac(e)}}),n}(A),ne=function(){function e(){}return e.\u0275prov=i.\u0275\u0275defineInjectable({factory:function(){return i.\u0275\u0275inject(ie)},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)},e}();function re(e){return new ie(e.get(r.DOCUMENT))}var ie=function(t){function n(e){var n=t.call(this)||this;return n._doc=e,n}return s(n,t),n.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case i.SecurityContext.NONE:return t;case i.SecurityContext.HTML:return i.\u0275allowSanitizationBypassAndThrow(t,"HTML")?i.\u0275unwrapSafeValue(t):i.\u0275_sanitizeHtml(this._doc,String(t));case i.SecurityContext.STYLE:return i.\u0275allowSanitizationBypassAndThrow(t,"Style")?i.\u0275unwrapSafeValue(t):i.\u0275_sanitizeStyle(t);case i.SecurityContext.SCRIPT:if(i.\u0275allowSanitizationBypassAndThrow(t,"Script"))return i.\u0275unwrapSafeValue(t);throw new Error("unsafe value used in a script context");case i.SecurityContext.URL:return i.\u0275getSanitizationBypassType(t),i.\u0275allowSanitizationBypassAndThrow(t,"URL")?i.\u0275unwrapSafeValue(t):i.\u0275_sanitizeUrl(String(t));case i.SecurityContext.RESOURCE_URL:if(i.\u0275allowSanitizationBypassAndThrow(t,"ResourceURL"))return i.\u0275unwrapSafeValue(t);throw 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)")}},n.prototype.bypassSecurityTrustHtml=function(e){return i.\u0275bypassSanitizationTrustHtml(e)},n.prototype.bypassSecurityTrustStyle=function(e){return i.\u0275bypassSanitizationTrustStyle(e)},n.prototype.bypassSecurityTrustScript=function(e){return i.\u0275bypassSanitizationTrustScript(e)},n.prototype.bypassSecurityTrustUrl=function(e){return i.\u0275bypassSanitizationTrustUrl(e)},n.prototype.bypassSecurityTrustResourceUrl=function(e){return i.\u0275bypassSanitizationTrustResourceUrl(e)},n.\u0275prov=i.\u0275\u0275defineInjectable({factory:function(){return re(i.\u0275\u0275inject(i.INJECTOR))},token:n,providedIn:"root"}),(n=u([c(0,i.Inject(r.DOCUMENT)),l("design:paramtypes",[Object])],n)).\u0275fac=function(t){return new(t||n)(e.\u0275\u0275inject(r.DOCUMENT))},n}(ne);function oe(){h.makeCurrent(),g.init()}function se(){return new i.ErrorHandler}function ae(){return i.\u0275setDocument(document),document}var ue=[{provide:i.PLATFORM_ID,useValue:r.\u0275PLATFORM_BROWSER_ID},{provide:i.PLATFORM_INITIALIZER,useValue:oe,multi:!0},{provide:r.DOCUMENT,useFactory:ae,deps:[]}],ce=[],le=ce,pe=i.createPlatformFactory(i.platformCore,"browser",ue),fe=[le,{provide:i.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:i.ErrorHandler,useFactory:se,deps:[]},{provide:T,useClass:H,multi:!0,deps:[r.DOCUMENT,i.NgZone,i.PLATFORM_ID]},{provide:T,useClass:te,multi:!0,deps:[r.DOCUMENT]},Y,{provide:j,useClass:j,deps:[I,D,i.APP_ID]},{provide:i.RendererFactory2,useExisting:j},{provide:N,useExisting:D},{provide:D,useClass:D,deps:[r.DOCUMENT]},{provide:i.Testability,useClass:i.Testability,deps:[i.NgZone]},{provide:I,useClass:I,deps:[T,i.NgZone]},x],he=function(){function n(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 r;return r=n,n.withServerTransition=function(e){return{ngModule:r,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:v,useExisting:i.APP_ID},y]}},(n=r=u([c(0,i.Optional()),c(0,i.SkipSelf()),c(0,i.Inject(r)),l("design:paramtypes",[Object])],n)).\u0275mod=e.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=e.\u0275\u0275defineInjector({factory:function(t){return new(t||n)(e.\u0275\u0275inject(r,12))},providers:fe,imports:[t.CommonModule,e.ApplicationModule]}),n}();function de(){return new ve(i.\u0275\u0275inject(r.DOCUMENT))}var ve=function(){function t(e){this._doc=e,this._dom=r.\u0275getDOM()}return t.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},t.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}),[]):[]},t.prototype.getTag=function(e){return e&&this._doc.querySelector("meta["+e+"]")||null},t.prototype.getTags=function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta["+e+"]");return t?[].slice.call(t):[]},t.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)},t.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},t.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},t.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");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i},t.prototype._setMetaElementAttributes=function(e,t){return Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])})),t},t.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},t.prototype._containsAttributes=function(e,t){return Object.keys(e).every((function(n){return t.getAttribute(n)===e[n]}))},t.\u0275prov=i.\u0275\u0275defineInjectable({factory:de,token:t,providedIn:"root"}),(t=u([c(0,i.Inject(r.DOCUMENT)),l("design:paramtypes",[Object])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(r.DOCUMENT))},t}();function me(){return new ye(i.\u0275\u0275inject(r.DOCUMENT))}var ye=function(){function t(e){this._doc=e}return t.prototype.getTitle=function(){return this._doc.title},t.prototype.setTitle=function(e){this._doc.title=e||""},t.\u0275prov=i.\u0275\u0275defineInjectable({factory:me,token:t,providedIn:"root"}),(t=u([c(0,i.Inject(r.DOCUMENT)),l("design:paramtypes",[Object])],t)).\u0275fac=function(n){return new(n||t)(e.\u0275\u0275inject(r.DOCUMENT))},t}(),ge="undefined"!=typeof window&&window||{},_e=function(e,t){this.msPerTick=e,this.numTicks=t},be=function(){function e(e){this.appRef=e.injector.get(i.ApplicationRef)}return e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=ge.console.profile;t&&n&&ge.console.profile("Change Detection");for(var i=r.\u0275getDOM().performanceNow(),o=0;o<5||r.\u0275getDOM().performanceNow()-i<500;)this.appRef.tick(),o++;var s=r.\u0275getDOM().performanceNow();t&&n&&ge.console.profileEnd("Change Detection");var a=(s-i)/o;return ge.console.log("ran "+o+" change detection cycles"),ge.console.log(a.toFixed(2)+" ms per check"),new _e(a,o)},e}(),we=function(){function t(){this.store={},this.onSerializeCallbacks={}}var n;return n=t,t.init=function(e){var t=new n;return t.store=e,t},t.prototype.get=function(e,t){return void 0!==this.store[e]?this.store[e]:t},t.prototype.set=function(e,t){this.store[e]=t},t.prototype.remove=function(e){delete this.store[e]},t.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},t.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},t.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)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=e.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Ee(e,t){var n,r=e.getElementById(t+"-state"),i={};if(r&&r.textContent)try{i=JSON.parse((n={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},r.textContent.replace(/&[^;]+;/g,(function(e){return n[e]}))))}catch(o){console.warn("Exception while restoring TransferState for app "+t,o)}return we.init(i)}var Ce=function(){function t(){}return t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({factory:function(e){return new(e||t)},providers:[{provide:we,useFactory:Ee,deps:[r.DOCUMENT,i.APP_ID]}]}),t}(),Se=function(){function e(){}return e.all=function(){return function(){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&function(e,t){return!!r.\u0275getDOM().isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),xe=new i.Version("9.1.12");Object.defineProperty(n,"\u0275getDOM",{enumerable:!0,get:function(){return r.\u0275getDOM}}),n.BrowserModule=he,n.BrowserTransferStateModule=Ce,n.By=Se,n.DomSanitizer=ne,n.EVENT_MANAGER_PLUGINS=T,n.EventManager=I,n.HAMMER_GESTURE_CONFIG=q,n.HAMMER_LOADER=z,n.HammerGestureConfig=W,n.HammerModule=$,n.Meta=ve,n.Title=ye,n.TransferState=we,n.VERSION=xe,n.disableDebugTools=function(){_("profiler",null)},n.enableDebugTools=function(e){return _("profiler",new be(e)),e},n.makeStateKey=function(e){return e},n.platformBrowser=pe,n.\u0275BROWSER_SANITIZATION_PROVIDERS=le,n.\u0275BROWSER_SANITIZATION_PROVIDERS__POST_R3__=ce,n.\u0275BrowserDomAdapter=h,n.\u0275BrowserGetTestability=g,n.\u0275DomEventsPlugin=H,n.\u0275DomRendererFactory2=j,n.\u0275DomSanitizerImpl=ie,n.\u0275DomSharedStylesHost=D,n.\u0275ELEMENT_PROBE_PROVIDERS=x,n.\u0275ELEMENT_PROBE_PROVIDERS__POST_R3__=C,n.\u0275HAMMER_PROVIDERS__POST_R3__=Q,n.\u0275HammerGesturesPlugin=K,n.\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS=ue,n.\u0275KeyEventsPlugin=te,n.\u0275NAMESPACE_URIS=P,n.\u0275SharedStylesHost=N,n.\u0275TRANSITION_ID=v,n.\u0275angular_packages_platform_browser_platform_browser_a=se,n.\u0275angular_packages_platform_browser_platform_browser_b=ae,n.\u0275angular_packages_platform_browser_platform_browser_c=fe,n.\u0275angular_packages_platform_browser_platform_browser_d=de,n.\u0275angular_packages_platform_browser_platform_browser_e=me,n.\u0275angular_packages_platform_browser_platform_browser_f=Ee,n.\u0275angular_packages_platform_browser_platform_browser_g=A,n.\u0275angular_packages_platform_browser_platform_browser_h=G,n.\u0275angular_packages_platform_browser_platform_browser_i=Y,n.\u0275angular_packages_platform_browser_platform_browser_j=re,n.\u0275angular_packages_platform_browser_platform_browser_k=m,n.\u0275angular_packages_platform_browser_platform_browser_l=y,n.\u0275angular_packages_platform_browser_platform_browser_m=E,n.\u0275angular_packages_platform_browser_platform_browser_n=S,n.\u0275angular_packages_platform_browser_platform_browser_o=f,n.\u0275escapeHtml=function(e){var t={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return e.replace(/[&"'<>]/g,(function(e){return t[e]}))},n.\u0275flattenStyles=F,n.\u0275initDomAdapter=oe,n.\u0275shimContentAttribute=M,n.\u0275shimHostAttribute=k,Object.defineProperty(n,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@angular/core"),exports,require("@angular/compiler"),require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@angular/platform-browser-dynamic",["@angular/core","exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],t):t((e=e||self).ng.core,(e.ng=e.ng||{},e.ng.platformBrowserDynamic={}),e.ng.compiler,e.ng.core,e.ng.common,e.ng.platformBrowser)}(this,(function(e,t,n,r,i,o){"use strict";var s=function(e,t){return(s=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 a(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(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 c(){for(var e=[],t=0;t=0;t--)if(void 0!==e[t])return e[t]}var g=r.createPlatformFactory(r.platformCore,"coreDynamic",[{provide:r.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:r.CompilerFactory,useClass:m,deps:[r.COMPILER_OPTIONS]}]),_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}a(n,t),n.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},n.\u0275fac=function(e){return r(e||n)},n.\u0275prov=e.\u0275\u0275defineInjectable({token:n,factory:function(e){return n.\u0275fac(e)}});var r=e.\u0275\u0275getInheritedFactory(n);return n}(n.ResourceLoader),b=[o.\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:n.ResourceLoader,useClass:_,deps:[]}]},multi:!0},{provide:r.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID}],w=function(e){function t(){var t=e.call(this)||this;if(t._cache=r.\u0275global.$templateCache,null==t._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return t}return a(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)},t}(n.ResourceLoader),E=new r.Version("9.1.12"),C=[{provide:n.ResourceLoader,useClass:w,deps:[]}],S=r.createPlatformFactory(g,"browserDynamic",b);t.JitCompilerFactory=m,t.RESOURCE_CACHE_PROVIDER=C,t.VERSION=E,t.platformBrowserDynamic=S,t.\u0275COMPILER_PROVIDERS__POST_R3__=d,t.\u0275CompilerImpl=h,t.\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=b,t.\u0275ResourceLoaderImpl=_,t.\u0275angular_packages_platform_browser_dynamic_platform_browser_dynamic_a=w,t.\u0275platformCoreDynamic=g,Object.defineProperty(t,"__esModule",{value:!0})}));