(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},q8iK:function(t,e){},zUnb:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"audit",function(){return mb}),n.d(r,"auditTime",function(){return _b}),n.d(r,"buffer",function(){return Gg}),n.d(r,"bufferCount",function(){return Yg}),n.d(r,"bufferTime",function(){return $g}),n.d(r,"bufferToggle",function(){return um}),n.d(r,"bufferWhen",function(){return cm}),n.d(r,"catchError",function(){return Sf}),n.d(r,"combineAll",function(){return hm}),n.d(r,"combineLatest",function(){return F_}),n.d(r,"concat",function(){return B_}),n.d(r,"concatAll",function(){return uf}),n.d(r,"concatMap",function(){return Ff}),n.d(r,"concatMapTo",function(){return pm}),n.d(r,"count",function(){return dm}),n.d(r,"debounce",function(){return wm}),n.d(r,"debounceTime",function(){return Sm}),n.d(r,"defaultIfEmpty",function(){return bf}),n.d(r,"delay",function(){return Im}),n.d(r,"delayWhen",function(){return Rm}),n.d(r,"dematerialize",function(){return gm}),n.d(r,"distinct",function(){return Vm}),n.d(r,"distinctUntilChanged",function(){return Hm}),n.d(r,"distinctUntilKeyChanged",function(){return zm}),n.d(r,"elementAt",function(){return tb}),n.d(r,"endWith",function(){return z_}),n.d(r,"every",function(){return Af}),n.d(r,"exhaust",function(){return Wm}),n.d(r,"exhaustMap",function(){return Qm}),n.d(r,"expand",function(){return Xm}),n.d(r,"filter",function(){return sf}),n.d(r,"finalize",function(){return Gf}),n.d(r,"find",function(){return nb}),n.d(r,"findIndex",function(){return ib}),n.d(r,"first",function(){return Nf}),n.d(r,"groupBy",function(){return ub}),n.d(r,"ignoreElements",function(){return hb}),n.d(r,"isEmpty",function(){return vb}),n.d(r,"last",function(){return xf}),n.d(r,"map",function(){return Y}),n.d(r,"mapTo",function(){return Sb}),n.d(r,"materialize",function(){return Tb}),n.d(r,"max",function(){return Nb}),n.d(r,"merge",function(){return q_}),n.d(r,"mergeAll",function(){return ot}),n.d(r,"mergeMap",function(){return tt}),n.d(r,"flatMap",function(){return tt}),n.d(r,"mergeMapTo",function(){return Ob}),n.d(r,"mergeScan",function(){return Pb}),n.d(r,"min",function(){return Mb}),n.d(r,"multicast",function(){return pt}),n.d(r,"observeOn",function(){return Lg}),n.d(r,"onErrorResumeNext",function(){return Vb}),n.d(r,"pairwise",function(){return Hb}),n.d(r,"partition",function(){return qb}),n.d(r,"pluck",function(){return Wb}),n.d(r,"publish",function(){return Gb}),n.d(r,"publishBehavior",function(){return Zb}),n.d(r,"publishLast",function(){return Yb}),n.d(r,"publishReplay",function(){return Qb}),n.d(r,"race",function(){return Kb}),n.d(r,"reduce",function(){return Bf}),n.d(r,"repeat",function(){return Xb}),n.d(r,"repeatWhen",function(){return tw}),n.d(r,"retry",function(){return rw}),n.d(r,"retryWhen",function(){return uw}),n.d(r,"refCount",function(){return st}),n.d(r,"sample",function(){return cw}),n.d(r,"sampleTime",function(){return hw}),n.d(r,"scan",function(){return Lf}),n.d(r,"sequenceEqual",function(){return yw}),n.d(r,"share",function(){return yt}),n.d(r,"shareReplay",function(){return ww}),n.d(r,"single",function(){return _w}),n.d(r,"skip",function(){return Cw}),n.d(r,"skipLast",function(){return kw}),n.d(r,"skipUntil",function(){return Aw}),n.d(r,"skipWhile",function(){return Pw}),n.d(r,"startWith",function(){return Vf}),n.d(r,"subscribeOn",function(){return Fw}),n.d(r,"switchAll",function(){return zw}),n.d(r,"switchMap",function(){return Pf}),n.d(r,"switchMapTo",function(){return Ww}),n.d(r,"take",function(){return Tf}),n.d(r,"takeLast",function(){return hf}),n.d(r,"takeUntil",function(){return Gw}),n.d(r,"takeWhile",function(){return Yw}),n.d(r,"tap",function(){return zf}),n.d(r,"throttle",function(){return $w}),n.d(r,"throttleTime",function(){return n_}),n.d(r,"throwIfEmpty",function(){return vf}),n.d(r,"timeInterval",function(){return u_}),n.d(r,"timeout",function(){return p_}),n.d(r,"timeoutWith",function(){return l_}),n.d(r,"timestamp",function(){return d_}),n.d(r,"toArray",function(){return g_}),n.d(r,"window",function(){return m_}),n.d(r,"windowCount",function(){return __}),n.d(r,"windowTime",function(){return C_}),n.d(r,"windowToggle",function(){return O_}),n.d(r,"windowWhen",function(){return D_}),n.d(r,"withLatestFrom",function(){return V_}),n.d(r,"zip",function(){return W_}),n.d(r,"zipAll",function(){return H_});var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(o=t[s])&&(u=(i<3?o(u):i>3?o(e,n,u):o(e,n))||u);return i>3&&u&&Object.defineProperty(e,n,u),u}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function f(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Q);function rt(t){return t}function ot(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),tt(rt,t)}function it(t,e){return e?J(t,e):new O(F(t))}function ut(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:ot(n)(it(t,r))}function st(){return function(t){return t.lift(new at(t))}}var at=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ct(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(C),lt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new g).add(this.source.subscribe(new ht(this.getSubject(),this))),t.closed&&(this._connection=null,t=g.EMPTY)),t},e.prototype.refCount=function(){return st()(this)},e}(O).prototype,ft={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:lt._subscribe},_isComplete:{value:lt._isComplete,writable:!0},getSubject:{value:lt.getSubject},connect:{value:lt.connect},refCount:{value:lt.refCount}},ht=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(M);function pt(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new dt(r,e));var o=Object.create(n,ft);return o.source=n,o.subjectFactory=r,o}}var dt=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function vt(){return new V}function yt(){return function(t){return st()(pt(vt)(t))}}function gt(t){for(var e in t)if(t[e]===gt)return e;throw Error("Could not find renamed property on target object.")}function mt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var bt=gt({ngComponentDef:gt}),wt=gt({ngInjectableDef:gt}),_t=gt({ngInjectorDef:gt}),xt=gt({ngModuleDef:gt}),St=gt({ngBaseDef:gt}),Ct=gt({__NG_ELEMENT_ID__:gt});function Et(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Tt(t){return t&&t.hasOwnProperty(wt)?t[wt]:null}function kt(t){return t&&t.hasOwnProperty(_t)?t[_t]:null}var It=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?Et({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Nt="__parameters__",At="__prop__metadata__";function Ot(t){return function(){for(var e=[],n=0;n=ce?n:n[Jt]}function Ee(t){return null!==t.template}function Te(t){return t[de]}function ke(t){var e=Te(t);return e?Array.isArray(e)?e:e.lView:null}function Ie(t){return 32767&t}function Ne(t,e){for(var n=t>>16,r=e;n>0;)r=r[ae],n--;return r}var Ae=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt);function Oe(t){for(var e=t[$t];e&&2===e.type;)e=(t=t[ae])[$t];return t}var Re,Pe,De,je,Me=Rt("Inject",function(t){return{token:t}}),Ve=Rt("Optional"),Le=Rt("Self"),Ue=Rt("SkipSelf"),He=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({}),Fe=void 0;function Be(t){var e=Fe;return Fe=t,e}function ze(t){var e=Re;return Re=t,e}function qe(t,e){return void 0===e&&(e=He.Default),(Re||function(t,e){if(void 0===e&&(e=He.Default),void 0===Fe)throw new Error("inject() must be called from an injection context");return null===Fe?We(t,void 0,e):Fe.get(t,e&He.Optional?null:void 0,e)})(t,e)}function We(t,e,n){var r=Tt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&He.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+zt(t)+"]")}function Ge(t){for(var e=[],n=0;n>16,l=o?s+c:t.directiveEnd,f=r?s:s+c;f=a&&h.type===n)return f}if(o){var p=u[a];if(p&&Ee(p)&&p.type===n)return a}return null}(s,e,n,null==r?function(t){return 1==(1&t.flags)}(s)&&dn:r!=u&&3===s.type,o&He.Host&&i===s);return null!==a?Sn(u.data,e,a,s):_n}function Sn(t,e,n,r){var o,i=e[n];if(null!=(o=i)&&"object"==typeof o&&Object.getPrototypeOf(o)==we){var u=i;if(u.resolving)throw new Error("Circular dep for "+_e(t[n]));var s=vn(u.canSeeViewProviders);u.resolving=!0;var a=void 0;u.injectImpl&&(a=ze(u.injectImpl));var c=$e(),l=Je();en(r,e);try{i=e[n]=u.factory(null,t,e,r)}finally{u.injectImpl&&ze(a),vn(s),u.resolving=!1,en(c,l)}}return i}function Cn(t,e,n){var r=64&t,o=32&t;return!!((128&t?r?o?n[e+7]:n[e+6]:o?n[e+5]:n[e+4]:r?o?n[e+3]:n[e+2]:o?n[e+1]:n[e])&1<=ce&&(n=t[$t])&&2===n.type?function(e,n){if(-1===e.index){var r=t[se];return r>-1?t[Kt][r]:null}return t[Kt][e.parent.index]}(n):t[Kt]===e?null:t[Kt]}function zn(t){if(t.length>=ce){var e=t;!function(t){var e,n=t[Qt];null!=n&&null!=(e=n.destroyHooks)&&Xe(t,e)}(e),(o=(r=e)[Qt]&&r[Qt].pipeDestroyHooks)&&Xe(r,o),function(t){var e=t[Qt].cleanup;if(null!=e){for(var n=t[ee],r=0;r=0?n[u]():n[-u].unsubscribe(),r+=2}else"number"==typeof e[r]?(0,n[e[r]])():e[r].call(n[e[r+1]]);t[ee]=null}}(e);var n=e[$t];n&&3===n.type&&Vn(e[ie])&&e[ie].destroy()}var r,o}var qn="@",Wn=Promise.resolve(null);function Gn(t){var e=t[Qt];if(e.firstTemplatePass=!1,fn(!1),!on(t)){var n=sn();(function(t,e,n){!n&&32&t[Yt]&&(Ke(t,e.initHooks,e.checkHooks,n),t[Yt]&=-33)})(t,e,n),function(t){for(var e=Fn(t);null!==e;e=e[Xt])if(e.length ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var u=e[i];o.push(i+":"+("string"==typeof u?JSON.stringify(u):zt(u)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Er,"\n ")}function Ar(t,e){return new Error(Nr(t,e))}var Or=new It("The presence of this token marks an injector as being the root injector."),Rr={},Pr={},Dr=[],jr=void 0;function Mr(){return void 0===jr&&(jr=new yr),jr}var Vr=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1;var o=[];Hr([t],function(t){return r.processInjectorType(t,[],o)}),e&&Hr(e,function(n){return r.processProvider(n,t,e)}),this.records.set(vr,Ur(void 0,this)),this.isRootInjector=this.records.has(Or),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=dr),void 0===n&&(n=He.Default),this.assertNotDestroyed();var r,o=Be(this);try{if(!(n&He.SkipSelf)){var i=this.records.get(t);if(void 0===i){var u=("function"==typeof(r=t)||"object"==typeof r&&r instanceof It)&&Tt(t);u&&this.injectableDefInScope(u)&&(i=Ur(Lr(t),Rr),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return(n&He.Self?Mr():this.parent).get(t,e)}finally{Be(o)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(t=Gt(t)){var o=kt(t),i=null==o&&t.ngModule||void 0,u=void 0===i?t:i,s=-1!==n.indexOf(u),a=void 0!==i&&t.providers||Dr;if(void 0!==i&&(o=kt(i)),null!=o){if(this.injectorDefTypes.add(u),this.records.set(u,Ur(o.factory,Rr)),null!=o.imports&&!s){n.push(u);try{Hr(o.imports,function(t){return r.processInjectorType(t,e,n)})}finally{}}var c=o.providers;if(null!=c&&!s){var l=t;Hr(c,function(t){return r.processProvider(t,l,c)})}var f=t.ngModule;Hr(a,function(t){return r.processProvider(t,f,a)})}}},t.prototype.processProvider=function(t,e,n){var r=Br(t=Gt(t))?t:Gt(t&&t.provide),o=function(t,e,n){var r=function(t,e,n){var r,o=void 0;if(Br(t))return Lr(Gt(t));if(Fr(t))o=function(){return Gt(t.useValue)};else if((r=t)&&r.useExisting)o=function(){return qe(Gt(t.useExisting))};else if(t&&t.useFactory)o=function(){return t.useFactory.apply(t,f(Ge(t.deps||[])))};else{var i=Gt(t&&(t.useClass||t.provide));if(!i){var u="";throw e&&n&&(u=" - only instances of Provider and Type are allowed, got: ["+n.map(function(e){return e==t?"?"+t+"?":"..."}).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+zt(e)+"'"+u)}if(!t.deps)return Lr(i);o=function(){return new(i.bind.apply(i,f([void 0],Ge(t.deps))))}}return o}(t,e,n);return Fr(t)?Ur(void 0,t.useValue):Ur(r,Rr)}(t,e,n);if(Br(t)||!0!==t.multi){var i=this.records.get(r);if(i&&void 0!==i.multi)throw new Error("Mixed multi-provider for "+zt(r))}else{var u=this.records.get(r);if(u){if(void 0===u.multi)throw new Error("Mixed multi-provider for "+r+".")}else(u=Ur(void 0,Rr,!0)).factory=function(){return Ge(u.multi)},this.records.set(r,u);r=t,u.multi.push(t)}this.records.set(r,o)},t.prototype.hydrate=function(t,e){if(e.value===Pr)throw new Error("Cannot instantiate cyclic dependency! "+zt(t));var n;return e.value===Rr&&(e.value=Pr,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Lr(t){var e=Tt(t);if(null===e){var n=kt(t);if(null!==n)return n.factory;if(t instanceof It)throw new Error("Token "+zt(t)+" is missing an ngInjectableDef definition.");if(t instanceof Function){var r=t.length;if(r>0){var o=new Array(r).fill("?");throw new Error("Can't resolve all parameters for "+zt(t)+": ("+o.join(", ")+").")}return function(){return new t}}throw new Error("unreachable")}return e.factory}function Ur(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Hr(t,e){t.forEach(function(t){return Array.isArray(t)?Hr(t,e):e(t)})}function Fr(t){return t&&"object"==typeof t&&Sr in t}function Br(t){return"function"==typeof t}var zr=function(){return function(){}}(),qr=function(){return function(){}}();function Wr(t){var e=Error("No component factory found for "+zt(t)+". Did you add it to @NgModule.entryComponents?");return e[Zr]=t,e}var Gr,Zr="ngComponent",Qr=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Wr(t)},t}(),Yr=function(){function t(){}return t.NULL=new Qr,t}(),Kr=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}var e,n;Vn(n=(e=this._lView)[ie])&&n.destroyNode&&function(t,n,r,o,i){for(var u=e[Qt].node,s=-1,a=e,c=u.child;c;){var l=null;if(3===c.type){Hn(2,r,null,Se(c,a),i);var f=a[c.index];v=f,Array.isArray(v)&&v.length===pe&&Hn(2,r,null,f[he],i)}else if(0===c.type){var h=a[c.index];Hn(2,r,null,h[he],i),h[fe].length&&(l=(a=h[fe][0])[Qt].node,i=h[he])}else if(1===c.type){var p=Oe(a),d=p[$t].projection[c.projection];Un[++s]=c,Un[++s]=a,d&&(l=(a=p[Kt])[Qt].data[d.index])}else l=c.child;if(null===l)for(null===c.next&&2&c.flags&&(a=Un[s--],c=Un[s--]),l=c.next;!l;){if(null===(c=c.parent||a[Qt].node)||c===u)return null;0===c.type&&(i=(a=a[Kt])[c.index][he]),l=2===c.type&&a[Xt]?(a=a[Xt])[Qt].node:c.next}c=l}var v}(0,0,n),function(t){if(-1===t[Qt].childIndex)return zn(t);for(var e=Fn(t);e;){var n=null;if(e.length>=ce?e[Qt].childIndex>-1&&(n=Fn(e)):e[fe].length&&(n=e[fe][0]),null==n){for(;e&&!e[Xt]&&e!==t;)zn(e),e=Bn(e,t);zn(e||t),n=e&&e[Xt]}e=n}}(e),e[Yt]|=64},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[ee]||(t[ee]=[])}(e=this._lView).push(n),e[Qt].firstTemplatePass&&function(t){return t[Qt].cleanup||(t[Qt].cleanup=[])}(e).push(e[ee].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(;t&&!(128&t[Yt]);)t[Yt]|=8,t=t[Kt];var e,n,r;t[Yt]|=8,r=0===(e=t[ne]).flags,e.flags|=1,r&&e.clean==Wn&&(e.clean=new Promise(function(t){return n=t}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,nr(e)),2&e.flags){e.flags&=-3;var t=e.playerHandler;t&&t.flushPlayers()}e.clean=Wn,n(null)}))}(this._lView)},t.prototype.detach=function(){this._lView[Yt]&=-17},t.prototype.reattach=function(){this._lView[Yt]|=16},t.prototype.detectChanges=function(){rr(this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t){an(!0);try{!function(t){rr(function(t){var e,n=Te(t);if(Array.isArray(n)){var r=function(t,e){var n=t[Qt].components;if(n)for(var r=0;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Po.hasOwnProperty(e)&&!No.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Fo(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Uo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ho=/([^\#-~ |!])/g;function Fo(t){return t.replace(/&/g,"&").replace(Uo,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ho,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Bo(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var zo={provide:Yr,useClass:fo,deps:[Jr]},qo=function(t){function e(e,n){var r=t.call(this)||this;r._parent=n,r._bootstrapComponents=[],r.injector=r,r.destroyCbs=[];var o=function(t,n){var r=e[xt]||null;return r}();return r._bootstrapComponents=o.bootstrap,r._r3Injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Mr(),new Vr(t,n,e)}(e,n,[{provide:Jr,useValue:r},zo]),r.instance=r.get(e),r}return i(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=gr.THROW_IF_NOT_FOUND),void 0===n&&(n=He.Default),t===gr||t===Jr||t===vr?this:this._r3Injector.get(t,e,n)},Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Yr)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Jr);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}i(e,t),e.prototype.create=function(t){return new qo(this.moduleType,t)}}($r);var Wo=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return i(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},u=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(u=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var s=t.prototype.subscribe.call(this,o,i,u);return e instanceof g&&e.add(s),s},e}(V),Go=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Zo(t,eo)},t}(),Zo=fr,Qo=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Yo=/^url\(([^)]+)\)$/,Ko=function(){return function(){}}(),Xo=Pt("Input",function(t){return{bindingPropertyName:t}},void 0,function(t){return function(t,e){for(var n=[],r=2;r0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Hi=function(){function t(){this._applications=new Map,Fi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Fi.findTestabilityInTree(this,t,e)},s([a("design:paramtypes",[])],t)}(),Fi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Bi=new It("AllowMultipleToken"),zi=function(){return function(t,e){this.name=t,this.token=e}}();function qi(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new It(r);return function(e){void 0===e&&(e=[]);var i=Wi();if(!i||i.injector.get(Bi,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var u=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Vi&&!Vi.destroyed&&!Vi.injector.get(Bi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vi=t.get(Gi);var e=t.get(pi,null);e&&e.forEach(function(t){return t()})}(gr.create({providers:u,name:r}))}return function(t){var e=Wi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Wi(){return Vi&&!Vi.destroyed?Vi:null}var Gi=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Li:("zone.js"===n?void 0:n)||new Oi({enableLongStackTrace:_o()}),i=[{provide:Oi,useValue:o}];return o.run(function(){var e=gr.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),u=n.injector.get(ii,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Yi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){u.handleError(t)}})}),function(t,e,o){try{var i=((u=n.injector.get(ci)).runInitializers(),u.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ui(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var u}(u,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Zi({},e);return function(t,e,n){return t.get(Ei).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Qi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+zt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Zi(t,e){return Array.isArray(e)?e.reduce(Zi,t):u({},t,e)}var Qi=function(){function t(t,e,n,r,o,i){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=_o(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var s=new O(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),a=new O(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){Oi.assertNotInAngularZone(),Ft(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Oi.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=ut(s,a.pipe(yt()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof qr?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Xr?null:this._injector.get(Jr),i=n.create(gr.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var u=i.injector.get(Ui,null);return u&&i.injector.get(Hi).registerApplication(i.location.nativeElement,u),this._loadComponent(i),_o()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Ai(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Yi(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(vi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Yi(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Ni("ApplicationRef#tick()"),t}();function Yi(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Ki=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Wo,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Ht()]=function(){return this._results[Ht()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Xi=function(){return function(){}}(),Ji={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},$i=function(){function t(t,e){this._compiler=t,this._config=e||Ji}return t.prototype.load=function(t){return this._compiler instanceof Ci?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=l(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return tu(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=l(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return tu(t,r,o)})},t}();function tu(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var eu,nu=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ru(t,eo)},t}(),ru=fr,ou=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return iu()},t}(),iu=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:l,token:e.token},t._providers[l]=Is,t._providers[l]=Ds(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Be(i)}}function Ds(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Ps(t,n[0]));case 2:return new e(Ps(t,n[0]),Ps(t,n[1]));case 3:return new e(Ps(t,n[0]),Ps(t,n[1]),Ps(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Us(n,e),Hu.dirtyParentQueries(r),Vs(r),r}function Ms(t,e,n){var r=e?is(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);ds(n,2,o,i,void 0)}function Vs(t){ds(t,3,null,null,void 0)}function Ls(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Us(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Hs=new Object;function Fs(t,e,n,r,o,i){return new Bs(t,e,n,r,o,i)}var Bs=function(t){function e(e,n,r,o,i,u){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=u,s.viewDefFactory=r,s}return i(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=ps(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,u=Hu.createRootView(t,e||[],n,o,r,Hs),s=Vu(u,i).instance;return n&&u.renderer.setAttribute(Mu(u,0).renderElement,"ng-version",lo.full),new zs(u,new Zs(u),s)},e}(qr),zs=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return i(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new eo(Mu(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xs(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(zr);function qs(t,e,n){return new Ws(t,e,n)}var Ws=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new eo(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xs(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=os(t),t=t.parent;return t?new Xs(t,e):new Xs(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=js(this._data,t);Hu.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Zs(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Xr||(o=i.get(Jr));var u=t.create(i,r,void 0,o);return this.insert(u.hostView,e),u},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,u=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=u._view).viewContainerParent=this._view,Ls(i,r,o),function(t,e){var n=rs(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Hu.dirtyParentQueries(o),Ms(n,r>0?i[r-1]:null,o),u.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,u,s=this._embeddedViews.indexOf(t._view);return o=e,u=(i=(n=this._data).viewContainer._embeddedViews)[r=s],Us(i,r),null==o&&(o=i.length),Ls(i,o,u),Hu.dirtyParentQueries(u),Vs(u),Ms(n,o>0?i[o-1]:null,u),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=js(this._data,t);e&&Hu.destroyView(e)},t.prototype.detach=function(t){var e=js(this._data,t);return e?new Zs(e):null},t}();function Gs(t){return new Zs(t)}var Zs=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ds(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){ts(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Hu.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Hu.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Hu.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Vs(this._view),Hu.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Qs(t,e){return new Ys(t,e)}var Ys=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return i(e,t),e.prototype.createEmbeddedView=function(t){return new Zs(Hu.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new eo(Mu(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Go);function Ks(t,e){return new Xs(t,e)}var Xs=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=gr.THROW_IF_NOT_FOUND),Hu.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Gu(t)},e)},t}();function Js(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Mu(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return ju(t,n.nodeIndex).renderText;if(20240&n.flags)return Vu(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function $s(t){return new ta(t.renderer)}var ta=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=l(ws(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return ma(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(wa(t,e,n,o[0]));case 2:return r(wa(t,e,n,o[0]),wa(t,e,n,o[1]));case 3:return r(wa(t,e,n,o[0]),wa(t,e,n,o[1]),wa(t,e,n,o[2]));default:for(var u=Array(i),s=0;s0)c=v,Va(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var m=c.parent;m&&(m.childFlags|=c.childFlags,m.childMatchedQueries|=c.childMatchedQueries),l=(c=m)&&Va(c)?c.renderParent:c}}return{factory:null,nodeFlags:u,rootNodeFlags:s,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||qu,updateRenderer:r||qu,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function Va(t){return 0!=(1&t.flags)&&null===t.element.name}function La(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Ua(t,e,n,r){var o=Ba(t.root,t.renderer,t,e,n);return za(o,t.component,r),qa(o),o}function Ha(t,e,n){var r=Ba(t,t.renderer,null,null,e);return za(r,n,n),qa(r),r}function Fa(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Ba(t.root,o,t,e.element.componentProvider,n)}function Ba(t,e,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:u,initIndex:-1}}function za(t,e,n){t.component=e,t.context=n}function qa(t){var e;us(t)&&(e=Mu(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&ks(t,e,0,n)&&(p=!0),h>1&&ks(t,e,1,r)&&(p=!0),h>2&&ks(t,e,2,o)&&(p=!0),h>3&&ks(t,e,3,i)&&(p=!0),h>4&&ks(t,e,4,u)&&(p=!0),h>5&&ks(t,e,5,s)&&(p=!0),h>6&&ks(t,e,6,a)&&(p=!0),h>7&&ks(t,e,7,c)&&(p=!0),h>8&&ks(t,e,8,l)&&(p=!0),h>9&&ks(t,e,9,f)&&(p=!0),p}(t,e,n,r,o,i,u,s,a,c,l,f);case 2:return function(t,e,n,r,o,i,u,s,a,c,l,f){var h=!1,p=e.bindings,d=p.length;if(d>0&&Ju(t,e,0,n)&&(h=!0),d>1&&Ju(t,e,1,r)&&(h=!0),d>2&&Ju(t,e,2,o)&&(h=!0),d>3&&Ju(t,e,3,i)&&(h=!0),d>4&&Ju(t,e,4,u)&&(h=!0),d>5&&Ju(t,e,5,s)&&(h=!0),d>6&&Ju(t,e,6,a)&&(h=!0),d>7&&Ju(t,e,7,c)&&(h=!0),d>8&&Ju(t,e,8,l)&&(h=!0),d>9&&Ju(t,e,9,f)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=ja(n,p[0])),d>1&&(v+=ja(r,p[1])),d>2&&(v+=ja(o,p[2])),d>3&&(v+=ja(i,p[3])),d>4&&(v+=ja(u,p[4])),d>5&&(v+=ja(s,p[5])),d>6&&(v+=ja(a,p[6])),d>7&&(v+=ja(c,p[7])),d>8&&(v+=ja(l,p[8])),d>9&&(v+=ja(f,p[9]));var y=ju(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}(t,e,n,r,o,i,u,s,a,c,l,f);case 16384:return function(t,e,n,r,o,i,u,s,a,c,l,f){var h=Vu(t,e.nodeIndex),p=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&Xu(t,e,0,n)&&(d=!0,v=xa(t,h,e,0,n,v)),y>1&&Xu(t,e,1,r)&&(d=!0,v=xa(t,h,e,1,r,v)),y>2&&Xu(t,e,2,o)&&(d=!0,v=xa(t,h,e,2,o,v)),y>3&&Xu(t,e,3,i)&&(d=!0,v=xa(t,h,e,3,i,v)),y>4&&Xu(t,e,4,u)&&(d=!0,v=xa(t,h,e,4,u,v)),y>5&&Xu(t,e,5,s)&&(d=!0,v=xa(t,h,e,5,s,v)),y>6&&Xu(t,e,6,a)&&(d=!0,v=xa(t,h,e,6,a,v)),y>7&&Xu(t,e,7,c)&&(d=!0,v=xa(t,h,e,7,c,v)),y>8&&Xu(t,e,8,l)&&(d=!0,v=xa(t,h,e,8,l,v)),y>9&&Xu(t,e,9,f)&&(d=!0,v=xa(t,h,e,9,f,v)),v&&p.ngOnChanges(v),65536&e.flags&&Du(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),d}(t,e,n,r,o,i,u,s,a,c,l,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,u,s,a,c,l,f){var h=e.bindings,p=!1,d=h.length;if(d>0&&Ju(t,e,0,n)&&(p=!0),d>1&&Ju(t,e,1,r)&&(p=!0),d>2&&Ju(t,e,2,o)&&(p=!0),d>3&&Ju(t,e,3,i)&&(p=!0),d>4&&Ju(t,e,4,u)&&(p=!0),d>5&&Ju(t,e,5,s)&&(p=!0),d>6&&Ju(t,e,6,a)&&(p=!0),d>7&&Ju(t,e,7,c)&&(p=!0),d>8&&Ju(t,e,8,l)&&(p=!0),d>9&&Ju(t,e,9,f)&&(p=!0),p){var v=Lu(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=u),d>5&&(y[5]=s),d>6&&(y[6]=a),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=f);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=u),d>5&&(y[h[5].name]=s),d>6&&(y[h[6].name]=a),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=f);break;case 128:var g=n;switch(d){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,u);break;case 6:y=g.transform(r,o,i,u,s);break;case 7:y=g.transform(r,o,i,u,s,a);break;case 8:y=g.transform(r,o,i,u,s,a,c);break;case 9:y=g.transform(r,o,i,u,s,a,c,l);break;case 10:y=g.transform(r,o,i,u,s,a,c,l,f)}}v.value=y}return p}(t,e,n,r,o,i,u,s,a,c,l,f);default:throw"unreachable"}}(t,e,r,o,i,u,s,a,c,l,h,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&$u(t,e,0,n),h>1&&$u(t,e,1,r),h>2&&$u(t,e,2,o),h>3&&$u(t,e,3,i),h>4&&$u(t,e,4,u),h>5&&$u(t,e,5,s),h>6&&$u(t,e,6,a),h>7&&$u(t,e,7,c),h>8&&$u(t,e,8,l),h>9&&$u(t,e,9,f)}(t,e,r,o,i,u,s,a,c,l,f,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);hc.forEach(function(e,r){if(i.has(Tt(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:ls(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Gu(r)]=o}})}}(t=t.factory(function(){return qu})),t):t}(r))}var fc=new Map,hc=new Map,pc=new Map;function dc(t){var e;fc.set(t.token,t),"function"==typeof t.token&&(e=Tt(t.token))&&"function"==typeof e.providedIn&&hc.set(t.token,t)}function vc(t,e){var n=ps(e.viewDefFactory),r=ps(n.nodes[0].element.componentView);pc.set(t,r)}function yc(){fc.clear(),hc.clear(),pc.clear()}function gc(t){if(0===fc.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Kc.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Kc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Kc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Qc),$c=function(t){function e(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 i(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Kc.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Kc.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Kc.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Kc.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Qc),tl=void 0,el=["en",[["a","p"],["AM","PM"],tl],[["AM","PM"],tl,tl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],tl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],tl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",tl,"{1} 'at' {0}",tl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],nl={},rl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),ol=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),il=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),ul=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),sl=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function al(t,e){return pl(vl(t)[10],e)}function cl(t,e){return pl(vl(t)[11],e)}function ll(t,e){return pl(vl(t)[12],e)}function fl(t,e){var n=vl(t),r=n[13][e];if(void 0===r){if(e===sl.CurrencyDecimal)return n[13][sl.Decimal];if(e===sl.CurrencyGroup)return n[13][sl.Group]}return r}function hl(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function pl(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function dl(t){var e=l(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function vl(t){var e=t.toLowerCase().replace(/_/g,"-"),n=nl[e];if(n)return n;var r=e.split("-")[0];if(n=nl[r])return n;if("en"===r)return el;throw new Error('Missing locale data for the locale "'+t+'".')}var yl=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,gl={},ml=/((?:[^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]*)/,bl=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),wl=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),_l=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function xl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Sl(t,e,n,r,o){void 0===n&&(n="-");var i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));for(var u=String(t);u.length0||a>-n)&&(a+=n),t===wl.Hours)0===a&&-12===n&&(a=12);else if(t===wl.FractionalSeconds)return s=e,Sl(a,3).substr(0,s);var c=fl(u,sl.MinusSign);return Sl(a,e,c,r,o)}}function El(t,e,n,r){return void 0===n&&(n=ol.Format),void 0===r&&(r=!1),function(o,i){return function(t,e,n,r,o,i){switch(n){case _l.Months:return function(t,e,n){var r=vl(t),o=pl([r[5],r[6]],e);return pl(o,n)}(e,o,r)[t.getMonth()];case _l.Days:return function(t,e,n){var r=vl(t),o=pl([r[3],r[4]],e);return pl(o,n)}(e,o,r)[t.getDay()];case _l.DayPeriods:var u=t.getHours(),s=t.getMinutes();if(i){var a,c=function(t){var e=vl(t);return hl(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?dl(t):[dl(t[0]),dl(t[1])]})}(e),l=function(t,e,n){var r=vl(t);hl(r);var o=pl([r[19][0],r[19][1]],e)||[];return pl(o,n)||[]}(e,o,r);if(c.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],o=r.hours;u>=n.hours&&s>=n.minutes&&(u0?Math.floor(o/60):Math.ceil(o/60);switch(t){case bl.Short:return(o>=0?"+":"")+Sl(u,2,i)+Sl(Math.abs(o%60),2,i);case bl.ShortGMT:return"GMT"+(o>=0?"+":"")+Sl(u,1,i);case bl.Long:return"GMT"+(o>=0?"+":"")+Sl(u,2,i)+":"+Sl(Math.abs(o%60),2,i);case bl.Extended:return 0===r?"Z":(o>=0?"+":"")+Sl(u,2,i)+":"+Sl(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'+t+'"')}}}var kl=0,Il=4;function Nl(t,e){return void 0===e&&(e=!1),function(n,r){var o,i,u,s;if(e){var a=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();o=1+Math.floor((c+a)/7)}else{var l=(u=n.getFullYear(),s=new Date(u,kl,1).getDay(),new Date(u,0,1+(s<=Il?Il:Il+7)-s)),f=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(Il-i.getDay()))).getTime()-l.getTime();o=1+Math.round(f/6048e5)}return Sl(o,t,fl(r,sl.MinusSign))}}var Al={};function Ol(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Rl(t){return t instanceof Date&&!isNaN(t.valueOf())}var Pl=new It("UseV4Plurals"),Dl=function(){return function(){}}(),jl=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return i(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return vl(t)[18]}(e||this.locale)(t)){case rl.Zero:return"zero";case rl.One:return"one";case rl.Two:return"two";case rl.Few:return"few";case rl.Many:return"many";default:return"other"}},e}(Dl),Ml=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Vl=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){_o()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Ml(null,e._ngForOf,-1,-1),o),u=new Ll(t,i);n.push(u)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),u=new Ll(t,i),n.push(u))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?sf(function(e,n){return t(e,n,r)}):rt,hf(1),n?bf(e):vf(function(){return new Xl}))}}function Sf(t){return function(e){var n=new Cf(t),r=e.lift(n);return n.caught=r}}var Cf=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ef(t,this.selector,this.caught))},t}(),Ef=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new H(this,void 0,void 0);this.add(r),Z(this,n,void 0,void 0,r)}},e}(Q);function Tf(t){return function(e){return 0===t?rf():e.lift(new kf(t))}}var kf=function(){function t(t){if(this.total=t,this.total<0)throw new ff}return t.prototype.call=function(t,e){return e.subscribe(new If(t,this.total))},t}(),If=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(C);function Nf(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?sf(function(e,n){return t(e,n,r)}):rt,Tf(1),n?bf(e):vf(function(){return new Xl}))}}function Af(t,e){return function(n){return n.lift(new Of(t,e,n))}}var Of=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Rf(t,this.predicate,this.thisArg,this.source))},t}(),Rf=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(C);function Pf(t,e){return"function"==typeof e?function(n){return n.pipe(Pf(function(n,r){return $(t(n,r)).pipe(Y(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Df(t))}}var Df=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new jf(t,this.project))},t}(),jf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return i(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new H(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Z(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(Q);function Mf(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new Uf(t,e,n))}}var Uf=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Hf(t,this.accumulator,this.seed,this.hasSeed))},t}(),Hf=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(C);function Ff(t,e){return tt(t,e,1)}function Bf(t,e){return arguments.length>=2?function(n){return N(Lf(t,e),hf(1),bf(e))(n)}:function(e){return N(Lf(function(e,n,r){return t(e,n,r+1)}),hf(1))(e)}}function zf(t,e,n){return function(r){return r.lift(new qf(t,e,n))}}var qf=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Wf(t,this.nextOrObserver,this.error,this.complete))},t}(),Wf=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=I,i._tapError=I,i._tapComplete=I,i._tapError=r||I,i._tapComplete=o||I,d(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||I,i._tapError=n.error||I,i._tapComplete=n.complete||I),i}return i(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(C);function Gf(t){return function(e){return e.lift(new Zf(t))}}var Zf=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Qf(t,this.callback))},t}(),Qf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new g(n)),r}return i(e,t),e}(C),Yf=null;function Kf(){return Yf}var Xf,Jf={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},$f={"\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"},th={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"};Vt.Node&&(Xf=Vt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var eh,nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Yf||(Yf=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,f(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Jf},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Xf.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;u||(u=t[i]=[]);var a=Mh(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:a,handler:o});else{for(var c=!1,l=0;l-1},e}(vh),qh=["alt","control","meta","shift"],Wh={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Gh=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Kf().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(qh.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},e.getEventFullKey=function(t){var e="",n=Kf().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),qh.forEach(function(r){r!=n&&(0,Wh[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(vh),Zh=function(){return function(){}}(),Qh=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case ao.NONE:return e;case ao.HTML:return e instanceof Kh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Io=Io||new xo(t);var r=e?String(e):"";n=Io.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Io.getInertBodyElement(r)}while(r!==i);var u=new Lo,s=u.sanitizeChildren(Bo(n)||n);return _o()&&u.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var a=Bo(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(e)));case ao.STYLE:return e instanceof Xh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Yo);return e&&Eo(e[1])===e[1]||t.match(Qo)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Mp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Vp(t){return si(t)?t:ui(t)?$(Promise.resolve(t)):Ql(t)}function Lp(t,e,n){return n?function(t,e){return Pp(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Bp(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Bp(u=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Bp(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var u=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Bp(n.segments,u)&&!!n.children[xp]&&e(n.children[xp],r,s)}(e,n,n.segments)}(t.root,e.root)}var Up=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Cp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Gp.serialize(this)},t}(),Hp=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Mp(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Zp(this)},t}(),Fp=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Cp(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return $p(this)},t}();function Bp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function zp(t,e){var n=[];return Mp(t.children,function(t,r){r===xp&&(n=n.concat(e(t,r)))}),Mp(t.children,function(t,r){r!==xp&&(n=n.concat(e(t,r)))}),n}var qp=function(){return function(){}}(),Wp=function(){function t(){}return t.prototype.parse=function(t){var e=new od(t);return new Up(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Zp(e);if(n){var r=e.children[xp]?t(e.children[xp],!1):"",o=[];return Mp(e.children,function(e,n){n!==xp&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=zp(e,function(n,r){return r===xp?[t(e.children[xp],!1)]:[r+":"+t(n,!1)]});return Zp(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Yp(t)+"="+Yp(e)}).join("&"):Yp(t)+"="+Yp(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Gp=new Wp;function Zp(t){return t.segments.map(function(t){return $p(t)}).join("/")}function Qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yp(t){return Qp(t).replace(/%3B/gi,";")}function Kp(t){return Qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xp(t){return decodeURIComponent(t)}function Jp(t){return Xp(t.replace(/\+/g,"%20"))}function $p(t){return""+Kp(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Kp(t)+"="+Kp(e[t])}).join(""));var e}var td=/^[^\/()?;=#]+/;function ed(t){var e=t.match(td);return e?e[0]:""}var nd=/^[^=?&#]+/,rd=/^[^?&#]+/,od=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Hp([],{}):new Hp([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[xp]=new Hp(t,e)),n},t.prototype.parseSegment=function(){var t=ed(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Fp(Xp(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=ed(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=ed(this.remaining);r&&this.capture(n=r)}t[Xp(e)]=Xp(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(nd))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(rd);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Jp(n),u=Jp(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(u)}else t[i]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=ed(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=xp);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[xp]:new Hp([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),id=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=ud(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=ud(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=sd(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return sd(t,this._root).map(function(t){return t.value})},t}();function ud(t,e){var n,r;if(t===e.value)return e;try{for(var o=c(e.children),i=o.next();!i.done;i=o.next()){var u=ud(t,i.value);if(u)return u}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function sd(t,e){var n,r;if(t===e.value)return[e];try{for(var o=c(e.children),i=o.next();!i.done;i=o.next()){var u=sd(t,i.value);if(u.length)return u.unshift(e),u}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var ad=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function cd(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var ld=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,yd(r,e),r}return i(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(id);function fd(t,e){var n=function(t,e){var n=new dd([],{},{},"",{},xp,e,null,t.root,-1,{});return new vd("",new ad(n,[]))}(t,e),r=new Yl([new Fp("",{})]),o=new Yl({}),i=new Yl({}),u=new Yl({}),s=new Yl(""),a=new hd(r,o,u,s,i,xp,e,n.root);return a.snapshot=n.root,new ld(new ad(a,[]),n)}var hd=function(){function t(t,e,n,r,o,i,u,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Y(function(t){return Cp(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(function(t){return Cp(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function pd(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:u({},t.params,e.params),data:u({},t.data,e.data),resolve:u({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var dd=function(){function t(t,e,n,r,o,i,u,s,a,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this.routeConfig=s,this._urlSegment=a,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Cp(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Cp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),vd=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,yd(r,n),r}return i(e,t),e.prototype.toString=function(){return gd(this._root)},e}(id);function yd(t,e){e.value._routerState=t,e.children.forEach(function(e){return yd(t,e)})}function gd(t){var e=t.children.length>0?" { "+t.children.map(gd).join(", ")+" } ":"";return""+t.value+e}function md(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Pp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Pp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&wd(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==jp(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Sd=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Cd(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[xp]:""+t}function Ed(t,e,n){if(t||(t=new Hp([],{})),0===t.segments.length&&t.hasChildren())return Td(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var u=t.segments[o],s=Cd(n[r]),a=r0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ad(s,a,u))return i;r+=2}else{if(!Ad(s,{},u))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Hp([],((r={})[xp]=t,r)):t;return new Up(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Y(function(t){return new Hp([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Ql({});var i=[],u=[],s={};return Mp(n,function(n,o){var a,c,l=(a=o,c=n,r.expandSegmentGroup(t,e,c,a)).pipe(Y(function(t){return s[o]=t}));o===xp?i.push(l):u.push(l)}),Ql.apply(null,i.concat(u)).pipe(uf(),xf(),Y(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var u=this;return Ql.apply(void 0,f(n)).pipe(Y(function(s){return u.expandSegmentAgainstRoute(t,e,n,s,r,o,i).pipe(Sf(function(t){if(t instanceof jd)return Ql(null);throw t}))}),uf(),Nf(function(t){return!!t}),Sf(function(t,n){if(t instanceof Xl||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,r,o))return Ql(new Hp([],{}));throw new jd(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,u){return qd(r)!==i?Vd(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Vd(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ld(i):this.lineralizeSegments(n,i).pipe(tt(function(n){var i=new Hp(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var u=this,s=Fd(e,r,o),a=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return Vd(e);var f=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?Ld(f):this.lineralizeSegments(r,f).pipe(tt(function(r){return u.expandSegment(t,e,n,r.concat(o.slice(c)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Y(function(t){return n._loadedConfig=t,new Hp(r,{})})):Ql(new Hp(r,{}));var i=Fd(e,n,r),s=i.consumedSegments,a=i.lastChild;if(!i.matched)return Vd(e);var l=r.slice(a);return this.getChildConfig(t,n,r).pipe(tt(function(t){var n=t.module,r=t.routes,i=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return zd(t,e,n)&&qd(n)!==xp})}(t,n)?{segmentGroup:Bd(new Hp(e,function(t,e){var n,r,o={};o[xp]=e;try{for(var i=c(t),u=i.next();!u.done;u=i.next()){var s=u.value;""===s.path&&qd(s)!==xp&&(o[qd(s)]=new Hp([],{}))}}catch(a){n={error:a}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Hp(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return zd(t,e,n)})}(t,n)?{segmentGroup:Bd(new Hp(t.segments,function(t,e,n,r){var o,i,s={};try{for(var a=c(n),l=a.next();!l.done;l=a.next()){var f=l.value;zd(t,e,f)&&!r[qd(f)]&&(s[qd(f)]=new Hp([],{}))}}catch(h){o={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return u({},r,s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,l,r),a=i.segmentGroup,f=i.slicedSegments;return 0===f.length&&a.hasChildren()?o.expandChildren(n,r,a).pipe(Y(function(t){return new Hp(s,t)})):0===r.length&&0===f.length?Ql(new Hp(s,{})):o.expandSegment(n,a,r,f,xp,!0).pipe(Y(function(t){return new Hp(s.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Ql(new Ip(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ql(e._loadedConfig):function(t,e,n){var r=e.canLoad;return r&&0!==r.length?$(r).pipe(Y(function(r){var o,i=t.get(r);if(function(t){return t&&Pd(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Pd(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Vp(o)})).pipe(uf(),Af(function(t){return!0===t})):Ql(!0)}(t.injector,e,n).pipe(tt(function(n){return n?r.configLoader.load(t.injector,e).pipe(Y(function(t){return e._loadedConfig=t,t})):function(t){return new O(function(e){return e.error(Tp("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Ql(new Ip([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ql(n);if(r.numberOfChildren>1||!r.children[xp])return Ud(t.redirectTo);r=r.children[xp]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Up(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Mp(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),u={};return Mp(e.children,function(e,i){u[i]=o.createSegmentGroup(t,e,n,r)}),new Hp(i,u)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=c(e),u=i.next();!u.done;u=i.next()){var s=u.value;if(s.path===t.path)return e.splice(o),s;o++}}catch(a){n={error:a}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Fd(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||kp)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Bd(t){if(1===t.numberOfChildren&&t.children[xp]){var e=t.children[xp];return new Hp(t.segments.concat(e.segments),e.children)}return t}function zd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function qd(t){return t.outlet||xp}var Wd=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Gd=function(){return function(t,e){this.component=t,this.route=e}}();function Zd(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Qd(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=cd(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,u=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(u&&i.routeConfig===u.routeConfig){var a=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Bp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bp(t.url,e.url)||!Pp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bd(t,e)||!Pp(t.queryParams,e.queryParams);case"paramsChange":default:return!bd(t,e)}}(u,i,i.routeConfig.runGuardsAndResolvers);a?o.canActivateChecks.push(new Wd(r)):(i.data=u.data,i._resolvedData=u._resolvedData),Qd(t,e,i.component?s?s.children:null:n,r,o),a&&o.canDeactivateChecks.push(new Gd(s&&s.outlet&&s.outlet.component||null,u))}else u&&Yd(e,s,o),o.canActivateChecks.push(new Wd(r)),Qd(t,null,i.component?s?s.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),Mp(i,function(t,e){return Yd(t,n.getContext(e),o)}),o}function Yd(t,e,n){var r=cd(t),o=t.value;Mp(r,function(t,r){Yd(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Gd(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var Kd=Symbol("INITIAL_VALUE");function Xd(){return Pf(function(t){return $l.apply(void 0,f(t.map(function(t){return t.pipe(Tf(1),Vf(Kd))}))).pipe(Lf(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==Kd)return t;if(r===Kd&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||Dd(r))return r}return t},t)},Kd),sf(function(t){return t!==Kd}),Y(function(t){return Dd(t)?t:!0===t}),Tf(1))})}function Jd(t,e){return null!==t&&e&&e(new mp(t)),Ql(!0)}function $d(t,e){return null!==t&&e&&e(new yp(t)),Ql(!0)}function tv(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Ql(r.map(function(r){return of(function(){var o,i=Zd(r,e,n);if(function(t){return t&&Pd(t.canActivate)}(i))o=Vp(i.canActivate(e,t));else{if(!Pd(i))throw new Error("Invalid CanActivate guard");o=Vp(i(e,t))}return o.pipe(Nf())})})).pipe(Xd()):Ql(!0)}function ev(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return of(function(){return Ql(e.guards.map(function(o){var i,u=Zd(o,e.node,n);if(function(t){return t&&Pd(t.canActivateChild)}(u))i=Vp(u.canActivateChild(r,t));else{if(!Pd(u))throw new Error("Invalid CanActivateChild guard");i=Vp(u(r,t))}return i.pipe(Nf())})).pipe(Xd())})});return Ql(o).pipe(Xd())}var nv=function(){return function(){}}(),rv=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=uv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,xp),n=new dd([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,{},xp,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ad(n,e),o=new vd(this.url,r);return this.inheritParamsAndData(o._root),Ql(o)}catch(i){return new O(function(t){return t.error(i)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=pd(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=zp(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===xp?-1:e.value.outlet===xp?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var u=c(t),s=u.next();!s.done;s=u.next()){var a=s.value;try{return this.processSegmentAgainstRoute(a,e,n,r)}catch(l){if(!(l instanceof nv))throw l}}}catch(f){o={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new nv},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new nv;if((t.outlet||xp)!==r)throw new nv;var o,i=[],s=[];if("**"===t.path){var a=n.length>0?jp(n).parameters:{};o=new dd(n,a,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,cv(t),r,t.component,t,ov(e),iv(e)+n.length,lv(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new nv;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||kp)(n,t,e);if(!r)throw new nv;var o={};Mp(r.posParams,function(t,e){o[e]=t.path});var i=r.consumed.length>0?u({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=c.consumedSegments,s=n.slice(c.lastChild),o=new dd(i,c.parameters,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,cv(t),r,t.component,t,ov(e),iv(e)+i.length,lv(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=uv(e,i,s,l,this.relativeLinkResolution),h=f.segmentGroup,p=f.slicedSegments;if(0===p.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new ad(o,d)]}if(0===l.length&&0===p.length)return[new ad(o,[])];var v=this.processSegment(l,h,p,xp);return[new ad(o,v)]},t}();function ov(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function iv(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function uv(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return sv(t,e,n)&&av(n)!==xp})}(t,n)){var i=new Hp(e,function(t,e,n,r){var o,i,u={};u[xp]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var s=c(n),a=s.next();!a.done;a=s.next()){var l=a.value;if(""===l.path&&av(l)!==xp){var f=new Hp([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,u[av(l)]=f}}}catch(h){o={error:h}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return u}(t,e,r,new Hp(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return sv(t,e,n)})}(t,n)){var s=new Hp(t.segments,function(t,e,n,r,o,i){var s,a,l={};try{for(var f=c(r),h=f.next();!h.done;h=f.next()){var p=h.value;if(sv(t,n,p)&&!o[av(p)]){var d=new Hp([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===i?t.segments.length:e.length,l[av(p)]=d}}}catch(v){s={error:v}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(s)throw s.error}}return u({},o,l)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var a=new Hp(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}function sv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function av(t){return t.outlet||xp}function cv(t){return t.data||{}}function lv(t){return t.resolve||{}}function fv(t,e,n,r){var o=Zd(t,e,r);return Vp(o.resolve?o.resolve(e,n):o(e,n))}function hv(t){return function(e){return e.pipe(Pf(function(e){var n=t(e);return n?$(n).pipe(Y(function(){return e})):$([e])}))}}var pv=function(){return function(){}}(),dv=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),vv=new It("ROUTES"),yv=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Y(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Ip(Dp(o.injector.get(vv)).map(Rp),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?$(this.loader.load(t)):Vp(t()).pipe(tt(function(t){return t instanceof $r?Ql(t):$(e.compiler.compileModuleAsync(t))}))},t}(),gv=function(){return function(){}}(),mv=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function bv(t){throw t}function wv(t,e,n){return e.parse("/")}function _v(t,e){return Ql(null)}var xv=function(){function t(t,e,n,r,o,i,u,s){var a=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new V,this.errorHandler=bv,this.malformedUriErrorHandler=wv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_v,afterPreactivation:_v},this.urlHandlingStrategy=new mv,this.routeReuseStrategy=new dv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Jr),this.console=o.get(yi);var c=o.get(Oi);this.isNgZoneEnabled=c instanceof Oi,this.resetConfig(s),this.currentUrlTree=new Up(new Hp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yv(i,u,function(t){return a.triggerEvent(new dp(t))},function(t){return a.triggerEvent(new vp(t))}),this.routerState=fd(this.currentUrlTree,this.rootComponentType),this.transitions=new Yl({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(sf(function(t){return 0!==t.id}),Y(function(t){return u({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Pf(function(t){var r,o,i,s=!1,a=!1;return Ql(t).pipe(zf(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?u({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Pf(function(t){var r,o,i,s,a=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||a)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ql(t).pipe(Pf(function(t){var r=e.transitions.getValue();return n.next(new ip(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?nf:[t]}),Pf(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,i=e.urlSerializer,s=e.config,function(t){return t.pipe(Pf(function(t){return function(e,n,r,o,i){return new Hd(e,n,r,t.extractedUrl,i).apply()}(r,o,i,0,s).pipe(Y(function(e){return u({},t,{urlAfterRedirects:e})}))}))}),zf(function(t){e.currentNavigation=u({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,r,o,i){return function(r){return r.pipe(tt(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new rv(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,e.serializeUrl(s)),o,i).pipe(Y(function(t){return u({},r,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),zf(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),zf(function(t){var r=new cp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(a&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,f=t.restoredState,h=t.extras,p=new ip(t.id,e.serializeUrl(c),l,f);n.next(p);var d=fd(c,e.rootComponentType).snapshot;return Ql(u({},t,{targetSnapshot:d,urlAfterRedirects:c,extras:u({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),nf}),hv(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),zf(function(t){var n=new lp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Y(function(t){return u({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,i=n._root,Qd(i,r?r._root:null,o,[i.value]))});var n,r,o,i}),function(t,e){return function(n){return n.pipe(tt(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,i=n.guards,s=i.canActivateChecks,a=i.canDeactivateChecks;return 0===a.length&&0===s.length?Ql(u({},n,{guardsResult:!0})):function(t,e,n,r){return $(a).pipe(tt(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Ql(i.map(function(i){var u,s=Zd(i,e,o);if(function(t){return t&&Pd(t.canDeactivate)}(s))u=Vp(s.canDeactivate(t,e,n,r));else{if(!Pd(s))throw new Error("Invalid CanDeactivate guard");u=Vp(s(t,e,n,r))}return u.pipe(Nf())})).pipe(Xd()):Ql(!0)}(t.component,t.route,n,e,r)}),Nf(function(t){return!0!==t},!0))}(0,r,o,t).pipe(tt(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return $(s).pipe(Ff(function(e){return $([$d(e.route.parent,r),Jd(e.route,r),ev(t,e.path,n),tv(t,e.route,n)]).pipe(uf(),Nf(function(t){return!0!==t},!0))}),Nf(function(t){return!0!==t},!0))}(r,0,t,e):Ql(n)}),Y(function(t){return u({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),zf(function(t){if(Dd(t.guardsResult)){var n=Tp('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),zf(function(t){var n=new fp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),sf(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new sp(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),hv(function(t){if(t.guards.canActivateChecks.length)return Ql(t).pipe(zf(function(t){var n=new hp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(tt(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?$(o).pipe(Ff(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Ql({});if(1===o.length){var i=o[0];return fv(t[i],e,n,r).pipe(Y(function(t){var e;return(e={})[i]=t,e}))}var u={};return $(o).pipe(tt(function(o){return fv(t[o],e,n,r).pipe(Y(function(t){return u[o]=t,t}))})).pipe(xf(),Y(function(){return u}))}(t._resolve,t,e,o).pipe(Y(function(e){return t._resolvedData=e,t.data=u({},t.data,pd(t,r).resolve),null}))}(t.route,0,n,r)}),Bf(function(t,e){return t}),Y(function(e){return t})):Ql(t)}))}),zf(function(t){var n=new pp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),hv(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Y(function(t){var n,r,o,i=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(a=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var u=c(r.children),s=u.next();!s.done;s=u.next()){var a=s.value;if(e.shouldReuseRoute(a.value.snapshot,n.value))return t(e,n,a)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new ad(a,o)}var i=e.retrieve(n.value);if(i){var u=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;rs;){if(a-=s,!(u=u.parent))throw new Error("Invalid number of '../'");s=u.segments.length}return new Sd(u,!1,s-a)}()}(i,0,t),s=u.processChildren?Td(u.segmentGroup,u.index,i.commands):Ed(u.segmentGroup,u.index,i.commands);return _d(u.segmentGroup,s,e,r,o)}(c,this.currentUrlTree,t,h,l)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),_o()&&this.isNgZoneEnabled&&!Oi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Dd(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,f(t.split(",")))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),hy=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,o=t.statusText,i=t.type,u=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=u?u:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),py=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:ay.Default,headers:new fy})||this}return i(e,t),e}(hy),dy=function(){return function(){}}();function vy(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return sy.Get;case"POST":return sy.Post;case"PUT":return sy.Put;case"DELETE":return sy.Delete;case"OPTIONS":return sy.Options;case"HEAD":return sy.Head;case"PATCH":return sy.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var yy=function(t){return t>=200&&t<300},gy=function(){function t(){}return t.prototype.encodeKey=function(t){return my(t)},t.prototype.encodeValue=function(t){return my(t)},t}();function my(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var by=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new gy),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=l(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),o=r[0],i=r[1],u=e.get(o)||[];u.push(i),e.set(o,u)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return i(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(wy),xy=/^\)\]\}',?\n/,Sy=function(){function t(t,e,n){var r=this;this.request=t,this.response=new O(function(o){var i=e.build();i.open(sy[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(i.withCredentials=t.withCredentials);var u=function(){var e=1223===i.status?204:i.status,r=null;204!==e&&"string"==typeof(r=void 0===i.response?i.responseText:i.response)&&(r=r.replace(xy,"")),0===e&&(e=r?200:0);var u,s=fy.fromResponseHeaderString(i.getAllResponseHeaders()),a=("responseURL"in(u=i)?u.responseURL:/^X-Request-URL:/m.test(u.getAllResponseHeaders())?u.getResponseHeader("X-Request-URL"):null)||t.url,c=new hy({body:r,status:e,headers:s,statusText:i.statusText||"OK",url:a});null!=n&&(c=n.merge(c));var l=new _y(c);if(l.ok=yy(e),l.ok)return o.next(l),void o.complete();o.error(l)},s=function(t){var e=new hy({body:t,type:ay.Error,status:i.status,statusText:i.statusText});null!=n&&(e=n.merge(e)),o.error(new _y(e))};if(r.setDetectedContentType(t,i),null==t.headers&&(t.headers=new fy),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return i.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=i.responseType)switch(t.responseType){case ly.ArrayBuffer:i.responseType="arraybuffer";break;case ly.Json:i.responseType="json";break;case ly.Text:i.responseType="text";break;case ly.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",u),i.addEventListener("error",s),i.send(r.request.getBody()),function(){i.removeEventListener("load",u),i.removeEventListener("error",s),i.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case cy.NONE:break;case cy.JSON:e.setRequestHeader("content-type","application/json");break;case cy.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case cy.TEXT:e.setRequestHeader("content-type","text/plain");break;case cy.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),Cy=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Kf().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Ey=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new Sy(t,this._browserXHR,this._baseResponseOptions)},t}(),Ty=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,o=t.url,i=t.search,u=t.params,s=t.withCredentials,a=t.responseType;this.method=null!=e?vy(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(u||i),this.withCredentials=null!=s?s:null,this.responseType=null!=a?a:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new fy(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof by?t.clone():"string"==typeof t?new by(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new by;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),ky=function(t){function e(){return t.call(this,{method:sy.Get,headers:new fy})||this}return i(e,t),e}(Ty),Iy=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var o,i=e.params||e.search;if(i&&(o="object"!=typeof i||i instanceof by?i.toString():function(t){var e=new by;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(i).toString()).length>0){var u="?";-1!=n.url.indexOf("?")&&(u="&"==n.url[n.url.length-1]?"":"&"),n.url=r+u+o}return n._body=e.body,n.method=vy(e.method),n.headers=new fy(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return i(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return cy.JSON;case"application/x-www-form-urlencoded":return cy.FORM;case"multipart/form-data":return cy.FORM_DATA;case"text/plain":case"text/html":return cy.TEXT;case"application/octet-stream":return this._body instanceof Py?cy.ARRAY_BUFFER:cy.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?cy.NONE:this._body instanceof by?cy.FORM:this._body instanceof Oy?cy.FORM_DATA:this._body instanceof Ry?cy.BLOB:this._body instanceof Py?cy.ARRAY_BUFFER:this._body&&"object"==typeof this._body?cy.JSON:cy.TEXT},e.prototype.getBody=function(){switch(this.contentType){case cy.JSON:case cy.FORM:return this.text();case cy.FORM_DATA:return this._body;case cy.TEXT:return this.text();case cy.BLOB:return this.blob();case cy.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(wy),Ny=function(){},Ay="object"==typeof window?window:Ny,Oy=Ay.FormData||Ny,Ry=Ay.Blob||Ny,Py=Ay.ArrayBuffer||Ny;function Dy(t,e){return t.createConnection(e).response}function jy(t,e,n,r){return t.merge(new Ty(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var My=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=Dy(this._backend,new Iy(jy(this._defaultOptions,e,sy.Get,t)));else{if(!(t instanceof Iy))throw new Error("First argument must be a url string or Request instance.");n=Dy(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new Iy(jy(this._defaultOptions,e,sy.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new Iy(jy(this._defaultOptions.merge(new Ty({body:e})),n,sy.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new Iy(jy(this._defaultOptions.merge(new Ty({body:e})),n,sy.Put,t)))},t.prototype.delete=function(t,e){return this.request(new Iy(jy(this._defaultOptions,e,sy.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new Iy(jy(this._defaultOptions.merge(new Ty({body:e})),n,sy.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Iy(jy(this._defaultOptions,e,sy.Head,t)))},t.prototype.options=function(t,e){return this.request(new Iy(jy(this._defaultOptions,e,sy.Options,t)))},t}();function Vy(){return new Cy}function Ly(t,e){return new My(t,e)}var Uy=function(){return function(){}}(),Hy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),g.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),g.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(V);function Fy(t){var e=this,n=t.args,r=t.subscriber,o=t.params,i=o.callbackFunc,u=o.context,s=o.scheduler,a=o.subject;if(!a){a=o.subject=new Hy;try{i.apply(u,n.concat([function(){for(var t=[],n=0;n1?Array.prototype.slice.call(arguments):e)},t,r)})},O.fromEventPattern=function t(e,n,r){return r?t(e,n).pipe(Y(function(t){return h(t)?r.apply(void 0,t):r(t)})):new O(function(t){var r,o=function(){for(var e=[],n=0;n=0}function $y(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}function tg(){for(var t=[],e=0;e=t.count?r.complete():(r.next(e),r.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}function ug(t,e){return new O(e?function(n){return e.schedule(sg,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function sg(t){t.subscriber.error(t.error)}function ag(t,e,n){void 0===t&&(t=0);var r=-1;return Jy(e)?r=Number(e)<1?1:Number(e):U(e)&&(n=e),U(n)||(n=Xy),new O(function(e){var o=Jy(t)?t:+t-n.now();return n.schedule(cg,o,{index:0,period:r,subscriber:e})})}function cg(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function lg(){for(var t=[],e=0;e=e){r.complete();break}if(r.next(i++),r.closed)break}})},O.using=function(t,e){return new O(function(n){var r,o;try{r=t()}catch(u){return void n.error(u)}try{o=e(r)}catch(u){return void n.error(u)}var i=(o?$(o):nf).subscribe(n);return function(){i.unsubscribe(),r&&r.unsubscribe()}})},O.throw=ug,O.throwError=ug,O.timer=ag;var fg=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new hg(t,this.resultSelector))},t}(),hg=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var o=t.call(this,e)||this;return o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:null,o.values=r,o}return i(e,t),e.prototype._next=function(t){var e=this.iterators;h(t)?e.push(new dg(t)):e.push("function"==typeof t[z]?new pg(t[z]()):new vg(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;nthis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),vg=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return i(e,t),e.prototype[z]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Z(this,this.observable,this,e)},e}(Q);O.zip=lg;var yg="undefined"!=typeof window&&window,gg="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,mg="undefined"!=typeof global&&global,bg=yg||mg||gg;function wg(t,e){return void 0===e&&(e=null),new kg({method:"GET",url:t,headers:e})}function _g(t,e,n){return new kg({method:"POST",url:t,body:e,headers:n})}function xg(t,e){return new kg({method:"DELETE",url:t,headers:e})}function Sg(t,e,n){return new kg({method:"PUT",url:t,body:e,headers:n})}function Cg(t,e,n){return new kg({method:"PATCH",url:t,body:e,headers:n})}var Eg=Y(function(t,e){return t.response});function Tg(t,e){return Eg(new kg({method:"GET",url:t,responseType:"json",headers:e}))}var kg=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(bg.XMLHttpRequest)return new bg.XMLHttpRequest;if(bg.XDomainRequest)return new bg.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(bg.XMLHttpRequest)return new bg.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(new bg.ActiveXObject(t=e[n]))break}catch(r){}return new bg.ActiveXObject(t)}catch(r){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return n.request=r,n}var n;return i(e,t),e.prototype._subscribe=function(t){return new Ig(t,this.request)},e.create=((n=function(t){return new e(t)}).get=wg,n.post=_g,n.delete=xg,n.put=Sg,n.patch=Cg,n.getJSON=Tg,n),e}(O),Ig=function(t){function e(e,n){var r=t.call(this,e)||this;r.request=n,r.done=!1;var o=n.headers=n.headers||{};return n.crossDomain||r.getHeader(o,"X-Requested-With")||(o["X-Requested-With"]="XMLHttpRequest"),r.getHeader(o,"Content-Type")||bg.FormData&&n.body instanceof bg.FormData||void 0===n.body||(o["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,r.getHeader(n.headers,"Content-Type")),r.send(),r}return i(e,t),e.prototype.next=function(t){this.done=!0;var e,n=this.xhr,r=this.request,o=this.destination;try{e=new Ng(t,n,r)}catch(i){return o.error(i)}o.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,o=e.url,i=e.async,u=e.password,s=e.headers,a=e.body;try{var c=this.xhr=t.createXHR();this.setupEvents(c,t),n?c.open(r,o,i,n,u):c.open(r,o,i),i&&(c.timeout=t.timeout,c.responseType=t.responseType),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),this.setHeaders(c,s),a?c.send(a):c.send()}catch(l){this.error(l)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(bg.FormData&&t instanceof bg.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.getHeader=function(t,e){for(var n in t)if(n.toLowerCase()===e.toLowerCase())return t[n]},e.prototype.setupEvents=function(t,e){var n,r,o=e.progressSubscriber;function i(t){var e,n=i.subscriber,r=i.progressSubscriber,o=i.request;r&&r.error(t);try{e=new Pg(this,o)}catch(u){e=u}n.error(e)}function u(t){}function s(t){var e=s.subscriber,n=s.progressSubscriber,r=s.request;if(4===this.readyState){var o=1223===this.status?204:this.status;if(0===o&&(o=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),o<400)n&&n.complete(),e.next(t),e.complete();else{n&&n.error(t);var i=void 0;try{i=new Og("ajax error "+o,this,r)}catch(u){i=u}e.error(i)}}}t.ontimeout=i,i.request=e,i.subscriber=this,i.progressSubscriber=o,t.upload&&"withCredentials"in t&&(o&&(n=function(t){n.progressSubscriber.next(t)},bg.XDomainRequest?t.onprogress=n:t.upload.onprogress=n,n.progressSubscriber=o),t.onerror=r=function(t){var e,n=r.progressSubscriber,o=r.subscriber,i=r.request;n&&n.error(t);try{e=new Og("ajax error",this,i)}catch(u){e=u}o.error(e)},r.request=e,r.subscriber=this,r.progressSubscriber=o),t.onreadystatechange=u,u.subscriber=this,u.progressSubscriber=o,u.request=e,t.onload=s,s.subscriber=this,s.progressSubscriber=o,s.request=e},e.prototype.unsubscribe=function(){var e=this.xhr;!this.done&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),t.prototype.unsubscribe.call(this)},e}(C),Ng=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Rg(this.responseType,e)}}();function Ag(t,e,n){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Rg(this.responseType,e),this}Ag.prototype=Object.create(Error.prototype);var Og=Ag;function Rg(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var Pg=function(t,e){return Og.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this};O.ajax=kg.create;var Dg,jg=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Qy),Mg=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Ky))(jg);Dg||(Dg={});var Vg=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Ql(this.value);case"E":return ug(this.error);case"C":return rf()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function Lg(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Ug(t,e))}}var Ug=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new Hg(t,this.scheduler,this.delay))},t}(),Hg=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return i(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Fg(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Vg.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Vg.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Vg.createComplete()),this.unsubscribe()},e}(C),Fg=function(){return function(t,e){this.notification=t,this.destination=e}}(),Bg=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new zg(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new D;if(this.isStopped||this.hasError?e=g.EMPTY:(this.observers.push(t),e=new j(this,t)),o&&t.add(t=new Hg(t,o)),n)for(var u=0;ue&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(V),zg=function(){return function(t,e){this.time=t,this.value=e}}(),qg={url:"",deserializer:function(t){return JSON.parse(t.data)},serializer:function(t){return JSON.stringify(t)}},Wg=function(t){function e(e,n){var r=t.call(this)||this;if(e instanceof O)r.destination=n,r.source=e;else{var o=r._config=u({},qg);if(r._output=new V,"string"==typeof e)o.url=e;else for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);if(!o.WebSocketCtor&&WebSocket)o.WebSocketCtor=WebSocket;else if(!o.WebSocketCtor)throw new Error("no WebSocket constructor can be found");r.destination=new Bg}return r}return i(e,t),e.prototype.lift=function(t){var n=new e(this._config,this.destination);return n.operator=t,n.source=this,n},e.prototype._resetState=function(){this._socket=null,this.source||(this.destination=new Bg),this._output=new V},e.prototype.multiplex=function(t,e,n){var r=this;return new O(function(o){try{r.next(t())}catch(u){o.error(u)}var i=r.subscribe(function(t){try{n(t)&&o.next(t)}catch(u){o.error(u)}},function(t){return o.error(t)},function(){return o.complete()});return function(){try{r.next(e())}catch(u){o.error(u)}i.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this._config,n=e.WebSocketCtor,r=e.protocol,o=e.url,i=e.binaryType,u=this._output,s=null;try{s=r?new n(o,r):new n(o),this._socket=s,i&&(this._socket.binaryType=i)}catch(c){return void u.error(c)}var a=new g(function(){t._socket=null,s&&1===s.readyState&&s.close()});s.onopen=function(e){if(!t._socket)return s.close(),void t._resetState();var n=t._config.openObserver;n&&n.next(e);var r=t.destination;t.destination=C.create(function(n){if(1===s.readyState)try{s.send((0,t._config.serializer)(n))}catch(e){t.destination.error(e)}},function(e){var n=t._config.closingObserver;n&&n.next(void 0),e&&e.code?s.close(e.code,e.reason):u.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t._config.closingObserver;e&&e.next(void 0),s.close(),t._resetState()}),r&&r instanceof Bg&&a.add(r.subscribe(t.destination))},s.onerror=function(e){t._resetState(),u.error(e)},s.onclose=function(e){t._resetState();var n=t._config.closeObserver;n&&n.next(e),e.wasClean?u.complete():u.error(e)},s.onmessage=function(e){try{u.next((0,t._config.deserializer)(e))}catch(n){u.error(n)}}},e.prototype._subscribe=function(t){var e=this,n=this.source;return n?n.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(function(){var t=e._socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),t)},e.prototype.unsubscribe=function(){var e=this._socket;e&&1===e.readyState&&e.close(),this._resetState(),t.prototype.unsubscribe.call(this)},e}(L);function Gg(t){return function(e){return e.lift(new Zg(t))}}O.webSocket=function(t){return new Wg(t)};var Zg=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Qg(t,this.closingNotifier))},t}(),Qg=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Z(r,n)),r}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},e}(Q);function Yg(t,e){return void 0===e&&(e=null),function(n){return n.lift(new Kg(t,e))}}O.prototype.buffer=function(t){return Gg(t)(this)};var Kg=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?Jg:Xg}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),Xg=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return i(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(C),Jg=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.bufferSize=n,o.startBufferEvery=r,o.buffers=[],o.count=0,o}return i(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,o=this.count;this.count++,o%n==0&&r.push([]);for(var i=r.length;i--;){var u=r[i];u.push(t),u.length===e&&(r.splice(i,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(C);function $g(t){var e=arguments.length,n=Xy;U(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new tm(t,r,o,n))}}O.prototype.bufferCount=function(t,e){return void 0===e&&(e=null),Yg(t,e)(this)};var tm=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new nm(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),em=function(){return function(){this.buffer=[]}}(),nm=function(t){function e(e,n,r,o,i){var u=t.call(this,e)||this;u.bufferTimeSpan=n,u.bufferCreationInterval=r,u.maxBufferSize=o,u.scheduler=i,u.contexts=[];var s=u.openContext();if(u.timespanOnly=null==r||r<0,u.timespanOnly)u.add(s.closeAction=i.schedule(rm,n,{subscriber:u,context:s,bufferTimeSpan:n}));else{var a={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:u,scheduler:i};u.add(s.closeAction=i.schedule(im,n,{subscriber:u,context:s})),u.add(i.schedule(om,r,a))}return u}return i(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,o=0;o0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(rm,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new em;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(C);function rm(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function om(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,o=t.scheduler,i=r.openContext();r.closed||(r.add(i.closeAction=o.schedule(im,n,{subscriber:r,context:i})),this.schedule(t,e))}function im(t){t.subscriber.closeContext(t.context)}function um(t,e){return function(n){return n.lift(new sm(t,e))}}O.prototype.bufferTime=function(t){var e=arguments.length,n=Xy;U(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),$g(t,r,o,n)(this)};var sm=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new am(t,this.openings,this.closingSelector))},t}(),am=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.openings=n,o.closingSelector=r,o.contexts=[],o.add(Z(o,n)),o}return i(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(n){this._error(n)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new g,r={buffer:[],subscription:n};e.push(r);var o=Z(this,t,r);!o||o.closed?this.closeBuffer(r):(o.context=r,this.add(o),n.add(o))},e}(Q);function cm(t){return function(e){return e.lift(new lm(t))}}O.prototype.bufferToggle=function(t,e){return um(t,e)(this)};var lm=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new fm(t,this.closingSelector))},t}(),fm=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,o){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t,e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{t=(0,this.closingSelector)()}catch(n){return this.error(n)}e=new g,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Z(this,t)),this.subscribing=!1},e}(Q);function hm(t){return function(e){return e.lift(new tf(t))}}function pm(t,e){return Ff(function(){return t},e)}function dm(t){return function(e){return e.lift(new vm(t,e))}}O.prototype.bufferWhen=function(t){return cm(t)(this)},O.prototype.combineAll=function(t){return hm(t)(this)},O.prototype.combineLatest=function(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new Om(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Vg.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Vg.createComplete()),this.unsubscribe()},e}(C),Om=function(){return function(t,e){this.time=t,this.notification=e}}();function Rm(t,e){return e?function(n){return new jm(n,e).lift(new Pm(t))}:function(e){return e.lift(new Pm(t))}}O.prototype.delay=function(t,e){return void 0===e&&(e=Xy),Im(t,e)(this)};var Pm=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Dm(t,this.delayDurationSelector))},t}(),Dm=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(t),this.removeSubscription(o),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Z(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(Q),jm=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return i(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new Mm(t,this.source))},e}(O),Mm=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return i(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(C);function Vm(t,e){return function(n){return n.lift(new Lm(t,e))}}O.prototype.delayWhen=function(t,e){return Rm(t,e)(this)};var Lm=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Um(t,this.keySelector,this.flushes))},t}(),Um=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Z(o,r)),o}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(r){return void n.error(r)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(Q);function Hm(t,e){return function(n){return n.lift(new Fm(t,e))}}O.prototype.distinct=function(t,e){return Vm(t,e)(this)};var Fm=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Bm(t,this.compare,this.keySelector))},t}(),Bm=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return i(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(o){return this.destination.error(o)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(o){return this.destination.error(o)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(C);function zm(t,e){return Hm(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}function qm(t,e,n){return zf(t,e,n)(this)}function Wm(){return function(t){return t.lift(new Gm)}}O.prototype.distinctUntilChanged=function(t,e){return Hm(t,e)(this)},O.prototype.distinctUntilKeyChanged=function(t,e){return zm(t,e)(this)},O.prototype.do=qm,O.prototype._do=qm;var Gm=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Zm(t))},t}(),Zm=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Z(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Q);function Qm(t,e){return e?function(n){return n.pipe(Qm(function(n,r){return $(t(n,r)).pipe(Y(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Ym(t))}}O.prototype.exhaust=function(){return Wm()(this)};var Ym=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Km(t,this.project))},t}(),Km=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return i(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new H(this,void 0,void 0);this.destination.add(r),Z(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Q);function Xm(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Jm(t,e,n))}}O.prototype.exhaustMap=function(t){return Qm(t)(this)};var Jm=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new $m(t,this.project,this.concurrent,this.scheduler))},t}(),$m=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.scheduler=o,i.index=0,i.active=0,i.hasCompleted=!1,r0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(Q);function tb(t,e){if(t<0)throw new ff;var n=arguments.length>=2;return function(r){return r.pipe(sf(function(e,n){return n===t}),Tf(1),n?bf(e):vf(function(){return new ff}))}}function eb(t){return Gf(t)(this)}function nb(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new rb(t,n,!1,e))}}O.prototype.expand=function(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),Xm(t,e=(e||0)<1?Number.POSITIVE_INFINITY:e,n)(this)},O.prototype.elementAt=function(t,e){return tb.apply(void 0,arguments)(this)},O.prototype.filter=function(t,e){return sf(t,e)(this)},O.prototype.finally=eb,O.prototype._finally=eb;var rb=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new ob(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),ob=function(t){function e(e,n,r,o,i){var u=t.call(this,e)||this;return u.predicate=n,u.source=r,u.yieldIndex=o,u.thisArg=i,u.index=0,u}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(o){this.destination.error(o)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(C);function ib(t,e){return function(n){return n.lift(new rb(t,n,!0,e))}}function ub(t,e,n,r){return function(o){return o.lift(new sb(t,e,n,r))}}O.prototype.find=function(t,e){return nb(t,e)(this)},O.prototype.findIndex=function(t,e){return ib(t,e)(this)},O.prototype.first=function(){for(var t=[],e=0;e0?e:n}:function(t,e){return t>e?t:e})}function Ab(t,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),tt(t,e)(this)}function Ob(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?tt(function(){return t},e,n):("number"==typeof e&&(n=e),tt(function(){return t},n))}function Rb(t,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Ob(t,e)(this)}function Pb(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Db(t,e,n))}}O.prototype.materialize=function(){return Tb()(this)},O.prototype.max=function(t){return Nb(t)(this)},O.prototype.merge=function(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(Q);function Mb(t){return Bf("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t=2?Bf(t,e)(this):Bf(t)(this)};var Jb=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new $b(t,this.count,this.source))},t}(),$b=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.count=n,o.source=r,o}return i(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(C);function tw(t){return function(e){return e.lift(new ew(t))}}O.prototype.repeat=function(t){return void 0===t&&(t=-1),Xb(t)(this)};var ew=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new nw(t,this.notifier,e))},t}(),nw=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.notifier=n,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new V;try{e=(0,this.notifier)(this.notifications)}catch(n){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Z(this,e)},e}(Q);function rw(t){return void 0===t&&(t=-1),function(e){return e.lift(new ow(t,e))}}O.prototype.repeatWhen=function(t){return tw(t)(this)};var ow=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new iw(t,this.count,this.source))},t}(),iw=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.count=n,o.source=r,o}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(C);function uw(t){return function(e){return e.lift(new sw(t,e))}}O.prototype.retry=function(t){return void 0===t&&(t=-1),rw(t)(this)};var sw=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new aw(t,this.notifier,this.source))},t}(),aw=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.notifier=n,o.source=r,o}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{n=new V;try{r=(0,this.notifier)(n)}catch(i){return t.prototype.error.call(this,i)}o=Z(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,o){var i=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=i,this.source.subscribe(this)},e}(Q);function cw(t){return function(e){return e.lift(new lw(t))}}O.prototype.retryWhen=function(t){return uw(t)(this)};var lw=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new fw(t),r=e.subscribe(n);return r.add(Z(n,this.notifier)),r},t}(),fw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return i(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(Q);function hw(t,e){return void 0===e&&(e=Xy),function(n){return n.lift(new pw(t,e))}}O.prototype.sample=function(t){return cw(t)(this)};var pw=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new dw(t,this.period,this.scheduler))},t}(),dw=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.period=n,o.scheduler=r,o.hasValue=!1,o.add(r.schedule(vw,n,{subscriber:o,period:n})),o}return i(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(C);function vw(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}function yw(t,e){return function(n){return n.lift(new gw(t,e))}}O.prototype.sampleTime=function(t,e){return void 0===e&&(e=Xy),hw(t,e)(this)},O.prototype.scan=function(t,e){return arguments.length>=2?Lf(t,e)(this):Lf(t)(this)};var gw=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new mw(t,this.compareTo,this.comparator))},t}(),mw=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.compareTo=n,o.comparator=r,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(n.subscribe(new bw(e,o))),o}return i(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),o=e.shift(),i=!1;try{i=n?n(r,o):r===o}catch(u){this.destination.error(u)}i||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(C),bw=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return i(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(C);function ww(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift((u=void 0===(i=(e=r).bufferSize)?Number.POSITIVE_INFINITY:i,a=void 0===(s=e.windowTime)?Number.POSITIVE_INFINITY:s,c=e.refCount,l=e.scheduler,f=0,h=!1,p=!1,function(t){f++,n&&!h||(h=!1,n=new Bg(u,a,l),o=t.subscribe({next:function(t){n.next(t)},error:function(t){h=!0,n.error(t)},complete:function(){p=!0,n.complete()}}));var e=n.subscribe(this);this.add(function(){f--,e.unsubscribe(),o&&!p&&c&&0===f&&(o.unsubscribe(),o=void 0,n=void 0)})}));var e,n,o,i,u,s,a,c,l,f,h,p}}function _w(t){return function(e){return e.lift(new xw(t,e))}}O.prototype.sequenceEqual=function(t,e){return yw(t,e)(this)},O.prototype.share=function(){return yt()(this)},O.prototype.shareReplay=function(t,e,n){return t&&"object"==typeof t?ww(t)(this):ww(t,e,n)(this)};var xw=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Sw(t,this.predicate,this.source))},t}(),Sw=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.source=r,o.seenValue=!1,o.index=0,o}return i(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Xl)},e}(C);function Cw(t){return function(e){return e.lift(new Ew(t))}}O.prototype.single=function(t){return _w(t)(this)};var Ew=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Tw(t,this.total))},t}(),Tw=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(C);function kw(t){return function(e){return e.lift(new Iw(t))}}O.prototype.skip=function(t){return Cw(t)(this)};var Iw=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new ff}return t.prototype.call=function(t,e){return e.subscribe(0===this._skipCount?new C(t):new Nw(t,this._skipCount))},t}(),Nw=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return i(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(o=e.flush.bind(e,null),i=Mw++,Vw[i]=o,Promise.resolve().then(function(){return function(t){var e=Vw[t];e&&e()}(i)}),i)));var o,i},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete Vw[n],e.scheduled=void 0)},e}(Qy),Uw=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,o=this.windows,i=o.length,u=0;u=0&&s%e==0&&!this.closed&&o.shift().complete(),++this.count%e==0&&!this.closed){var a=new V;o.push(a),n.next(a)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(C);function C_(t){var e=Xy,n=null,r=Number.POSITIVE_INFINITY;return U(arguments[3])&&(e=arguments[3]),U(arguments[2])?e=arguments[2]:Jy(arguments[2])&&(r=arguments[2]),U(arguments[1])?e=arguments[1]:Jy(arguments[1])&&(n=arguments[1]),function(o){return o.lift(new E_(t,n,r,e))}}O.prototype.windowCount=function(t,e){return void 0===e&&(e=0),__(t,e)(this)};var E_=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new k_(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),T_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return i(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(V),k_=function(t){function e(e,n,r,o,i){var u=t.call(this,e)||this;u.destination=e,u.windowTimeSpan=n,u.windowCreationInterval=r,u.maxWindowSize=o,u.scheduler=i,u.windows=[];var s=u.openWindow();if(null!==r&&r>=0){var a={windowTimeSpan:n,windowCreationInterval:r,subscriber:u,scheduler:i};u.add(i.schedule(A_,n,{subscriber:u,window:s,context:null})),u.add(i.schedule(N_,r,a))}else u.add(i.schedule(I_,n,{subscriber:u,window:s,windowTimeSpan:n}));return u}return i(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(o))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new T_;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(C);function I_(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function N_(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,o=t.windowCreationInterval,i=n.openWindow(),u={action:this,subscription:null};u.subscription=r.schedule(A_,e,{subscriber:n,window:i,context:u}),this.add(u.subscription),this.schedule(t,o)}function A_(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function O_(t,e){return function(n){return n.lift(new R_(t,e))}}O.prototype.windowTime=function(t){var e=Xy,n=null,r=Number.POSITIVE_INFINITY;return U(arguments[3])&&(e=arguments[3]),U(arguments[2])?e=arguments[2]:Jy(arguments[2])&&(r=arguments[2]),U(arguments[1])?e=arguments[1]:Jy(arguments[1])&&(n=arguments[1]),C_(t,n,r,e)(this)};var R_=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new P_(t,this.openings,this.closingSelector))},t}(),P_=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.openings=n,o.closingSelector=r,o.contexts=[],o.add(o.openSubscription=Z(o,n,n)),o}return i(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var u=i.indexOf(n);-1!==u&&i.splice(u,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(Q);function H_(t){return function(e){return e.lift(new fg(t))}}function F_(){for(var t=[],e=0;e